2 Replies Latest reply on Aug 5, 2009 2:14 PM by tangerine777

    MovieClipLoader & resizing stage question

    tangerine777

      Hi All,

      I'm currently trying to have a swf file to show up on an HTML page when the page initially loads. When the user clicks the close button (on the swf file), the swf disappears and the rest of the content on the HTML page shifts up. Similar idea to how CNN occassionally have their "breaking news" banner on their homepage.

      In order to do this, I thought of the idea of creating a 1x1 pixel main swf file containing a MovieClipLoader function to load the "content" onto the swf file. As the user clicks on the close button, it will unload the external swf, returning back to the 1x1 main swf.

      However, how do i get the 1x1 main swf file to resize to the size of the external swf? and to do the reverse when the user clicks the close button??

      so far i have the MovieClipLoader function working, but not the resizing.

      var myMCL:MovieClipLoader = new MovieClipLoader();
      myMCL.loadClip("test.swf", "container");