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