Solved

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

Posted on 2009-04-02
10
1,275 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
ID: 24056627
Not enough detail in the question to offer any help.
0
 

Author Comment

by:cenetadmin
ID: 24059377
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
ID: 24065337
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:cenetadmin
ID: 24076987
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
 

Author Comment

by:cenetadmin
ID: 24077013
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
ID: 24225413
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
ID: 24228662
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
ID: 24230054
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

679 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