Loading a SWF into existing FLA using LoadMovie
I'm trying to load a SWF into another FLA within set dimensions:
Here's the code:
_root.createEmptyMovieClip("MyMovie", "1");
_root.MyMovie.loadMovie("src/QL_intro.swf");
_root.onEnterFrame = function()
{
if(_root.MyMovie._width > 10)
{
_root.MyMovie._width = 240;
_root.MyMovie._height = 180;
delete _root.onEnterFrame;
}
}
HOWEVER, the movie loads but not into the MC instance MyMovie, I know because it is not scaled down to those dimensions but rather positioned/clipped at the bottom of the stage???
I've tried another way also:
By first creating the Movie Clip instance in the library setting it on stage at the right location with the right dimensions, but this does load it at all???
Here's that code:
loadMovie("src/QL_intro.swf", "MyMovie1");
Both of these code sets are triggered in the scene not the symbol.
Any help would greatly be appreciated!
Thanks All
|