Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

Search the Community

Showing results for tags 'MP3Loader'.



More search options

  • 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 5 results

  1. Can't make playback listeners works. SOUND_PLAY, SOUND_PAUSE etc. just don't shoot import com.greensock.*; import com.greensock.events.*; import com.greensock.easing.*; import com.greensock.plugins.*; import com.greensock.loading.*; import com.greensock.loading.display.*; var queue:LoaderMax = new LoaderMax({name:"mainQueue", onComplete:completeHandler, onError:errorHandler}); var sound:MP3Loader = new MP3Loader("test.mp3", {name:"audio", autoPlay:true, estimatedBytes:950000}); queue.append(sound); queue.load(); function completeHandler(event:LoaderEvent) { sound.addEventListener(MP3Loader.SOUND_PLAY, soundStart); sound.addEventListener(MP3Loader.SOUND_PAUSE, soundPause); } function soundStart(event:LoaderEvent) { trace("> Start"); } function soundPause(event:LoaderEvent) { trace("> Pause"); } function errorHandler(event:LoaderEvent):void { trace("error occured with " + event.target + ": " + event.text); }
  2. I'm using this function to get the MP3Loaders from within the xml xmlLoader = new LoaderMax({name:"aName", autoDispose :true, onComplete:propsLoaded}); xmlLoader.append(new XMLLoader(loaderPath, {name:"anotherName" , autoDispose :true, estimatedBytes:841 })); xmlLoader.load(); private function propsLoaded(e:LoaderEvent):void { var curPageLoader:LoaderMax = xmlLoader.getLoader("loaderrr"); //get the pages LoaderMax stored within the xml //curPageLoader is NOT null, but it contains NO loaders inside - it should containt 2 MP3Loaders according to my xml } <?xml version="1.0" encoding="utf-8"?> <tale id="1"> <page id="1"> <taleText>Lorem ipsum bla bla bla.</taleText> <LoaderMax name="loaderrr"> <MP3Loader name="sth1" url="page_1/backsound.mp3" estimatedBytes="2050" autoPlay="false" /> <MP3Loader name="sth2" url="page_1/backsound.mp3" estimatedBytes="2050" autoPlay="false" /> </LoaderMax> </page> </tale> but the LoaderMax object that is returned to me has NO loaders inside. Its empty.. Why is that?
  3. Is there any way to make the MP3 Loader load audio content from a local Shared Object? We've created the local shared object just fine, and we can make it play back by using a SAMPLE_DATA listener, to dump the byte array to the audio socket, like this: mySound.addEventListener(SampleDataEvent.SAMPLE_DATA, dumpByteArray); But we're rather load it into an MP3Loader object so that we can use all of the native methods of the loader. We tried to set the content property of the loader, but it's read-only, so that did not work. We tried to instantiate the listener to the content property (which is a Sound, so should work), but it also did not work. Any ideas?
  4. I am trying to access the SampleDataEvent for a sound that has been loaded by the MP3Loader. I had assumed that this would be as easy as adding an event listener to the content of the loader like so: ( ( _loader as MP3Loader ).content as Sound ).addEventListener( SampleDataEvent.SAMPLE_DATA, onSampleData ); ... but I am not seeing any events. Help Please
  5. Hi, I can't seem to find any mention of this in the forums, so I'm asking this: I've loaded an mp3 file and initiated it using the XMLLoader. <LoaderMax name="MediaPreloader" load="false"> <MP3Loader url="mp3s/tea.mp3" name="audio-tea" autoPlay="false" repeat="-1" /> </LoaderMax> This LoaderMax instance's load is manually started. Everything loaded fine and the sound is played and panned to the right, as it should be. TweenPlugin.activate([soundTransformPlugin]); var _fgs:MP3Loader = LoaderMax.getLoader('audio-tea'); _fgs.volume = 0; _fgs.playSound(); TweenMax.to(_fgs.channel, 1, {soundTransform:{volume:1, pan:1}}); Now, the issue I'm facing is that the sound doesn't repeat indefinitely, even when I configured it to repeat -1 in the xml. Anyone facing this issue?
×