AS3 call EXE?
Copy link to clipboard
Copied
I want to use AS3 call EXE file under HTML,because there was a demo.swf file,but now it has been converted demo.exe,so I wan to play this demo.exe,I use following code to run demo.exe,my class extends Sprite,
fscommand("fullscreen","true");
fscommand("allowscale","false");
fscommand("showmenu","true");
fscommand("exec","demo.exe");
When I run above code,I can't see any information,where is wrong? Thanks
Copy link to clipboard
Copied
1. are you publishing a projector (.exe in windows, .app in mac) file?
2. is demo.exe in an fscommand subdirectory of your projector's directory?
Copy link to clipboard
Copied
Thanks for kglad,
My files are following:
C:\tomcat\webapps\ROOT\test.html
C:\tomcat\webapps\ROOT\test.swf
C:\tomcat\webapps\ROOT\fscommand\demo.exe
If I click test.swf,it can call demo.exe and run well,then I visit test.html by using web,like follows:
It don't show any result this time,the page is blank!!! I don't know where is wrong? How to call EXE files by swf under HTML? Thanks
My html file is follows:
<html>
<head>
</head>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="1000" height="300">
<param name="movie" value="test.swf">
<param name="quality" value="high">
<!--<param name="wmode" value="transparent">-->
<embed src="test.swf" width="1000" height="300" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" allowScriptAccess="always"></embed>
</object>
<body>
</body>
</html>

