Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-08-2008, 09:11 PM   #1
theUmGuy
Registered User
 
Join Date: Nov 2007
Posts: 7
Default a "download linked file" option

I would like to create an option for the user to click a button and it will download a linked word file. Any idea how to go about that?

Thank You.
theUmGuy is offline   Reply With Quote
Old 03-08-2008, 09:19 PM   #2
atomic
Banned by AS.org Staff
 
Join Date: Jan 2007
Location: Montréal, Québec
Posts: 14,073
Default

on(release){
getURL("http://www.yourDomain.com/your.doc");
}

Of course replace yourDomain with your server's name and your.doc, with the actual .doc's name.
atomic is offline   Reply With Quote
Old 03-09-2008, 12:30 AM   #3
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

Howdy and Welcome...

That will initiate the download process, but it's the web browser that will choose what to do with the give file type... Most of the times, the web browser will try to open up the file with the associated applications... So, there is a good chance to invoke a program to open up the file rather than the downloading... The easiest way to make the file download is to ZIP up the file and use the getURL() function with it...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 03-09-2008, 03:50 AM   #4
atomic
Banned by AS.org Staff
 
Join Date: Jan 2007
Location: Montréal, Québec
Posts: 14,073
Default

Quote:
Originally Posted by CyanBlue View Post
Howdy and Welcome...

That will initiate the download process, but it's the web browser that will choose what to do with the give file type... Most of the times, the web browser will try to open up the file with the associated applications... So, there is a good chance to invoke a program to open up the file rather than the downloading... The easiest way to make the file download is to ZIP up the file and use the getURL() function with it...
That said, if the document does open up with an associated application, it would be easier to just save it as, from within that opened document, than use a getURL to a zip package, which will be downloaded, but will also need to be de-compressed, so that it can be opened in the same application as above, and then re-saved appropriately somewhere outside of the zip package...
atomic is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Attaching script to a symbol linked in the library (for all instances) softrocker ActionScript 2.0 3 05-26-2005 07:32 AM
Current option slide out when new option selected - HOW? Will Cheyney ActionScript 1.0 (and below) 5 02-08-2005 08:06 AM
Linked Quicktime movs within Movieclips figgs Other Flash General Questions 0 03-26-2003 02:08 PM
including linked movies in preloader :Solved Pluis ActionScript 1.0 (and below) 0 10-08-2002 08:07 AM
Accessibility option - flash6 plug-in? texbala ActionScript 1.0 (and below) 1 08-14-2002 09:40 PM


All times are GMT. The time now is 07:08 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.