115 posts
  • 7 Years of Membership
  • Collector Level 2
jennicandance
says

Hello,

I have my rollovers set up through a movie clip. What I want to do, is when one of my buttons are rolled over, I want a specific sound clip to play. I have frame labels for over, up, out and down, and I was hoping I could put the sound on the ‘over’ label, and have the sound play when rolled-over, but it plays as soon as the movie starts instead. :(

If you need to see my code, I can post that too.

Thanks! Sammi

2108 posts
  • Envato Team
  • 6 Years of Membership
  • Tuts+ Instructor
  • Podster
+10 more
LanceSnider
Envato team
says

Post your code and I’ll take a look.

2309 posts
  • 7 Years of Membership
  • Affiliate Level 2
  • Author Level 2
  • Beta Tester
+5 more
theflyingtinman
says

Have you tried :

btn.addEventListener(MouseEvent.MOUSE_OVER, playSound);

function playSound(e:MouseEvent)
{
      ...
}
215 posts
  • 6 Years of Membership
  • United States
CypherScience
says

If you want to contact me through my profile I’ll be glad to take a look at your file. Sounds like it would be very easy to fix. Basically, try what tinman said. I can do it for you if you’re having problems.

115 posts
  • 7 Years of Membership
  • Collector Level 2
jennicandance
says

Thanks for everyones reply. Sorry it has taken me so long to respond… Here is my code:

http://pastie.org/344885

by
by
by
by
by
by