View Full Version : have sound return after pause
johnnyu
08-19-2003, 01:51 PM
Hi
I have small interface with play, pause and back buttons
and a voice over - when i hit pause i have stop and stop all
sounds -
when i hit play to return to movie- the sound does not return how
do you reengage the audio?
probably simple but new at this?
thanks in advance
timeliner
08-19-2003, 07:41 PM
Welcome johnnyu
Do you mean that the sound won't play again from where you paused it, or the sound won't begin playing again from the beginning?
If you can post your code we might have a better idea how to solve the problem.
Cheers
johnnyu
08-19-2003, 10:57 PM
don't really have code handy but here's what i've done :
we recorded a voice over wav. track and i created a small tutorial
with an interface consisting of a play - pause - and back button.
i then created scenes and simply (here's where i'm sensing my problem)
imported wav. file into library and dragged onto stage in it's own layer -
scene starts v.o. plays things are groovin
now the dilemna..
the pause button will " stop" the action and
i applied a "stop all sounds" - simple action
but when you click the play button to start the action back up
-the scene (visuals) continue
without any sound -
i had assumed there would be a resume sound simple command -
that i could of applied
but after looking thru some similar forums questions i see
that i probably didn't build this correctly -
if there's any insight - would be appreciated.
johnnyu
www.johnnyuonline.com
'
timeliner
08-20-2003, 12:31 AM
Ok..the simple solution, using the set up you have (with your sound on the timeline) is to check the 'stream' option in the 'sync' menu. You'll find this in the properties box after you click on the timeline that your V/O is on.
Then the sound wil stop and start as you stop and start your movie. This assumes that you want the V/O to start where it left off and not from the beginning.
johnnyu
08-20-2003, 06:55 PM
Timeliner
it works great - thanks very much
tell me is there any issue(s) with this method
from stability standpoint?
my final ouput will be a flash exe. file burned
onto a cd (pc - only)
thanks again
johnnyu
timeliner
08-20-2003, 08:45 PM
The other way to do this is with the soundObject and attachSound method.
//Frame 1:
myVO = new Sound();
myVO.attachSound("vo1");
//"vo1" is the name of your track in the library
myVO.start(secondsIn,loop);
pauseTime = myVO.position/1000; //convert to seconds
myVO.start(pauseTime,loop);
//Stop button:
on (press) { myVOPosition=_root.myVO.position/1000; _root.myVO.stop("vo1");
}
//Start button:
on (press) { _root.myVO.start(myVOPosition,0);
}
For a full explanation of this code, see "How to pause a Sound Object" in this tutorial (http://www.kennybellew.com)
The way you have things at the moment, you may run into trouble if Flash starts skipping frames to keep up with the frame rate you've specified.
johnnyu
08-20-2003, 09:49 PM
The flash projector is created and i've viewed
on my machine - runs fine
will it depend on the system playing
the exe. file as to it's performance?
less memory on system etc.
or once it's on a cd - should be ok?
i'll test out your links and scripts
it should help me out down road
and if time permits here also.
regards
johnnyu
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.