Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-25-2011, 11:40 AM   PM User | #1
howie2009
Regular Coder

 
howie2009's Avatar
 
Join Date: May 2009
Location: Ireland
Posts: 202
Thanks: 37
Thanked 0 Times in 0 Posts
howie2009 is an unknown quantity at this point
preloader hangs at 5% when embedded in CMS

Hi Guys,
I use a commercial quiz application that generates the quiz as a self contained swf i.e no xml. When I embed the swf into a template in the CMS I use i.e. Modx Revo, the preloader only loads to 5% in IE and Chrome and to 90% in Firefox. So if i navigate to http://samplesite.com/index.php?id=20 in which the swf is embeded the above happens. If I use an iframe to embed the swf it all work fine?

Strangely if i navigate to the swf directly say http://samplesite.com/flashfiles/sample.swf that same swf opens fine and the preloader works fine.


This works:
Code:
<iframe width="720" height="540" src="uploads/sample.swf" frameborder="0"></iframe>
This doesn't: (and i have tried embedding using swfobject and absolute urls also)

Code:
<script language="javascript">

function writeSwf(movie, width, height) {
  document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + width + '" height="' + height + '" ID="sf" VIEWASTEXT>');
  document.write('  <param name="movie" value="' + movie + '" />');
  document.write('  <param name="quality" value="high" />');
  document.write('  <param name="wmode" value="window" />');
  document.write('  <param name="allowScriptAccess" value="always" />');
  document.write('  <param name="allowFullScreen" value="true" />');
  document.write('  <embed src="' + movie + '" quality="high" name="sf" allowScriptAccess="always" allowFullScreen="true" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '" />');
  document.write('</object>');
}
  writeSwf("uploads/sample.swf", 720, 540);
</script>
any ideas? Additional param maybe? The above embed code is what the manufacturer uses. I guess its a preloader issue as I can embed youtube videos without issue.

Thanks

Last edited by howie2009; 06-25-2011 at 11:44 AM..
howie2009 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:46 PM.


Advertisement
Log in to turn off these ads.