1.)First
of all I would like to mention there are 3 basic ways
you can program a hello world program n actionscript
3.0
By instance names, creating TextFields in Frames, or
creating TextFields in classes, and you can also manage
the instance names in the classes as well.
Easiest Way
to do this in my oppinion is through creating a dynamic
textbox and giving the textbox an instance name. Then
place in the actionscript in the frame.
|
2.)
The Way you do this is by grabbing the text field, and
dragging it to the stage, then make the textbox dynamic
and give it an instance name of what ever you would
like. Such as "myTextBox1", without the quotes. Then
inside a Frame Post what you would like the textbox
to say. The code is.
myTextBox1.text = "Hello World"; |
3.)
OK
Or if you would like the TextBox to be a number you
give it a int value or double value, others include
uint, or float, or anything that pops up in the menu
when you hit the colon button. However using float or
uint are for pretty advanced users, int and double are
basically so you can name what kind of number to place.
int is a single digit number where it doesn't add points,
such as 1,2,3,4,5,6,7,8....100, 20,000... and beyond,
but is limitted to a very high number. double will create
it so you can make it so the number has decimal points
such as 1.01, 2.2, 3.33333... etc... however this is
also limitted to a very high number.
|