PDA

View Full Version : How to insert an SWF file into an HTML page (Dreamweaver 8)


Unknownflavour
02-13-2008, 11:58 PM
Hello Everyone,

I have successfully created a SWF file in Flash and I imported the file into Dreamweaver using the "Flash" button. Now when I test the HTML file in Dreamweaver through Safri and Firefox it works on my MAC. Now when I test it on a PC and it works as well but here's the problem. When I point my mouse over the animation, I get a dotted line around my animation indicating the user that they must first click on it and then the dotted line around the animation disappears. Why does that occur on the PC platform and not on the MAC (10.4)?

How can I create and import my Flash animation into Dreamweaver without getting this dotted line. Please help. I tried everything.

Thanks for your help.

atomic
02-14-2008, 12:45 AM
Use the swfObject to embed your .swf, instead of DW...

http://blog.deconcept.com/swfobject/

Unknownflavour
02-14-2008, 06:31 AM
[COLOR="Blue"]You said using "swfObject" instead of DW. Is "swfObject a script? Below is the contents of the SWF file that I extratcted from DW. Can you provide the correct method using the swfObject?


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="550" height="400">
<param name="movie" value="images/testingg.swf">
<param name="quality" value="high">
<embed src="images/testingg.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="550" height="400"></embed>
</object>



Thank you.

atomic
02-14-2008, 06:50 AM
I gave you the link... And there are clear instructions about using it...

Yes it's a .js script, you need to upload it to your server along with the .swf itself, and the .html file.
There are example .html templates.
Download the package...

CyanBlue
02-14-2008, 01:24 PM
Moving to HTML and JavaScript forum...