June 2, 2010

AS3 DRAWING PAD AWESOMENESS

This is another project that I've been putting off. It really should have some kind of bitmap merging/drawing going on to allow for a greater number of shapes, but I think it would work just fine for anything a guest would want to spend time on. Just don't try to recreate the Sistine Chapel ceiling and you'll be fine :)

download the .fla and the .as files.

Posted in actionscript

Comments:


It seems that the ShapeObject class file is missing from the source.

Good job though.

Tom | October 23, 2011 @ 5:04 am

Here's the ShapeObject class.  Sorry to anyone who's missed it:


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

	public class ShapeObject extends Sprite
	 { 
		private var theX:Number = 0;
		private var theY:Number = 0;
		
		public function ShapeObject():void
		 { 
			// blank constructor
		 } 
		
		public function setXandY(xNum:Number, yNum:Number):void
		 { 
			theX = xNum;
			theY = yNum;
		 } 
		
		public function getX():Number
		 { 
			return theX;
		 } 
		
		public function getY():Number
		 { 
			return theY;
		 } 
	 } 
 } 

jay | November 1, 2011 @ 5:55 pm

Another great and helpful post. You should keep this blog running, please come back D:

Fabiano | December 9, 2011 @ 8:15 am

What do you think?

(All fields required. Only your name and comment will be stored.)
Name:

Email:

Code:
validation image
Message: