[osflash] FW: [Flashcoders] Label --> null

João Saleiro joao.saleiro at webfuel.pt
Tue Sep 26 08:39:29 EDT 2006


With "all" the information you gave, i don't think it will be easy to 
find a solution...

João Saleiro

Lieven Cardoen wrote:
>
> Duh, yes, thank you very much, or bitcomponents, or... but I would 
> like to know the solution of the Label-problem.
>
>  
>
> Lieven
>
>  
>
> Up julder mulle
>
>  
>
>  
>
>  
>
> ------------------------------------------------------------------------
>
> *From:* osflash-bounces at osflash.org 
> [mailto:osflash-bounces at osflash.org] *On Behalf Of *João Saleiro
> *Sent:* dinsdag 26 september 2006 13:23
> *To:* Open Source Flash Mailing List
> *Subject:* Re: [osflash] FW: [Flashcoders] Label --> null
>
>  
>
> ----> www.aswing.org <http://www.aswing.org>
>
> João Saleiro
>
> Lieven Cardoen wrote:
>
> I posted this to FlashCoders, but maybe this is also something for
> OSFlash
>  
>  
> I can be wrong, but I think this is bullshit.
>  
> I'm compiling with MTASC and label is 'null'. Also compiled with Flash,
> still Label is 'null' when casted...
>  
> Really annoying. The V2 components from Flash really suck. I've also
> looked into the code from the V2 components and it's a jungle. I've had
> nothing but problems with these components.
>  
> Lieven
>  
> import mx.controls.Label;
>   
>>>  
>>>  
>>>  
>>>  
>>> public function createLabel(owner:MovieClip, instanceName:String,
>>> depth:Number, initObj:Object):Label{
>>>  
>>>       var label = owner.attachMovie(Label.symbolName, instanceName,
>>> depth, initObj);
>>>  
>>>       logger.debug("label : " + label);
>>>  
>>>       label.autoSize = "left";
>>>  
>>>       applyStyle(label);
>>>  
>>>       return label;
>>>  
>>> }
>>>  
>>>  
>>>  
>>> --> logs a Label ...view0.view1.component12
>>>  
>>>  
>>>  
>>>  
>>>  
>>>  
>>>  
>>> If I type the label :
>>>  
>>>  
>>>  
>>> public function createLabel(owner:MovieClip, instanceName:String,
>>> depth:Number, initObj:Object):Label{
>>>  
>>>       var label:Label = Label(owner.attachMovie(Label.symbolName,
>>> instanceName, depth, initObj));
>>>  
>>>       logger.debug("label : " + label);
>>>  
>>>       label.autoSize = "left";
>>>  
>>>       applyStyle(label);
>>>  
>>>       return label;
>>>  
>>> }
>>>       
>  
>  
>  
> -----Original Message-----
> From: flashcoders-bounces at chattyfig.figleaf.com <mailto:flashcoders-bounces at chattyfig.figleaf.com>
> [mailto:flashcoders-bounces at chattyfig.figleaf.com] On Behalf Of Pete
> Miller
> Sent: maandag 25 september 2006 16:52
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] Label --> null
>  
> I think you probably want parenthesis around your typecast, as
>  
> var label:Label = (Label)(owner.attachMovie(Label.symbolName,
> instanceName, depth, initObj));
>  
> P.
>  
>  
>   
>>> -----Original Message-----
>>> From: flashcoders-bounces at chattyfig.figleaf.com <mailto:flashcoders-bounces at chattyfig.figleaf.com> [mailto:flashcoders-
>>> bounces at chattyfig.figleaf.com <mailto:bounces at chattyfig.figleaf.com>] On Behalf Of Lieven Cardoen
>>> Sent: Monday, September 25, 2006 8:53 AM
>>> To: Flashcoders mailing list
>>> Cc: Bert Vandamme; Christophe Herreman
>>> Subject: [Flashcoders] Label --> null
>>>  
>>> import mx.controls.Label;
>>>  
>>>  
>>>  
>>>  
>>>  
>>> public function createLabel(owner:MovieClip, instanceName:String,
>>> depth:Number, initObj:Object):Label{
>>>  
>>>       var label = owner.attachMovie(Label.symbolName, instanceName,
>>> depth, initObj);
>>>  
>>>       logger.debug("label : " + label);
>>>  
>>>       label.autoSize = "left";
>>>  
>>>       applyStyle(label);
>>>  
>>>       return label;
>>>  
>>> }
>>>  
>>>  
>>>  
>>> --> logs a Label ...view0.view1.component12
>>>  
>>>  
>>>  
>>>  
>>>  
>>>  
>>>  
>>> If I type the label :
>>>  
>>>  
>>>  
>>> public function createLabel(owner:MovieClip, instanceName:String,
>>> depth:Number, initObj:Object):Label{
>>>  
>>>       var label:Label = Label(owner.attachMovie(Label.symbolName,
>>> instanceName, depth, initObj));
>>>  
>>>       logger.debug("label : " + label);
>>>  
>>>       label.autoSize = "left";
>>>  
>>>       applyStyle(label);
>>>  
>>>       return label;
>>>  
>>> }
>>>  
>>>  
>>>  
>>> --> logs 'null'
>>>  
>>>  
>>>  
>>>  
>>>  
>>> Why the f**k is this???
>>>  
>>> _______________________________________________
>>> Flashcoders at chattyfig.figleaf.com <mailto:Flashcoders at chattyfig.figleaf.com>
>>> To change your subscription options or search the archive:
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>  
>>> Brought to you by Fig Leaf Software
>>> Premier Authorized Adobe Consulting and Training
>>> http://www.figleaf.com
>>> http://training.figleaf.com
>>>       
> _______________________________________________
> Flashcoders at chattyfig.figleaf.com <mailto:Flashcoders at chattyfig.figleaf.com>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>  
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
> _______________________________________________
> Flashcoders at chattyfig.figleaf.com <mailto:Flashcoders at chattyfig.figleaf.com>
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>  
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>  
> _______________________________________________
> osflash mailing list
> osflash at osflash.org <mailto:osflash at osflash.org>
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>  
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20060926/7cfc65cb/attachment-0001.htm


More information about the osflash mailing list