all groups > flash (macromedia) > november 2005 >
You're in the

flash (macromedia)

group:

How to set the var for a TextInput Component


Re: How to set the var for a TextInput Component Motion Maker
11/13/2005 7:54:03 PM
flash (macromedia): The example in docs seems to work:


my_ti.text = "Hello World!";

where m_ti is the text input component instance name set in properties.

BTW, the var for TextField (text tool) although still valid is supplanted
with a similar arrangement

myTf_txt.text = "Hello World!"
or
myTf_txt.html = true
myTf_txt.htmlText = "<b>Hello World!</b>"

where myTf_txt is the text field instance name set in properties.

--
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
[quoted text, click to view]
I am using Flash MX Professional 2004. I was wondering if there is a way to
set
the var for a textinput compnent. I know if I create a text box with input
text
a box appears in the Properties box that allows to set a var for the box.
This
does not appear when you use a textInput component. I also looked in the
Components Inspector and couldn't find any place to set a var for the
textInput
component. How do I set the var for a textInput component? Please Help!!

How to set the var for a TextInput Component lou222
11/13/2005 10:12:33 PM
I am using Flash MX Professional 2004. I was wondering if there is a way to set
the var for a textinput compnent. I know if I create a text box with input text
a box appears in the Properties box that allows to set a var for the box. This
does not appear when you use a textInput component. I also looked in the
Components Inspector and couldn't find any place to set a var for the textInput
component. How do I set the var for a textInput component? Please Help!!
AddThis Social Bookmark Button