Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Flash HeaderPaneFlash HeaderPane
Previous
 
Next
New Post
4/22/2009 12:58 AM
 

Hey Everyone,

I can't get a flash header to work on my .ascx page. I'm not sure if it's supposed to work, but the coding I have for it is posted below. Let me know of any initial reactions and thanks in advance.

 

<script href="../../../../js/AC_RunActiveContent.js" type="text/javascript"></script>
<div class="container">
    <div class="header">
    <div class="headerflash" id="HeaderPane" runat="server" visible="true">
      <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1000','height','260','title','Golf Club of Illinois - Algonquin, IL','src','gci_flash','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','gci_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=9,0,28,0" width="1000" height="260" title="Golf Club of Illinois - Algonquin, IL">
        <param name="movie" value="gci_flash.swf" />
        <param name="quality" value="high" />
        <embed src="gci_flash.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1000" height="260"></embed>
      </object>
    </noscript></div>
    </div>

 
New Post
4/22/2009 7:00 AM
 

I haven't used AC_RunActiveContent.js (I use swfobject), but the same problems usually surface. The main area is to get all the paths right. Here, all paths are relative to the displayed page (which is something like http://yourdomain.com/Default.aspx omitting all the "fluff" like TabID etc.), not relative to the location where your skin is (usually Website/Portals/_default/Skins/yourSkin).

This means, your gci_flash.swf file is supposed to be at http://yourdomain.com/gci_flash.swf, which is the root of your website (in the /Website folder). You can try and open it directly with your browser to verify that everything is in the correct location. 

Then your AC_RunActiveContent.js file (which I think is causing the problem) is supposed to be 4 levels up from http://yourdomain.com/Default.aspx  which really isn't possible. You may need to adjust this path - you can always try to open it directly in your browser (eg. http://yourdomain.com/js/AC_RunActiveContent.js, which would require "<script href="js/AC_RunActiveContent.js" type="text/javascript"></script>" if your /Website folder contains a js folder with AC_RunActiveContent.js). Hope this helps...

 
New Post
4/22/2009 7:31 PM
 

Mike, and anyone else with a valid opinion to this problem.

I edited the text and ended up with the following code. Everything worked fine, and then the flash header just disappears more than half the time. It seems like once in awhile when I open a new browser it's there and then.... gone. Any ideas?

 

<script src="../js/AC_RunActiveContent.js" type="text/javascript"></script>
   
<div class="container">
    <div class="header">
    <div class="headerflash" id="HeaderPane" runat="server" visible="true">
      <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1000','height','260','title','Golf Club of Illinois - Algonquin, IL','src','gci_flash','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','gci_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=9,0,28,0" width="1000" height="260" title="Golf Club of Illinois - Algonquin, IL">
        <param name="movie" value="gci_flash.swf" />
        <param name="quality" value="high" />
        <embed src="gci_flash.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1000" height="260"></embed>
      </object></noscript></div>
  </div>

 
New Post
4/22/2009 9:35 PM
 

Ah yes, things don't always go quite smoothly...  I had my share of problems too. While I'm not a Flash expert, you could try without AC_FL_RunContent and just use the <object ....> code that you currently have in the <noscript> tag. If using just the plain <object> works better, that could mean it's a problem with AC_FL_RunContent.

Then also, maybe things are overlapping/overlaying each other - try another browser, maybe results are different - anything can provide a clue.

Last, I found that the wmode parameter set to transparent can "fix" things (again, not a Flash expert here).

Hope this helps a bit. 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Flash HeaderPaneFlash HeaderPane


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out