Call (["Frame Label"])
Frame Label - identifies the frame that contains the actionscript being called.
Reuse actionscripting from other parts of your movie
You can reuse any actionscript on any timeline in your movie provided it's been labelled with a unique label. This helps you maintain clean code and minimised the editing time. Variables to be used in the frame being called, must be established using the Set Variable action.
In the advanced example below the variable 'consider' is created by assigning it the information from a text field, 'userinput'. Next the frame 'makedecision' is called and the variable 'consider' is used in the caculations in 'makedecision' which outputs a variable called 'decision'. Finally the movie jumps to the frame 'decision' to give the user feedback. (It not as hard as it seems!)
You must also ensure that the frame being called has been loaded otherwise the Call action will be ignored.
|» Level Basic|
Rating: 5 Votes: 697
|Eddie was a Content Editor at Flashkit.com and is actually a sentient Gateway Solo 2150xl notebook that suffers from acute lysdexia and caffeine addiction. He is carried on the shoulders of a semi-autonomous human called "Body".|
|Download the files used in this tutorial.|
|Download (8 kb)|
|More help? Search our boards for quick answers!|