Hello,
how to use Brackets in OpenFl in this case ?
init( this["mc"+"1"] );
private function init(mc:Sprite) : Void
{
mc.x += 1;
}
Thanks
Hello,
how to use Brackets in OpenFl in this case ?
init( this["mc"+"1"] );
private function init(mc:Sprite) : Void
{
mc.x += 1;
}
Thanks
You can also try:
init (getChildByName ("mc" + "1"));
Reflect.field(this, “mc” + “1”), thanks.