mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-04 15:14:49 +00:00
run.swf source
This commit is contained in:
10
libsrc/ffdec_lib/testdata/run_as3/Run.as
vendored
Normal file
10
libsrc/ffdec_lib/testdata/run_as3/Run.as
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
package {
|
||||
|
||||
public class Run {
|
||||
|
||||
public static function run():*
|
||||
{
|
||||
return "Test";
|
||||
}
|
||||
}
|
||||
}
|
||||
44
libsrc/ffdec_lib/testdata/run_as3/RunMain.as
vendored
Normal file
44
libsrc/ffdec_lib/testdata/run_as3/RunMain.as
vendored
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
libsrc/ffdec_lib/testdata/run_as3/run.fla
vendored
Normal file
BIN
libsrc/ffdec_lib/testdata/run_as3/run.fla
vendored
Normal file
Binary file not shown.
49
libsrc/ffdec_lib/testdata/run_as3/run.html
vendored
Normal file
49
libsrc/ffdec_lib/testdata/run_as3/run.html
vendored
Normal 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>
|
||||
Reference in New Issue
Block a user