Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 22nd, 2004, 01:10 PM
absolutemonkey's Avatar
absolutemonkey absolutemonkey is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Boston
Posts: 116 absolutemonkey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 59 m 40 sec
Reputation Power: 5
Send a message via MSN to absolutemonkey Send a message via Yahoo to absolutemonkey
Set frame with SetProperty

Does anyone know how to set the frame with setProperty? I need to use setProperty because I'm doing ("movie" + i) if I do "movie"+i.gotoAndStop(1) if gives me an error. So I need to use setProperty to set the frame.

Thanks,
__________________
Travis

Reply With Quote
  #2  
Old February 22nd, 2004, 11:28 PM
timothye timothye is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Sweden/Sverige/USA
Posts: 134 timothye User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
can you be more specific on what you are exactly trying to accomplish !
cheers
__________________
please see my site http://www.f-web.net
also tutorials coming soon..
I am for hire .timo@f-web.net

Reply With Quote
  #3  
Old February 22nd, 2004, 11:46 PM
rynoe's Avatar
rynoe rynoe is offline
_root.troubleMaker
Dev Shed Novice (500 - 999 posts)
 
Join Date: Dec 2003
Location: Florida, USA
Posts: 638 rynoe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 8 m 30 sec
Reputation Power: 5
The "movie" +i.gotoAndPlay I told you about in an earlier thread and setProperty are completely unrelated, You might want to post and example of what you are working on and then it will be easier to understand what you are doing......
__________________
No problem is so complex that it cannot be resolved with the proper use of explosives.

Reply With Quote
  #4  
Old February 23rd, 2004, 01:31 AM
absolutemonkey's Avatar
absolutemonkey absolutemonkey is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Boston
Posts: 116 absolutemonkey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 59 m 40 sec
Reputation Power: 5
Send a message via MSN to absolutemonkey Send a message via Yahoo to absolutemonkey
I guess I'm off in some many directions I can't figure out where I'm going. Here's the code I'm working on:
//This function gets called with three params, INOROUT(meaning expand or collaspe), HOWMANY(means howmany submenus it needs to make room for), and WHICHONE(means which menu item it is. i.e. 1,2, or whatever).

__________________________________________
function menumove(INOROUT,HOWMANY,WHICHONE){
switch(INOROUT){
case "IN":
trace("In");
for(i=WHICHONE + 1;i<16;i++){
tempX = getProperty('menu' + i, _y);
setProperty('menu' + i, _y, tempX - (22.3 * HOWMANY));
}
_global.whosopen = 0;
_global.whoshowmany = 0;
break;
case "OUT":
trace("Out");
for(i=WHICHONE + 1;i<16;i++){
tempX = getProperty('menu' + i, _y);
setProperty('menu' + i, _y, tempX + (22.3 * HOWMANY));
}
_global.whosopen = WHICHONE;
_global.whoshowmany = HOWMANY;
break;
}
}
//This function is called to close whichever one is open. So if you click another item it closes the previos one.
_________________________________________
function closeothersopen(){
setProperty('menu' + _global.whosopen, gotoAndStop(1),"");
_root.menumove("IN",_global.whoshowmany,_global.whosopen);
}
__________________________________________
I have a menu with submenu options. When you click a menu option I want all the menu option below it to move down so the submenu options are accessible. Right now I have the menu options as movieclips with 3 frames total. 1st is for normal when it's just sitting there. 2nd is just the lettering a different color to look like it's highlighted. I have it goto this frame onRollover. Then frame 3 is it with the lettering greyed out and submenu options underneath it.
Take a look and you'll see what I mean
www.absolutemonkey.com/work/menu.html
I also have the fla there too, same name. For right now, Just the first two options have all the code, and only the first one the third frame in it.
I want to use the setproperty to change whichever menu item that is open to frame one and then close it.
I hope this helps explain my maddness. If not, I may just be a lost soul.
Thanks again,

Reply With Quote
  #5  
Old February 23rd, 2004, 02:23 AM
rynoe's Avatar
rynoe rynoe is offline
_root.troubleMaker
Dev Shed Novice (500 - 999 posts)
 
Join Date: Dec 2003
Location: Florida, USA
Posts: 638 rynoe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 8 m 30 sec
Reputation Power: 5
This code you posted is illogical. You don't explain why you are using global variables. You don't define the WHICHONE variable in ths code: for(i=WHICHONE + 1;i<16;i++) and endless other open questions............

It looks like you have a good understanding of actionscript and programming in general.

What are you asking for here?

Reply With Quote
  #6  
Old February 23rd, 2004, 09:36 PM
absolutemonkey's Avatar
absolutemonkey absolutemonkey is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Boston
Posts: 116 absolutemonkey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 59 m 40 sec
Reputation Power: 5
Send a message via MSN to absolutemonkey Send a message via Yahoo to absolutemonkey
I'm asking how to make a movieclip goto a frame using a way that I can use... "menu" + i
If I do "menu"+i.gotoAndStop(1) it gives me an error.

I'm using globals because I'm just used to doing that with PHP (so you can use them outside of a function in PHP)
I pass the variables(INOROUT,WHICHONE,HOWMANY) from the call function statement in the onRelease statement
This is the code attached to the menu item:
on (rollOver) {
if(_currentframe !== 3){
gotoAndStop(2);
}
}
on (rollOut) {
if(_currentframe !== 3){
gotoAndStop(1);
}
}
on (release) {
switch(_global.footballclicked){
case true:
if(_currentframe == 3){
//Sending IN because it's collapsing, sending 13 because that's howmany submenus, and sending 1 because this is the first menu item
_root.menumove("IN",13,1);
gotoAndStop(1);
}
break;
case false:
//Sending OUT because it's expanding, sending 13 because that's howmany submenus, and sending 1 because this is the first menu item
_root.menumove("OUT",13,1);
gotoAndStop(3);
break;
}
//Toggles the menu option
_global.footballclicked = !_global.footballclicked;
}
Thanks,

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Set frame with SetProperty


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway