Skip to main content
Known Participant
October 28, 2010
Question

New to Flash would appreciate some help...

  • October 28, 2010
  • 1 reply
  • 490 views

I am very new to flash and need quite a bit of help with the action script for the following scenes.

So I have this scene and I would like for the user to write in their own name and age but I don't know how to do that.

With this I just want the next scene to appear when I click either of the buttons. However, I want whatever button is clicked to be recorded.

I would like for the number on the TV screen to either increase or decrease when the corresponding button is pressed.

Again I want the number to be recorded when the 'enter' button is clicked.

Here I would just like for the scene to go on when one of the buttons is clicked.

Here the same as scene 4

Here I would like the name that was entered in the first scene to appear and for a number to appear depending on what buttons have been clicked in the previous scenes.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
October 28, 2010

so,  start with your first task:  you can use input textfields for users to write their name and age.


Known Participant
October 28, 2010

I have just completed the code for the two text input boxes, I can generate the code for the button to go onto the next page, but how do I go about saving the name that is entered?

kglad
Community Expert
Community Expert
October 29, 2010

assign variables to have the value of your textfield's text property.   for example, if your textfield instance names are nameTF and ageTF, you could use the following just prior to changing frames:

var nameS:String=nameTF.text;

var ageS:String=ageTF.text;