Reply LinkBack Thread Tools Search this Thread
Old 06-12-2007, 13:08   #1 (permalink)
untitled218
Registered User
 
Join Date: Dec 2007
Posts: 3
Problem inserting Flash into HTML

I'm having a problem inserting an swf file into an html page. When navigating to the url, the page shows up as if there is nothing in the place i put the swf (ie. the content that should be underneath fills the area where the swf should be). I've checked to make sure the flash file works on the site, and it does. Anyone have any insight as to what I might be doing wrong??
  Reply With Quote
Old 06-12-2007, 15:05   #2 (permalink)
iblastoff
gotsa a malanga!
 
iblastoff's Avatar
 
Join Date: Apr 2006
Location: ottawa, canada
Posts: 489
well..how are you embedding it?? swfobject? ufo? got a url you're able to share? you can't just say "it doesn't work" and expect people to know how to fix it.
__________________
  Reply With Quote
Old 06-12-2007, 16:10   #3 (permalink)
untitled218
Registered User
 
Join Date: Dec 2007
Posts: 3
Quote:
Originally Posted by iblastoff
well..how are you embedding it?? swfobject? ufo? got a url you're able to share? you can't just say "it doesn't work" and expect people to know how to fix it.
haha ok relax i'll explain- im a photoshop guy, not an html guy, so i used dreamweaver: insert-->flash. this is the url for the flash object: joshuameckes.com/flash/untitled-1.swf (which should work- just a simple flash file that pops up a random photo each time it is loaded). Here is a link to a page it should show up on, but does not: joshuameckes.com/test.html (the swf should show up between my name and the links- images, contact, home, etc.) but does not....

*forum wont let me post url's yet, so i dropped the w's
  Reply With Quote
Old 06-12-2007, 18:07   #4 (permalink)
iblastoff
gotsa a malanga!
 
iblastoff's Avatar
 
Join Date: Apr 2006
Location: ottawa, canada
Posts: 489
firstly apologies if i came across as a bit crass.

ahhh ok thank you. my first inkling is that it doesn't seem like you have the paths correct. your flash file is at /flash/untitled-1.swf but your test.html file (which is in your main directory) is pointing to "untitled-1.swf". it should go to "/flash/untitled-1.swf" as well.

also, it looks like you're calling AC_RunActiveContent.js from the wrong spot (this is dreamweavers method of getting around the "click to activate" crap that IE has to deal with for now). in your test.html i see it called from "Scripts/AC_RunActiveContent.js" which does not exist on your site. it looks like you put it in "/flash/AC_RunActiveContent.js" instead which does exist. simply change where its pointing to it or move the js file to the Scripts area along with the potential path issues above and all should be well.

as a sidenote, you should probably be using swfobject or UFO to embed your flash files. the markup is better and doesn't use crap like <embed> and <object> tags. with those two methods being available for quite a while now i have no idea why adobe still wants to use their shit method even in cs3.
__________________

Last edited by iblastoff : 06-12-2007 at 18:27.
  Reply With Quote
Old 07-12-2007, 11:42   #5 (permalink)
untitled218
Registered User
 
Join Date: Dec 2007
Posts: 3
No problem- i should have given a few more details in the first place, and i definitely appreciate the help. i changed the location of the .js file, which has solved half my problem. the path to the swf file didn't matter, b/c i actually had it in both the "flash" folder, and a higher directory (something i tried while attempting to troubleshoot). so now, the swf is showing up in the correct place, but is not working... any ideas? also, i'm not familiar with ufo or swfobject... would using one of those result in less of this type of problem?
  Reply With Quote
Old 07-12-2007, 12:12   #6 (permalink)
iblastoff
gotsa a malanga!
 
iblastoff's Avatar
 
Join Date: Apr 2006
Location: ottawa, canada
Posts: 489
i see this in the code

Quote:
...<embed title="flash" src="/flash/Untitled-1.dcr"...

shouldn't that be Untitled-1.swf?
__________________
  Reply With Quote
Old 18-06-2008, 15:05   #7 (permalink)
nate22
Registered User
 
nate22's Avatar
 
Join Date: Feb 2007
Posts: 85
Hahahah, now that I'm using Flash CS3 and Dreamweaver CS3, I have the same idiotic problem.

There's nothing wrong with this code (or else there shouldn't be; I did it the same way I always did before: click insert swf and Dreamweaver does the rest):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>

<body>
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','888','heigh t','580','src','hd-split-base','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','hd-split-base' ); //end AC code
</script><noscript><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="888" height="580">
<param name="movie" value="hd-split-base.swf" />
<param name="quality" value="high" />
<embed src="hd-split-base.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="888" height="580"></embed>
</object></noscript>

</body>
</html>
  Reply With Quote
Old 18-06-2008, 15:24   #8 (permalink)
nate22
Registered User
 
nate22's Avatar
 
Join Date: Feb 2007
Posts: 85
BTW, different problem using swfobject in my CMSMS* site I'm working on: base Flash movie loads, but none of the other swfs load when called. All the Flash files work perfectly when uploaded to a non-CMSMS server, but of course if I put them in an HTML page, as I said above, the page is blank for some idiotic reason.

So, I am going back to Flash 8 and re-exporting everything. And I am using Dreamweaver 8 to test.

And then I am going to sell CS3 on eBay.

*CMSMS = CMS Made Simple, btw
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8