var history:Array = []; //... var step:Step = new Step();//класс шага step.lines = //линии step.data = //ещё какие-то данные history.push(step);