PageRenderTime 475ms CodeModel.GetById 250ms app.highlight 2ms RepoModel.GetById 222ms app.codeStats 0ms

/src/away3d/events/Scene3DEvent.as

http://github.com/away3d/away3d-core-fp11
ActionScript | 31 lines | 25 code | 6 blank | 0 comment | 0 complexity | ea290d56aba18a42364742623ec031f0 MD5 | raw file
 1package away3d.events
 2{
 3	import away3d.containers.ObjectContainer3D;
 4	
 5	import flash.events.Event;
 6	
 7	public class Scene3DEvent extends Event
 8	{
 9		public static const ADDED_TO_SCENE:String = "addedToScene";
10		public static const REMOVED_FROM_SCENE:String = "removedFromScene";
11		public static const PARTITION_CHANGED:String = "partitionChanged";
12		
13		public var objectContainer3D:ObjectContainer3D;
14		
15		override public function get target():Object
16		{
17			return objectContainer3D;
18		}
19		
20		public function Scene3DEvent(type:String, objectContainer:ObjectContainer3D)
21		{
22			objectContainer3D = objectContainer;
23			super(type);
24		}
25		
26		public override function clone():Event
27		{
28			return new Scene3DEvent(type, objectContainer3D);
29		}
30	}
31}