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();
if you main swf is 1x1, everything it loads will be 1x1.
the problem is the space where this banner or swf will go is being hosted by an ad server for tracking purposes, so i won't be able to add coding in the HTML of the page where it will reside. In the HTML it will just have a tag telling the ad server to display the swf file on that space. So there is no actionscripting in flash that can resize the movie dynamically?