Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getURL problem

Status
Not open for further replies.

pattyc

Programmer
Aug 15, 2006
16
US
I'm using Flash Pro 8 on Win XP.

In my Flash document, I have made several empty movie clips that act like buttons. When one is clicked, I want a local file to be opened (might be a .txt file, for instance).

I set each movieclip's onRelease event to a function that just does:

getURL("file://c:/dev/flash/file.txt", "_blank");

If I do Control->Test Movie, it works - the file opens in a new browser window when I click the button. But when I run the html file in the browser (IE and Firefox), nothing happens when I click the button. I have noticed that getURL works with files that are in the same directory as the Flash files (url=" or url="/flash/file.txt"), but I need it to work with any file on my c drive.
 
Well it doesn't work on either browser for me.

Could this be a security issue in Flash 8?

Any suggestions?
 
Maybe it's not a Flash security issue because I added the folder for a particular doc in the security settings, and it still didn't open.

Could this be a browser security issue?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top