AS3 test methods separated to classes, Fixed AS3: get/set slot for global scope

This commit is contained in:
Jindra Petřík
2021-01-18 19:14:51 +01:00
parent cdc3eec1f2
commit cade4549fb
94 changed files with 1999 additions and 138 deletions

View File

@@ -0,0 +1,27 @@
package tests
{
public class TestProperty
{
public function run():*
{
var d:* = new TestClass1();
var k:* = 7 + 8;
if (k == 15)
{
d.method(d.attrib * 5);
}
}
}
}
class TestClass1
{
public var attrib:int = 5;
public function method(i:int):int
{
trace("method");
return 7;
}
}