PDA

View Full Version : IE won't display SWFObject


Flash Gordon
06-05-2007, 06:46 AM
Hey,

I have seemed to hit some kind of setting in IE where it won't read the SWFObject Javascript any longer. I have flash installed and it will play flash any other way other than the SWFObject.

Anyone know what happened to my IE?

astgtciv
06-05-2007, 06:49 AM
Did you disable your javascript, FG? :)

Which IE is it, anyway? Will it play flash with an <embed> only (cuz I think SWFObject only spits out an <embed>)?

Flash Gordon
06-05-2007, 07:27 AM
No no....it will read and execute JS. Just not the SWFObject. It will read and display the default JS code when you publish with Dreamweaver or Flash, but I want to use SWFObject. I'm passing some flash_vars and I'd rather do it that way.

IE version 7.0.5730.11

astgtciv
06-05-2007, 08:24 AM
Haven't played with IE 7 yet, so can't tell what's going on there... :) As I said, try embedding with just the <embed> tag (no <object> tag) and see if that works (it should normally, and I think that's what SWFObject produces (no <object> tag). Maybe you disabled <embed> tag embedding? Hmm no, that's too odd....

Flash Gordon
06-05-2007, 08:30 AM
yeah it works with just embed.

astgtciv
06-05-2007, 08:37 AM
Hm.. then chances are something very silly is happening with the way you are using SWFObject. Are you saying the very same html page with the SWFObject embed will work in FF, but not in IE7?

Flash Gordon
06-05-2007, 08:39 AM
(link removed for client reasons)

You can try it with IE. It works for other people in IE, just not me. And yea it work in FF for me.

5566
06-05-2007, 08:54 AM
works well for me

http://www.huubali.com/

astgtciv
06-05-2007, 08:55 AM
Worked in IE6. I see you are using FlashObject (v1.3d), which is way outdated, I think the current SWFObject is up to 1.4.4. I think updating your SWFObject is definitely a good thing to do :)

Flash Gordon
06-05-2007, 08:58 AM
I tired that too and it still didn't fix it :( <-- he looks more pissed off and angry than sad.

It must be some freak IE setting I hit by accident.

works well for me

http://www.huubali.com/
Doesn't work for me in IE ok in FF

Flash Gordon
06-05-2007, 09:02 AM
btw, that adover website is incredible. I haven't seen anything like it. Great job!

astgtciv
06-05-2007, 09:10 AM
Well then reset your IE settings to default and start over :p

btw, that adover website is incredible. I haven't seen anything like it. Great job!

thanx! i wish i had more free time to add the features i want to it :eek:

This emoticon set really doesn't have a sad face, kinda amuzing... you can't be sad on as.org anymore, only happy (various shades of happy - smily-happy, moronic-drool-happy, etc.), pissed off (a little angry or really pissed off), and surprised/loony (what's-going-on-suprised, i-am-scared-surprised, is-someone-behind-me-surprised, etc.).

Flash Gordon
06-05-2007, 09:26 AM
Well then reset your IE settings to default and start over I reset the browser, but I still get nothing:
http://support.microsoft.com/default.aspx/kb/936213

oh well...who needs IE anyway.



thanx! i wish i had more free time to add the features i want to it

You'll be saying that about different projects for the rest of your life. Funny how little time we really have.


This emoticon set really doesn't have a sad face, kinda amuzing... you can't be sad on as.org anymore, only happy (various shades of happy - smily-happy, moronic-drool-happy, etc.), pissed off (a little angry or really pissed off), and surprised/loony (what's-going-on-suprised, i-am-scared-surprised, is-someone-behind-me-surprised, etc.).

HA! I like the various shades of supprised
:D <- X-mas good present suprised
:) <- I just went to the dentist and my teeth are surprisenly white
:o <- AHHHH! Who just bite my leg?
:confused: <- Dude....where's my car?

and i can't post more than 4 in one post....

astgtciv
06-05-2007, 09:53 AM
Well if you really want to see what's going on, you can inject a couple of alert statements into swfobject.js. I remember once i had it outputting stuff to a textfield in the html (because alert limited the length of what i wanted to display) when debugging something with swfobject in IE. Do you get a javascript error when running it in your IE or just... NOTHING?

Flash Gordon
06-05-2007, 07:22 PM
no errors, I just get Nothing. It doesn't even replace the text in the <div /> holder.

astgtciv
06-06-2007, 05:07 AM
Wow... and yet you have javascript turned on, right... if you just put


<script language="javascript">
alert('bang!');
</script>


It will execute? Maybe you should just write to Geoff (deconcept) and ask him his opinion as this is pretty mysterious :)

Flash Gordon
06-06-2007, 05:17 AM
yup this runs great in IE:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>player</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<body bgcolor="#c9c5a4">
<!--url's used in the movie-->
<!--text used in the movie-->
<!--
0:00
-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
'width', '722',
'height', '640',
'src', 'player',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'player',
'bgcolor', '#c9c5a4',
'name', 'player',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'player',
'salign', ''
); //end AC code
}
</script>

</body>
</html>


But SWFObject just won't display.

Weird.

I'll try reseting IE back to the defaults again. Then maybe I'll contact deconcept....couldn't hurt.

astgtciv
06-06-2007, 06:35 AM
And you tried updating to the latest SWFObject (1.5), right?

In fact, the only thing SWFObject does that the above js doesn't do is inject the html into an already existing <div>.
Try running the following:


<div id="testDiv">Is text replaced?</div>
<script language="javascript">
document.getElementById("testDiv").innerHTML = "The text is replaced!!!";
</script>

Flash Gordon
06-06-2007, 06:39 AM
yup, works.

and yea with the new SWFObject 1.5 I still have the same issue