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