2 Replies Latest reply on Mar 15, 2007 6:41 AM by Tazty

    External Movie File Script Question

    Tazty
      I have finally figured out how to load an external .swf into my flash file. The only problem is that I want to resize the external movie to fit in a smaller movie container. The movie now plays in the correct place but wrong size.

      Here is my code, I need to know the parameters to force a resize:


      "on (release) {

      //load Movie Behavior
      if(this.demo == Number(this.demo)){
      loadMovieNum("demo.swf",this.demo, w);
      this.demo
      } else {
      this.demo.loadMovie("demo.swf");

      }
      //End Behavior

      }"

      Thanks
        • 1. Re: External Movie File Script Question
          Level 7
          Add this:

          //scales to 85%
          this.demo._xscale = .85;
          this.demo._yscale = .85;


          --

          Dan Mode
          --> Adobe Community Expert
          *Flash Helps* http://www.smithmediafusion.com/blog/?cat=11
          *THE online Radio* http://www.tornadostream.com <--check this

          *Must Read* http://www.smithmediafusion.com/blog



          "Tazty" <webforumsuser@macromedia.com> wrote in message
          news:et9qlm$ke2$1@forums.macromedia.com...
          >I have finally figured out how to load an external .swf into my flash file.
          > The only problem is that I want to resize the external movie to fit in a
          > smaller movie container. The movie now plays in the correct place but
          > wrong
          > size.
          >
          > Here is my code, I need to know the parameters to force a resize:
          >
          >
          > "on (release) {
          >
          > //load Movie Behavior
          > if(this.demo == Number(this.demo)){
          > loadMovieNum("demo.swf",this.demo, w);
          > this.demo
          > } else {
          > this.demo.loadMovie("demo.swf");
          >
          > }
          > //End Behavior
          >
          > }"
          >
          > Thanks
          >


          • 2. Re: External Movie File Script Question
            Tazty Level 1
            Thanks so much. That worked great, although to get the 85% I had to use the following;

            //scales to 85%
            this.demo._xscale = 85.00;
            this.demo._yscale = 85.00;

            as opposed to:
            //scales to 85%
            this.demo._xscale = .85;
            this.demo._yscale = .85;

            That is for those who may be reading this thread later on.