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...Skins, Themes, ...Skins, Themes, ...Inserting Flash (swf) file as a Logo/header ?Inserting Flash (swf) file as a Logo/header ?
Previous
 
Next
New Post
12/7/2006 12:34 AM
 

I tried to insert a flash file as my site's default logo, the file was uploaded but it was not displayed in the page,

i tried the insert it in  skin ascx file (using the below tag), while both removing and keeping the [LOGO] usercontrol and insterting an html tag 

<embed pluginspage=http://www.macromedia.com/go/getflashplayer src='/Portals/0/flash.swf' Align='Middle' Width='276px' Height='86px' type=application/x-shockwave-flash bgcolor='' salign='LT' quality='high' menu='false' loop='false'></embed>

The flash did apear if I type the domain only without the file extension but if i go to another page and and the url has an aspx extension then the flash apears as blank.

I am aware if I install media module or FCKeditor, it would work but i would like to have a permament flash log in the skin.

any suggestions ?

thanks in advance!

 
New Post
12/8/2006 7:25 AM
 

This standard code will insert a flash file located in the skin folder into the page, it includes the <%= skinpath %> directive so it can be placed into an .ascx file.  To use it in an html file, remove the two skinpath directives:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="780" height="177"><param name="movie" value="<%= SkinPath %>flashfile.swf"><param name="quality" value="high"><embed src="<%= SkinPath %>flashfile.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="780" height="177"></embed></object>

Note, however, that with IE you'll get the "click here to activate and use this control" message. There's a way around that by using a javascript helper.

 

 
New Post
12/8/2006 2:46 PM
 

Thanks!

I just tied it and it works seamlessly, both on IE and Firefox.

It is a banner-like swf file so it does not need a JavaScript helper, if in future I need it to will certainly add it.

 
New Post
12/11/2006 11:29 AM
 

I would be interested in the JavaScript that blocks that annoying IE message in Flash. Can you point me in the right direction for that?

 

 
New Post
12/15/2006 7:00 AM
 
MaDMiKe420 wrote

I would be interested in the JavaScript that blocks that annoying IE message in Flash. Can you point me in the right direction for that?

 

Here's a link: http://www.kirupa.com/developer/flash8/flash_fix.htm - Note that after running through the skin parsing engine you'll need to add the skinpath directive to the "var fo = new FlashObject" line in your .ascx file.

So, your flash embed .ascx code will change from something like this:
<div><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="Header" align="middle" height="190" width="730"> <param name="allowScriptAccess" value="sameDomain"> <param name="movie" value="<%= SkinPath %>Header.swf"> <param name="quality" value="high"> <param name="wmode" value="transparent"> <param name="bgcolor" value="#eeeee6">
      <embed src="<%= SkinPath %>Header.swf" quality="high" bgcolor="#eeeee6" name="Header" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" align="center" height="190" width="730"></object></div>


To this:
<script type="text/javascript" src="<%= SkinPath %>flashobject.js"></script>
<div id="flashcontent" style="width: 730px; height: 190px"></div>
<script type="text/javascript">
var fo = new FlashObject("<%= SkinPath %>Header.swf", "animationName", "730", "190", "6", "#EEEEE6");
fo.addParam("allowScriptAccess", "sameDomain");
fo.addParam("quality", "high");
fo.addParam("scale", "noscale");
fo.addParam("loop", "false");
fo.write("flashcontent");
</script>

Works great.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Inserting Flash (swf) file as a Logo/header ?Inserting Flash (swf) file as a Logo/header ?


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