Hi list.

I've tried to use a Label component in my test application, like:

import mx.transitions.Tween;
import mx.transitions.easing.*;
import Array;
import mx.controls.Label;

class Menu extends MovieClip {

var QuadradoAnim:MovieClip;
var anyMaxDepth:Number = 1000;

function Menu() {
        //nice
}

//temporarily way to not use 'this.getNextHighestDepth()' which does not work 
well with V2 components you all know that =P
function maxDepth():Number {

        return (this.anyMaxDepth++);

}

//creates the MovieClip which I use as Button
function criaBotao(iterador:Number):MovieClip {

        var mcBotao:MovieClip = _root.createEmptyMovieClip("botao"+iterador, 
this.maxDepth());
        mcBotao.createClassObject(Label, "label1", this.maxDepth(), {_x:0, 
_y:0, text:"test:"});
        //createTextField(name, depth , X, Y, width, height);
        //mcBotao.createTextField("label1", this.maxDepth(), 0, 0, 142, 22.1);
        mcBotao.label1._width  = 142;
        mcBotao.label1._height = 22.1;
        
        return(mcBotao);
}

... 



the text never appears don't know what I am doing wrong..

I tried to use just

_root.createClassObject(Label, "label1", this.maxDepth(), {_x:0, _y:0, 
text:"test:"});

in the onLoad() Method and mouse changes when I pass over the label, but text 
simply does not appear;



Yes I put the Label in the swfmill library (I am using just mtasc+swfmill).

when I tried to took off the Label and use a TextField instead it worked 
normally.


is there a bug or anything about the Label.text?



thanks for any help..



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

Reply via email to