dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Playing a loop when mouse is over

  1. #1
    Senior Member
    Join Date
    Nov 2002
    Location
    Ecuador
    Posts
    28

    Playing a loop when mouse is over

    i have a button... im using the UP and OVER part... when the mouse is over the button a LOOP must be played infinitely times... and when the mouse is out of the button the loop has to STOP...

    this happens the way im doing it (a wrong one):
    - the audio only plays once (while doing mouseover)
    - if the mouse comes out of the button the audio still plays (it has to stop)
    - if i get in and out of the button several times the audio will play that number of times getting one in top of the other and doing a mess...

    so if anyone can help me... thnx!
    [contacto creativo]

  2. #2
    Senior Member
    Join Date
    Feb 2003
    Location
    Out There...
    Posts
    162
    Sooo... you're audio isn't stopping when you roll off? If that's the case then add a:
    Code:
    on (rollOut) {
    	stopAllSounds();
    }

  3. #3
    Senior Member
    Join Date
    Nov 2002
    Location
    Ecuador
    Posts
    28
    ok...thats the answer for the rollout problem...

    when the mouse is over the AUDIO must LOOP infinitely...how i do that
    [contacto creativo]

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Did you insert a sound movie clip on the over state? Or just the sound? Is it a short sound?

  5. #5
    Senior Member
    Join Date
    Nov 2002
    Location
    Ecuador
    Posts
    28
    its a short sound... 2 seconds... yes i insert it as a sound movie clip on the over state and like just a sound on the over state...

    i need this:
    if the mouse is over the button... the "short sound of 2 seconds" will play AND loop until the mouse rolls out

    thnx 4 da help!
    [contacto creativo]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center