
bounce
[Bindable] private var radius:uint = 100; [Bindable] private var ball:Shape = new Shape(); [Bindable] private var square:Shape = new Shape(); [Bindable] private var vx:Number; [Bindable] private var vy:Number; [Bindable] private var bounce:Number = -0.999; [Bindable] private var gravity:Number = .0001; private function init() : void { input.text = first; myVid.source = movie; off = 1; var h:Number = systemManager.stage.stageHeight; var w:Number = systemManager.stage.stageWidth; //radius = ( h + w ) / 14; square.graphics.beginFill(0); square.graphics.drawRect(0, 0, w,h); //square.x = 400; //square.y = 400; ball.graphics.beginFill(0); ball.graphics.drawCircle(0, 0, radius); ball.x = 400; ball.y = 300; vx = Math.random() * 30 - 5; vy = -20; //myVid.addChild(square); myVid.addChild(ball); myVid.mask = ball; addEventListener(Event.ENTER_FRAME, frame); }