here is a neat solution how you can load multiple sounds in flash and play them one by one.. /* --------------------------- */ package utils { import flash.display.MovieClip; import flash.events.*; import flash.media.Sound; import flash.media.SoundChannel; import flash.net.URLRequest; import flash.text.*; import flash.utils.Timer; import flash.media.SoundTransform; public class gamesound extends MovieClip { private var positionTimer:Timer; public var url:String=null; private var song:SoundChannel; var soundFactory:Sound; public var __parent; public function gamesound() { } public function set soundUrl(__url:String) { url=__url; } public function init():void { var request:URLRequest = new URLRequest(url); soundFactory = new Sound(); soundFactory.addEventListener(Event.COMPLETE, completeHandler); soundFactory.addEventListener(Event.ID3, id3Handler); soundFactory.addEventListener(IOErrorEvent.IO_ERROR, ioErr...
all about coding especially in javascript, daily used algorithms, react, angular and other gaming stuffs like webgl, pixijs, three.js and cocos2dx running code sample especially in javascript and c++.