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 17c1cf528d
commit 9c38f4dca1
94 changed files with 1999 additions and 138 deletions

View File

@@ -0,0 +1,32 @@
package tests
{
import tests_other.myInternal;
public class TestNames
{
public function run():*
{
var ns:* = this.getNamespace();
var name:* = this.getName();
var a:* = ns::unnamespacedFunc();
var b:* = ns::[name];
trace(b.c);
var c:* = myInternal::neco;
}
public function getNamespace():Namespace
{
return myInternal;
}
public function getName():String
{
return "unnamespacedFunc";
}
myInternal function namespacedFunc() : void
{
trace("hello");
}
}
}