Solved

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

Posted on 2009-04-02
10
1,271 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

I had to do a bit of research to find the answer to this question so I thought I'd share my results.  Due to our outdated mainframe systems, we need to downgrade IE9 to IE8 in order to stay compatible.  We also needed to downgrade Java.  In order to…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

776 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