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);
}
Embeded SWF loading event
-
well... I know this place has pretty much been killed by the admins and is
in it's death throes but oh well. I'm trying to use Embed SWFs in a project
for ...
2 weeks ago
0 comments:
Post a Comment