Thursday, January 21, 2010

Robot

onClipEvent (load) {
speed = 1.2;
next_position = 0;
isStart = true;
}
onClipEvent (enterFrame) {
if (isStart) {
start_position = this.menu._x;
if (start_position == -next_position) {
diff = 0;
} else {
diff = start_position+next_position;
}
isStart = false;
isMove = true;
_root.btn.drag.isStart = true;
}
if (isMove) {
diff = diff/speed;
if (Math.round (diff) != 0) {
this.menu._x = -(next_position-diff);
} else {
this.menu._x = -next_position;
isMove = false;
}
}
}



Sometime, i feel... i like a Robot.
Wrote the code to creaded the animation.
Such us ....Working Machine....
ppl busy to make money , make money for life.
Then how much
of times surplus it?!!....
Even though the life was busy all the time,but i feel i'm fulll.
When i tired to work and some ppl would make me feel happy to forget it.
good job dear ~


u said .. i miss something should get at this years....
yap! maybe!
but i think i get something u didn't have.


anyway~
be happy always!


+happyyan+
Post a Comment