Solved

AC_FL_RunContent gives me a 'Error: Syntax Error' in IE

Posted on 2009-04-02
10
1,263 Views
Last Modified: 2013-12-08
I get the error on my home page (have a flash file there)...don't get the error in Firefox...it loads fine, etc...what should I do?
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','650','height','150','src','Flash/cenetheader','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','Flash/cenetheader' ); //end AC code

Open in new window

0
Comment
Question by:cenetadmin
  • 4
  • 4
10 Comments
 
LVL 19

Expert Comment

by:v2Media
Comment Utility
Not enough detail in the question to offer any help.
0
 

Author Comment

by:cenetadmin
Comment Utility
what else do I need to provide?  Below is some of the code from the page...
When I run this page from visual studio (default.html), and browse it from IE I get: Line 69, char: 1 Error: Object expected Code: 0 it is this line with the AC_FL_RunContent on it.
                                    
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','650','height','150','src','Flash/cenetheader','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','Flash/cenetheader' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="650" height="150">
  <param name="movie" value="Flash/cenetheader.swf" />
  <param name="quality" value="high" />
  <embed src="Flash/cenetheader.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="650" height="150"></embed>
</object>
</noscript>
0
 
LVL 19

Expert Comment

by:v2Media
Comment Utility
OK, so if you view it in another browser, such as firefox, do you get the same error?

Object expected error could mean anything. Is the AC javascript file included in the page anywhere?
0
 

Author Comment

by:cenetadmin
Comment Utility
in development mode...(visual studio)...if I attempt to browse to IE...I get the error...If I use Firefox I get no errors...
if I publish the project to my development server and run the site...I get no errors and the flash appears.
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:cenetadmin
Comment Utility
I have the AC_RunActiveContent.js file at the root of the project. It has the AC_FL_RunContent function in it.
0
 
LVL 19

Expert Comment

by:v2Media
Comment Utility
Did you include the js file somewhere in the code before the call to AC_RunActiveContent()?

for eg: -
<script language="javascript" type="text/javascript" src="AC_RunActiveContent.js"></script>

<script type="text/javascript">

AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','650','height','150','src','Flash/cenetheader','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','Flash/cenetheader' ); //end AC code

</script>

<noscript>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="650" height="150">

  <param name="movie" value="Flash/cenetheader.swf" />

  <param name="quality" value="high" />

  <embed src="Flash/cenetheader.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="650" height="150"></embed>

</object>

</noscript>

Open in new window

0
 

Author Comment

by:cenetadmin
Comment Utility
I have this:

<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
</head>
0
 
LVL 19

Accepted Solution

by:
v2Media earned 500 total points
Comment Utility
OK - so are the files in that location on the server?  The reason I'm persisting on this point is because that error message is what you get when the browser doesn't get the external js file. You should have: -

default.html
Scripts/AC_RunActiveContent.js
Flash/cenetheader.swf

...on the test/live server including cAsE sEnSitIviTy?

Another common reason is a dinked flash plug-in for IE. Check that the flash plugin for IE is the latest version and that it's enabled. If a plug-in crashes IE a few times, it might get disabled. To check that flash is working properly in IE, load the swf directly in the browser address bar http://localhost/siteFolder/Flash/cenetheader.swf. Do the same with your JS file to ensure IE is finding the file http://localhost/siteFolder/Scripts/AC_RunActiveContent.js

After checking these things, if the error persists, I'd need to see the page myself to debug. If you have live server space somewhere, please upload it and post a link.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to how to record live broadcast.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now