mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-08 11:48:17 +00:00
Export subclasses stubs to be compiled by Flex too.
WIP: merging ABCs Test data (flexedit) with simple class hierarchy
This commit is contained in:
24
libsrc/ffdec_lib/testdata/flexedit/Main.as
vendored
Normal file
24
libsrc/ffdec_lib/testdata/flexedit/Main.as
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
package {
|
||||
|
||||
import flash.display.MovieClip;
|
||||
import flash.text.TextField;
|
||||
import pkg.MyClass;
|
||||
|
||||
|
||||
public class Main extends MovieClip {
|
||||
|
||||
private var mc:MyClass;
|
||||
|
||||
|
||||
public function Main() {
|
||||
this.mc = new MyClass(5);
|
||||
var display_txt:TextField = new TextField();
|
||||
display_txt.text = "Hello myclass: "+this.mc.getVal()+" char:"+this.mc.getAChar();
|
||||
display_txt.width = 300;
|
||||
addChild(display_txt);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
BIN
libsrc/ffdec_lib/testdata/flexedit/Main.fla
vendored
Normal file
BIN
libsrc/ffdec_lib/testdata/flexedit/Main.fla
vendored
Normal file
Binary file not shown.
49
libsrc/ffdec_lib/testdata/flexedit/Main.html
vendored
Normal file
49
libsrc/ffdec_lib/testdata/flexedit/Main.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>Main</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="Main" align="middle">
|
||||
<param name="movie" value="Main.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="Main.swf" width="550" height="400">
|
||||
<param name="movie" value="Main.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>
|
||||
BIN
libsrc/ffdec_lib/testdata/flexedit/Main.swf
vendored
Normal file
BIN
libsrc/ffdec_lib/testdata/flexedit/Main.swf
vendored
Normal file
Binary file not shown.
17
libsrc/ffdec_lib/testdata/flexedit/pkg/MyClass.as
vendored
Normal file
17
libsrc/ffdec_lib/testdata/flexedit/pkg/MyClass.as
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
package pkg {
|
||||
|
||||
public class MyClass extends ParentClass {
|
||||
|
||||
private var val:int;
|
||||
|
||||
public function MyClass(val) {
|
||||
this.val = val;
|
||||
}
|
||||
|
||||
public function getVal():int{
|
||||
return this.val;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
11
libsrc/ffdec_lib/testdata/flexedit/pkg/ParentClass.as
vendored
Normal file
11
libsrc/ffdec_lib/testdata/flexedit/pkg/ParentClass.as
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
package pkg {
|
||||
|
||||
public class ParentClass extends ParentParentClass {
|
||||
|
||||
public function ParentClass() {
|
||||
// constructor code
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
22
libsrc/ffdec_lib/testdata/flexedit/pkg/ParentParentClass.as
vendored
Normal file
22
libsrc/ffdec_lib/testdata/flexedit/pkg/ParentParentClass.as
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
package pkg {
|
||||
|
||||
public class ParentParentClass {
|
||||
|
||||
//Reference to subclass: (circular reference)
|
||||
private var other:ParentClass;
|
||||
|
||||
public function ParentParentClass() {
|
||||
// constructor code
|
||||
}
|
||||
|
||||
public function setOther(other:ParentClass){
|
||||
this.other = other;
|
||||
}
|
||||
|
||||
public function getAChar():String{
|
||||
return "A";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user