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 ...How to successfully embed a Flash menu?How to successfully embed a Flash menu?
Previous
 
Next
New Post
5/31/2006 4:45 PM
 

Ok, first things first... I am using two menus on my DNN site... the horizontal one that is dynamically built from the DNN page system and then a vertical Flash menu in the left pane.  I have figured out how to embed a flash menu using the Text/HTML module and the following code:

<object width="150" height="250">
<param name="movie" value="LeftNavMenu.swf">
<embed src="LeftNavMenu.swf" width="150" height="250">
</embed>
</object>

While the following code works in IE 6 with no problems, if I use Firefox to browse the site, the DNN horizontal sub-menu displays behind the flash, not in front of like it is supposed to.  In IE, it works just fine.

Also, I had the same luck with displaying the Flash menu in an Iframe module.  It works in IE but not in Firefox.

Is there a better way to do this so that the Flash menu displays in back of the horizontal navigation menu in both browsers?

Thanks in advance for any help / recommendations!

 
New Post
5/31/2006 6:46 PM
 

I'd try adding another param:
<param name="WMode" value="transparent">

Hope this helps...

 

 
New Post
5/31/2006 9:32 PM
 

Thank you for the suggestion Sam.  However, it unfortunately didn't help.  Same result.  The quest continues...

Anyone other ideas?

Thanks!

 
New Post
5/31/2006 10:54 PM
 

OK - I have a fix, but it's a little more complicated.  I got an email request on this subject last night, so this will hopefully serve more than one purpose.

I use Flash quite a bit in skinning, and besides that I happen to LIKE Flash.  I recently looked into the Microsoft eolas crap that changed the way inline objects are displayed in IE and found several fixes, most of which require injecting the Flash into a DIV using Javascript.  I settled on the fix I found at Kirupa.com and it works well for me and my esteemed clients.

I used this method this evening to display a Flash file through the Text/HTML module then checked it in FireFox, and the SolPart menu is indeed displayed on top of the Flash - just as you want. It involves uploading a javascript file to the server, so unless you use FTP you'll need to add .js to the 'allowed filetypes' list.

First, go to http://www.kirupa.com/developer/flash8/flash_fix.htm and download the flashobject.js javascript file. Send this to your server. The code that the Kirupa page generates may need to be changed just a bit.  My sample Flash file is named intro.swf and is 155px x 150px.  My working code to enter into the Text/HTML module is:


<script type="text/javascript" src="flashobject.js"></script>

<div id="flashcontent" style="width: 155px; height: 150px"></div>

<script type="text/javascript"> var fo = new FlashObject("intro.swf", "animationName", "155", "150", "8", "#FFFFFF");
fo.addParam("allowScriptAccess", "sameDomain");
fo.addParam("quality", "high");
fo.addParam("scale", "noscale");
fo.addParam("loop", "false");
fo.addParam("WMode", "transparent");
fo.addParam("BGColor", "#FFFFFF");
fo.write("flashcontent");
</script>

The "8" in this code designates the Flash Player version required by the movie.

Hope this helps,

 

 
New Post
6/1/2006 1:24 AM
 

YES!!!  This worked Sam!  Thank you so much for your help.  I implemented the flashobject.js file, made the appropriate configuration changes in the code and walah!  All is good in Firefox now, well, except that Firefox thinks that I am trying to launch a pop up window from the menu items off of the Flash menu, but that will be a whole other topic if I pursue it.

Here is the implementation:

http://www.veriatech.com/SEChristianDev

Not much in the way of content on the site yet other than home page and menu nav structure, but we're getting there... only been at it officially for about 4 days now.

Thanks again for your help Sam!  Great solution!

Dennis

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to successfully embed a Flash menu?How to successfully embed a Flash menu?


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