PDA

View Full Version : fuctions going missing?


antimatter
02-21-2003, 04:18 PM
Hi there,

hope some one can help me with this, I'm a bit confused

I have used the .apply function to attach a function to buttons in a movie clip when the file loads. Only some of the buttons in the movie clip are on the stage at any give time. Initially this all seams to work fine until the movie clip plays the buttons seem to loose the function?
The movie clip is controlled by other buttons in the fla. They just tell it where to go.

What I'm wondering is, does the .apply function only see what's on the stage at the time. If the buttons are not on the stage they "loose" the function that was applied to them?

any thoughts?

thanks
:confused:

jimburton
02-21-2003, 08:43 PM
whatever code you run, only clips which are on the stage at the time *exist* as far as flash is concerned and it will ignore code about anything else....you need to work it out so that the code is applied to the clip when it exists...


I have used the .apply function to attach a function to buttons


what is the apply function?

antimatter
02-24-2003, 02:43 PM
I Figured out a solution that even seems to work!

At the stat of the movie the apply. function attaches a function to the buttons in a movie clip. I then set the appropriate _visible setting of the buttons.

The other buttons that control the movie clip (the one with the buttons in side of it) then set the appropriate _visible state of the buttons.

This seems to work fine!

Hope this might help some one else?

:D