I wrote an action script code for two frames,lets say frame 1 and frame 10. Now onClick() event on frame 1, i wrote like this.
on(release){
gotoAndStop(10);
}
Now from frame 1 to frame 10 i want to send some data like a boolean variable. So that i can execute appropriate action in frame 10.
Please let me know the possibilities of passing data between frames.
The timeline in Flash is really the top-level
MovieClipand therefore any properties you set on it are accessible from any frame at that level. I would declare the variable in the first frame on your actions layer (before thestop()action I assume you must have) like so:In the action for your button you can set the value of your
boolean:And in frame 10 you can create a new frame on your actions layer and write the appropriate logic according to the value of the
boolean: