FMX04 onClipEvent (data) help need

This is my action scripting,

onClipEvent (data) {
if (bytes_loaded == bytes_total) {
gotoAndPlay(6);
}

What I’m trying to do is load an external movie into my main flash site, but I want the main flash site to wait till the movie is loaded then the main time line starts to play again. I would told that the onClipEven(data) would give me this option. So I thought I said that when it’s loaded go and play frame 6 of the main time line. What am I doing wrong?

My external movie works fine, and it has a preloader, just want the main timeline to wait till that movie is loaded to start to play again

frame 1-10 ( do anything )
frame 11 ( _root.oMovie.loadMovie(“dddd.swf”); )
frame 13 ( if(_root.oMovie.bytes < total bytes etc) go back to frame 12 )
frame 14-25 ( do anything )

sometimes .bytes and total bytes are less than 0 or -1 so watchout for that

easy, put a stop action on the frame where your AS loads the external .swf (that’ll stop the main timeline)… then after your preloader in your external .swf (the first frame after it) tell your main movie to advance to the next frame (give it a label).

hope that helps!