10 Replies Latest reply on Aug 24, 2010 4:22 PM by Ninarama

    Resizing flash movie


      Hi everyone,


      I made my movie of size 1400 x 400, but

      I'd like to make it of size 700x200 without

      losing much quality. Also I want to be able

      to use it in a power point presentation, to what

      format can I convert it to add it to the presentation



        • 1. Re: Resizing flash movie
          kglad Adobe Community Professional & MVP

          load your swf into a master swf and scale the loader (as3) or target movieclip (as2) AFTER loading is complete.


          flash in ppt:  http://www.indezine.com/products/powerpoint/ppflash2.html

          1 person found this helpful
          • 2. Re: Resizing flash movie
            flethuseo Level 1


            For what you're describing, I need to use actionscript right? I'm trying this but it doesn't work:



            createEmptyMovieClip("anim", 0); // create a new but empty movie clip (anim)

            anim.loadMovie("/Users/Ted/Desktop/movie.swf"); // load "animation.swf" into the empty (anim) movie clip

            anim._x = 100; // Adjust the position of the imported "animation.swf" file

            anim._y = 100;

            • 3. Re: Resizing flash movie
              kglad Adobe Community Professional & MVP

              1.  never use absolute paths unless your loaded object is in a different domain.


              2.  that code is in a new fla, correct


              3.  what doesnt work?  if you swf is failing to load (and 2. applies), your path/name is incorrect.


              4.  you're not resizing your swf with that code, you're changing its position.  use _width, _height to change its size AFTER loading is complete.

              • 4. Re: Resizing flash movie
                Ninarama Level 1

                It depends on which version your source clip is. If it's AS3 and you're trying to load it with AS2, that won't work, because flash isn't downwards compatible from AS3 on.

                So first make sure that the loader and the clip you want to load have the same version.


                Then you create a loader.swf,

                for AS2 that would be:


                var mc = this.createEmptyMovieClip("mc",this.getNextHighestDepth());

                var mcl = new MovieClipLoader();

                mcl.onLoadInit = function(mc) {

                     mc._xscale = 50;

                     mc._yscale = 50;

                     //... maybe repositioning here also




                In AS3 that would be:


                var ld:Loader = new Loader();


                ld.contentLoaderInfo.addEventListener(Event.COMPLETE,function(evt) {

                     var mc = evt.target.content;



                     // repositioning, etc...


                ld.load(new URLRequest("movie.swf"));

                1 person found this helpful
                • 5. Re: Resizing flash movie
                  flethuseo Level 1

                  I don't get it.. it doesn't work either way with AS3 or AS2 :\

                  both my movie.swf file and my new loader.fla file is in the

                  desktop. So it should work without specifying a path (they

                  are in the same directory)



                  • 6. Re: Resizing flash movie
                    flethuseo Level 1

                    I don't know why it doesn't work, there's no error.

                    This is what I do basically.


                    Create new flash file

                    Right click on the first frame of the default layer and clic on actions

                    Copy paste code you've posted on this site depending on whether I use AS2 or AS3

                    Run with the flash movie with command enter.



                    • 7. Re: Resizing flash movie
                      kglad Adobe Community Professional & MVP

                      copy and paste the code you used.  use the same actionscript version as the swf that you're trying to load uses.

                      • 8. Re: Resizing flash movie
                        flethuseo Level 1

                        Ah must have done something wrong I can't determine

                        but it erased my movie.swf, so after rebuilding the movie.swf

                        It works with the AS3 scrips, as it was the one I was using.


                        Thank you very much



                        • 9. Re: Resizing flash movie
                          flethuseo Level 1

                          I was wondering is there a way

                          to have only one sfw file that does

                          it all without having the other one

                          around.By resizing this way I need

                          to keep both files which is kind of




                          • 10. Re: Resizing flash movie
                            Ninarama Level 1

                            Yes, there ist, but it is a complete different approach:


                            I almost never do stuff on the main timeline. I always create a movieclip and do everyting within that movieclip.

                            This way, you can resize this movieclip to whatever you want later or apply effects to it or reposition it easily.


                            Otherwise, most host applications do allow resizing of the flash anyway. The "scale" parameter can be used to do that if the flash gets embedded like here: http://kb2.adobe.com/cps/141/tn_14149.html


                            And if you embed it into powerpoint (I don't use that, so I don't know the details), it also may allow you to rescale the flash-container. I would be surprised if that couldn't be done.