Running flash links offline

60 Views Asked by At

I have a flash file with some buttons, which open some http links using navigateToURL.

For example:

btn1.addEventListener(MouseEvent.CLICK, openPage)

function openPage(e:Event)
{
   navigateToURL(new URLRequest("http://www.google.com"), "_blank")
}

It works fine on server, but when I try to run it offline/local, it does not open any link or shows any security info box.

My client needs to copy the whole website on a DVD and the buttons must open the live links(http).

Please help.

1

There are 1 best solutions below

0
scottysmalls On

Try changing the local playback security in Publish Settings:

By default, usually "Access local files only" is selected. This will prevent network locations from being accessed. Selecting 'Access network only' should fix the problem. If you need both, further instructions can be found in the docs

enter image description here