FLASH- Button states
- Started
- Last post
- 10 Responses
- lighttocarry
Is there any way to change the property of a button, from one frame to the next.
For instance, using a ClipEvent.
I want to have a global menu that's loaded into a movie and have that movie change one button state from UP to OVER.
- ********0
yeah damn it, I have been wondering about this as well, anybody? lightocarry can you send me what you got so far. I am trying to build a better Flash Nav system as well. Arrggg!
- recpos0
hmm not sure, but you could do an workaround if you've not already started.. or the project is short on time, just make your nav buttons with movieclips and not buttons, using tell_tagret or if statement to change them to your 'over' frame + use a generic button with 0 alpha on top to call the shots...
- lighttocarry0
I've thought about that, but it's a little too complicated for that...
http://www.tridentstage.com/trid…
That menu needs to be loaded into a larger movie for each section... and, as you can see, there is a need for it to be only one file. Else I'll have to update a ton of FLA files.
- jevad0
XML baby
- fusion410
you could put all your buttons in individual movie clips that have two frames, one for active and inactive. On press the buttons call a function that sends them all to the inactive state then turns the one that was pressed to active. The benefit of using a function is that you can call it from elsewhere to make any particular button active.
- ********0
the button.enabled property can be set to true or false to allow you to select or disabe buttons.....
- lighttocarry0
XML... you bastard, stop taunting me.
Ahhh... now that's a decent idea.. Except it's just one button that needs to be on the downstate, which ever one is the current page.
That might work though... Thanks.
- ********0
ha haa hee
- lighttocarry0
"the button.enabled property can be set to true or false to allow you to select or disabe buttons....."
MX- That's true, however, I don't need to disable the button, I need for it to display the downstate. Also, that is only compatible with the F6 player... so no dice..
Anyone else? I'm trying a bunch of shit, can't seem to peg it without fucking everything up...
- Mick0
When you say different state for each "different page" do you mean HTML page?
If so use the filename.swf?varname=whatever function in the actual HTML of your page. It allows the HTML page to send a variable to the flash when it's loaded.
You can see this on the flash nav that I created for this site...
http://www.mixart.com/misc/khand…