Click to See Complete Forum and Search --> : putting flash into dreamweaver


gemz0112
06-11-2007, 07:17 AM
I have tried all different types of code to put the flash animation i made into the website i created using dreamweaver, however nothing seems to have worked. I have also tried to use the function within dreamweaver to insert the flash animation but this hasnt worked either, any suggestions?

KDLA
06-11-2007, 08:18 AM
http://journalism.berkeley.edu/multimedia/tutorials/flash/flash_insert.html

ryanbutler
06-11-2007, 08:18 AM
Take the object code and place in an external JavaScript file like such:

function iefix() {
document.write('<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="750" height="520" id="container" align="middle">\n')
document.write('<param name="allowScriptAccess" value="sameDomain">\n')
document.write('<param name="movie" value="clickheretoactivatecontrol.swf">\n')
document.write('<param name="menu" value="false">\n')
document.write('<param name="quality" value="high">\n')
document.write('<embed src="clickheretoactivatecontrol.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="750" height="520" menu="false" loop="false" name="container" align="middle" allowScriptAccess="sameDomain"></embed>\n')
document.write('</object>\n')

}

In the above code, replace this line:

document.write('<param name="movie" value="clickheretoactivatecontrol.swf">\n')

With the name of your movie.

And in the above code, replace this line:

document.write('<embed src="clickheretoactivatecontrol.swf"

With the name of your movie.

Then in your HTML file, call the JavaScript file:

<script src="movie.js" type="text/javascript"></script><script type="text/javascript">
<!-- hide script from non-JS browsers
iefix();
// end hide -->
</script>

gemz0112
06-11-2007, 06:02 PM
thanks for your help :)