PDA

View Full Version : invisible!


tboy
12-14-2007, 02:54 AM
does anyone know how to make a movie image not visible at the beginning, but then when i click on a button it makes the first on visible?;)

matbury
12-14-2007, 03:09 AM
movieImage.visible = false;
button.addEventListener(MouseEvent.CLICK, clickHandler);

function clickHandler(event:MouseEvent):void {
button.removeEventListener(MouseEvent.CLICK, clickHandler);
movieImage.visible = true;
}

tboy
12-14-2007, 03:18 AM
wow thanks Mat bury works like a charm! =)