Re: [Flashcoders] as3 sound and swf overriding one another

2008-05-06 Thread Folkert Hielema

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


Re: [Flashcoders] Some CS3 observations; library and sound

2007-08-12 Thread Folkert Hielema
snip

SoundChannel: gives playback and level information and an event when
 sound playback ends. Contains another method to stop sound, which
 DOESN'T work for streamed sound,


You really can do ;) not like channel.stop() but like
if(channel){   channel.stop(); }


 --
 mvh

 Andreas Rønning
 Senior Flash developer
 -
 Rayon Visual Concepts

 Folkert
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Re: [Flashcoders] [AMFPHP] return; - Feature / bug ?

2006-08-16 Thread Folkert Hielema

how about:

function test1()
{
return Hello .test2();
}
in you setting the returned world makes no sence since it's not printed 
or put in a variable or anything (amasing that is does not give an error 
that way.


hth,

Folkert
Jeroen Beckers wrote:

Hi,

This is the situation:

Flash uses AMFPHP to call a php function 'test1()' .

In my php file, the function is defined as followed:

function test1()
{
test2();
return Hello;
}

function test2()
{
return World;
}

Now, AMFPHP returns World (when I call test1() ), but I would expect
him to return Hello (like flash would do).

Is this a feature or a bug? (Or maybe just a hole in my PHP knowledge ?)

Greets,
Jeroen

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com