home *** CD-ROM | disk | FTP | other *** search
- package game
- {
- import flash.events.Event;
-
- public class ObjectCreatedEvent extends Event
- {
-
-
- public var objClass:Class;
-
- public var objName:String;
-
- public var animated:Boolean;
-
- public var loop:Boolean;
-
- public var overWidth:int;
-
- public var frameDelay:int;
-
- private var obj:GameObject;
-
- public var overHeight:int;
-
- public function ObjectCreatedEvent(obj:GameObject, objClass:Class, frameDelay:int = 0, loop:Boolean = false, overWidth:int = 0, overHeight:int = 0, type:String = "objectCreated", bubbles:Boolean = false, cancelable:Boolean = false)
- {
- super(type,bubbles,cancelable);
- this.obj = obj;
- this.objName = objName;
- this.objClass = objClass;
- this.animated = animated;
- this.frameDelay = frameDelay;
- this.loop = loop;
- this.overWidth = overWidth;
- this.overHeight = overHeight;
- }
-
- public function getObjectName() : String
- {
- return objName;
- }
-
- public function setObject(obj:GameObject) : void
- {
- this.obj = obj;
- }
-
- public function getObject() : GameObject
- {
- return obj;
- }
- }
- }
-