MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Specifiche Pagina 125

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 504
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 124
Adding Flash content to Dreamweaver 125
In Dreamweaver, open a new basic HTML file (this will be your Command definition file).
Between the opening and closing
title tags, enter My Flash Movie so the head of your page
reads as follows:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My Flash Movie</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
Now, save the file as My Flash Movie.htm in the application Configuration/Commands folder
(but do not close the file yet). You save the file at this point so you can embed your Flash
content with a relative path, otherwise Dreamweaver will try to use an absolute path.
Back in the HTML document, between the opening and closing
body tags, add an opening
and closing
form tag. Then, within the form tags, use the Insert > Media > Flash menu option
to add your Flash content to the Command definition file. When prompted, select the SWF
file in the Commands folder, and click OK. Your Command definition file should now look
like the following example (of course, the
width and height attributes might differ,
depending on your SWF file properties):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My Flash Movie</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<body>
<form>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=6,0,29,0" width="200" height="100">
<param name="movie" value="myFlash.swf">
<param name="quality" value="high">
<embed src="myFlash.swf" quality="high" pluginspage="http://
www.macromedia.com/go/getflashplayer" type="application/x-shockwave-
flash" width="200" height="100"></embed>
</object>
</form>
</body>
</html>
Vedere la pagina 124
1 2 ... 120 121 122 123 124 125 126 127 128 129 130 ... 503 504

Commenti su questo manuale

Nessun commento