test fla/swfs

This commit is contained in:
Jindra Petřík
2021-03-08 12:56:40 +01:00
parent 1a4d845b1a
commit e8f40eb9bf
8 changed files with 55 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -16,7 +16,7 @@
</define>
<define append="true">
<name>CONFIG::timeStamp</name>
<value>'28.02.2021'</value>
<value>'08.03.2021'</value>
</define>
<define append="true">
<name>CONFIG::air</name>

View File

@@ -16,7 +16,7 @@
</define>
<define append="true">
<name>CONFIG::timeStamp</name>
<value>'28.02.2021'</value>
<value>'08.03.2021'</value>
</define>
<define append="true">
<name>CONFIG::air</name>

View File

@@ -21,6 +21,7 @@ package
TestChainedAssignments;
TestComplexExpressions;
TestContinueLevels;
TestCompoundAssignments;
TestDecl2;
TestDeclarations;
TestDeobfuscation;

View File

@@ -0,0 +1,52 @@
package tests
{
public class TestCompoundAssignments
{
private var attr :int = 0;
public function calc():int{
return 5;
}
public function run():void
{
/*var b:* = [10,20,30];
var a:int = 0;
trace("a += 5");
a += 5;
b[calc()] = b[calc()] + 2;
var t:MyTest = new MyTest();
trace("t.attr += 5");
t.attr *= 10;
trace("attr += 5");
attr -= 5;
trace("arr[2] += 5");
b[2] += 5;
trace("arr[call()] += 5");
b[calc()] /= 5;
b[calc()][calc()] &= 10;
try{
trace("in try");
}catch (e:Error){
trace(e.message);
} */
var a:int = 0;
trace(a += 10);
}
}
}
class MyTest {
public var attr:int = 0;
}