Using ActionScript 2.0, how do I show or hide a button onclick? I am making a simple mp3 player, and would like my pause button to change to a play button when clicked, and vice versa.
A:
What I'm doing is instead creating a MovieClip and just simulating click, etc, with 4 different keyframes
Zachary Burt
2009-08-16 23:25:22
+2
A:
play_btn.onRelease = function () {
// do something here.. like play mp3
play_btn._visible = false;
pause_btn._visible = true;
}
pause_btn.onRelease = function () {
// do something here.. like pause mp3
play_btn._visible = true;
pause_btn._visible = false;
}
please be remember to give the instance name of play_btn and pause_btn to the play and pause buttons
Unreality
2009-08-16 23:50:55