run.swf source

This commit is contained in:
honfika@gmail.com
2015-06-05 09:56:10 +02:00
parent 0c32ab01f6
commit b077fd235d
5 changed files with 103 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
package {
public class Run {
public static function run():*
{
return "Test";
}
}
}

View File

@@ -0,0 +1,44 @@
package {
import flash.display.*;
import flash.text.TextField;
import flash.events.MouseEvent;
public class RunMain extends MovieClip {
private var myTextBox:TextField;
public function RunMain() {
myTextBox = new TextField();
myTextBox.text = "";
addChild(myTextBox);
var rectangleShape:Shape = new Shape();
rectangleShape.graphics.beginFill(0xFF0000);
rectangleShape.graphics.drawRect(0, 0, 100, 25);
rectangleShape.graphics.endFill();
var btnTextBox:TextField = new TextField();
btnTextBox.text = "EXECUTE";
var simpleButtonSprite:Sprite = new Sprite();
simpleButtonSprite.name = "simpleButtonSprite";
simpleButtonSprite.addChild(rectangleShape);
simpleButtonSprite.addChild(btnTextBox);
var simpleButton:SimpleButton = new SimpleButton();
simpleButton.upState = simpleButtonSprite;
simpleButton.overState = simpleButtonSprite;
simpleButton.downState = simpleButtonSprite;
simpleButton.hitTestState = simpleButtonSprite;
simpleButton.x = 200;
simpleButton.y = 100;
simpleButton.addEventListener(MouseEvent.CLICK, this.clickListener);
addChild(simpleButton);
}
function clickListener(e:MouseEvent){
myTextBox.text = "Result:" + Run.run();
}
}
}

Binary file not shown.

View File

@@ -0,0 +1,49 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>run</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css" media="screen">
html, body { height:100%; background-color: #ffffff;}
body { margin:0; padding:0; overflow:hidden; }
#flashContent { width:100%; height:100%; }
</style>
</head>
<body>
<div id="flashContent">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="400" id="run" align="middle">
<param name="movie" value="run.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="run.swf" width="550" height="400">
<param name="movie" value="run.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflash">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</body>
</html>