Search tutorials
The Action Script: How it works...
Here is the actual code we will be examining: on (release) { if (_root.code == "pigs") { gotoAndStop(2) } } ======================= ======================= on (release) { ======================= On the release of the click on me... ======================= if (_root.code == "pigs") { ======================= If the text in the input box called code is pigs, then... ======================= gotoAndStop(2) ======================= Go to the frame number 2 on the timeline. ======================= } ======================= End what happens if the text in the input box called code is pigs. ======================= } ======================= End what happens on the release of the click on me. Very simple. Please, do not hesitate to e-mail me if you have a problem. This is my first tutorial, so I hope I did a good job! Thank you for reading. :) Dan H| » Level Intermediate |
|
Added: 2006-03-28 Rating: 6 Votes: 5 |
| » Author |
| Umm...12 yrs old... |
| » Download |
| Download the files used in this tutorial. |
| Download (0 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
i need help
Posted by james on 12/30/2012 09:12pmwhen i press the ok button without puting the code in it still put me on the requested frame. what did i do wrong?
Reply