mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-25 02:57:28 +00:00
testdata
This commit is contained in:
BIN
libsrc/ffdec_lib/testdata/as2/as2.fla
vendored
BIN
libsrc/ffdec_lib/testdata/as2/as2.fla
vendored
Binary file not shown.
BIN
libsrc/ffdec_lib/testdata/as2/as2.swf
vendored
BIN
libsrc/ffdec_lib/testdata/as2/as2.swf
vendored
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
class com.jpexs.flash.test.testcases.TestCallSetterGetter {
|
||||
class com.jpexs.flash.test.testcases.TestCallSetterGetter {
|
||||
public var myobj : com.jpexs.flash.test.testcases.TestSetterGetter;
|
||||
|
||||
public function testSetterCall(){
|
||||
@@ -9,10 +9,10 @@ class com.jpexs.flash.test.testcases.TestCallSetterGetter {
|
||||
}
|
||||
|
||||
public function testStatGetterCall() : Number {
|
||||
return com.jpexs.flash.test.testcases.TestSetterGetter.mystatvar;
|
||||
return com.jpexs.flash.test.testcases.TestSetterGetter.mystvar;
|
||||
}
|
||||
|
||||
public function testStatSetterCall(val:Number) {
|
||||
com.jpexs.flash.test.testcases.TestSetterGetter.mystatvar = 6;
|
||||
com.jpexs.flash.test.testcases.TestSetterGetter.mystvar = 6;
|
||||
}
|
||||
}
|
||||
@@ -1,34 +1,39 @@
|
||||
class com.jpexs.flash.test.testcases.TestSetterGetter {
|
||||
class com.jpexs.flash.test.testcases.TestSetterGetter {
|
||||
|
||||
private var priv_myvar:Number;
|
||||
private var _myvar = 1;
|
||||
|
||||
private static var priv_mystatvar: Number;
|
||||
private static var _mystvar = 2;
|
||||
|
||||
private var priv_myreadonly : Number = 1;
|
||||
private var _myvarsetonly = 3;
|
||||
|
||||
private var priv_mywriteonly : Number = 2;
|
||||
private var _myvargetonly = 4;
|
||||
|
||||
|
||||
public static function get mystvar(){
|
||||
return _mystvar;
|
||||
}
|
||||
|
||||
public static function set mystvar(val){
|
||||
_mystvar = val;
|
||||
}
|
||||
|
||||
public function get myvar(){
|
||||
return this.priv_myvar;
|
||||
return _myvar;
|
||||
}
|
||||
|
||||
public function set myvar(val){
|
||||
this.priv_myvar = val;
|
||||
_myvar = val;
|
||||
}
|
||||
|
||||
public static function get mystatvar(){
|
||||
return TestSetterGetter.priv_mystatvar;
|
||||
public function get myvargetonly(){
|
||||
return this._myvargetonly;
|
||||
}
|
||||
|
||||
public static function set mystatvar(val:Number){
|
||||
TestSetterGetter.priv_mystatvar = val;
|
||||
public function set myvarsetonly(val){
|
||||
this._myvarsetonly = val;
|
||||
}
|
||||
|
||||
public function get myreadonly(){
|
||||
return this.priv_myreadonly;
|
||||
}
|
||||
|
||||
public function set mywriteonly(val:Number) {
|
||||
this.priv_mywriteonly = val;
|
||||
public function classic(){
|
||||
trace("okay");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user