| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
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?? |
|
|
|
|
|
#3 (permalink) | |
|
Registered User
Join Date: Dec 2007
Posts: 3
|
Quote:
*forum wont let me post url's yet, so i dropped the w's |
|
|
|
|
#4 (permalink) |
|
gotsa a malanga!
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. |
|
|
|
#5 (permalink) |
|
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? |
|
|
|
#7 (permalink) |
|
Registered User
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="clsid <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> |
|
|
|
#8 (permalink) |
|
Registered User
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 |
|
![]() |