Jump to content
Search Community

Search the Community

Showing results for tags 'mp3loader unload remove'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager
  • Supercharge

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Personal Website


Twitter


CodePen


Company Website


Location


Interests

Found 1 result

  1. Thank you in advance for reading. I want to get my head around LoaderMax, and to that end I want to manually destroy a loader and the content it loads. This loads an array of MP3s and plays them: var queue:LoaderMax; var sound:MP3Loader; var positionOfSong:int; var preloadCount:uint = 0; var curSoundIndex:int = -1; var mp3Array:Array = ["01.mp3", "02.mp3", "03.mp3" ]; initPreload(); function initPreload():void { queue = new LoaderMax({name:"mainQueue", onChildComplete:childCompleteHandler, onError:errorHandler, noCache:true, maxConnections:1, dispose:true}); for (var i:int = 0; i < mp3Array.length; i++) { queue.append(new MP3Loader(mp3Array[i], {name:"mp3"+i, autoPlay:false})); } queue.load(true); } function errorHandler(event:LoaderEvent):void { trace("Error occured with " + event.target + ":" + event.text); } // make sure one song is loaded before playing back function childCompleteHandler(event:LoaderEvent):void { preloadCount++; if (preloadCount == 1) { playAudioFile(0); } } How do I reference and remove the loaders and the loaded content? thanks, Steve
×
×
  • Create New...