Skip to main content

Posts

Showing posts with the label flash

loading multiple sounds in as3

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...

about me

hi my self is manish chauhan and from last 4 years i am enjoying with flash api. living place-delhi.,faridabad working area-flashgaming dynamic sites and cool flash banners