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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 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

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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] 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: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED]] 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???
 
_______________________________________________
[email protected]
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
      
_______________________________________________
[email protected]
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
_______________________________________________
[email protected]
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
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org
 
  

_______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org


_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to