PDA

View Full Version : SWF files in Dreamweaver


monklett
10-15-2008, 07:15 PM
I am creating a Dreamweaver webpage with an embedded swf file. It previews just fine when I'm tesing it out on my computer but when I upload the HTML and SWF files to my webhost, the swf file does not appear. Any idea what I'm doing wrong?

Thanks for any help.

davidj
10-15-2008, 07:19 PM
got a url so we can see

monklett
10-15-2008, 07:32 PM
www.illustrations.minyoungkim.com

there should be a swf file above the next but nada...

oh sorry there was a typo!

it's:

www.illustration.minyoungkim.com

thanks

domedia
10-15-2008, 07:49 PM
You did not upload AC_RunActiveContent.js

monklett
10-15-2008, 08:00 PM
Where do I find that? Is that a file that is automatically generated when I save the dreamweaver file?

Thanks domedia

Ricky55
10-15-2008, 08:11 PM
Only if you are using CS3 or 8.02 if you are then when you first embed (insert) the swf Dreamweaver will create the file for you.

Its a javascript file that that Dreamweaver puts in a folder called scripts.

I would recommend using SWF object rather than this though for three reasons

1. It creates valid markup
2. You can you the express install (when users don't the version of flash you want them to have.
3. You can provide alternative content when users don't have flash at all.

And finally Dreamweaver CS4 will be using this anyway so you may as wel start using now what everyone else will be soon enough.

You can download swfobject here
http://code.google.com/p/swfobject/

Underneath that link you can download a generator that will create all the code for you.

monklett
10-15-2008, 08:14 PM
Thanks!

So I uploaded the AC_RunActiveContent.js file alongside my HTML and swf but it's still not working. What am I missing?

davidj
10-15-2008, 08:18 PM
nice tip Ricky

could have done with that last week

domedia
10-15-2008, 09:18 PM
Thanks!

So I uploaded the AC_RunActiveContent.js file alongside my HTML and swf but it's still not working. What am I missing?

It's not there, look at the link in your source.