Re: [Flashcoders] Timeline Streaming Sounds Playing Early?

2009-10-23 Thread David Benman

Cool. Thanks. I'll have to try this.

On Oct 21, 2009, at 10:02 PM, Karl DeSaulniers wrote:

Actually you have to put a "stopAllsounds" on the frame that is  
after the end of your animation. Or you can set the frame to sync to  
the event instead of the stream. Flash does not sync the stream of  
an animation and a sound well because of the difference in  
compression ratios. This has been my experience and that is my  
solution.

Hth

Karl

Sent from losPhone

On Oct 21, 2009, at 7:58 PM, "Kurt Dommermuth" > wrote:



Hi Kerry,

I'm not the original poster, but I'll add myself to the list of  
people

who've experienced this.

It's definitely a bug and it's been around for some time.

More details than that would take too long for a family man to put  
together,

but it's not hard to reproduce.

In the typical scenario you have a timeline based animation.  You  
put a stop
at the end of it.  In the next frame, in a different layer, add a  
keyframe

and put a sound from the libray on it.  Set it to stream.

Let you're animation play.  It will stop at the correct frame, but  
the sound
will play even though it is located after the frame where you put  
your

stop().

Fix it by adding more frames between the frame where the stop() is  
and where

the streaming sound is.


Take care.
Kurt

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kerry
Thompson
Sent: Monday, October 19, 2009 5:28 AM
To: 'Flash Coders List'
Subject: RE: [Flashcoders] Timeline Streaming Sounds Playing Early?

Dave Dev wrote:

I have a frame with a stop actionscript command. The next frame  
has a
streaming sounds and a frame label. At runtime, Flash stops at the  
stop
command frame, but then plays a very brief portion of the  
streaming sound

in
the next frame. Placing some frames in between the sound and  
command seems
to fix(?) the problem. This occurs on Windows XP, but not Mac OS X  
using

Flash Player 8.


Hmm... which version of Flash are you using? Is the sound in the  
library, or
in an external audio file? Is the sound played with an AS command,  
or is it

on the time line?

Sorry to ask so many questions. The way you describe it, it sounds  
like a
bug in Flash, but something like that should have been found and  
fixed long
ago. I suspect there's more going on--possibly something you don't  
know

about, or that treats the audio in a way you haven't thought of.

Cordially,

Kerry Thompson

___
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


David Benman
Interactive Developer
d...@dbenman.com
http://www.dbenman.com
(508) 954-1202 (cell)
(315) 637-8487 (home office)



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Timeline Streaming Sounds Playing Early?

2009-10-23 Thread David Benman

Oh, just noticed some other posts on this, but here's some responses.





Hmm... which version of Flash are you using?


Flash CS4 on the Mac compiling to Flash Player 9 using AS2.


Is the sound in the library, or
in an external audio file?


Library sound in .wav format set to streaming.


Is the sound played with an AS command, or is it
on the time line?


On the timeline.



Sorry to ask so many questions. The way you describe it, it sounds  
like a
bug in Flash, but something like that should have been found and  
fixed long
ago. I suspect there's more going on--possibly something you don't  
know

about, or that treats the audio in a way you haven't thought of.


I'd believe that, but its pretty straightforward what I'm doing.  
Import wav sound, drag to timeline, set to stream. The kink seems to  
be when you but the last frame and first frame of a "scene" right up  
against each other which I do for neatness.




Cordially,

Kerry Thompson

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


David Benman
Interactive Developer
d...@dbenman.com
http://www.dbenman.com
(508) 954-1202 (cell)
(315) 637-8487 (home office)



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Timeline Streaming Sounds Playing Early?

2009-10-23 Thread David Benman
Hey. Thanks. Jim said this too so that's what I did and it seems to  
work. Scary though. I have a suspicion that it might be an issue again  
on really slow machines.


On Oct 21, 2009, at 8:58 PM, Kurt Dommermuth wrote:


Hi Kerry,

I'm not the original poster, but I'll add myself to the list of people
who've experienced this.

It's definitely a bug and it's been around for some time.

More details than that would take too long for a family man to put  
together,

but it's not hard to reproduce.

In the typical scenario you have a timeline based animation.  You  
put a stop
at the end of it.  In the next frame, in a different layer, add a  
keyframe

and put a sound from the libray on it.  Set it to stream.

Let you're animation play.  It will stop at the correct frame, but  
the sound

will play even though it is located after the frame where you put your
stop().

Fix it by adding more frames between the frame where the stop() is  
and where

the streaming sound is.


Take care.
Kurt

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kerry
Thompson
Sent: Monday, October 19, 2009 5:28 AM
To: 'Flash Coders List'
Subject: RE: [Flashcoders] Timeline Streaming Sounds Playing Early?

