Flash Music Player problem

  • Shadow Knight
  • Professor
  • Professor
  • User avatar
  • Posts: 948
  • Loc: Soy Cubano, no puedo ser diferent!!

Post 3+ Months Ago

Hello eveyone, from a Music Player picture that a friend gave me , I made something so when you click the play button it would play a music, but, it has a problem, example if I hit the play buttom a 100 times the music will start a 100 times.

Here is the link to the Music Player:

http://cuba2004.50free.org/Help.htm

click in the buttom several times and you see what I mean.

Now here is my question:
Is there any way you can help me make it so that when I click once it will start playing and even if I hit it 100 times more after that the music wont start playing.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Shadow Knight
  • Professor
  • Professor
  • User avatar
  • Posts: 948
  • Loc: Soy Cubano, no puedo ser diferent!!

Post 3+ Months Ago

I forgot, I made it with SwishMax
  • lostinbeta
  • Guru
  • Guru
  • User avatar
  • Posts: 1402
  • Loc: Philadelphia, PA

Post 3+ Months Ago

Hrrmmm, no clue. I knew how to help you, up until you said "swishMax", then I had no clue.

In Flash it would be done via the Sound() Object.

Perhaps swishMax has something similar to this?

(how to use the Sound() Object in Flash MX http://www.kennybellew.com )
  • Shadow Knight
  • Professor
  • Professor
  • User avatar
  • Posts: 948
  • Loc: Soy Cubano, no puedo ser diferent!!

Post 3+ Months Ago

Thanlk you lostinbeta for your reply...
about the tutorial I thinks is really close to swishmax, example codes like
on (press) { _root.mc01.mc02.firstSound.start(); I see it on swishmax, so it shouldnt be a problem. I'll see if I can fix this problem, I'll let you know, when Im done.

Again thank you very much.
  • techrolla
  • Newbie
  • Newbie
  • techrolla
  • Posts: 8

Post 3+ Months Ago

Easy...All you have to do is have a variable, lets call it: playing. And when you click start, it will make sure playing is false before it starts the song, if playing is false, it will make playing true, then play the song and you can no longer have multiple instances of the song running. When you click stop, make playing false so you can start again.
  • Shadow Knight
  • Professor
  • Professor
  • User avatar
  • Posts: 948
  • Loc: Soy Cubano, no puedo ser diferent!!

Post 3+ Months Ago

Thanks man for the advise.
  • SycomCOmp
  • Graduate
  • Graduate
  • User avatar
  • Posts: 171
  • Loc: USA

Post 3+ Months Ago

<<<<your link is expired>>>>

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 11 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.