5 Replies Latest reply on Apr 29, 2010 3:12 AM by Knubbi

    How to rescale all objects on a stage

    Knubbi Level 1



      I am using Flash CS4 and need to resize my Flash stage and all objects therein.


      To do that I activated onion skin tool, selected all objects and all frames and resized by using the transform tool.


      However, masks and some motion paths are not scaled proportionally.Is it yet another bug in CS4?


      Here is a video illustrating the issue: http://screencast.com/t/ZThiNDdkZ


      Any help would be very much appreciated.

        • 1. Re: How to rescale all objects on a stage
          Knubbi Level 1

          Any help?

          • 2. Re: How to rescale all objects on a stage
            jendehaan Level 4

            This is not a bug in CS4, but due to the way new motion works due to auto-keyframing animations. I have written a blog post on how to work with new tweens in this regard:


            (items 3 and 4).


            We realized it's more steps than classic tweening and needs to be enhanced, it is something we are working to improve for future versions.

            • 3. Re: How to rescale all objects on a stage


              My proposal...


              import flash.display.*;
              import flash.geom.*;
              import flash.text.*;
              import flash.events.*;
              import flash.system.*;
              import fl.controls.*;


              [SWF(width="800", height="600", frameRate="24", backgroundColor="0xcccccc")];
              stage.scaleMode = StageScaleMode.NO_SCALE;
              stage.align = StageAlign.TOP_LEFT;


              var ParentWindow:MovieClip = new MovieClip();
              ParentWindow.graphics.drawRect(-1000, -1000, 4000, 4000);
              ParentWindow.FirstW = ParentWindow.width;
              ParentWindow.FirstH = ParentWindow.height;
              ParentWindow.StageFirstW = stage.stageWidth;
              ParentWindow.StageFirstH = stage.stageHeight;


              var TestButton:Button = new Button();
              TestButton.label = "Text...";
              TestButton.width = 250;
              TestButton.height = 50;
              TestButton.move(500, 200);


              stage.addEventListener(Event.RESIZE, ChangeParentWindow);
              function ChangeParentWindow(event:Event):void {
                  ParentWindow.width = stage.stageWidth / ParentWindow.StageFirstW * ParentWindow.FirstW;
                  ParentWindow.height = stage.stageHeight / ParentWindow.StageFirstH * ParentWindow.FirstH;
                  //code for format, style... for TestButton, and another instance...
                  stage.align = StageAlign.TOP_LEFT;


              Like this TestButton, add all objects to ParentWindow, and program will automatically change all dimensions...

              • 4. Re: How to rescale all objects on a stage

                may be you can give a try this way..


                select the layers in timeline . cut it . create a new movieclip by pressing Ctrl+F8. paste the layers.


                come out to main timeline.

                drag the movieclip created into the timeline where ever it is required and scale it accordingly.

                • 5. Re: How to rescale all objects on a stage
                  Knubbi Level 1

                  Thanks, that did it.


                  Awesomely complicated and twisted but it seems to be the only chance to resize a .fla.