PDA

View Full Version : explanation on code.



everland
August 19th, 2007, 04:37 PM
currently trying to read someone's code but i have problem understanding them due to the different way of coding my teacher used to teach me.. can someone kindly explain the code below? appreciate that. :)

onClipEvent (load) {
OrigY = _y;
NewY = OrigY;
}
onClipEvent (enterFrame) {
_y += ((NewY-_y)/this._parent.Control.Speed);
}

thanks