4 Replies Latest reply on May 4, 2007 9:45 AM by doinka

    scale external movie help

    doinka Level 1
      How do you scale and external movie that is loaded?

      [CODE]_xscale += (dropZone-_xscale)/5[/CODE]
        • 1. Re: scale external movie help
          dr_ross Level 1
          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;
          • 2. Re: scale external movie help
            doinka Level 1
            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?

            • 3. Re: scale external movie help
              dr_ross Level 1
              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;
              • 4. Re: scale external movie help
                doinka Level 1
                That only seems to scale the loaded movie. It does not change the position.