Looping an external loaded mp3 with actionscript 2.0??

  • raytrap
  • Born
  • Born
  • raytrap
  • Posts: 2

Post 3+ Months Ago

:?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :!: :idea:
Hey there, i've got a problem with looping an external loaded mp3 in my flash movie. This is the code i entered so far and it works great... except the looping part. The mp3 just plays once... it should be infinitive loop or at least 99 times replay... Can someone help me out please?

Normally there should be a loop function behind the "sndAudio.start(sndAudio.position/1000,...........);

but how do i declare the loop there?

thx in advance for your time :) :oops:


Code: [ Select ]
this.createEmptyMovieClip("mcSoundHolder", this.getNextHighestDepth());
var sndAudio:Sound = new Sound(mcSoundHolder);
sndAudio.loadSound("http://www.lalaland.com/rollo.mp3",true);
mcPlay.onRelease = function():Void {
    sndAudio.start(sndAudio.position/1000);
};
mcPause.onRelease = function():Void {
    sndAudio.stop();
};
  1. this.createEmptyMovieClip("mcSoundHolder", this.getNextHighestDepth());
  2. var sndAudio:Sound = new Sound(mcSoundHolder);
  3. sndAudio.loadSound("http://www.lalaland.com/rollo.mp3",true);
  4. mcPlay.onRelease = function():Void {
  5.     sndAudio.start(sndAudio.position/1000);
  6. };
  7. mcPause.onRelease = function():Void {
  8.     sndAudio.stop();
  9. };
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 12 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.