Instead of a public variable, use a setter function:

 

Public function set time(sTime:String):Void  {

  //do whatever you need

}

 

You can also provide a getter function.

 

Tracy

 

 


From: [email protected] [mailto:[email protected]] On Behalf Of shemeshkale
Sent: Thursday, August 10, 2006 8:44 AM
To: [email protected]
Subject: [flexcoders] Re: adding a custom property - flex 1.5

 

(half) answer to myself:
stupid me, just add initialize function in the class:

private function initialize(event: Object) : Void {
mx.core.Application.alert("time: "+time);
}

this works great!

now - what about the updating of this value? how do i know when from
inside the class when the value is changed?

__._,_.___

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




__,_._,___

Reply via email to