homepage Welcome to WebmasterWorld Guest from 54.197.183.230
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
Possible Flash / AC RunActiveContent bug?
IE specific issue, flash won't load from a subdir
speedyvespa

5+ Year Member



 
Msg#: 3426384 posted 12:09 am on Aug 20, 2007 (gmt 0)

Hi all,

This is my first post so please excuse me if I trample on any protocols!

My problem is this: I want to store all my Flash movies in a different (sub)directory to the index.html that calls it. It works fine if I don't install the AC_RunActiveContent 'fix' from Adobe. However, once I place the javascript in my code, it doesn't load.

This is my layout:

http://example.com/mydir/index.html
http://example.com/mydir/AC_RunActiveContent.js

http://example.com/mydir/private/flash.swf
http://example.com/mydir/AC_RunActiveContent.js (<< placed in here to see if this fixes the issue)

My index.html:


<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>Title</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
</head>
<body bgcolor="#eeeeee">
<div align="center">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- 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','996',
'height','619',
'id','private/flash.swf',
'align','middle',
'src','private/flash.swf',
'quality','high',
'bgcolor','#eeeeee',
'name','private/flash.swf',
'allowscriptaccess','sameDomain',
'allowfullscreen','false',
'pluginspage','http://www.macromedia.com/go/getflashplayer',
'movie','private/flash.swf'
); //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=8,0,0,0" width="996" height="619" id="private/flash.swf" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="private/flash.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#eeeeee" />
<embed src="private/flash.swf" quality="high" bgcolor="#eeeeee" width="996" height="619" name="private/flash.swf" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
</div>

</body>
</html>

I've tried everything from changing the path to reference from the root dir upwards, and nothing seems to work - when I take the AC_RunActiveContent part out, it loads fine (save for getting the 'Click to active control' message).

Any ideas would be welcome - I've searched the Adobe site and come up with nothing. Is this a bug?

[edited by: engine at 8:40 am (utc) on Aug. 20, 2007]
[edit reason] examplified [/edit]

 

owika

5+ Year Member



 
Msg#: 3426384 posted 8:49 am on Aug 20, 2007 (gmt 0)

Chenge your IDs to 'flash':


<div align="center">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- 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','996',
'height','619',
'id','flash',
'align','middle',
'src','flash',
'quality','high',
'bgcolor','#eeeeee',
'name','flash',
'allowscriptaccess','sameDomain',
'allowfullscreen','false',
'pluginspage','http://www.macromedia.com/go/getflashplayer',
'movie','private/flash'
); //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=8,0,0,0" width="996" height="619" id="flash" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="private/flash.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#eeeeee" />
<embed src="private/flash.swf" quality="high" bgcolor="#eeeeee" width="996" height="619" name="flash" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
</div>

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved