1 Reply Latest reply on Jun 9, 2009 6:50 AM by C-Rock

    Resize flash movie.

    Sreelash Level 1

      Hi friends,


                     Actually my doubt concerns with resizing a flash movie when a browser resizes. The flash movie is a slide show. In flash I have scripted to resize the image using onResize event. Also it's working finely when opening on flash CS3. But when I opened the same on a browser and resizes the browser, the flash component is not resizing. Can I use any javascipt function for this purpose. If so can anyone describe, how it could be. Because I don't have any idea on javascript.


      Thanks and Regards,

        • 1. Re: Resize flash movie.
          C-Rock Level 2

          I generally put the whole slide/page into a movie clip and use this code on resize to center it. In your case I would use the same code but inside the listener fire a function call where you'll resize each item?


          //        size listener

          pageSizeListener = new Object();
          pageSizeListener.onResize = function() {
          mainPage._x = Stage.width / 2;
          //pageMC._y = Stage.height / 2;
          mainBackground._x = Stage.width / 2;