Не. Не хочет работать.
Пишет вот:
1151: A conflict exists with definition tmpSprite in namespace internal.

Код AS3:
package {
import flash.display.*;
import flash.events.*;
public class Main extends MovieClip {
public var tmpSprite:Sprite;
public function Main() {
for (var i:int = 0; i < 10; i++) {
var tmpSprite:Sprite =new Box();
tmpSprite.name="bbb"+i;
addChild(tmpSprite);
tmpSprite.x=100+i*50;
tmpSprite.y=200;
}
}
for (var j:int = 3; j < 7; j++) {
var tmpSprite:Sprite=getChildByName("bbb"+j);
tmpSprite.x+=100;
}
}
}