the completeHandler is only to re dispatch the channels SOUND_COMPLETE
private function completeHandler(event: Event): void
{
dispatchEvent(new Event(Event.SOUND_COMPLETE));
}
The Application (the mp3 player in this case) listens to the
SOUND_COMPLETE and then starts a new song, after the new url is taken
from the playlist. No fancy stuff there ;)
Folkert
quinrou . wrote:
Sidney,
Thanks for this but I think i will need to get the explaination coz the code
isn't fully there. i.e. There no method
completeHandler
which is used in the last example which is i think the one I am the
most interested in since it
looks very similar to the on I have.
Anyone else who has a solution for this problem?
thanks
On Tue, May 6, 2008 at 12:43 PM, Sidney de Koning <[EMAIL PROTECTED]>
wrote:
Hi Quinrou,
I have exactly the same with an AIR project i'm building.
I have not found a fix, there is an explanation i'm reading right now, it
is in dutch, however the code should help you.
http://nederflash.nl/blog/as3-tips%3A-error-2029-uitgelegt#comment-42
Hope this helps you,
Sidney
On May 6, 2008, at 1:22 PM, quinrou . wrote:
Hi all,
I am having a very strange behavior with the Sound object.
I will try to describe the problem as accurate as possible.
I have a mp3 which I have embedded in class like this
[Embed(source='../../../../../embedded_assets/mp3/loop.mp3')]
private var Loop:Class;
This mp3 plays when the application starts and keeps on looping. However
as
soon as a swf with an embedded flv on the timeline (which also contains
sound) starts playing the mp3 then stops playing. there's no code which
tell
mp3 to stop playing when the swf starts...
It looks like the swf overrides the mp3 sound channel.
Has anyone experienced behavior and how did ou manage to fix the
problem.
Many thanks
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders