import flash.system.fscommand;
import flash.events.MouseEvent;
import flash.system.Capabilities;
btn_pdfnow.addEventListener(MouseEvent.CLICK, open_pdfile);
function open_pdfile(event:MouseEvent):void
{
var os:String = flash.system.Capabilities.os.substr(0, 3);
var url:String;
if(os == "Win"){
url = "file.exe";
}else{
url = "file.app";
}
fscommand("exec",url);
}
Animation I made a bit ago for my webtoon
-
Links YouTube - https://www.youtube.com/watch?v=0JxW8j7HeiQ Newgrounds -
https://www.newgrounds.com/portal/view/1043019
1 day ago
0 comments:
Post a Comment