Works fine for me too. Do you have a Label in the library?
Claus Wahlers wrote:
> Lieven Cardoen wrote:
>
>
>> Duh, yes, thank you very much, or bitcomponents, or... but I would like
>> to know the solution of the Label-problem.
>>
>
> Works for me..
>
> import mx.controls.Label;
>
> createLabel(this, "test", 1, {});
> stop();
>
> function createLabel(owner:MovieClip, instanceName:String, depth:Number,
> initObj:Object):Label
> {
> var label:Label = Label(owner.attachMovie(Label.symbolName,
> instanceName, depth, initObj));
> trace("label : " + label);
> label.autoSize = "left";
> return label;
> }
>
> (traces "label : _level0.test")
>
> Cheers,
> Claus.
>
>
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org