|
|
 |
Re: FN-FORUM: ActionScript / Flash mp3 caching.
date posted 21st January 2005 17:01
Hi
When creating multiple new Sound() objects you need to target
each to a separate timeline so that you can control each sound
individually. Maybe that is the problem you are having. Something
like the code below should give you the idea.
this.createEmptyMovieClip("clip1",1);
this.createEmptyMovieClip("clip2",2);
s1 = new Sound(this.clip1);
s2 = new Sound(this.clip2);
s1.onLoad = function() { this.stop();this.setVolume(100);};
s2.onLoad = function() { this.stop();this.setVolume(100); };
s1.loadSound( 'file1.mp3', false);
s2.loadSound( 'file2.mp3', false);
Gary
On 14 Jan 2005 06:26:38 -0000, Dom Latter [EMAIL REMOVED] wrote:
> http://www.kennybellew.com/tutorial/text_box.htm gave me this snippet:
>
> _root.myInputSound = new Sound();
> _root.myInputSound.loadSound(songInput);
> _root.myInputSound.onSoundComplete=function() {
> _root.playing=false;
> _root.paused=false;
> _root.stopped=true;
> _root.myInputSoundPosition=0;
> _root.myInputSoundPositionText=0;
|
 |
|