4 Replies Latest reply on May 26, 2010 5:05 PM by TorQue[MoD]

    Resize the "Canvas" of a movie clip

    TorQue[MoD] Level 1

      Hey all.


      I'm wondering if there's a way to re-size a movie clip so that there's extra empty space (or even white) around it current size? Like changing the canvas size of an image in Photoshop.


      Basically my MC is currently 687 x 481 pixels and I want to expand it to 980 x 700 (size of the document) while leaving the current graphics in their same location and position. I'd rather not have to re-create the movie clip entirely. Also, the MC is part of an entire website, so I can't simply change the document size.



        • 1. Re: Resize the "Canvas" of a movie clip
          kglad Adobe Community Professional & MVP

          reassign its width and height.  in as3:




          • 2. Re: Resize the "Canvas" of a movie clip
            Ned Murphy Adobe Community Professional & MVP

            When you change the canvas size in Photoshop, you don't change the size of the existing contents.  So if that's what you mean, you want to retain the current movieclip content at its current dimensions but make the overall movieclip as a whole larger, then you probably just want to add a background graphic (rectangle) to it sized to whatever dimensions you want.  You can set the alpha property of that background to zero if you don't want it to show, or you can make it white for that white space you mentioned.


            I don't know why you need to do this, unless the plan is to make the entire area mouse interactive for some reason.

            • 3. Re: Resize the "Canvas" of a movie clip
              Stryfe01 Level 1

              I'm sort of in the same boat. I had another artists working for me. He built a walking animation for me, but the canvas size is way too large. It is causing collision issue in my SDK. Is there a way to do a batch resize of the canvas? So far I have had to resize each individual canvas in Photoshop, but this is time consuming.

              • 4. Re: Resize the "Canvas" of a movie clip
                TorQue[MoD] Level 1

                I see what Ned's saying... If you add a new layer and draw out a rectangle to the "re-sized" dimensions and then move it down below your current layer, it will essentially re-size the canvas of that movie clip. And changing the fill to 0 would remove the background if you need to maintain transparency.


                That's a good trick Ned. I fixed my issue a while ago though, but its nice to know for the future.