mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-07 10:08:25 +00:00
Issue #1063 AS3 direct edit - script initializer fix, generating method names
XML export/import fixes Interfaces added to AS3 tests
This commit is contained in:
BIN
libsrc/ffdec_lib/testdata/as3/as3.swf
vendored
BIN
libsrc/ffdec_lib/testdata/as3/as3.swf
vendored
Binary file not shown.
9
libsrc/ffdec_lib/testdata/as3/classes/MyInterface.as
vendored
Normal file
9
libsrc/ffdec_lib/testdata/as3/classes/MyInterface.as
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
package classes {
|
||||
|
||||
public interface MyInterface {
|
||||
|
||||
function interfaceMethod(a:int):int;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
9
libsrc/ffdec_lib/testdata/as3/classes/MyInterface2.as
vendored
Normal file
9
libsrc/ffdec_lib/testdata/as3/classes/MyInterface2.as
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
package classes {
|
||||
|
||||
public interface MyInterface2 extends MyInterface{
|
||||
|
||||
function interface2Method(a:int,b:int):int;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
10
libsrc/ffdec_lib/testdata/as3/classes/Test.as
vendored
10
libsrc/ffdec_lib/testdata/as3/classes/Test.as
vendored
@@ -5,7 +5,7 @@
|
||||
import classes.myInternal;
|
||||
import flash.errors.EOFError;
|
||||
import flash.events.Event;
|
||||
public class Test
|
||||
public class Test implements MyInterface2
|
||||
{
|
||||
private var testPriv:int=5;
|
||||
protected var testProt:int=9;
|
||||
@@ -17,6 +17,14 @@
|
||||
{
|
||||
trace("hello");
|
||||
}
|
||||
|
||||
public function interfaceMethod(a:int):int {
|
||||
return a+1;
|
||||
}
|
||||
|
||||
public function interface2Method(a:int,b:int):int {
|
||||
return a + b;
|
||||
}
|
||||
|
||||
public function testIncDec()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user