I have a vertical line movie clip attach with the following script:
onClipEvent (enterFrame)
{ if(Key.isDown(Key.DOWN)) { this._yscale+=5; }
if (Key.isDown(Key.UP)) { this._yscale-=5 ;}}
the line keep on increasing in length when up and down key is pressed. I don’t want the line to go up further from its own location, that means the line can go up after pressing down key until its own point and don’t go up any further. Need help on this