And if you need it the other way round, your component should dispatch an event. An event handler in the main.mxml can handle the event and update the textfield accordingly.

Cheers,
Ralf.

On 6/24/06, Shannon Hicks <[EMAIL PROTECTED]> wrote:
According to Macro... uh... Adobe's docs, you should not have components access the text field. What you do is pass the value in to the component...
 
<mx:Text id="myText" text="foo"/>
 
<comp:someComponent myData="{myText.text}"/>
 
Shan


From: [email protected] [mailto:[email protected]] On Behalf Of arnold_charming
Sent: Saturday, June 24, 2006 12:16 PM
To: [email protected]
Subject: [Junk E-Mail - LOW] [flexcoders] accessing from custom component

Hi!

I have a main.mxml file. This file holds inself a viewstack. One
viewstack is filled with a custom component (login.mxml). The question
now is, how can I access a text field (<mx:Text>) which is in
main.mxml from login.mxml. Tnx.


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.3/374 - Release Date: 6/23/2006


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.9.3/374 - Release Date: 6/23/2006


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to