If I create a simple fla and class file, where the fla has one line:
var myTest:Test = new Test();
and the class file has:
package
{
import flash.display.Sprite;
public class Test extends Sprite
{
public function Test()
{
this["ab"] = "stri";
trace(this["ab"]);
}
}
}
is gives the 1056 error. Now this is a simplistic example, but I need to use dynamic variable names. What is disturbing is that in my actual code, before I made some seemingly unrelated changes, using the this[] word worked perfectly fine. Are there some conditions that would make this stop working suddenly? I was a little surprised to replicate the error in this simple example, so I can’t understand how it ever seemed to work in the first place in my real code