Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
OnyakTech
CrystalTech Web Hosting™
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Make it Hot! ( ...  flash-problem: swfAddress + swfObject in skin
Previous Previous
 
Next Next
New Post 4/7/2008 6:37 AM
Unresolved
User is offline dnalre
3 posts
10th Ranked


flash-problem: swfAddress + swfObject in skin 

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 10:00 AM
User is offline Timo Breumelhof
1760 posts
5th Ranked




Re: flash-problem: swfAddress + swfObject in skin 

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.


Timo Breumelhof -- www.searchdotnetnuke.com -- Extended DNN (forum) search
 
New Post 4/10/2008 5:16 AM
User is offline dnalre
3 posts
10th Ranked


Re: flash-problem: swfAddress + swfObject in skin 

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 3:54 AM
User is offline Salaro Golestanian
905 posts
www.salaro.com
7th Ranked




Re: flash-problem: swfAddress + swfObject in skin 

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


SalarO

 
New Post 4/11/2008 12:00 PM
User is offline GeoCentric Designs
159 posts
9th Ranked


Re: flash-problem: swfAddress + swfObject in skin 
Modified By GeoCentric Designs  on 4/11/2008 2:02:56 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 Previous
 
Next Next
  Forum  General DotNetN...  Make it Hot! ( ...  flash-problem: swfAddress + swfObject in skin
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DNNhost Scandinavia
SUPER fast QuadCore DELL servers, MSSQL servers, DotNetPanel, daily backup, Check out our customers websites
DNNhost.dk
Personify Design, Inc.
Seattle-based Personify Design has developed customized DotNetNuke websites for a wide range of customers to meet many different types of needs, including distributed authorship across thousands of pages to integrated Verisign e-commerce capabilities.
www.personifydesign.com
DNN Outsourcing
50% more affordable services comparing to Western Europe and US: Custom DotNetNuke module development, skins, consulting, maintainence... Over 15.000 working hours of experience in custom DotNetNuke Solutions development, 8 years experience in outsourcing, excellent references!
www.dnnoutsourcing.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP