View Full Version : Download trigger within a SWF-file (flash 8)
DIMITRI
03-22-2006, 05:18 PM
Hi there. How can you make a button that triggers a download of a file? Which actionscript is needed? In comparison : within Dreamweaver you simply point to a file so that your button in HTML (not in a swf-file) is linked with a file to download. But how you can fix that within a swf-file placed on a webpage?
_Aerospace_Eng_
03-23-2006, 11:25 AM
If you have the fla file you can put a button anywhere in the fla file in any frame you want, preferably the the first frame. Then click on the button, should get a border around it, go to the actionscript panel, and use
on(release){
getURL("yourfile.exe","_self","POST");
}
for the actionscript.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.