Return to Snippet

Revision: 3243
at June 26, 2007 06:19 by mswallace


Initial Code
package {
	import flash.display.Sprite;
	import flash.events.Event;

	public class ExampleApplication extends Sprite{
		
		public function ExampleApplication(){
			graphics.lineStyle(1,0,1);
			addEventListener(Event.ENTER_FRAME, onEnterFrame);
		}
		private function onEnterFrame(event:Event):void{
			graphics.lineTo(Math.random() * 400, Math.random() * 400);
		}
	}
}

Initial URL


Initial Description
Got this out of the o'reilly ActionScript 3.0 Cookbook

Initial Title
onEnterFrame Event using Actionscript 3

Initial Tags
event

Initial Language
ActionScript 3