What you're doing should work. Post a sample app and component that
don't work.
 
- Gordon

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of helihobby
Sent: Tuesday, February 27, 2007 5:52 PM
To: [email protected]
Subject: [flexcoders] How can I access public members of custom MXML
component using inline statemen ?



Hello all,

How can I access public members of custom MXML component using inline 
statemen ?

For example, I have my own MXML component name myComp which has 
public members.

How can I access these public member from inling mxml.

In other words, of couse I can do myComp.myMember = "ABC";

But I wish to do it not in ActionScript but in MXML ( inline ).

In other words, I wish to do:

<myview:MyComp x="100" y="100" myMember="ABC" />

In other words, in line MXML ( not in AS ).

I tried using the setter function in myComp, but no luck.

As always, Thank you for all the help and support.

Regards,

Sean - http://www.HeliHobby.com <http://www.HeliHobby.com> 

P.S.

You can read my solution for Flex Component communication here:

http://www.helihobby.com/html/alon_desingpattern.html
<http://www.helihobby.com/html/alon_desingpattern.html> 

public function doThis():void {
}

Now I want 

<ns1 leDisplay id="viewerContainer" x="263" y="85">
</ns1 leDisplay>



 

Reply via email to