[size=1]Attempting to create a textfield on the rollover of a mc. The field is created but requires that you roll over a second time for it to be created. If anyone can come up with a alternate method so that on rollover the textfield & arrow mc are visible and on rollout they disappear. I played with _visible and I couldn’t get it to work. Any help is greatly appreciated.
stop();
this.onEnterFrame = function() {
if (rewind == true) {
prevFrame();
}
};
this.hit.onRollOver = function() {
rewind = false;
play();
attachMovie("arrow", "arrow", 0);
arrow._x = 0;
arrow._y =-10;
this._parent.createTextField("my_txt", 1, xpos, -35, width, 18);
width = 64;
xpos = -32;
my_txt.autosize = true;
my_txt.type = "dynamic";
my_txt.border = false;
my_txt.background = true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0x993300;
my_fmt.font = "Verdana";
my_fmt.size = 12;
my_fmt.bold = false;
my_txt.text = "Flag Text";
my_txt.setTextFormat(my_fmt);
};
this.hit.onRollOut = function() {
rewind = true;
removeMovieClip("my_txt");
removeMovieClip("arrow");
};