PDA

View Full Version : How do you open local files from flash?


beema
05-19-2005, 07:58 AM
This is a pretty simple question.

What is the code to write if I want to click on a button and have it open an external file (like an html file)?

This is for a flash portal being used locally or on a CD. So I have the swf in the main directory, and then say "file.htm" in a subdirectory.

It's urgent because I have to present something tomorrow at 4pm!

Bsouth
06-16-2005, 03:01 PM
You could just do a getURL, but instead of linking to a webpage, just link to the directory that the html file is in.

on (release) {
getURL("yourFolder/yourFile.htm");
}