the following code is making me just about rip my hair out!!
im trying to create an object to create an Empty movie clip on the stage, and insert a textfield with certain param’s.
It works outside of the function scope, but when inside it crashes. Help!
function Label(labelText:String,num:Number,x:Number,y:Number,width:Number,height:Number){
_root.createEmptyMovieClip("label_mc"+num,num);
_root["label_mc"+num].createTextField("label",1,x,y,width,height);
_root["label_mc"+num].label.text = labelText;
_root["label_mc"+num].label.embedFonts = true;
_root["label_mc"+num].label.textColor = 0xD7D7D7;
_root["label_mc"+num].label.selectable = false;
fmtLabel = new TextFormat();
fmtLabel.font = "Gulim";
fmtLabel.size = 30;
fmtLabel.bold = true;
_root["label_mc"+num].label.setTextFormat(fmtLabel);
}
neekoLabel = new Label("CREATIVE",10,195,40,225,34);