Image

Imagepinkdagger wrote in Imageflashdev 😤working

Using input text in dynamic text

I'm back again... But I'm very glad to say you guys have helped me complete and pass a term of ActionScript! Haha! I'm working on a sort of small game as my final project.

What I'm looking to do this time is have an input box where the user gets to input a name for one of the movie clips (a little cow), clicks a button to name it, and eventually the cow will wander out of the screen. When this happens, I'm using an "if" statement to display "Bye ____ [user input]!" in a dynamic comment/text box. I have the input and dynamic boxes as well as the button - but I'm not sure how to code it as I don't have experience with using user input boxes.

I would highly prefer to do this in "best practice" where the code does not leave a single AS frame, so if I can, I'd love to avoid coding within symbols. I'm using ActionScript 2.0.

TIA!