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=myTexttext=foo/
comp:someComponent
myData={myText.text}/
Shan
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] On Behalf Of
arnold_charmingSent: Saturday, June 24, 2006 12:16
PMTo: flexcoders@yahoogroups.comSubject: [Junk E-Mail -
LOW] [flexcoders] accessing from custom component
Hi!I have a main.mxml file. This file holds inself a viewstack.
Oneviewstack is filled with a custom component (login.mxml). The
questionnow is, how can I access a text field (mx:Text) which is
inmain.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
Visit your group "flexcoders" on the web.
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___