I cannot really follow all of what you are trying to do, but I will offer that if you want to control a loaded movie, you need to wait until it has loaded before trying to take action with it. BAsed on what I see of your code, you are not doing that. You really want to use loadClip to load the movie rather than loadMovie. The reason for this is that loadClip supports having an event listeners which you can use to detect when the file is finished loading, and then take whatever actions you intend with the event handler function.
If you look up MovieClipLoader.addListener in the Flash help documents, there is an example there that is fairly thorough for what you'll need to configure. The main difference being that you would use the onLoadComplete event rather than the onLoadInit.
I actually started with loadclip.
I have it working fine.
The issue arises after I have it loaded, it seems I cant tell the loaded clip to stop or start.
I also have issues with using _width and _height the movie just does not show up if I use those
_xscale and _yscale work fine.
What I am trying to do is load a movie from a file (*.swf) then STOP it. So that I can allow
the user to control it. (ie say I have 10 movies, load them all, and allow the user to start
them using a predefined set of controls in the main movie. (next, prev, replay etc.)
Each loaded swf is like a page in a book, when they hit next, it plays.
The example I have points out that you can do a onRollOver to a movie that is on the stage,
but if you do it to a movieclip that is on the stage, but its content was loaded with loadmovie,
it does not react the same way.
How do you tell a movie clip that you have loaded to STOP and PLAY on command from the
main timeline (button ,etc..)
1 person found this helpful
As I said, you need to use loadClip and wait for the file to load before you can command it in any way. When you loadthe movie into the movieclip, it assumes the movieclip's name, but not any action you have assign to it such as rollOver, etc. You need to assign those after the movie has loaded, again, waiting for it to have loaded first. To tell something to stop(); and play(); is just those two commands... again, waiting for it to exist before trying to.