are the attributes "installed" in the constructor?

Maybe you have to check after the constructor, maybe on a click 
event...

Or mayby you have to call  super() in the constructor?

just guessing really, but maybe it helps...

--- In [email protected], "shemeshkale" <[EMAIL PROTECTED]> 
wrote:
>
> using flex 1.5
> i m extending a Button and have added a custom property: time.
> it is probably a small thing of syntax or scope.
> but the value is not passed to the class.
> the mxml component: <myComponents:myBTN id="customBTN" 
time="now" />
> and the AS:
> 
> class myComponents.myBTN extends mx.controls.Button {
>   public var time:String;
>   public function myBTN(){
>     mx.core.Application.alert("time: "+this.time);
>   }
> }
> 
> i would expect the alert message to be: "time: now".
> but instead i get: "time: Undefined"
> 
> why? how to fix?
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to