Load it on a higher level... With a background and an invisible button the size of the stage to disable any underlying buttons. Or simply load it on level 0, replacing the original movie.
As for positionning, that can easily be done if the "to be loaded movie" is of the same size as the original movie it is supposed to cover, and created with that size in mind. Otherwise positionning can also be done on the first frame of the "to be loaded movie", by adding an offset from the top left corner with something like...
oldnewbie
i dont really know what you said i need it to be on a key press command. i think it has got somthing to do with movie clip "linkage" i dont know, could you explain you answer differently. please thanks
Looking at what oldnewbie has writen i'check the script (because i had the same problem)and here is what you have to do.
Load the movie onto a level, for example, level 1
then use "setproperty" in the folowing way:
setProperty(_level1, _x, "100"
setProperty(_level1, _y, "100"
And there you have it.
Remember just one thing, you can't asing a new position without unloading the movie first. This means that if you want to move the movie clip loaded, you have to UNLOAD IT FIRST, and then assing new coordenates.
CYA!
You can set the position of a loaded movie on another level without using the setProperty action...
Simply use dot syntax:
_level1._x = 100;
_level1._y = 100;
The problem is that you can't do that or set any other property of a loaded movie on another level until it's fully loaded, and certainely not on the same Frame action on which you're loading this movie.
But once it's fully loaded (it should have it's own preloader built in!), you can then change any property on a Frame action or button action, and that contrary to what Chinoka seems to be saying, without having to unload it.
But when you have access to the .fla of that to be loaded movie, the easiest is to set it's position within itself, as I posted above, and maybe also set it to invisible on that first Frame action.
Then when it's loaded in the other movie (a few frames after the loadMovie action), you can re-position it to something else if you need to, and make it visible after doing so, with the following:
Levels are somewhat like layers and you can stack movies one on top of each other. Your main movie is allways on level 0 or the root level. If you load an external .swf with the loadMovieNum action, you can load it on a level higher than level 0 (level 1 in my example) or you could load it in an empty holder movie clip already on stage on one of your main movie's layers.
Each movie is made of layers, but each one of those movies can be stacked on different levels within the same main movie. Regards,
I think there's some confusion here between movies and movieclips. Ferorsa, since you've mentioned "linkage" are you actually trying to find out how to use the "attachMovie()" action - this loads in a movieclip rather than a .swf movie into another level?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.