3 Replies Latest reply on Jul 26, 2011 10:26 AM by kglad

    Insert fixed size swf into FLA

    maxlomax187

      Hi, I have converted some PowerPoints into swf files. I want to insert/link the files into the main FLA file. But when I do it the way i normally do it, it puts the PowerPoints swf at full size 1024 x 768. Is there a way of fixing the visual size (800x 600) of the swf within the FLA.

        • 1. Re: Insert fixed size swf into FLA
          kglad Adobe Community Professional & MVP

          after loading is complete, you can resize your loaded swf by resizing its loader (as3) or load target movieclip (as2).

           

          if you need more help than that, specify as2 or as3.

          • 2. Re: Insert fixed size swf into FLA
            maxlomax187 Level 1

            Its built in AS2

             

            This is how i usually do it.


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

            • 3. Re: Insert fixed size swf into FLA
              kglad Adobe Community Professional & MVP

              there are a couple of problems with that.  but rather than correct those, you should learn to use the moviecliploader class:

               

               

              var target_mc:MovieClip=this.createEmptyMovieClip("target_mc",this.getNextHighestDepth());

              var mcl:MovieClipLoader=new MovieClipLoader();

              var lo:Object={};

               

              lo.onLoadInit=function(target:MovieClip){

              target._width=800;

              target._height=600;

              }

               

              mcl.addListener(lo);

              mcl.loadClip("Power1.swf",target_mc);