PDA

View Full Version : Resize loaded movie to fullscreen?


marinesko
03-22-2005, 06:12 PM
Hi,

Probably this question surfaces from time to time but I couldn't find an answer to it...

There is a main movie which plays as a fullscreen projector. We load a movie of smaller size to level1 or higher. Is there a way to resize this loaded movie to fullscreen (size of the projector) and then scale it back if needed to its original 100% size (e.g. by pressing button "Exit full screen") ?

Thanks in advance.

pan69
04-21-2005, 06:34 PM
Instead of loading your movie into a level, load it into an empty movieclip. You can create an empty movieclip and load an swf into it like this:

mc = createEmptyMovieClip("instance_mc", 0);
mc.loadMovie("movie.swf");

The funny thing is, you can control the x, y and width and height of a movieclip (something that can not be done with a level).

mc._x = 100;
mc._y = 150;
mc._xscale = 150;
mc._yscale = 150;

Hope this helps...