sart
17.10.2006, 14:19
внутри класса вставляю две кнопки и пытаюсь определить для них функции. кнопки загружаются, расставляются, а вот функции не определяются =( что не так?
this.attachMovie("sldButton","sldBtnTop",this.getNextHighestDepth());
this.attachMovie("sldButton","sldBtnBottom",this.getNextHighestDepth());
this.sldBtnTop.onPress = new function() {
trace("top pressed");
}
this.sldBtnBottom.onPress = new function() {
trace("top pressed");
}
this.attachMovie("sldButton","sldBtnTop",this.getNextHighestDepth());
this.attachMovie("sldButton","sldBtnBottom",this.getNextHighestDepth());
this.sldBtnTop.onPress = new function() {
trace("top pressed");
}
this.sldBtnBottom.onPress = new function() {
trace("top pressed");
}