Yep right :S
and what if you put a 'stop' audio event (with the sound you want to
stream) in a keyframe *previous* to the 'sync=Start' event ?
In essence, if your sequence (timeline + audio sync) start at frame
3, you could put a keyframe at frame 2 with event 'stop' and the
sound you want. I don't really know what is happening here, but my
idea is to force flash to fully init the sound before it starts on
playing your timeline. As Ian pointed out, the sound seems not fully
loaded.
then:
function onLoadInit(target_mc:MovieClip):Void {
target_mc.play();
}
you could maybe add a 'stop();' in the first frame of your loaded
SWF. And modify the onLoadInit to:
function onLoadInit(target_mc:MovieClip):Void {
target_mc.gotoAnPlay(3);
}
so, in conclusion:
first frame of your loaded SWF: stop();
2nd frame of your loaded SWF: audio event : 'sync=Stop'
3rd frame of your loaded SWF: the beginning of your 2'700 frames
animation
hth :S
Cedric
Cedric,
Many thanks for the suggestion.
However, the audio track for the inner SWF is a voiceover, that
must be in
sync with the movie. It seems like "sync=Start" means that the
audio starts
playing, and continues regardless of which frame is showing in the
timeline.
With "Sync=Stream", the audio track and the frame playhead move in
lockstep,
which is what I need. Unfortunately, it seems to have this ugly
side-effect...
Cheers,
Matt
On Wed, Aug 6, 2008 at 3:56 PM, Cedric Muller <[EMAIL PROTECTED]>
wrote:
what if you set the audio track event to 'start' instead of
'stream' ?
Cedric
All,
More information on a question I posted earlier...
I'm trying to load a SWF and play it inside another SWF.
Both SWFs are targeted to use Flash Player 8, and AS 2.0
So, in the parent, I've got code that looks like this:
var movie_mc:MovieClip = this.createEmptyMovieClip("movie_mc",
this.getNextHighestDepth());
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(this);
mcLoader.loadClip("someothermovie.swf",movie_mc);
function onLoadInit(target_mc:MovieClip):Void {
target_mc.play();
}
When I run this in the Flash IDE, it runs beautifully.
However, when I try to play the movie in a browser, the inner movie
plays for a few frames, then just stops playing.
So potentially relevant facts -
- Both movies are set to run at 30 FPS
- The inner movie is about 2,700 frames long
- The inner movie has an audio track embedded on one of the layers
- The audio track has sync=Stream
I'm definitely sure the inner movie has stopped playing - I set an
interval in the parent movie that checks the inner movie's
_currentframe, and displays it in a text field - sure enough - it
gets
to about frame 25, and just stops.
Notably - if I remove the audio track from the inner swf, the entire
thing runs perfectly, both in the Flash IDE and in a browser.
So, i'm assuming the audio track embedded in a layer, and/or
Sync=Stream has something to do with this?
Any advice or insight is MUCH appreciated!
Cheers,
Matt
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders