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, ...flash-problem: swfAddress + swfObject in skinflash-problem: swfAddress + swfObject in skin
Previous
 
Next
New Post
4/7/2008 8:37 AM
 

Hi!

i have a flash (actionscript3.0) problem i've tried to solve for some time now.

Basicly, what I want to do is from my flash-file (put in a text/html-module) to get the current url-path from the browser.

It worked fine in Firefox using
urlPath = String(ExternalInterface.call("eval", "window.location.href"));
but in ie6 and ie7 it didn't.. And thats what i need to fix.

I then included swfObject to my skin and to my flashfile. I followed the steps described at    http://www.thinkofdesign.com/Blog/tabid/65/ctl/ArticleView/mid/369/articleId/29/Add-Flash-content-to-your-skins-the-right-way.aspx   This made some things work prettier in IE, but still i wasn't able to get the url-path. Also, one thing i noticed was that query strings sent to flash worked ONE time in IE, but for working again I had to restart IE.. Any idea why then please tell me! If this would work everytime then this could be an alternative way for me instead of getting the whole url-path.

Now I am trying (still in need for current url) to use swfAddress in combination with swfObject, but am not shure how to include this to my skin/container. Is it correct in the <head>-part of my html to put this code:
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript" src="swfaddress.js"></script>
<LINK ID="skin" REL="stylesheet" TYPE="text/css" HREF="skin.css" />
  ?

The two javascript files are put in my skin folder. I tried it but it made my flash content didn't show up at all.. So somewhere there must be mistakes.

I guess this isn't a very common problem but if anyone could help i would be very grateful! I'm new to dnn-skinning and flash-integration so it's quite possible i've made some beginner-mistakes.

 
New Post
4/7/2008 12:00 PM
 

Please note that the flash movie thinks it's location is on the page, which is default.aspx in the root of the website.

Also you will have to inject the path to the swf file.

If the swf is in the skin folder then add

<%=SkinPath%> before the name of the swf in the object / embed

You could also pass the current page Href to the swf from the skin, but the swf should then be able to accept a querystring parameter.

 
New Post
4/10/2008 7:16 AM
 

Thanks Timo for your answer :)

Yes the full path to the swf was there, so that wasn't the problem.

Anyway, I finally made swfAddress work in Firefox (hrm, not in iExplorer..). But after some experimenting with it I realised that its get-functions never returns the full URL (correct me if I'm wrong here).So, I think I skip the swfAddress-idea..

I guess passing the current page Href to the swf from the skin, as you said, is what I have to do. The big problem is that almost nothing like that will work in iExplorer for me.. query strings and flash vars sent directly to the swf will just work once at the moment. Any experiences with this? Maybe I should start a new thread about it.

 
New Post
4/11/2008 5:54 AM
 

In our experience the ony good way is to make a module and upload your new images through the modules. There are thirdparty modules like this around and we are in the process of packaging one too. may be in a couple of months as testing is not done yet.

Otherwise we just advise the customers to use SWF file. it is easy enough to change the images in flash and export again. I think the Flash export creates a lot more efficient swf anyway.

The other method that has worked for me couple of years ago,  is to place your swf file and any associated xml file that swf looks at in your (0) folder and reference them with http://yourdomain.com/portal/0...... Having said that I have not tested this for at least 2 years.

Salar

 
New Post
4/11/2008 2:00 PM
 

How about THIS?

The problem might be that ASP.NET adds stuff to the beginning of your ID's due to the fact that everything on an ASP.NET page is inside a form. If you use the js in the link above it should resolve the DOM-to-DNN mishap in IE. Let me know how it turns out for you. This has been a long-time issue for me too, and really stumped me about a year ago on a project.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...flash-problem: swfAddress + swfObject in skinflash-problem: swfAddress + swfObject in skin


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