Solved

Flash - opening URL's when viewing locally

Posted on 2009-05-05
4
175 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

615 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