Your Ad Here

Posted By

arpo on 11/03/09


Tagged


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

forze
zoo
shuchii


Streaming sound basics


 / Published in: ActionScript 3
 

  1. import flash.media.Sound;
  2. import flash.media.SoundLoaderContext;
  3. import flash.net.URLRequest;
  4.  
  5. var s:Sound = new Sound();
  6. var req:URLRequest = new URLRequest("trackName.mp3");
  7. var context:SoundLoaderContext = new SoundLoaderContext(8000, true);
  8. s.load(req, context);
  9. s.play();

Report this snippet  

You need to login to post a comment.