FMX04 onClipEvent (data) Pleaes HELP

I have a scene (porsche) in which I have a movieclip instances (p_movie_link) that I use to call an external swf file (porsche_movie.swf) into it. I want my scene timeline (porsche) to pause at the frame that the external movie clip(porsche_movie.swf) is called into the scene (porsche) until that external movie (porsche_movie) is loaded, then I want my main scene time line (porsche) to play. I have been working on this for the better part of the day and I am no further along now then I was 5 hours ago, if someone could point me in a directon as to where I could find some help on this topic, I would be very greatful!!!

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

hmm…

there’s multiple ways to do that… the easiest is to put a stop action after whatever code you use to load the external .swf and then give the next frame (in your main movie) a frame label like “continue.” Then tell your main timeline to go to “continue” from within that loaded external .swf. something like:

_root.gotoandplay(“continue”);

you could build that into your preloader on your external .swf or just put it on a frame.

otherwise check out preloaders, onload functions, etc. (kirupa is great and also actionscript.org has great tutes)

hope that helps you!