Dave Dev wrote:


I have a frame with a stop actionscript command. The next frame has a
streaming sounds and a frame label. At runtime, Flash stops at the  
stop
command frame, but then plays a very brief portion of the streaming  
sound

in
the next frame. Placing some frames in between the sound and  
command seems
to fix(?) the problem. This occurs on Windows XP, but not Mac OS X  
using

Flash Player 8.


Hmm... which version of Flash are you using? Is the sound in the  
library, or
in an external audio file? Is the sound played with an AS command,  
or is it

on the time line?

Sorry to ask so many questions. The way you describe it, it sounds  
like a
bug in Flash, but something like that should have been found and  
fixed long
ago. I suspect there's more going on--possibly something you don't  
know

about, or that treats the audio in a way you haven't thought of.

Cordially,

Kerry Thompson

___
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


David Benman
Interactive Developer
d...@dbenman.com
http://www.dbenman.com
(508) 954-1202 (cell)
(315) 637-8487 (home office)



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Timeline Streaming Sounds Playing Early?

2009-10-21 Thread Karl DeSaulniers
If you need the timeline animation to match its ending to the sounds  
ending, you will need to script your sound and not put it on a actual  
frame.
Then have a function that matches the beginning of your animation to  
the beginning of your sound and not play anything till both are loaded.

Also your sound and your animation have to be the same as far as length.
Try timing your animation and sound separately on your desktop. See  
if they match.
Script your sound as an imported sound, create a Loader so that the  
animations frames are already loaded before your start playing anything.


something like, but not exactly.. just for example

if(sound.loaded = complete && frames.loaded = compete) {
play();
}

HTH

Karl


On Oct 21, 2009, at 9:02 PM, Karl DeSaulniers wrote:

Actually you have to put a "stopAllsounds" on the frame that is  
after the end of your animation. Or you can set the frame to sync  
to the event instead of the stream. Flash does not sync the stream  
of an animation and a sound well because of the difference in  
compression ratios. This has been my experience and that is my  
solution.

Hth

Karl

Sent from losPhone

On Oct 21, 2009, at 7:58 PM, "Kurt Dommermuth"  
 wrote:



Hi Kerry,

I'm not the original poster, but I'll add myself to the list of  
people

who've experienced this.

It's definitely a bug and it's been around for some time.

More details than that would take too long for a family man to put  
together,

but it's not hard to reproduce.

In the typical scenario you have a timeline based animation.  You  
put a stop
at the end of it.  In the next frame, in a different layer, add a  
keyframe

and put a sound from the libray on it.  Set it to stream.

Let you're animation play.  It will stop at the correct frame, but  
the sound
will play even though it is located after the frame where you put  
your

stop().

Fix it by adding more frames between the frame where the stop() is  
and where

the streaming sound is.


Take care.
Kurt

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kerry
Thompson
Sent: Monday, October 19, 2009 5:28 AM
To: 'Flash Coders List'
Subject: RE: [Flashcoders] Timeline Streaming Sounds Playing Early?

Dave Dev wrote:

I have a frame with a stop actionscript command. The next frame  
has a
streaming sounds and a frame label. At runtime, Flash stops at  
the stop
command frame, but then plays a very brief portion of the  
streaming sound

in
the next frame. Placing some frames in between the sound and  
command seems
to fix(?) the problem. This occurs on Windows XP, but not Mac OS  
X using

Flash Player 8.


Hmm... which version of Flash are you using? Is the sound in the  
library, or
in an external audio file? Is the sound played with an AS command,  
or is it

on the time line?

Sorry to ask so many questions. The way you describe it, it sounds  
like a
bug in Flash, but something like that should have been found and  
fixed long
ago. I suspect there's more going on--possibly something you don't  
know

about, or that treats the audio in a way you haven't thought of.

Cordially,

Kerry Thompson

___
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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Timeline Streaming Sounds Playing Early?

2009-10-21 Thread Karl DeSaulniers
Actually you have to put a "stopAllsounds" on the frame that is after  
the end of your animation. Or you can set the frame to sync to the  
event instead of the stream. Flash does not sync the stream of an  
animation and a sound well because of the difference in compression  
ratios. This has been my experience and that is my solution.

Hth

Karl

Sent from losPhone

On Oct 21, 2009, at 7:58 PM, "Kurt Dommermuth"  
 wrote:



Hi Kerry,

I'm not the original poster, but I'll add myself to the list of people
who've experienced this.

It's definitely a bug and it's been around for some time.

More details than that would take too long for a family man to put  
together,

but it's not hard to reproduce.

In the typical scenario you have a timeline based animation.  You  
put a stop
at the end of it.  In the next frame, in a different layer, add a  
keyframe

