views:

56

answers:

1

package { import flash.display.Sprite; import flash.events.*;

public class asgnv2 extends Sprite
{ 
    var lineY = 0;
    public function asgnv2()
    {
        stage.addEventListener(Event.ENTER_FRAME, update);
        graphics.lineStyle(1);
    }
    function update(e){
        graphics.clear();
        graphics.moveTo(0 ,lineY);
        graphics.lineTo(100, lineY);
        lineY+=0.5;

        }

    }
}
+1  A: 
bhups