the public property must defined :
private _prog;
public function set somPro(String:prog):void{
this._prog=prog;
}
public function get somPro():String{
return this._prog;
}
usage within mxml
<component somPro="value" />
2007/2/28, helihobby <[EMAIL PROTECTED]>:
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
P.S.
You can read my solution for Flex Component communication here:
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>
--
闲云孤鹤 - 清冷香中抱膝吟