myatia
Programmer
- Nov 21, 2002
- 232
When doing a shape tween, how do you change the fixed point of motion? What I'm looking to do is have a rectangle grow vertically, with its base remaining at the same point. With what I have now, the rectangle gets bigger, but it grows on each end. Does any body have any ideas to fix it? My ActionScript is at the bottom, if it helps.
Thanks,
Misty
Thanks,
Misty
Code:
onClipEvent(enterFrame) {
function growBar() {
var h = getProperty(_root.thisBar, _height);
setProperty(_root.thisBar, _height, h + 1);
setProperty(_root.thisBar, _y, 300);
}
_root.frame = 0;
_root.intervalID = setInterval(growBar(), 50);
}