Solved

Flash - opening URL's when viewing locally

Posted on 2009-05-05
4
164 Views
Last Modified: 2013-11-11
I have a flash site that requires to be viewed locally but it has popup javascript window functions on the buttons, the problem is these do not work when viewed locally. Is there anything that can be done about this? I need the popup new window facility to function when viewing offline... oh Flash is published as v.9, but it can be v.8, nothing lower though as I require the filters.

Example of the Javascript i have on the button can be viewed below. The desc.link variable is just the name of the page to be pulled in.
getURL("javascript:openNewWindow('pages/" + desc.link +"','thewin','height=900,width=1100,toolbar=no,scrollbars=yes') ");
 

//Or a static URL would be as follows...
 

getURL("javascript:openNewWindow('pages/example.html"','thewin','height=900,width=1100,toolbar=no,scrollbars=yes') ");

Open in new window

0
Comment
Question by:josh3man
  • 2
4 Comments
 
LVL 20

Expert Comment

by:ChristoferDutz
ID: 24303107
Please correct me if I'm wrong, but I think this might not have anything to do with Flex/Falsh.
I know that some Browsers as the IE run in different modes when accessing "local files"/"remote files"/"https files". I think when you open a HTML-File locally, you can't send data (A get-http-request can contain data) to the net. I think this was done to prevent a lot of CrossSiteScripting attacks. I remember that the only way to send data to the net, when opening a local file, was to exploit an error in Adobes Accrobat which didn't have this restriction in it's own JavaScript Enginge by adding a hidden PDF with JavaScript proxy-code ... I think they wouldn't have gone through the trouble if there was a direct way.
0
 

Author Comment

by:josh3man
ID: 24303142
The web pages i require to open are also local so it doesn't need to access online data, but as you mention with Flash 8+ i think the facility to open browser windows locally is restricted???? I can actually use getURL normally but i want to use the javascript method for various reasons, but im not sure if this is possible?

thanks

Josh
0
 
LVL 20

Accepted Solution

by:
ChristoferDutz earned 75 total points
ID: 24303544
Well in order to controll the Security settings of the Flash player Sandbox, there is an option to add a special policy file to the server you are trying to access.
http://kb2.adobe.com/cps/166/tn_16629.html

I have also found this interesting document ... It's in german though ... maybe you can read it ;-)
http://www.adobe.com/de/devnet/flash/articles/fplayer8_security_07.html
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Change value in a Datagrid 1 38
How to add jQuery and JavaScript(s) into Dreamweaver? 1 247
javascript issues 2 81
Can't play streaming video on event.on24.com 7 198
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to how to record live broadcast.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now