[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

[m8n] LuaStudio - Initial tests and setup

	| sprite |
	sprite := Sprite new
		name: 'Sprite 1';
		buttonMode: true;
		yourself.
	sprite graphics
		lineStyle: 2 color: 16r00FF00 alpha: 1.0 pixelHinting: false scaleMode: nil caps: nil joints: nil miterLimit: 3;
		beginFill: 16rADD8E6 alpha: 1.0;
		drawRect: 0 y: 0 width: 600 height: 300;
		endFill.
	Display stage addChild: sprite.

	sprite	x: 10;y: 10;
		addEventListener: MouseEvent click
		with: [:e| sprite print: 'Click on ', e#target#name. nil ]