and put a sound from the libray on it.  Set it to stream.

Let you're animation play.  It will stop at the correct frame, but  
the sound

will play even though it is located after the frame where you put your
stop().

Fix it by adding more frames between the frame where the stop() is  
and where

the streaming sound is.


Take care.
Kurt

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kerry
Thompson
Sent: Monday, October 19, 2009 5:28 AM
To: 'Flash Coders List'
Subject: RE: [Flashcoders] Timeline Streaming Sounds Playing Early?

Dave Dev wrote:


I have a frame with a stop actionscript command. The next frame has a
streaming sounds and a frame label. At runtime, Flash stops at the  
stop
command frame, but then plays a very brief portion of the streaming  
sound

in
the next frame. Placing some frames in between the sound and  
command seems
to fix(?) the problem. This occurs on Windows XP, but not Mac OS X  
using

Flash Player 8.


Hmm... which version of Flash are you using? Is the sound in the  
library, or
in an external audio file? Is the sound played with an AS command,  
or is it

on the time line?

Sorry to ask so many questions. The way you describe it, it sounds  
like a
bug in Flash, but something like that should have been found and  
fixed long
ago. I suspect there's more going on--possibly something you don't  
know

about, or that treats the audio in a way you haven't thought of.

Cordially,

Kerry Thompson

___
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] Timeline Streaming Sounds Playing Early?

2009-10-21 Thread Kurt Dommermuth
Hi Kerry,

I'm not the original poster, but I'll add myself to the list of people
who've experienced this.

It's definitely a bug and it's been around for some time.

More details than that would take too long for a family man to put together,
but it's not hard to reproduce.

In the typical scenario you have a timeline based animation.  You put a stop
at the end of it.  In the next frame, in a different layer, add a keyframe
and put a sound from the libray on it.  Set it to stream.

Let you're animation play.  It will stop at the correct frame, but the sound
will play even though it is located after the frame where you put your
stop().

Fix it by adding more frames between the frame where the stop() is and where
the streaming sound is.


Take care.
Kurt

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Kerry
Thompson
Sent: Monday, October 19, 2009 5:28 AM
To: 'Flash Coders List'
Subject: RE: [Flashcoders] Timeline Streaming Sounds Playing Early?

 Dave Dev wrote:

> I have a frame with a stop actionscript command. The next frame has a
> streaming sounds and a frame label. At runtime, Flash stops at the stop
> command frame, but then plays a very brief portion of the streaming sound
in
> the next frame. Placing some frames in between the sound and command seems
> to fix(?) the problem. This occurs on Windows XP, but not Mac OS X using
> Flash Player 8. 

Hmm... which version of Flash are you using? Is the sound in the library, or
in an external audio file? Is the sound played with an AS command, or is it
on the time line?

Sorry to ask so many questions. The way you describe it, it sounds like a
bug in Flash, but something like that should have been found and fixed long
ago. I suspect there's more going on--possibly something you don't know
about, or that treats the audio in a way you haven't thought of.

Cordially,

Kerry Thompson

___
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] Timeline Streaming Sounds Playing Early?

2009-10-21 Thread Kerry Thompson
 Dave Dev wrote:

> I have a frame with a stop actionscript command. The next frame has a
> streaming sounds and a frame label. At runtime, Flash stops at the stop
> command frame, but then plays a very brief portion of the streaming sound
in
> the next frame. Placing some frames in between the sound and command seems
> to fix(?) the problem. This occurs on Windows XP, but not Mac OS X using
> Flash Player 8. 

Hmm... which version of Flash are you using? Is the sound in the library, or
in an external audio file? Is the sound played with an AS command, or is it
on the time line?

Sorry to ask so many questions. The way you describe it, it sounds like a
bug in Flash, but something like that should have been found and fixed long
ago. I suspect there's more going on--possibly something you don't know
about, or that treats the audio in a way you haven't thought of.

Cordially,

Kerry Thompson

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Timeline Streaming Sounds Playing Early?

2009-10-19 Thread Jim McIntyre

Dave Dev wrote:

I have a frame with a stop actionscript command. The next frame has a
streaming sounds and a frame label. At runtime, Flash stops at the stop
command frame, but then plays a very brief portion of the streaming sound in
the next frame. Placing some frames in between the sound and command seems
to fix(?) the problem. This occurs on Windows XP, but not Mac OS X using
Flash Player 8. Has anybody else encountered this? I want to make sure my
fix stays fix in different player versions and Os's.


We had the same problem. In our case it also happened on MacOS, playing 
the movie on slower CPUs. Our project was published for FP9 or later. 
(FWIW, we were developing in AS2.)


We worked around it in a similar manner - we created several extra 
frames after the frame containing the stop action - and it seems to be OK.


-Jim
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders