I guess you are using Dynamic Textfields,which you placed during authoring, and
like movieclips , need to have instance names by which they will be referred to
during runtime.To assign some property to a textfield you need identify the
textfield by its instance name.
for eg. you have three textfields with instance names tf1,tf2 and tf3 at
_root.
You can set their autosize property to a value by,
for( var i=1;i<4;i++)
{
_root["t"+i].text =sometext;
_root["t"+i].autoSize=true;
}
If any textfield has a linked variable, that variable can be updated anytime
after the autoSize property has been set to true.
Note:- the instance name cannot be same as a linked variable name of a
textfield.If it is, autoSize will simply not work.
Hope it helps..
-----
Arindam Dhar
"Walkoli, Nilesh (Cognizant)" <[EMAIL PROTECTED]> wrote:
Hi ,
Please anyone help me to apply the property to the all the dynamic text
boxes in my file.
I am referring some text boxes by name and some by variable. I want to
apply the autosize property to all the dynamic textboxes in the file at
the start only.
Thnx in advance . Please do reply if anyone knows.
Thanks and regards,
Nilesh Walkoli
Programmer Analyst
Cognizant Technology Solutions
Plot # 26, Rajiv Gandhi Infotech Park,
MIDC, Hinjawadi, PUNE - 411 057
Vnet: 22253
Mob : 9881872422
This e-mail and any files transmitted with it are for the sole use of the
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply
e-mail and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing
or copying of this email or any action taken in reliance on this e-mail is
strictly
prohibited and may be unlawful.
Visit us at http://www.cognizant.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
Send instant messages to your online friends http://asia.messenger.yahoo.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com