Hi,

what about;

What about adding;

private var bInitialized:Boolean = false;

public function set someValue(value:Number):void
{
   if (!bInitialized) {
      initialize()
      bInitialized = true;
   }
}

private function initialize():void
{
   // execute one time only code for component initialization
}

? :)

Peace, Mike
On 6/13/06, Claudia Barnal <[EMAIL PROTECTED]> wrote:

That would also work, the problem is that I really don't want to check
each time the value changes, I only wan't to know _when_ I have access
to the value assigned on the MXML for the first time. Having that
value I can continue with the rest of the component's execution.

Thanks again for your help Michael,
Claudia



On 6/13/06, Michael Schmalle <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> What about adding;
>
> [Bindable]
> public function set someValue(value:Number):void
> {
> trace("value changed", value)
> // do something
> }
>
>
> I don't know if that is what you are looking for..
>
> Peace, Mike




--
What goes up, does come down. __._,_.___

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