1: 2: 3: 4:
this[mood + hero] = new mc_Jack_happy(); /*this["mc_" + hero + "_" + mood](); */ this[mood + hero].x = 820; this[mood + hero].y = 24; addChild(this[mood + hero]);
-V
this[mood + hero] = new (getDefinitionByName("mc_" + hero + "_" + mood) as Class)(); this[mood + hero].x = 820; this[mood + hero].y = 24; addChild(this[mood + hero]);