Hello List
I am creating a textField in a movieClip called infoBoxMC. The text appears
fine. I can place it by adjusting the x and the y of infoBoxMC. However for
some reason the _alpha of infoBoxMC does not work? I tried to use the debugger
and turn both _alpha and _visible to 0 and to false but it has no effect, the
box is still there...
Any ideas why?
Thanks
stephan
///////////////////////
public function createTextBox(str:String){
_level0.createEmptyMovieClip("infoBoxMC",_level0.getNextHighestDepth());
_level0.infoBoxMC._alpha = 0;
_level0.infoBoxMC.createTextField("my_txt", 1, 0,0, 300, 100);
_level0.infoBoxMC.my_txt.autoSize = "left";
_level0.infoBoxMC.my_txt.type = "dynamic";
_level0.infoBoxMC.my_txt.border = false;
_level0.infoBoxMC.my_txt.background = true;
_level0.infoBoxMC.my_txt.backgroundColor = 0x000000;
_level0.infoBoxMC.my_txt.password = false;
_level0.infoBoxMC.my_txt.multiline = false;
_level0.infoBoxMC.my_txt.html = false;
_level0.infoBoxMC.my_txt.embedFonts = false;
_level0.infoBoxMC.my_txt.selectable = false;
_level0.infoBoxMC.my_txt.wordWrap = false;
_level0.infoBoxMC.my_txt.mouseWheelEnabled = false;
_level0.infoBoxMC.my_txt.condenseWhite = false;
_level0.infoBoxMC.my_txt.restrict = null;
_level0.infoBoxMC.my_txt.variable = null;
_level0.infoBoxMC.my_txt.maxChars = null;
_level0.infoBoxMC.my_txt.styleSheet = undefined;
_level0.infoBoxMC.my_txt.tabInded = undefined;
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "Times"; // "Times" on Mac OS
my_fmt.size = 10;
my_fmt.color = 0xFFFFFF;
my_fmt.bold = false;
my_fmt.italic = false;
my_fmt.underline = false;
my_fmt.url = "";
my_fmt.target = "";
my_fmt.align = "left";
my_fmt.leftMargin = 0;
my_fmt.rightMargin = 0;
my_fmt.indent = 0;
my_fmt.leading = 0;
my_fmt.blockIndent = 0;
my_fmt.bullet = false;
my_fmt.tabStops = []; // (empty array)
_level0.infoBoxMC.my_txt.text = strg;
_level0.infoBoxMC.my_txt.setTextFormat(my_fmt);
_level0.infoBoxMC._x = _level0._xmouse;
_level0.infoBoxMC._y = _level0._ymouse;
trans = new Transition();
trans.fadeIn(_level0.infoBoxMC,FADESPEED);
}
public function remove(){
trans.fadeOutAndRemove(_level0.infoBoxMC,FADESPEED);
}
}