|
|
Post a Project »
Find a Professional HTML Freelancer!
Find a Freelancer to help you with your HTML projects
| |
|
 |
|
|
11-12-2008, 08:02 AM
|
Flash Problems w/ IE
|
Posts: 7
Name: Remo
|
I'm currently working on a website: hoodcityent.com |Being hosted @:
http://www.hoodcity.vndv.com
My problem is the flash works fine in Firefox, but does not show up in IE. Is there something I need to change with my coding, if so what?
Code:
<ul id="flash">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
ID=hoodcityent WIDTH=770 HEIGHT=228>
<PARAM NAME=movie VALUE="hoodcityent.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=loop VALUE=false>
<EMBED src="images/hoodcityent.swf" loop=false quality=high
WIDTH=900 HEIGHT=267 TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>
</OBJECT>
</ul>
Other than that, everything is going fine so far, just a few more things I need to knock out, setting up frames on the main page for the news which will be done through a blog (probably wordpress unless there are any better suggestions). Create a pseudo slide show for video selection, and decide on which type of image enlarge script I want to use for the photos section (hopefully something similar to HighSlide).
|
|
|
|
11-12-2008, 09:02 AM
|
Re: Flash Problems w/ IE
|
Posts: 135
Name: Darko Krsmanovic
Location: Belgrade
|
Below is the code, make sure you include script too(AC_RunActiveContent.js)
here is the link to script and some samples: http://download.macromedia.com/pub/d...nt_samples.zip
Here is a link to article: http://www.adobe.com/devnet/activeco...devletter.html
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','770','heigh t','228','title','hoodcityent','src','images/','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','images/hoodcityent', 'wmode', 'transparent' ); //end AC code
</script><noscript><object type="application/x-shockwave-flash" width="770" height="228" data="images/hoodcityent.swf">
<param name="movie" value="images/hoodcityent.swf" /><param name="wmode" value="transparent" /></object></noscript>
Hope this helps!
|
|
|
|
11-12-2008, 10:26 AM
|
Re: Flash Problems w/ IE
|
Posts: 7
Name: Remo
|
Thanks for trying, but with that script it doesn't run. I included the scripts as well, but no go in both IE and Firefox.
|
|
|
|
11-12-2008, 10:48 AM
|
Re: Flash Problems w/ IE
|
Posts: 135
Name: Darko Krsmanovic
Location: Belgrade
|
It worked for me, here is the code I used for test page, save it and try again and then go from there to apply it for your page:
<!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>
<script language="JavaScript1.2" type="text/javascript">
//v1.0
//Copyright 2006 Adobe Systems, Inc. All rights reserved.
function AC_AddExtension(src, ext)
{
if (src.indexOf('?') != -1)
return src.replace(/\?/, ext+'?');
else
return src + ext;
}
function AC_Generateobj(objAttrs, params, embedAttrs)
{
var str = '<object ';
for (var i in objAttrs)
str += i + '="' + objAttrs[i] + '" ';
str += '>';
for (var i in params)
str += '<param name="' + i + '" value="' + params[i] + '" /> ';
str += '<embed ';
for (var i in embedAttrs)
str += i + '="' + embedAttrs[i] + '" ';
str += ' ></embed></object>';
document.write(str);
}
function AC_FL_RunContent(){
var ret =
AC_GetArgs
( arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
, "application/x-shockwave-flash"
);
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}
function AC_SW_RunContent(){
var ret =
AC_GetArgs
( arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
, null
);
AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}
function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
var ret = new Object();
ret.embedAttrs = new Object();
ret.params = new Object();
ret.objAttrs = new Object();
for (var i=0; i < args.length; i=i+2){
var currArg = args[i].toLowerCase();
switch (currArg){
case "classid":
break;
case "pluginspage":
ret.embedAttrs[args[i]] = args[i+1];
break;
case "src":
case "movie":
args[i+1] = AC_AddExtension(args[i+1], ext);
ret.embedAttrs["src"] = args[i+1];
ret.params[srcParamName] = args[i+1];
break;
case "onafterupdate":
case "onbeforeupdate":
case "onblur":
case "oncellchange":
case "onclick":
case "ondblClick":
case "ondrag":
case "ondragend":
case "ondragenter":
case "ondragleave":
case "ondragover":
case "ondrop":
case "onfinish":
case "onfocus":
case "onhelp":
case "onmousedown":
case "onmouseup":
case "onmouseover":
case "onmousemove":
case "onmouseout":
case "onkeypress":
case "onkeydown":
case "onkeyup":
case "onload":
case "onlosecapture":
case "onpropertychange":
case "onreadystatechange":
case "onrowsdelete":
case "onrowenter":
case "onrowexit":
case "onrowsinserted":
case "onstart":
case "onscroll":
case "onbeforeeditfocus":
case "onactivate":
case "onbeforedeactivate":
case "ondeactivate":
case "type":
case "codebase":
ret.objAttrs[args[i]] = args[i+1];
break;
case "width":
case "height":
case "align":
case "vspace":
case "hspace":
case "class":
case "title":
case "accesskey":
case "name":
case "id":
case "tabindex":
ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
break;
default:
ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
}
}
ret.objAttrs["classid"] = classid;
if (mimeType) ret.embedAttrs["type"] = mimeType;
return ret;
}
</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','770','heigh t','228','title','hoodcityent','src','http://www.hoodcity.vndv.com/images/','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','http://www.hoodcity.vndv.com/images/hoodcityent', 'wmode', 'transparent' ); //end AC code
</script><noscript><object type="application/x-shockwave-flash" width="770" height="228" data="http://www.hoodcity.vndv.com/images/hoodcityent.swf">
<param name="movie" value="http://www.hoodcity.vndv.com/images/hoodcityent.swf" /><param name="wmode" value="transparent" /></object></noscript>
</body>
</html>
|
|
|
|
11-12-2008, 11:10 AM
|
Re: Flash Problems w/ IE
|
Posts: 7
Name: Remo
|
Don't know why its working for you. I copied it and saved what you posted through notepad and CoffeCup HTML Editor 2008. It comes up blank, tried doing a little tweaking on top of that and still doesn't work. I hope its not just a case of me being lost since I do have a pretty good idea of whats going on.
|
|
|
|
11-12-2008, 11:18 AM
|
Re: Flash Problems w/ IE
|
Posts: 135
Name: Darko Krsmanovic
Location: Belgrade
|
my typo, sorry:
you need to fix this from above code: 'movi e' should say 'movie'
<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','770','heigh t','228','title','hoodcityent','src','http://www.hoodcity.vndv.com/images/','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','http://www.hoodcity.vndv.com/images/hoodcityent', 'wmode', 'transparent' ); //end AC code
</script><noscript><object type="application/x-shockwave-flash" width="770" height="228" data="http://www.hoodcity.vndv.com/images/hoodcityent.swf">
<param name="movie" value="http://www.hoodcity.vndv.com/images/hoodcityent.swf" /><param name="wmode" value="transparent" /></object></noscript>
</body>
Last edited by djura; 11-12-2008 at 11:19 AM..
|
|
|
|
11-12-2008, 02:39 PM
|
Re: Flash Problems w/ IE
|
Posts: 10,017
Location: Tennessee
|
DREAMWEAVER's AS script doesn't always work properly.
Check in the stickies for other methods for putting flash on your page without the need for the <embed> tag.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
Please login or register to view this content. Registration is FREE
Please login or register to view this content. Registration is FREE
|
|
|
|
11-12-2008, 09:34 PM
|
Re: Flash Problems w/ IE
|
Posts: 7
Name: Remo
|
Thanks.. didn't even notice that. Well thats one problem overcame, now how do I go about getting it back into the position where it was before which was centered... as well as removing the loop.
Last edited by DankDesign; 11-12-2008 at 09:37 PM..
|
|
|
|
11-13-2008, 11:56 AM
|
Re: Flash Problems w/ IE
|
Posts: 135
Name: Darko Krsmanovic
Location: Belgrade
|
well you place it in the same container you did before, regarding looping it is controlled inside .swf file, you place stop(); on your last key frame...
|
|
|
|
11-13-2008, 08:35 PM
|
Re: Flash Problems w/ IE
|
Posts: 7
Name: Remo
|
Quote:
Originally Posted by djura
well you place it in the same container you did before, regarding looping it is controlled inside .swf file, you place stop(); on your last key frame...
|
It is in the same container. Fixed the loop, but the size is still well off. Its still shrunk like 10%. Once again, thanks for all the advice, just this last thing and I should be okay.
|
|
|
|
11-14-2008, 05:49 AM
|
Re: Flash Problems w/ IE
|
Posts: 135
Name: Darko Krsmanovic
Location: Belgrade
|
You have some errors in code like:
'heigh t',
When I paste the code here it gives some spacing in "movi e" "heigh t" etc.
So I will upload the code somewhere else, here is the link:
http://www.greenfish.rs/Untitled-1.html
|
|
|
|
|
« Reply to Flash Problems w/ IE
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|