OpenFl and Brackets

Hello,

how to use Brackets in OpenFl in this case ?

init( this["mc"+"1"] );
private function init(mc:Sprite) : Void
{
    mc.x += 1;
}

Thanks

init( Reflect.field(this, "mc" + "1") );

For more information, take a look at the Reflect class.

You can also try:

init (getChildByName ("mc" + "1"));

Reflect.field(this, “mc” + “1”), thanks.