Share Posted April 25, 2013 I have an Mp3Loader, real simple I'm trying to stop the audio from playing right away, loader.pause() does not work, I don't see anything mentioned in the docs about it Link to comment Share on other sites More sharing options...
Author Share Posted April 25, 2013 soundchannel.stop 1 Link to comment Share on other sites More sharing options...
Author Share Posted April 25, 2013 that doesn't seem to work, it is null Link to comment Share on other sites More sharing options...
Author Share Posted April 25, 2013 and if I use dispose, I won't be able to play it again Link to comment Share on other sites More sharing options...
Share Posted April 25, 2013 If you want to load it without playing automatically, just set autoPlay:false in the constructor vars object like: var loader:MP3Loader = new MP3Loader("file.mp3", {autoPlay:false}); And if you want to control playback of the sound after loading, just use the playSound() method or pauseSound() method. loader.playSound(); //plays loader.pauseSound(); //pauses loader.gotoSoundTime(1); //jumps to 1 second The regular pause() method is for pausing the LOADING of the sound, not the playback See the docs: http://api.greensock.com/as/com/greensock/loading/MP3Loader.html Link to comment Share on other sites More sharing options...
Author Share Posted April 25, 2013 I want to be able to stop the audio on call, and play again at a later date, the pause feature does not work, I just want something simple like stop Link to comment Share on other sites More sharing options...
Share Posted April 25, 2013 Are you saying that you call pauseSound() on the MP3Loader and it keeps playing? Can you please post a very simple example FLA that we can publish to see what's happening (include your MP3 too please). Link to comment Share on other sites More sharing options...
Author Share Posted April 25, 2013 Thanks Jack, I will put something together soon, right now I'm working around it Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now