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.

-- 
claus wahlers
côdeazur brasil
http://codeazur.com.br

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

Reply via email to