1 Reply Latest reply on Aug 11, 2006 6:17 AM by blemmo

    Resize movieclip on load

    rc3rdmd Level 1
      I am loading an external .swf file and it's too large for the empty mc I'm loading it into. In the example below I need to resize "Company.swf" to the size of picsMC which is 416 x 312.

      Current Code:
      var picMCL:MovieClipLoader = new MovieClipLoader();
      var frameClicked:String;

      function loadFrame():Void
      {
      picMCL.loadClip(frameClicked, this.picsMC);
      }

      this.mcFC.onPress = function():Void {
      frameClicked="Company.swf";
      loadFrame();
      }
        • 1. Re: Resize movieclip on load
          blemmo Level 1
          Use the onLoadInit event of the MovieClipLoader class to resize the mc, e.g.:

          function loadFrame():Void
          {
          picMCL.onLoadInit = function(){
          picsMC._width = 416;
          picsMC._height = 312;
          }
          picMCL.loadClip(frameClicked, this.picsMC);
          }

          hth,
          blemmo