Hi,
I know this sounds stupid, but I've worked like all the time
with Flash 2004 and Flash MX. Now I got CS3, and I want to do the
following. I made a MP3 player, but I want to make a 'play' icon
visible when the music plays and the 'pause' icon visible when it's
paused. Therefor the 'play' icon needs to be invisible, and vice
versa. I've got this, but it gives an error:
import flash.events.MouseEvent;
pause_text._visible = false;
play_btn.addEventListener(MouseEvent.CLICK, showPlay);
function showPlay(event:MouseEvent):void
{
play_text._visible = true;
pause_text._visible = false;
}
pause_btn.addEventListener(MouseEvent.CLICK, showPause);
function showPause(event:MouseEvent):void
{
pause_text._visible = true;
play_text._visible = false;
}
What am I doing wrong? In MX or 2004, this was the way to
make Movie Clips invisible. Please help.
Thanks in advance,
Regards,
Ithiriel