Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

AS3 call EXE?

Explorer ,
Mar 14, 2011 Mar 14, 2011

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

TOPICS
ActionScript
3.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 14, 2011 Mar 14, 2011

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 14, 2011 Mar 14, 2011
LATEST

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:

http://localhost/test.html

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>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines