flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From carlosrov...@apache.org
Subject [6/8] flex-asjs git commit: Initial project setup from Lizhi’s SpriteFlexJS project
Date Wed, 22 Feb 2017 15:36:45 GMT
http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/GraphicsPathWinding.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/GraphicsPathWinding.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/GraphicsPathWinding.as
new file mode 100644
index 0000000..3df8a41
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/GraphicsPathWinding.as
@@ -0,0 +1,33 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+   public final class GraphicsPathWinding extends Object
+   {
+      
+      public static const EVEN_ODD:String = "evenOdd";
+      
+      public static const NON_ZERO:String = "nonZero";
+       
+      public function GraphicsPathWinding()
+      {
+         super();
+      }
+   }
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/GraphicsSolidFill.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/GraphicsSolidFill.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/GraphicsSolidFill.as
new file mode 100644
index 0000000..7d498c7
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/GraphicsSolidFill.as
@@ -0,0 +1,61 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+	import flash.__native.GLCanvasRenderingContext2D;
+	import flash.geom.ColorTransform;
+	
+	public final class GraphicsSolidFill extends Object implements IGraphicsFill, IGraphicsData
+	{
+		
+		public var color:uint = 0;
+		
+		public var alpha:Number = 1.0;
+		private var cssColor:String;
+		public var _glcolor:Array = [];
+		public function GraphicsSolidFill(color:uint = 0, alpha:Number = 1.0)
+		{
+			super();
+			this.color = color;
+			this.alpha = alpha;
+			cssColor = "rgba(" + (color >> 16 & 0xff) + "," + (color >> 8 & 0xff) + "," + (color & 0xff) + "," + this.alpha + ")";
+		}
+		
+		/**
+		 * @flexjsignorecoercion String
+		 */
+		public function draw(ctx:CanvasRenderingContext2D,colorTransform:ColorTransform):void
+		{
+			ctx.fillStyle = SpriteFlexjs.renderer.getCssColor(color,alpha, colorTransform,null) as String;//getCssColor(colorTransform);
+		}
+		
+		/*public function getCssColor(ct:ColorTransform):String 
+		{
+			return "rgba(" + ((color >> 16 & 0xff)*ct.redMultiplier+ct.redOffset) + "," + ((color >> 8 & 0xff)*ct.greenMultiplier+ct.greenOffset) + "," + ((color & 0xff)*ct.greenMultiplier+ct.greenOffset) + "," + (this.alpha*ct.alphaMultiplier+ct.alphaOffset) + ")";
+		}*/
+		/**
+		 * @flexjsignorecoercion String
+		 */
+		public function gldraw(ctx:GLCanvasRenderingContext2D, colorTransform:ColorTransform):void{
+			//SpriteFlexjs.renderer.getCssColor(color, alpha, colorTransform, _glcolor);
+			ctx.fillStyle = SpriteFlexjs.renderer.getCssColor(color, alpha, colorTransform, _glcolor) as String//_glcolor as String; 
+			ctx.fillStyleIsImage = false;
+		}
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/GraphicsStroke.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/GraphicsStroke.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/GraphicsStroke.as
new file mode 100644
index 0000000..193a4d0
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/GraphicsStroke.as
@@ -0,0 +1,149 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+	import flash.__native.GLCanvasRenderingContext2D;
+	import flash.geom.ColorTransform;
+	
+	public final class GraphicsStroke extends Object implements IGraphicsStroke, IGraphicsData
+	{
+		
+		public var thickness:Number;
+		
+		public var pixelHinting:Boolean;
+		
+		private var _caps:String;
+		
+		private var _joints:String;
+		
+		public var miterLimit:Number;
+		
+		private var _scaleMode:String;
+		
+		public var fill:IGraphicsFill;
+		
+		public function GraphicsStroke(thickness:Number = NaN, pixelHinting:Boolean = false, scaleMode:String = "normal", caps:String = "none", joints:String = "round", miterLimit:Number = 3.0, fill:IGraphicsFill = null)
+		{
+			super();
+			this.thickness = thickness;
+			this.pixelHinting = pixelHinting;
+			this._caps = caps;
+			this._joints = joints;
+			this.miterLimit = miterLimit;
+			this._scaleMode = scaleMode;
+			this.fill = fill;
+		/*if(this._scaleMode != LineScaleMode.NORMAL && this._scaleMode != LineScaleMode.NONE && this._scaleMode != LineScaleMode.VERTICAL && this._scaleMode != LineScaleMode.HORIZONTAL)
+		   {
+		   Error.throwError(null,2008,"scaleMode");
+		   }
+		   if(this._caps != CapsStyle.NONE && this._caps != CapsStyle.ROUND && this._caps != CapsStyle.SQUARE)
+		   {
+		   Error.throwError(null,2008,"caps");
+		   }
+		   if(this._joints != JointStyle.BEVEL && this._joints != JointStyle.MITER && this._joints != JointStyle.ROUND)
+		   {
+		   Error.throwError(null,2008,"joints");
+		   }*/
+		}
+		
+		public function get caps():String
+		{
+			return this._caps;
+		}
+		
+		public function set caps(value:String):void
+		{
+			/*if(value != CapsStyle.NONE && value != CapsStyle.ROUND && value != CapsStyle.SQUARE)
+			   {
+			   Error.throwError(null,2008,"caps");
+			   }*/
+			this._caps = value;
+		}
+		
+		public function get joints():String
+		{
+			return this._joints;
+		}
+		
+		public function set joints(value:String):*
+		{
+			/*if(value != JointStyle.BEVEL && value != JointStyle.MITER && value != JointStyle.ROUND)
+			   {
+			   Error.throwError(null,2008,"joints");
+			   }*/
+			this._joints = value;
+		}
+		
+		public function get scaleMode():String
+		{
+			return this._scaleMode;
+		}
+		
+		public function set scaleMode(value:String):void
+		{
+			/*if(value != LineScaleMode.NORMAL && value != LineScaleMode.NONE && value != LineScaleMode.VERTICAL && value != LineScaleMode.HORIZONTAL)
+			   {
+			   Error.throwError(null,2008,"scaleMode");
+			   }*/
+			this._scaleMode = value;
+		}
+		
+		/**
+		 * @flexjsignorecoercion String
+		 */
+		public function draw(ctx:CanvasRenderingContext2D,colorTransform:ColorTransform):void
+		{
+			if (isNaN(thickness))
+			{
+				ctx.lineJoin = _joints;
+				ctx.stroke();
+			}
+			else
+			{
+				ctx.lineWidth = thickness;
+				if (fill is GraphicsSolidFill)
+				{
+					var sf:GraphicsSolidFill = fill as GraphicsSolidFill;
+					ctx.strokeStyle = SpriteFlexjs.renderer.getCssColor(sf.color, sf.alpha,colorTransform,null) as String;//sf.getCssColor(colorTransform);
+				}
+			}
+		}
+		
+		/**
+		 * @flexjsignorecoercion String
+		 * @flexjsignorecoercion flash.display.GraphicsSolidFill
+		 */
+		public function gldraw(ctx:GLCanvasRenderingContext2D, colorTransform:ColorTransform):void{
+			if (isNaN(thickness))
+			{
+				ctx.stroke();
+			}
+			else
+			{
+				ctx.lineWidth = thickness;
+				if (fill is GraphicsSolidFill)
+				{
+					var sf:GraphicsSolidFill = fill as GraphicsSolidFill;
+					SpriteFlexjs.renderer.getCssColor(sf.color, sf.alpha,colorTransform,sf._glcolor);
+					ctx.strokeStyle = sf._glcolor as String; //sf.getCssColor(colorTransform);
+				}
+			}
+		}
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/GraphicsTrianglePath.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/GraphicsTrianglePath.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/GraphicsTrianglePath.as
new file mode 100644
index 0000000..28c002a
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/GraphicsTrianglePath.as
@@ -0,0 +1,70 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+	import flash.__native.GLCanvasRenderingContext2D;
+	import flash.geom.ColorTransform;
+	
+	public final class GraphicsTrianglePath extends Object implements IGraphicsPath, IGraphicsData
+	{
+		
+		public var indices:Vector.<int>;
+		
+		public var vertices:Vector.<Number>;
+		
+		public var uvtData:Vector.<Number>;
+		
+		private var _culling:String;
+		
+		public function GraphicsTrianglePath(vertices:Vector.<Number> = null, indices:Vector.<int> = null, uvtData:Vector.<Number> = null, culling:String = "none")
+		{
+			super();
+			this.vertices = vertices;
+			this.indices = indices;
+			this.uvtData = uvtData;
+			this._culling = culling;
+		/*if(culling != TriangleCulling.NONE && culling != TriangleCulling.POSITIVE && culling != TriangleCulling.NEGATIVE)
+		   {
+		   Error.throwError(null,2008,"culling");
+		   }*/
+		}
+		
+		public function get culling():String
+		{
+			return this._culling;
+		}
+		
+		public function set culling(value:String):void
+		{
+			/* if(value != TriangleCulling.NONE && value != TriangleCulling.POSITIVE && value != TriangleCulling.NEGATIVE)
+			   {
+			   Error.throwError(null,2008,"culling");
+			   }*/
+			this._culling = value;
+		}
+		
+		public function draw(ctx:CanvasRenderingContext2D,colorTransform:ColorTransform):void
+		{
+			trace("tripath");
+		}
+		public function gldraw(ctx:GLCanvasRenderingContext2D, colorTransform:ColorTransform):void{
+			
+		}
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IBitmapDrawable.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IBitmapDrawable.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IBitmapDrawable.as
new file mode 100644
index 0000000..f51f72d
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IBitmapDrawable.as
@@ -0,0 +1,24 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+   public interface IBitmapDrawable
+   {
+       }
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IDrawCommand.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IDrawCommand.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IDrawCommand.as
new file mode 100644
index 0000000..1426bff
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IDrawCommand.as
@@ -0,0 +1,24 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+   public interface IDrawCommand
+   {
+       }
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IGraphicsData.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IGraphicsData.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IGraphicsData.as
new file mode 100644
index 0000000..960cd12
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IGraphicsData.as
@@ -0,0 +1,30 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+	import flash.__native.GLCanvasRenderingContext2D;
+	import flash.geom.ColorTransform;
+	
+	public interface IGraphicsData
+	{
+		function draw(ctx:CanvasRenderingContext2D,colorTransform:ColorTransform):void;
+		function gldraw(glctx:GLCanvasRenderingContext2D,colorTransform:ColorTransform):void;
+	}
+
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IGraphicsFill.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IGraphicsFill.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IGraphicsFill.as
new file mode 100644
index 0000000..d92eb9a
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IGraphicsFill.as
@@ -0,0 +1,25 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+	
+	public interface IGraphicsFill
+	{
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IGraphicsPath.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IGraphicsPath.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IGraphicsPath.as
new file mode 100644
index 0000000..dbd7003
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IGraphicsPath.as
@@ -0,0 +1,24 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+   public interface IGraphicsPath
+   {
+       }
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IGraphicsStroke.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IGraphicsStroke.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IGraphicsStroke.as
new file mode 100644
index 0000000..c0caaa4
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/IGraphicsStroke.as
@@ -0,0 +1,24 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+   public interface IGraphicsStroke
+   {
+       }
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/InteractiveObject.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/InteractiveObject.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/InteractiveObject.as
new file mode 100644
index 0000000..7c151d9
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/InteractiveObject.as
@@ -0,0 +1,71 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+	import flash.events.Event;
+	import flash.geom.Rectangle;
+	
+	public class InteractiveObject extends DisplayObject
+	{
+		private var _mouseEnabled:Boolean = true;
+		private var _doubleClickEnabled:Boolean = false;
+		public function InteractiveObject()
+		{
+			super();
+		}
+		
+		public function get tabEnabled():Boolean  { return true }
+		
+		public function set tabEnabled(param1:Boolean):void  {/**/ }
+		
+		public function get tabIndex():int  { return 0 }
+		
+		public function set tabIndex(param1:int):void  {/**/ }
+		
+		public function get focusRect():Object  { return null }
+		
+		public function set focusRect(param1:Object):void  {/**/ }
+		
+		public function get mouseEnabled():Boolean  { return _mouseEnabled }
+		
+		public function set mouseEnabled(v:Boolean):void  { _mouseEnabled = v; }
+		
+		public function get doubleClickEnabled():Boolean  { return _doubleClickEnabled }
+		
+		public function set doubleClickEnabled(v:Boolean):void  { _doubleClickEnabled = v; }
+		
+		// public function get accessibilityImplementation() : AccessibilityImplementation;
+		
+		//public function set accessibilityImplementation(param1:AccessibilityImplementation) : void;
+		
+		public function get softKeyboardInputAreaOfInterest():Rectangle  { return null }
+		
+		public function set softKeyboardInputAreaOfInterest(param1:Rectangle):void  {/**/ }
+		
+		public function get needsSoftKeyboard():Boolean  { return false }
+		
+		public function set needsSoftKeyboard(param1:Boolean):void  {/**/ }
+		
+		public function requestSoftKeyboard():Boolean  { return false }
+	
+		//public function get contextMenu() : ContextMenu;
+	
+		//public function set contextMenu(param1:ContextMenu) : void;
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/InterpolationMethod.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/InterpolationMethod.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/InterpolationMethod.as
new file mode 100644
index 0000000..7cc85e4
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/InterpolationMethod.as
@@ -0,0 +1,33 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+   public final class InterpolationMethod extends Object
+   {
+      
+      public static const RGB:String = "rgb";
+      
+      public static const LINEAR_RGB:String = "linearRGB";
+       
+      public function InterpolationMethod()
+      {
+         super();
+      }
+   }
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/JointStyle.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/JointStyle.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/JointStyle.as
new file mode 100644
index 0000000..15aa508
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/JointStyle.as
@@ -0,0 +1,35 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+   public final class JointStyle extends Object
+   {
+      
+      public static const ROUND:String = "round";
+      
+      public static const BEVEL:String = "bevel";
+      
+      public static const MITER:String = "miter";
+       
+      public function JointStyle()
+      {
+         super();
+      }
+   }
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/LineScaleMode.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/LineScaleMode.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/LineScaleMode.as
new file mode 100644
index 0000000..522fb65
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/LineScaleMode.as
@@ -0,0 +1,37 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+   public final class LineScaleMode extends Object
+   {
+      
+      public static const NORMAL:String = "normal";
+      
+      public static const VERTICAL:String = "vertical";
+      
+      public static const HORIZONTAL:String = "horizontal";
+      
+      public static const NONE:String = "none";
+       
+      public function LineScaleMode()
+      {
+         super();
+      }
+   }
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/Loader.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/Loader.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/Loader.as
new file mode 100644
index 0000000..134ea02
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/Loader.as
@@ -0,0 +1,193 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+	import flash.net.URLRequest;
+	import flash.system.LoaderContext;
+	import flash.utils.ByteArray;
+	import flash.errors.*;
+	import flash.events.*;
+	
+	public class Loader extends DisplayObjectContainer
+	{
+		private var _loaderInfo:LoaderInfo;
+		private var image:Image;
+		
+		public function Loader()
+		{
+			super();
+			_loaderInfo = new LoaderInfo;
+		}
+		
+		/* private static function cloneParams(lc:LoaderContext) : void
+		   {
+		   var k:String = null;
+		   var args:Object = lc.parameters;
+		   var rtn:Object = {};
+		   for(k in args)
+		   {
+		   rtn[k] = args[k];
+		   }
+		   lc.parameters = rtn;
+		   }*/
+		
+		public function load(request:URLRequest, context:LoaderContext = null):void
+		{
+			if (image){
+				image.removeEventListener("load", onImageLoad,false);
+			}
+			image = new Image;
+			image.addEventListener("load", onImageLoad,false);
+			//image.onload = onImageLoad;
+			image.src = request.url;
+		
+		/*var _context:LoaderContext = this._buildLoaderContext(context);
+		   var deblockingFilter:Number = 0.0;
+		   if(_context.imageDecodingPolicy == null)
+		   {
+		   throw new null();
+		   }
+		   deblockingFilter = this._getJPEGLoaderContextdeblockingfilter(_context);
+		   if(_context.parameters != null)
+		   {
+		   cloneParams(_context);
+		   }*/
+			   // this._load(request,_context.checkPolicyFile,_context.applicationDomain,_context.securityDomain,_context.requestedContentParent,_context.parameters,deblockingFilter,_context.allowCodeImport,_context.imageDecodingPolicy);
+		}
+		
+		private function onImageLoad(e:Object):void
+		{
+			var bmd:BitmapData = new BitmapData(image.width, image.height, true, 0);
+			bmd.fromImage(image);
+			if (_loaderInfo.content&&_loaderInfo.content.parent){
+				_loaderInfo.content.parent.removeChild(_loaderInfo.content);
+			}
+			_loaderInfo.content = new Bitmap(bmd);
+			addChild(_loaderInfo.content);
+			_loaderInfo.dispatchEvent(new Event(Event.COMPLETE));
+		}
+		
+		private function _getJPEGLoaderContextdeblockingfilter(param1:Object):Number  { return 0; }
+		
+		/*private function _buildLoaderContext(context:LoaderContext) : LoaderContext
+		   {
+		   if(context == null)
+		   {
+		   context = new LoaderContext();
+		   }
+		   if(context.applicationDomain == null)
+		   {
+		   context.applicationDomain = new ApplicationDomain(ApplicationDomain.currentDomain);
+		   }
+		   return context;
+		   }*/
+		
+		/*public function loadBytes(bytes:ByteArray, context:LoaderContext = null) : void
+		   {
+		   var _context:LoaderContext = this._buildLoaderContext(context);
+		   var deblockingFilter:Number = 0.0;
+		   deblockingFilter = this._getJPEGLoaderContextdeblockingfilter(_context);
+		   if(_context.parameters != null)
+		   {
+		   cloneParams(_context);
+		   }
+		   this._loadBytes(bytes,_context.checkPolicyFile,_context.applicationDomain,_context.securityDomain,_context.requestedContentParent,_context.parameters,deblockingFilter,_context.allowCodeImport,_context.imageDecodingPolicy);
+		   }*/
+		
+		//native private function _loadBytes(param1:ByteArray, param2:Boolean, param3:ApplicationDomain, param4:SecurityDomain, param5:DisplayObjectContainer, param6:Object, param7:Number, param8:Boolean, param9:String) : void;
+		
+		public function close():void
+		{
+			this._close();
+		}
+		
+		public function unload():void
+		{
+			this._unload(false, false);
+		}
+		
+		public function unloadAndStop(gc:Boolean = true):void
+		{
+			this._unload(true, gc);
+		}
+		
+		private function _unload(param1:Boolean, param2:Boolean):void
+		{
+		
+		}
+		
+		private function _close():void
+		{
+		
+		}
+		
+		public function get content():Bitmap  { return _loaderInfo.content; }
+		
+		public function get contentLoaderInfo():LoaderInfo  { return _loaderInfo; }
+	
+	/* [Inspectable(environment="none")]
+	   override public function addChild(child:DisplayObject) : DisplayObject
+	   {
+	   Error.throwError(IllegalOperationError,2069);
+	   return null;
+	   }
+	
+	   [Inspectable(environment="none")]
+	   override public function addChildAt(child:DisplayObject, index:int) : DisplayObject
+	   {
+	   Error.throwError(IllegalOperationError,2069);
+	   return null;
+	   }
+	
+	   [Inspectable(environment="none")]
+	   override public function removeChild(child:DisplayObject) : DisplayObject
+	   {
+	   Error.throwError(IllegalOperationError,2069);
+	   return null;
+	   }
+	
+	   [Inspectable(environment="none")]
+	   override public function removeChildAt(index:int) : DisplayObject
+	   {
+	   Error.throwError(IllegalOperationError,2069);
+	   return null;
+	   }
+	
+	   override public function setChildIndex(child:DisplayObject, index:int) : void
+	   {
+	   Error.throwError(IllegalOperationError,2069);
+	   }
+	   public function get uncaughtErrorEvents() : UncaughtErrorEvents
+	   {
+	   var _uncaughtErrorEvents:UncaughtErrorEvents = this._getUncaughtErrorEvents();
+	   if(!_uncaughtErrorEvents)
+	   {
+	   _uncaughtErrorEvents = new UncaughtErrorEvents();
+	   this._setUncaughtErrorEvents(_uncaughtErrorEvents);
+	   }
+	   return _uncaughtErrorEvents;
+	   }*/
+	
+		   //native private function _getUncaughtErrorEvents() : UncaughtErrorEvents;
+	
+		   // native private function _setUncaughtErrorEvents(param1:UncaughtErrorEvents) : void;
+	
+		   //native private function _load(param1:URLRequest, param2:Boolean, param3:ApplicationDomain, param4:SecurityDomain, param5:DisplayObjectContainer, param6:Object, param7:Number, param8:Boolean, param9:String) : void;
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/LoaderInfo.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/LoaderInfo.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/LoaderInfo.as
new file mode 100644
index 0000000..cb44e8c
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/LoaderInfo.as
@@ -0,0 +1,125 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+	import flash.errors.*;
+	import flash.net.URLVariables;
+	import flash.utils.ByteArray;
+	import flash.events.*;
+	
+	public class LoaderInfo extends EventDispatcher
+	{
+		private var _content:Bitmap;
+		
+		public function LoaderInfo()
+		{
+			super();
+		}
+		
+		public static function getLoaderInfoByDefinition(param1:Object):LoaderInfo  { return null; }
+		
+		public function get loaderURL():String  { return url; }
+		
+		public function get url():String  { return window.location.href; }
+		
+		public function get isURLInaccessible():Boolean  { return false }
+		
+		public function get bytesLoaded():uint  { return 0; }
+		
+		public function get bytesTotal():uint  { return 0; }
+		
+		//public function get applicationDomain() : ApplicationDomain;
+		
+		public function get swfVersion():uint  { return 0; }
+		
+		public function get actionScriptVersion():uint  { return 0; }
+		
+		public function get frameRate():Number  { return 0; }
+		
+		public function get parameters():Object
+		{
+			var k:String = null;
+			var args:Object = this._getArgs();
+			var rtn:Object = {};
+			for (k in args)
+			{
+				rtn[k] = args[k];
+			}
+			return rtn;
+		}
+		
+		public function get width():int  { return 0; }
+		
+		public function get height():int  { return 0; }
+		
+		public function get contentType():String  { return "spriteflexjs"; }
+		
+		public function get sharedEvents():EventDispatcher  { return null; }
+		
+		public function get parentSandboxBridge():Object  { return null; }
+		
+		public function set parentSandboxBridge(param1:Object):void
+		{
+		
+		}
+		
+		public function get childSandboxBridge():Object  { return null; }
+		
+		public function set childSandboxBridge(param1:Object):void
+		{
+		
+		}
+		
+		public function get sameDomain():Boolean  { return false; }
+		
+		public function get childAllowsParent():Boolean  { return false; }
+		
+		public function get parentAllowsChild():Boolean  { return false }
+		
+		public function get loader():Loader  { return null }
+		
+		public function set content(bmp:Bitmap):void  { _content = bmp; }
+		
+		public function get content():Bitmap  { return _content; }
+		
+		public function get bytes():ByteArray  { return null }
+		
+		private function _getArgs():Object  { 
+			try{
+			var uv:URLVariables = new URLVariables(window.location.search.substr(1));
+			}catch(err:Error){}
+			return uv;
+		}
+	
+	/*public function get uncaughtErrorEvents() : UncaughtErrorEvents
+	   {
+	   var _uncaughtErrorEvents:UncaughtErrorEvents = this._getUncaughtErrorEvents();
+	   if(!_uncaughtErrorEvents)
+	   {
+	   _uncaughtErrorEvents = new UncaughtErrorEvents();
+	   this._setUncaughtErrorEvents(_uncaughtErrorEvents);
+	   }
+	   return _uncaughtErrorEvents;
+	   }
+	
+	   native private function _getUncaughtErrorEvents() : UncaughtErrorEvents;
+	
+	   native private function _setUncaughtErrorEvents(param1:UncaughtErrorEvents) : void;*/
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/Shape.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/Shape.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/Shape.as
new file mode 100644
index 0000000..8f2d022
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/Shape.as
@@ -0,0 +1,50 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+	import flash.events.Event;
+	import flash.geom.Rectangle;
+	
+	public class Shape extends DisplayObject
+	{
+		public var graphics:Graphics = new Graphics;
+		public function Shape()
+		{
+			super();
+		}
+		
+		override public function __update(ctx:CanvasRenderingContext2D):void
+		{
+			/*if (hasEventListener(Event.ENTER_FRAME))
+				dispatchEvent(new Event(Event.ENTER_FRAME));*/
+			if (/*stage&&*/visible&&graphics.graphicsData.length)
+				graphics.draw(ctx, transform.concatenatedMatrix,blendMode,transform.concatenatedColorTransform);
+		}
+		
+		override public function hitTestPoint(x:Number, y:Number, shapeFlag:Boolean = false):Boolean 
+		{
+			return false;
+		}
+		
+		override public function __getRect():Rectangle 
+		{
+			return graphics.bound;
+		}
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/SpreadMethod.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/SpreadMethod.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/SpreadMethod.as
new file mode 100644
index 0000000..5bef976
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/SpreadMethod.as
@@ -0,0 +1,35 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+ackage flash.display
+{
+   public final class SpreadMethod extends Object
+   {
+      
+      public static const PAD:String = "pad";
+      
+      public static const REFLECT:String = "reflect";
+      
+      public static const REPEAT:String = "repeat";
+       
+      public function SpreadMethod()
+      {
+         super();
+      }
+   }
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/Sprite.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/Sprite.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/Sprite.as
new file mode 100644
index 0000000..4739799
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/Sprite.as
@@ -0,0 +1,89 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+	import flash.events.Event;
+	import flash.events.EventDispatcher;
+	import flash.geom.Matrix;
+	import flash.geom.Point;
+	import flash.geom.Rectangle;
+	
+	public class Sprite extends DisplayObjectContainer
+	{
+		public var graphics:Graphics = new Graphics;
+		private var tempPos:Point
+		public function Sprite()
+		{
+		}
+		
+		public function get buttonMode():Boolean  { return false }
+		
+		public function set buttonMode(param1:Boolean):void  {/**/ }
+		
+		public function startDrag(param1:Boolean = false, param2:Rectangle = null):void  {/**/ }
+		
+		public function stopDrag():void  {/**/ }
+		
+		public function startTouchDrag(param1:int, param2:Boolean = false, param3:Rectangle = null):void  {/**/ }
+		
+		public function stopTouchDrag(param1:int):void  {/**/ }
+		
+		public function get dropTarget():DisplayObject  { return null }
+		
+		public function get hitArea():Sprite  { return null }
+		
+		public function set hitArea(param1:Sprite):void  {/**/ }
+		
+		public function get useHandCursor():Boolean  { return false }
+		
+		public function set useHandCursor(param1:Boolean):void  {/**/ }
+		
+		//public function get soundTransform() : SoundTransform;
+		
+		//public function set soundTransform(param1:SoundTransform) : void;
+		
+		override public function __getRect():Rectangle 
+		{
+			return graphics.bound;
+		}
+		
+		override public function __update(ctx:CanvasRenderingContext2D):void
+		{
+			if (/*stage&&*/visible&&graphics.graphicsData.length)
+				graphics.draw(ctx, transform.concatenatedMatrix, blendMode, transform.concatenatedColorTransform);
+			if (hasEventListener(Event.ENTER_FRAME))
+				dispatchEvent(new Event(Event.ENTER_FRAME));
+			super.__update(ctx);
+		}
+		
+		override protected function __doMouse(e:flash.events.MouseEvent):DisplayObject 
+		{
+			if (/*stage &&*/ mouseEnabled&&visible) {
+				var obj:DisplayObject = super.__doMouse(e);
+				if (obj) {
+					return obj;
+				}
+				if (hitTestPoint(stage.mouseX, stage.mouseY)) {
+					return this;
+				}
+			}
+			return null;
+		}
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/Stage.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/Stage.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/Stage.as
new file mode 100644
index 0000000..9836aae
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/Stage.as
@@ -0,0 +1,414 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+	import flash.__native.GLCanvasRenderingContext2D;
+	import flash.__native.WebGLRenderer;
+	import flash.events.Event;
+	import flash.events.EventDispatcher;
+	import flash.events.KeyboardEvent;
+	import flash.events.MouseEvent;
+	import flash.events.TouchEvent;
+	import flash.geom.Rectangle;
+	import flash.utils.getTimer;
+	
+	public class Stage extends EventDispatcher
+	{
+		public var __rootHtmlElement:Element;
+		public var __htmlWrapper:Element;
+		private var _frameRate:int;
+		private var _stage3Ds:Vector.<Stage3D>;
+		private static const kInvalidParamError:uint = 2004;
+		private var _canvas:HTMLCanvasElement;
+		private var _ctx:CanvasRenderingContext2D
+		private var _ctx2d:CanvasRenderingContext2D
+		private var _mouseX:Number = 0;
+		private var _mouseY:Number = 0;
+		//private var intervalID:Number;
+		private var needSendMouseMove:Boolean = false;
+		private var needSendTouchMove:Boolean = false;
+		private var lastUpdateTime:int = -1000;
+		//private var requestAnimationFrameHander:Number;
+		private var _loaderInfo:LoaderInfo;
+		private var _stageWidth:Number=0;
+		private var _stageHeight:Number=0;
+		public function Stage()
+		{
+			trace("power by SpriteFlexJS");
+			__rootHtmlElement = document.createElement("div");
+			document.body.appendChild(__rootHtmlElement);
+			
+			__htmlWrapper = document.createElement("div");
+			document.body.appendChild(__htmlWrapper);
+			__htmlWrapper.style.position = "absolute";
+			__htmlWrapper.style.left = "0px";
+			__htmlWrapper.style.top = "0px";
+			__htmlWrapper.style.zIndex =0;
+			
+			_loaderInfo = new LoaderInfo();
+			if (SpriteFlexjs.startTime===0) {
+				SpriteFlexjs.startTime = Date.now();
+			}
+			frameRate = 60;
+			_stage3Ds = Vector.<Stage3D>([new Stage3D, new Stage3D, new Stage3D, new Stage3D]);
+			_stage3Ds[0].__stage = this;
+			_stage3Ds[1].__stage = this;
+			_stage3Ds[2].__stage = this;
+			_stage3Ds[3].__stage = this;
+			window.addEventListener("resize", window_resize, false);
+			window.addEventListener("orientationchange", window_resize, false);
+			setTimeout(__update);
+		}
+		
+		private function window_resize(e:Object):void
+		{
+			SpriteFlexjs.dirtyGraphics = true;
+			if (SpriteFlexjs.autoSize){
+				SpriteFlexjs.stageWidth = window.innerWidth;
+				SpriteFlexjs.stageHeight = window.innerHeight;
+			}
+			_stageWidth = SpriteFlexjs.stageWidth;
+			_stageHeight = SpriteFlexjs.stageHeight;
+			canvas.width = _stageWidth;
+			canvas.height = _stageHeight;
+			canvas.style.width = _stageWidth + "px";
+			canvas.style.height = _stageHeight + "px";
+			dispatchEvent(new Event(Event.RESIZE));
+		}
+		
+		public function get frameRate():Number  { return _frameRate }
+		
+		public function set frameRate(v:Number):void
+		{
+			_frameRate = v;
+			/*try{
+				cancelRequestAnimationFrame(requestAnimationFrameHander);
+			}catch(e:Object){}*/
+			//__update();
+		}
+		
+		private function __update():void {
+			if(_stageWidth != SpriteFlexjs.stageWidth||
+			_stageHeight != SpriteFlexjs.stageHeight){
+				window_resize(null);
+			}
+			
+			//http://codetheory.in/controlling-the-frame-rate-with-requestanimationframe/	
+			/*requestAnimationFrameHander = */SpriteFlexjs.requestAnimationFrame.call(window,__update);
+			//var now:Number = getTimer();
+			//var interval:Number = Math.ceil(1000/frameRate);
+			//var delta:Number = now - lastUpdateTime;
+			//if (delta >= interval) {
+			//	lastUpdateTime = now - (delta % interval);
+				if (needSendMouseMove) {
+					dispatchEvent(new MouseEvent(MouseEvent.MOUSE_MOVE, true, false, _mouseX, _mouseY));
+					needSendMouseMove = false;
+				}
+				if (needSendTouchMove) {
+					dispatchEvent(new TouchEvent(TouchEvent.TOUCH_MOVE, true, false, 0, true, _mouseX, _mouseY));
+					needSendTouchMove = false;
+				}
+				dispatchEvent(new Event(Event.ENTER_FRAME));
+			//}
+		}
+		
+		public function invalidate():void  {/**/ }
+		
+		public function get loaderInfo():LoaderInfo  { return _loaderInfo; }
+		
+		public function get scaleMode():String  { return null }
+		
+		public function set scaleMode(param1:String):void  {/**/ }
+		
+		public function get align():String  { return null }
+		
+		public function set align(param1:String):void  {/**/ }
+		
+		public function get stageWidth():int  { return _stageWidth; }
+		
+		public function set stageWidth(param1:int):void  {/**/ }
+		
+		public function get stageHeight():int  { return _stageHeight; }
+		
+		public function set stageHeight(param1:int):void  {/**/ }
+		
+		public function get showDefaultContextMenu():Boolean  { return false }
+		
+		public function set showDefaultContextMenu(param1:Boolean):void  {/**/ }
+		
+		public function get colorCorrection():String  { return null }
+		
+		public function set colorCorrection(param1:String):void  {/**/ }
+		
+		public function get colorCorrectionSupport():String  { return null }
+		
+		public function isFocusInaccessible():Boolean  { return false }
+		
+		public function get stageFocusRect():Boolean  { return false }
+		
+		public function set stageFocusRect(param1:Boolean):void  {/**/ }
+		
+		public function get quality():String  { return null }
+		
+		public function set quality(param1:String):void  {/**/ }
+		
+		public function get displayState():String  {
+			return (document["fullscreen"] || document["webkitIsFullScreen"] || document["mozFullScreen"]) ? "fullScreen" : "normal";
+		}
+		
+		public function set displayState(param1:String):void  {
+			if (param1.indexOf("fullScreen")!=-1) {
+				var requestFunc:Function = (_canvas["requestFullscreen"] || _canvas["webkitRequestFullScreen"] || _canvas["mozRequestFullScreen"] || _canvas["msRequestFullscreen"]);
+				requestFunc.call(_canvas);
+			} else {
+				var cancelFunc:Function = (document["exitFullscreen"] || document["webkitExitFullScreen"] || document["mozCancelFullScreen"] || document["msExitFullscreen"]);
+				cancelFunc.call(document);
+			}
+		}
+		
+		public function get fullScreenSourceRect():Rectangle  { return null }
+		
+		public function set fullScreenSourceRect(param1:Rectangle):void  {/**/ }
+		
+		public function get mouseLock():Boolean  { return false }
+		
+		public function set mouseLock(param1:Boolean):void  {/**/ }
+		
+		// public function get stageVideos() : Vector.<StageVideo>{return null}
+		
+		public function get stage3Ds():Vector.<Stage3D>  { return _stage3Ds }
+		
+		public function get color():uint  { return 0 }
+		
+		public function set color(param1:uint):void  {/**/ }
+		
+		public function get fullScreenWidth():uint  { return 0 }
+		
+		public function get fullScreenHeight():uint  { return 0 }
+		
+		public function get wmodeGPU():Boolean  { return false }
+		
+		public function get softKeyboardRect():Rectangle  { return null }
+		
+		public function get allowsFullScreen():Boolean  { return false }
+		
+		public function get allowsFullScreenInteractive():Boolean  { return false }
+		
+		public function get contentsScaleFactor():Number  { return 0 }
+		
+		public function get browserZoomFactor():Number  { return 0 }
+		
+		private function requireOwnerPermissions():void  {/**/ }
+		
+		public function get canvas():HTMLCanvasElement
+		{
+			
+			if (!_canvas)
+			{
+				//http://www.w3schools.com/jsref/dom_obj_event.asp
+				_canvas = document.getElementById("spriteflexjsstage") as HTMLCanvasElement;
+				if (_canvas == null){
+					_canvas=document.createElement("canvas") as HTMLCanvasElement;
+					_canvas.style.position = "absolute";
+					_canvas.style.left = "0px";
+					_canvas.style.top = "0px";
+					_canvas.style.zIndex = -10;
+					__rootHtmlElement.appendChild(_canvas as HTMLCanvasElement);
+				}
+				
+				_canvas.addEventListener("click", canvas_mouseevent,false);
+				_canvas.addEventListener("contextmenu", canvas_mouseevent,false);
+				_canvas.addEventListener("dblclick", canvas_mouseevent,false);
+				_canvas.addEventListener("mousedown", canvas_mouseevent,false);
+				_canvas.addEventListener("mouseenter", canvas_mouseevent,false);
+				_canvas.addEventListener("mouseleave", canvas_mouseevent,false);
+				_canvas.addEventListener("mousemove", canvas_mouseevent,false);
+				_canvas.addEventListener("mouseover", canvas_mouseevent,false);
+				_canvas.addEventListener("mouseout", canvas_mouseevent,false);
+				_canvas.addEventListener("mouseup", canvas_mouseevent,false);
+				_canvas.addEventListener("mousewheel", canvas_mouseevent,false);
+				_canvas.addEventListener("touchcancel", canvas_touchevent,false);
+				_canvas.addEventListener("touchend", canvas_touchevent,false);
+				_canvas.addEventListener("touchmove", canvas_touchevent,false);
+				_canvas.addEventListener("touchstart", canvas_touchevent,false);
+				document.addEventListener("keydown", canvas_keyevent,false);
+				document.addEventListener("keyup", canvas_keyevent,false);
+			}
+			return _canvas;
+		}
+		
+		
+		private function canvas_touchevent(e:Object):void 
+		{
+			var jsType:String = e.type;
+			var flashType:String;
+			var flashType2:String;
+			switch(jsType) {
+				case "touchcancel":
+					flashType = TouchEvent.TOUCH_END;
+					flashType2 = MouseEvent.MOUSE_UP;
+					break;
+				case "touchend":
+					flashType = TouchEvent.TOUCH_END;
+					flashType2 = MouseEvent.MOUSE_UP;
+					break;
+				case "touchmove":
+					flashType = TouchEvent.TOUCH_MOVE;
+					flashType2 = MouseEvent.MOUSE_MOVE;
+					break;
+				case "touchstart":
+					flashType = TouchEvent.TOUCH_BEGIN;
+					flashType2 = MouseEvent.MOUSE_DOWN;
+					e.preventDefault();
+					break;
+			}
+			if (flashType) {
+				if (e.targetTouches.length) {
+					_mouseX = e.targetTouches[0].pageX - canvas.offsetLeft;
+					_mouseY = e.targetTouches[0].pageY - canvas.offsetTop;
+				}
+				if (hasEventListener(flashType)) {
+					if(flashType!=TouchEvent.TOUCH_MOVE){
+						dispatchEvent(new TouchEvent(flashType, true, false, 0, true, _mouseX, _mouseY));
+					}else {
+						needSendTouchMove = true;
+					}
+				}
+				if (hasEventListener(flashType2)) {
+					if(flashType2!=MouseEvent.MOUSE_MOVE){
+						dispatchEvent(new MouseEvent(flashType2, true, false, _mouseX, _mouseY));
+					}else {
+						needSendMouseMove = true;
+					}
+				}
+				if (flashType===TouchEvent.TOUCH_END&&hasEventListener(MouseEvent.CLICK)) {
+					dispatchEvent(new MouseEvent(MouseEvent.CLICK, true, false, _mouseX, _mouseY));
+				}
+			}
+		}
+		private function canvas_keyevent(e:Object):void {
+			var jsType:String = e.type;
+			var flashType:String;
+			switch(jsType) {
+				case "keydown":
+					flashType = KeyboardEvent.KEY_DOWN;
+					break;
+				case "keyup":
+					flashType = KeyboardEvent.KEY_UP;
+					break;
+			}
+			if (hasEventListener(flashType)) {
+				dispatchEvent(new KeyboardEvent(flashType, true, false, e.charCode, e.keyCode, e.location, e.ctrlKey, e.altKey, e.shiftKey));
+			}
+		}
+		private function canvas_mouseevent(e:Object):void
+		{
+			var jsType:String = e.type;
+			var flashType:String;
+			switch(jsType) {
+				case "click":
+					flashType = MouseEvent.CLICK;
+					break;
+				case "contextmenu":
+					flashType = MouseEvent.CONTEXT_MENU;
+					break;
+				case "dblclick":
+					flashType = MouseEvent.DOUBLE_CLICK;
+					break;
+				case "mousedown":
+					flashType = MouseEvent.MOUSE_DOWN;
+					break;
+				case "mouseenter":
+					flashType = MouseEvent.ROLL_OVER;
+					break;
+				case "mouseleave":
+					flashType = MouseEvent.MOUSE_OUT;
+					break;
+				case "mousemove":
+					flashType = MouseEvent.MOUSE_MOVE;
+					break;
+				case "mouseover":
+					flashType = MouseEvent.MOUSE_OVER;
+					break;
+				case "mouseout":
+					flashType = MouseEvent.MOUSE_OUT;
+					break;
+				case "mouseup":
+					flashType = MouseEvent.MOUSE_UP;
+					break;
+				case "mousewheel":
+					flashType = MouseEvent.MOUSE_WHEEL;
+					break;
+					
+			}
+			if(flashType){
+				_mouseX = e.pageX - canvas.offsetLeft;
+				_mouseY = e.pageY - canvas.offsetTop;
+				if (hasEventListener(flashType)) {
+					if(flashType!=MouseEvent.MOUSE_MOVE){
+						dispatchEvent(new MouseEvent(flashType,true,false,_mouseX,_mouseY,null,e.ctrlKey,e.altKey,e.shiftKey,e.button>0,e.wheelDelta));
+					}else {
+						needSendMouseMove = true;
+					}
+				}
+			}
+		}
+		/**
+		 * @flexjsignorecoercion CanvasRenderingContext2D
+		 */
+		public function get ctx():CanvasRenderingContext2D
+		{
+			if (!_ctx)
+			{
+				if (SpriteFlexjs.wmode==="gpu") {
+					_ctx = new GLCanvasRenderingContext2D(this) as CanvasRenderingContext2D;
+					SpriteFlexjs.renderer = new WebGLRenderer;
+				}else if (SpriteFlexjs.wmode==="gpu batch"){
+					_ctx = new GLCanvasRenderingContext2D(this, true) as CanvasRenderingContext2D;
+					SpriteFlexjs.renderer = new WebGLRenderer;
+				}else{
+					_ctx = canvas.getContext("2d") as CanvasRenderingContext2D;
+				}
+			}
+			return _ctx;
+		}
+		
+		public function get ctx2d():CanvasRenderingContext2D{
+			if (!_ctx2d)
+			{
+				var can:HTMLCanvasElement = document.createElement("canvas") as HTMLCanvasElement;
+				_ctx2d = can.getContext("2d") as CanvasRenderingContext2D;
+			}
+			return _ctx2d;
+		}
+		
+		public function get displayContextInfo():String  { return null }
+		
+		public function get mouseX():Number 
+		{
+			return _mouseX;
+		}
+		
+		public function get mouseY():Number 
+		{
+			return _mouseY;
+		}
+	
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/Stage3D.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/Stage3D.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/Stage3D.as
new file mode 100644
index 0000000..b910e3a
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/Stage3D.as
@@ -0,0 +1,80 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+	import flash.events.EventDispatcher;
+	import flash.events.Event;
+	import flash.display3D.Context3D;
+	
+	public class Stage3D extends EventDispatcher
+	{
+		public var __stage:Stage;
+		private var _context3D:Context3D;
+		private static var ID:int = 0;
+		private var id:int;
+		public function Stage3D()
+		{
+			id = ID++;
+			super();
+		}
+		
+		public function get context3D():Context3D  { return _context3D }
+		
+		public function requestContext3D(param1:String = "auto", param2:String = "baseline"):void
+		{
+			_context3D = new Context3D;
+			var canvas:HTMLCanvasElement = (document.getElementById("spriteflexjsstage3d" + id)) as HTMLCanvasElement;
+			if(canvas==null){
+				canvas = document.createElement("canvas") as HTMLCanvasElement;
+				canvas.style.position = "absolute";
+				canvas.style.left = "0px";
+				canvas.style.top = "0px";
+				canvas.style.zIndex =id-20;
+				
+				__stage.__rootHtmlElement.appendChild(canvas);
+			}
+			_context3D.canvas = canvas;
+			_context3D.gl = (canvas.getContext("webgl",{alpha:false,antialias:false}) || canvas.getContext("experimental-webgl",{alpha:false,antialias:false})) as WebGLRenderingContext;
+			dispatchEvent(new Event(Event.CONTEXT3D_CREATE));
+		}
+		
+		public function requestContext3DMatchingProfiles(param1:Vector.<String>):void
+		{
+			requestContext3D();
+		}
+		
+		public function get x():Number  { return 0 }
+		
+		public function set x(param1:Number):void
+		{
+		}
+		
+		public function get y():Number  { return 0 }
+		
+		public function set y(param1:Number):void
+		{
+		}
+		
+		public function get visible():Boolean  { return false }
+		
+		public function set visible(param1:Boolean):void
+		{
+		}
+	}
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/StageAlign.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/StageAlign.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/StageAlign.as
new file mode 100644
index 0000000..8664760
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/StageAlign.as
@@ -0,0 +1,45 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+   public final class StageAlign extends Object
+   {
+      
+      public static const TOP:String = "T";
+      
+      public static const LEFT:String = "L";
+      
+      public static const BOTTOM:String = "B";
+      
+      public static const RIGHT:String = "R";
+      
+      public static const TOP_LEFT:String = "TL";
+      
+      public static const TOP_RIGHT:String = "TR";
+      
+      public static const BOTTOM_LEFT:String = "BL";
+      
+      public static const BOTTOM_RIGHT:String = "BR";
+       
+      public function StageAlign()
+      {
+         super();
+      }
+   }
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/StageDisplayState.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/StageDisplayState.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/StageDisplayState.as
new file mode 100644
index 0000000..c8015c8
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/StageDisplayState.as
@@ -0,0 +1,35 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+   public final class StageDisplayState extends Object
+   {
+      
+      public static const FULL_SCREEN:String = "fullScreen";
+      
+      public static const FULL_SCREEN_INTERACTIVE:String = "fullScreenInteractive";
+      
+      public static const NORMAL:String = "normal";
+       
+      public function StageDisplayState()
+      {
+         super();
+      }
+   }
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/StageQuality.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/StageQuality.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/StageQuality.as
new file mode 100644
index 0000000..439f9da
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/StageQuality.as
@@ -0,0 +1,45 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+   public final class StageQuality extends Object
+   {
+      
+      public static const LOW:String = "low";
+      
+      public static const MEDIUM:String = "medium";
+      
+      public static const HIGH:String = "high";
+      
+      public static const BEST:String = "best";
+      
+      public static const HIGH_8X8:String = "8x8";
+      
+      public static const HIGH_8X8_LINEAR:String = "8x8linear";
+      
+      public static const HIGH_16X16:String = "16x16";
+      
+      public static const HIGH_16X16_LINEAR:String = "16x16linear";
+       
+      public function StageQuality()
+      {
+         super();
+      }
+   }
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/StageScaleMode.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/StageScaleMode.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/StageScaleMode.as
new file mode 100644
index 0000000..094d269
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/StageScaleMode.as
@@ -0,0 +1,37 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+   public final class StageScaleMode extends Object
+   {
+      
+      public static const SHOW_ALL:String = "showAll";
+      
+      public static const EXACT_FIT:String = "exactFit";
+      
+      public static const NO_BORDER:String = "noBorder";
+      
+      public static const NO_SCALE:String = "noScale";
+       
+      public function StageScaleMode()
+      {
+         super();
+      }
+   }
+}

http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/2b7a1d9f/frameworks/projects/spriteflexjs/src/main/flex/flash/display/TriangleCulling.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/spriteflexjs/src/main/flex/flash/display/TriangleCulling.as b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/TriangleCulling.as
new file mode 100644
index 0000000..41bf2d8
--- /dev/null
+++ b/frameworks/projects/spriteflexjs/src/main/flex/flash/display/TriangleCulling.as
@@ -0,0 +1,35 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package flash.display
+{
+   public final class TriangleCulling extends Object
+   {
+      
+      public static const NONE:String = "none";
+      
+      public static const POSITIVE:String = "positive";
+      
+      public static const NEGATIVE:String = "negative";
+       
+      public function TriangleCulling()
+      {
+         super();
+      }
+   }
+}


Mime
View raw message