Hello I´m having problems with a simple as2 piece of code…
//Hide Close Button
cerrar_mc._visible = false;
//Show Close Button
text_bg.onRollOver = function():Void{
cerrar_mc._visible = true;
};
text_bg.onRollOut = function():Void{
cerrar_mc._visible = false;
};
//Drag Text
text_bg.onPress = function():Void{
this._parent.startDrag(false, -325, -140, 420, 280);
};
text_bg.onRelease = function():Void{
this._parent.stopDrag();
};
text_bg.onReleaseOutside = function():Void{
this._parent.stopDrag();
};
What I need the code to do is to make text_bg drag, and show cerrar_mc on rollover.
cerrar_mc is a close button which unloads the movie on that level.
The problem is that when i rollover text_bg, cerrar_mc is visible but when i rollover it, it disappears.
Is there anything wrong with the code?
thanks.