MX

Table Of Contents
Previewing a Flash Object in Web Designer MX Premium
To view your animation as it would look in a web page, click the
Preview Flash
button to instantly see a browser preview.
The preview page will show your finished animation as well as useful information, such as the animation's
dimensions, file size, etc. It also includes simple instructions on inserting your animation into a web page.
Inserting a Flash Object in Web Designer MX Premium
For those using Web Designer MX Premium you can simply drop the Flash file onto your web page to
insert it into your website. A static placeholder image is automatically created and placed on your page.
Preview your page and you should see your working Flash animation!
Alternatively you can create a placeholder object manually. On your web page, create a placeholder
object, which can be anything such as a simple rectangle or an image or screen grab even. Position and
size your placeholder where you want your Flash animation to appear.
Then in the Web Properties dialog ("Ctrl + Shift + W") select the Placeholder tab and the Replace
with Flash Browse options to locate the required .SWF file. Click Apply
.
Now when you preview your website, the placeholder is replaced by the Flash animation.
With either option above, the .swf file gets copied into a support folder next to your .xar file, so that there
is a copy of the file with your .xar file. Therefore if you subsequently change your animation and export an
updated .swf file that you want to use instead, either browse for the new .swf file using the
"Utilities" > "Web properties" > "
Placeholder tab" as above, or manually replace the file in the support folder with the updated file.
See the Support Folders section
of the Document Handling chapter for more information.
Inserting using a different web authoring tool
To place your SWF animation into your HTML click the View HTML
link on the Flash preview screen to get code that you can paste into your web page using your preferred
HTML editor.
Note: You must change the SWF file name in the code to match the actual name of your exported SWF
file. You must also place your SWF file into the same directory as your web page for the code to work.
If you place the SWF file in a different directory, you will need to change the HTML code accordingly.
Page 1102