
Код:
this.attachMovie("button","myButton_btn",this.getNextHighestDepth());
function createComponent(){
this.createClassObject(TextArea, "my_ta", 4);
}
function destroyComponent(){
destroyObject("my_ta");
}
createComponent();
my_ta.onKillFocus = function(newFocus){
trace("не в фокусе");
}
myButton_btn.onRelease = function(){
destroyComponent();
createComponent();
}
проблемы заключается в следующем. При первом выполнении
createComponent();- my_ta.onKillFocus - выполняется. Но когда выполняется событие кнопки и
createComponent(); выполянется во второй раз, my_ta.onKillFocus не выполняется.
В чем тут проблема?
Заранее спасибо.