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
Solved

Flash - opening URL's when viewing locally

Posted on 2009-05-05
4
172 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to record live broadcast.

856 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