Reply
Dreamweaver & Flash - Help Please
Old 03-05-2007, 09:42 PM Dreamweaver & Flash - Help Please
Average Talker

Posts: 26
I have just practiced my first ever flash (this is not the actual one), but when I inserted it into Dreamweaver, nothing appears. Here is the code:
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="32" height="32">
<param name="movie" value="../Unnamed Site 1/Untitled-10.fla" />
<param name="quality" value="high" />
<embed src="../Unnamed Site 1/Untitled-10.fla" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="32" height="32"></embed>
</object>

Can anyone tell me what is wrong with this code?
kayla is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 03-06-2007, 06:01 AM Re: Dreamweaver & Flash - Help Please
moondog's Avatar
Ultra Talker

Posts: 256
Location: Croatia
I see no .SWF file in Your code.

In Your code You have .FLA file.

f.la files contain source material for the Flash application. Flash authoring software can edit FLA files and compile them into .swf files.
moondog is offline
Reply With Quote
View Public Profile
 
Old 03-06-2007, 06:57 AM Re: Dreamweaver & Flash - Help Please
Sydpix's Avatar
Ultra Talker

Posts: 361
Name: Denny
Location: In a can...
First you need to export your movie from flash to your local machine as an SWF. It converts it to SWF when you chose export movie option in your menu.

C:/Yoursite/Flash/blabla.swf

Then go to Dreamweaver and import flash (the new swf you created) into your page.

There is a little problem these days with flash in IE. You will need to add some javascript to prevent it from needing clicked in order to view your flash.

I have it if you need it.
Sydpix is offline
Reply With Quote
View Public Profile Visit Sydpix's homepage!
 
Old 03-06-2007, 08:28 AM Re: Dreamweaver & Flash - Help Please
Average Talker

Posts: 26
Thank you very much. I did export the file and then import as above, and it's still not showing. This is the code now:
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/s...rsion=7,0,19,0" width="300" height="200" title="test">
<param name="movie" value="../Unnamed Site 1/test.swf" />
<param name="quality" value="high" />
<embed src="../Unnamed Site 1/test.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="200"></embed>
</object>

Is it due to the javascript not there? If so, I would appreciate that code, I tried to pm you but because I am new, it won't let me. I apologize for wasting thread space
kayla is offline
Reply With Quote
View Public Profile
 
Old 03-06-2007, 09:37 AM Re: Dreamweaver & Flash - Help Please
Sydpix's Avatar
Ultra Talker

Posts: 361
Name: Denny
Location: In a can...
Make sure you have it in the right directory.

For instance:

If this is were you export your flash. (just an example)

C:/Unnamed_Site/Flash/Test.swf

You code should look like this:

Code:
 <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/s...rsion=7,0,19,0" width="300" height="200" title="test">
<param name="movie" value="Unnamed_Site/Flash/Test.swf" />
<param name="quality" value="high" />
<embed src="Unnamed_Site/Flash/Test.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="200"></embed>
</object>
../ before the src= means you are importing it from outside your root directory.

I would first go to your Unnamed_Site, create a new folder in there called Flash.

Go back to Flash MX and export your Test.swf into that folder.

EG: C:/Unnamed_Site/Flash

Then go to Dreamweaver and import the .swf you just saved.

It wont actually show on your page until you preview it.

Last edited by Sydpix : 03-06-2007 at 09:45 AM.
Sydpix is offline
Reply With Quote
View Public Profile Visit Sydpix's homepage!
 
Old 03-06-2007, 11:58 AM Re: Dreamweaver & Flash - Help Please
Average Talker

Posts: 26
BRILLIANT! Thank you very much for your time!!!
kayla is offline
Reply With Quote
View Public Profile
 
Old 03-06-2007, 01:33 PM Re: Dreamweaver & Flash - Help Please
LadynRed's Avatar
Super Moderator

Posts: 6,085
Location: Tennessee
Now, for your next 'lesson' - DO NOT USE THE <EMBED> TAG !!!!
It will cause IE users to have to do the 2-click dance to 'activate' active content. That means they won't even see your flash until they 'activate'

Better to learn NOW how NOT to use <embed> - at the top of the HTML forum are 2 stickies that will show you how to use Flash w/o the <embed>.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 03-07-2007, 03:23 AM Re: Dreamweaver & Flash - Help Please
moondog's Avatar
Ultra Talker

Posts: 256
Location: Croatia
Quote:
Originally Posted by LadynRed View Post
Now, for your next 'lesson' - DO NOT USE THE <EMBED> TAG !!!!
It will cause IE users to have to do the 2-click dance to 'activate' active content. That means they won't even see your flash until they 'activate'

Better to learn NOW how NOT to use <embed> - at the top of the HTML forum are 2 stickies that will show you how to use Flash w/o the <embed>.
I hope they'll learn and they'll hear Your repeating for embedding Flash.
moondog is offline
Reply With Quote
View Public Profile
 
Old 03-07-2007, 06:00 AM Re: Dreamweaver & Flash - Help Please
Sydpix's Avatar
Ultra Talker

Posts: 361
Name: Denny
Location: In a can...
Well... This may be a cop out but... I don't know if it validates.

save this as ieupsate.js

Code:
objects = document.getElementsByTagName("object");
for (var i = 0; i < objects.length; i++)
{
    objects[i].outerHTML = objects[i].outerHTML;
}
paste this right after your embedded tag

Code:
<script type="text/javascript" src="ieupdate.js"></script>
This also fixes the click to activate problem.
__________________
.
++
Ì lðvê †ð hå¢k ¢§§ þhþ åñÐ h†ml ++
Sydpixel.

Last edited by Sydpix : 03-07-2007 at 04:03 PM.
Sydpix is offline
Reply With Quote
View Public Profile Visit Sydpix's homepage!
 
Old 03-07-2007, 12:43 PM Re: Dreamweaver & Flash - Help Please
LadynRed's Avatar
Super Moderator

Posts: 6,085
Location: Tennessee
Yep.. javascript and objects is one of the best solutions
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Dreamweaver & Flash - Help Please
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.16342 seconds with 13 queries