1. You need to embed your swf in an html file. Why? This allows the browser to control the size of the flash file to its original size and also control its positioning on the page. If a SWF file is loaded or linked to directly into a browser window it will automatically fit to the browser size and even expose elements that are outside the Flash file's artboard. You will upload both the HTML page and the SWF file to your server space. To export your flash file with an html file go to File > Publish Settings > (check publish html) and be sure that it is saving to the right folder by clicking on blue file icon.
2. In dreamweaver you can add some CSS styling to the body tag (like you've done before), but the CSS code can be contained in the html document (it does not need to be an attached stylesheet for this simple project).
3. You can change your background color or add a tiling pattern to the background so your site doesn't sit on the default white.
4. You can align your swf with the top/left of the browser by changing the padding/margins.
5. Or you can change the positioning of the site to center by setting left and right margins to center. You must input the correct pixel width of your site for this to work.
Another easy way to center a site is Align > Center. Hey, thanks Dreamweaver!
No comments:
Post a Comment