[flexcoders] Accessing Component in the class

2006-09-04 Thread viju kumar
Hello Group,

We need to access the component defined in the mxml
into the actionscript file. But we are unable to get
the access of the component in class file. 

How can we access the controls in the class file from
mxml file.

Please help.

Thank You
vijay

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Accessing Component in the class

2006-09-04 Thread Abdul Qabiz



Hi,import MXML_COMPONENT_FILE_NAMEshould work?Please give some more details whenever you post questions. Thanks-abdulOn 9/4/06, 
viju kumar [EMAIL PROTECTED] wrote:













  



Hello Group,

We need to access the component defined in the mxml
into the actionscript file. But we are unable to get
the access of the component in class file. 

How can we access the controls in the class file from
mxml file.

Please help.

Thank You
vijay

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

  















__._,_.___





--
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
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  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.



  






__,_._,___



Re: [flexcoders] Accessing Component in the class

2006-09-04 Thread Hasan Otuome






Hi vijay,

If you're saying you want to be able to get to a component that's
located in the MXML file from your ActionScript Class, you could also
do it like this:

//some useful imports
import mx.controls.TextArea; //import the component into the class
import mx.core.Application; //for communicating with the main app

//create a variable to reference the component
private var _ta:TextArea;

//define the variable inside your constructor function
_ta = Application.application.myTA; //myTA being the id you gave the
component in the MXML

And from there you can
communicate from the class to the component. HTH...

P E A C E

Hasan
hasan.otuome.com
www.marxmedia.net
thesourcecode.org
Adobe Certified Professional (Flash MX2004 Developer) 



  
  
  
  On 9/4/06, 
viju kumar comeinsidetochat@
yahoo.com wrote:
  
  





Hello Group,

We need to access the component defined in the mxml
into the actionscript file. But we are unable to get
the access of the component in class file. 

How can we access the controls in the class file from
mxml file.

Please help.

Thank You
vijay






  
  
  
  
  


__._,_.___





--
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
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  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.



  






__,_._,___




Re: [flexcoders] Accessing Component in the class

2006-09-04 Thread julien castelain




hi viku ,

i hope i'm not saying anything wrong since i'm also starting with flex but,

if you have this in your mxml file
...
mx:Button id=myButton /
...

you should be able to access it in your as file like this,
first declare it as a public variable in your class
...
public var myButton:Button;
...
and then you should be able to work with it 
...
myButton.label = hello there;
...

cheers





On 9/4/06, viju kumar [EMAIL PROTECTED] wrote:






Hello Group,We need to access the component defined in the mxmlinto the actionscript file. But we are unable to getthe access of the component in class file. How can we access the controls in the class file from
mxml file.Please help.Thank Youvijay__Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com  

__._,_.___





--
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
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  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.



  






__,_._,___