carmenMiranda
Programmer
Well I think it should be simple, but I just can't get it to work.
I have a movie clip that needs to contract in height and then expand back to it's original size repeatedly. The code I have looks like this:
As I'm sure you can immediately see, this just causes the height to oscillate between 99px and 101px. I'm having a complete mental block on how to get it to change smoothly from 120px high, down to 100px high and then back to 120px high, over and over.
Can anyone help? Thanks.
I have a movie clip that needs to contract in height and then expand back to it's original size repeatedly. The code I have looks like this:
Code:
high01_mc.onEnterFrame = highScroll;
function highScroll(){
if(this._height > 100){
this._height--;
}
if(this._height < 120){
this._height++;
}
}
As I'm sure you can immediately see, this just causes the height to oscillate between 99px and 101px. I'm having a complete mental block on how to get it to change smoothly from 120px high, down to 100px high and then back to 120px high, over and over.
Can anyone help? Thanks.