-
Stop button not appearing
Hey all,
I need a little help. I have to make an external mp3 jukebox for an assignment. I've almost got it all except my 'stop button's are not appearing. I have the stop button underneath the 'play button' and I need it to appear after the user presses 'play'. So, in essence, once the play button for a certain song is selected, the 'stop button' would appear.
I'm not entirely even sure my AS2 code is correct but what I have is in frame 1 of the action layer is:
Code:
stop ();
play_btn1.onRelease = function ()
{
stopAllSounds ();
song1 = new Sound ();
gotoAndStop ("Eagles");
song1.loadSound ("Desperado.mp3",true);
};
stop_btn_1.onRelease = function ()
{
stopAllSounds ();
};
play_btn2.onRelease = function ()
{
stopAllSounds ();
song2 = new Sound ();
song2.loadSound ("Rocket Man.mp3",true);
};
stop_btn_2.onRelease = function ()
{
stopAllSounds ();
};
play_btn3.onRelease = function ()
{
stopAllSounds ();
song3 = new Sound ();
gotoAndStop ("CSN");
song3.loadSound ("Southern Cross.mp3",true);
};
stop_btn_3.onRelease = function ()
{
stopAllSounds ();
};
As you can see, I have 3 songs so I should have 3 sets of 'play' buttons and 3 sets of 'stop' buttons. Do you see anything I'm doing wrong? I sure could use some direction / advice. I've visted KennyBellows tutorial site but there's something I'm still missing for the 'stop buttons' not appearing.
Thanks guys!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|