Solved

Help with FLASH

Posted on 2003-11-13
2
189 Views
Last Modified: 2010-04-03
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
0
Comment
Question by:sidpgo
2 Comments
 
LVL 23

Accepted Solution

by:
adilkhan earned 100 total points
ID: 9745040
Then you have to ZIP up your Word Document's. http://www.winZip.com.
0
 

Expert Comment

by:pheva
ID: 9769405

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
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now