Title: Change Events for Custom Classes
I'm wondering if there is a way (and if there is, how would I go about doing it) I can create a change event for a custom MXML class based for a public property.
For example, I have an MXML file called MyClass and when the parent application changes
You want to look into getters and setters
Try this:
mx:Script>
![CDATA[
private var _myProperty;
public function get myProperty ( ) {
return _myProperty;
}
public function set myProperty ( value ) {
_myProperty = value;
}
]]>
/mx:Script>
Hope that'll be a good starting point.
Seth
On Mar
, 2005 11:55
AMTo: 'flexcoders@yahoogroups.com'Subject: [flexcoders]
Change Events for Custom Classes
I'm wondering if there is a way (and if there is,
how would I go about doing it) I can create a change event for a custom MXML
class based for a public property.
For example, I have an MXML
3 matches
Mail list logo