![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Hobbyist Programmer
Join Date: Nov 2005
Posts: 149
Rep Power: 3
![]() |
accessing parts of an instance in Actionscript/Flash
I am using flash, and I have a symbol that has two dynamic text fields in it. I need to access the text fields, and I thought instanceName.textField1 would do it, but it doesn't. I tried searching for the answer, but I can't find one.
Is anyone familiar enough with flash and actionscript to help me out? |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Jan 2008
Posts: 27
Rep Power: 0
![]() |
Re: accessing parts of an instance in Actionscript/Flash
say "abc" is the name of the instance.
and "t1" and "t2" are the instance names of your text fields then, abc.t1.text = " Hello" ; abc.t2.text = "Wrtilaus" ; would output "Hello" and "Writlaus" in the two textfields respectively. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| No Object Instance? | Kilo | C# | 12 | Dec 16th, 2005 3:02 PM |