1 Replies - 4625 Views - Last Post: 29 November 2013 - 01:49 PM

#1 CodeNubee  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 22
  • Joined: 28-March 13

Loading sound when movie clip loads

Posted 29 November 2013 - 01:04 PM

I am using Adobe Flash Professional CS6

What I am trying to do is play a mp3 file that I have in my library when the clip loads and stop playing it when the a new clip is selected from the menu I created. On the button that loads the movie clip (Instance name: Slideshow), I have the following code:
on (release){
	gotoAndPlay(120);
}
onClipEvent (load){
mySong = new Sound();
mySong.attachSound("MastersThisHall");
mySong.start(0,50);
}
onClipEvent (unload) {
	mySong.stop();
}



Is This A Good Question/Topic? 0
  • +

Replies To: Loading sound when movie clip loads

#2 Atli  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3719
  • View blog
  • Posts: 5,991
  • Joined: 08-June 10

Re: Loading sound when movie clip loads

Posted 29 November 2013 - 01:49 PM

Duplicate thread closed. Do not open multiple topics for the same question. If you need to add something to a thread after posting it, either edit it or simply add a reply with the new info. Don't open a new thread for it.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1