Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Inputting and displaying text

Status
Not open for further replies.

Molenski

IS-IT--Management
Jan 24, 2002
288
DE
Hi there, hope someone can help.

If I want to create a flash movie where the user inputs text several times on different frames and then on say the last frame, the text is displayed along with some other text how would I go about it?

For example.

User inputs on frame 2 - Sarah
User inputs on frame 3 - 25

On frame 4 you get - Hi, I'm Sarah and I'm 25.

Hope someone can help please.

Molenski
As my bessie bud Kev always says - "Get involved!!!"
 
Basically, you have to stop the movie at frame 2, display an input box and enter data (save the entry to a variable), and when the users presses a key or clicks a button, you start the movie at the next frame and continue on the the next input frame. At the last frame, you'd tie all the variables together.

Not the exact code but it should get the wheels turning for you.

There's always a better way. The fun is trying to find it!
 
Assuming that the instance on Frame 2 is called "namebox", the instance on Frame 3 is called "agebox" and the instance on Frame 4 is called "results"

Actions for frame 2:
stop();

Actions for frame 3:
stop();

Actions for frame 4:
results.text = "Hi, I'm "+namebox.text+" and I'm "+agebox.text+" years old."
stop();

I REALLY hope that helps.
Will
 
Thank you both very much for that.....I'll give it a try!!!!


Molenski
As my bessie bud Kev always says - "Get involved!!!"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top