Telling whether or not a button was pressed?

I posted this 4 days ago, and received no help, so I’m trying again.

Does anyone know how to do this? … >>

I have the ‘main.swf’ which has a navigation within it with buttons such as “about” “contact” and “staff” …
One of these are pressed and load the ‘background.swf’ into a emptymovieclip on the ‘main.swf’ …
Now from there, once the ‘background.swf’ has loaded, I would like for ‘about.swf’ to play within an emptymovieclip that is on the ‘background.swf’ if the “about” button has been pressed on the ‘main.swf’ …
And to do this, I need it to test which button was pressed so that it loads the correct movie into the empty movieclip on ‘background.swf’ …

Does that make sense?

Any help would be greatly appreciated! I need this urgently! Please!

Thanks,
Boon. :thumb:

Anyone please??? :slight_smile:

Boondock, post your FLA:)

Ok … here is the .fla

Just look for the keyframe 123 … it has what I’m trying to do in the actionscript panel …

http://www.cskern.com/newsite/other_background_test.zip

Thanks!

Boon. :thumb:

BUMP … could I please get some help on this? thanks…

ermmm why detect which button is pressed?? cant you just use


_parent.about_btn.onRelease = function() { 
trace("this is where the action goes")
}

If I were to do this, I might have a function in background.swf that loads the external .swf into the appropriate container based on the function arguments. The about button would define a variable in background.swf, such as “movieToLoad = ‘about’” once the background.swf reaches the point in its timeline where it is supposed to load the movie, it would call the function that you defined earlier. (A function argument would read the movieToLoad variable)

I’m sorry Pascal but I’m def. not following you there … how is that going to load the about.swf into the emptymovieclip on the background.swf once it has got to the particular frame it needs to , to load that .swf?

Ok, I’m going to have to bump this thread again …

Could someone please help me out! PLEASE!

Thanks for your time.

Boon.

EDIT: NEVERMIND I GOT IT! :thumb: