Friday, February 13, 2009

Player's Name

Have you ever wondered why people ask your name ? and how do they let you type in one place, and then it's displayed somewhere else ?
That is very simple, and i will teach you that with an exercise.

Open up flash, and on the first frame type stop(); and make a big input text box. Give it the var "name". Then make a button on that frame and type this actions on the button:

on (release) {
_root.gotoAndStop (2);
}

Now go to the second frame and press F7. Then type hello on a regular text box, and right next to it, make an empty dynamic text box and give it the var "name".
test your movie. This is what you should have:





0 comments:

Post a Comment