DYN BUTS FINALL
for (i=0;i<4;i++){
b = _root.attachMovie("button", "button" +i, i);
b._x = 150 *i
b.id =i;
b.dynT.text = "But" + b.id;
b.onPress = function(){
trace("button"+ this.id + "pressed");
}
}
b = _root.attachMovie("button", "button" +i, i);
b._x = 150 *i
b.id =i;
b.dynT.text = "But" + b.id;
b.onPress = function(){
trace("button"+ this.id + "pressed");
}
}
Labels: actionscript, flash
0 Comments:
Post a Comment