Skip to main content
May 3, 2007
Question

scale external movie help

  • May 3, 2007
  • 2 replies
  • 230 views
How do you scale and external movie that is loaded?

_xscale += (dropZone-_xscale)/5
This topic has been closed for replies.

2 replies

May 4, 2007
That only seems to scale the loaded movie. It does not change the position.
May 3, 2007
little bit vague in your description, best to have an example of your code to better show you with the instance names you're using.

But the easiest way is to create a movieclip for your external movie to be loaded into
and apply properties to it.

//generate movieclip to hold external movie
var holder_mc = this.createEmptyMovieClip("loaded_mc",this.getNextHighestDepth());
//load movie into new movieclip
holder_mc.loadMovie("myExternalSwf.swf");
//the apply any change in properties you need
holder_mc._xscale = 20;
holder_mc._yscale = 20;
May 4, 2007
Your method works good, except the movie loads in the top left hard corner.

I want to be able to place the movie in a certain place.

I place the MC in the middle on the main movie and it does not load in the middle.

How do I fix that?

May 4, 2007
set the _x and _y properties to the ones you require like this

//generate movieclip to hold external movie
var holder_mc = this.createEmptyMovieClip("loaded_mc",this.getNextHighestDepth());
//load movie into new movieclip
holder_mc.loadMovie("myExternalSwf.swf");
//the apply any change in properties you need
holder_mc._x = 120;
holder_mc._y = 120;