code : -
var count_clean:Number=0;
bar_clean.visible = false;
a.addEventListener(MouseEvent.CLICK, afun);
function afun(e:Event) {
bar_clean.visible = true;
count_clean++;
bar_clean.scaleX=count_clean/10;
if (count_clean==10) {
a.removeEventListener(MouseEvent.CLICK, afun);
}
trace("kkk"+count_clean);
}
1. create a button using instance name of 'a'.
2. create a movieclip using instance name of 'bar_clean'
out put : -
No comments:
Post a Comment