Link to home
Start Free TrialLog in
Avatar of sidpgo
sidpgo

asked on

Help with FLASH

Hi,
  I've written a flash page where by which a user can click a hyperlink to download a word document. I've tried using the getURL(<http://filename>).  What currently happens is when the user clicks on the hyperlink FLASH opens a new browser window, ideally what I would like to be able to do is once the user clicks on the hyperlink they are only presented with the option to OPEN or SAVE the file (without a new instance of a browser being opened unless they select "OPEN").

thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of Saqib Khan
Saqib Khan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pheva
pheva


Try publishing your flash file where on the HTML options tab, set the template is set to 'flash with fscommand'. The published HTML file will contain javascript function such as '<movie>_DoFSCommand(command, args)' where <movie> is the name of the published movie.

To envoke the above javascript function, you use the fscommand to pass details to the javascript function. As the function is made up of a 'command' and 'args', use the fscommand such as:

  // Save file
  fscommand("save", "<filespec>");

  // Open file
  fscommand("open", "<filespec>");

You can then edit the javascript function in the published HTML file to save or open your filespec.

Hope this helps,
pheva