![]() |
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? |
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. |
| All times are GMT -5. The time now is 9:10 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC