public AsFragmentFilter(int numPasses, float resolution)
 {
     if (AsCapabilities.getIsDebugger() && AsGlobal.getQualifiedClassName(this) == "starling.filters::FragmentFilter")
     {
         throw new AsAbstractClassError();
     }
     if (numPasses < 1)
     {
         throw new AsArgumentError("At least one pass is required.");
     }
     mNumPasses  = numPasses;
     mMarginX    = mMarginY = 0.0f;
     mOffsetX    = mOffsetY = 0;
     mResolution = resolution;
     mMode       = AsFragmentFilterMode.REPLACE;
     mVertexData = new AsVertexData(4);
     mVertexData.setTexCoords(0, 0, 0);
     mVertexData.setTexCoords(1, 1, 0);
     mVertexData.setTexCoords(2, 0, 1);
     mVertexData.setTexCoords(3, 1, 1);
     mIndexData = new AsVector <uint>();
     mIndexData.setOwnProperty("_fixed", true);
     createPrograms();
     AsStarling.getCurrent().getStage3D().addEventListener(AsEvent.CONTEXT3D_CREATE, onContextCreated, false, 0, true);
 }
 public AsDisplayObjectContainer()
 {
     if (AsCapabilities.getIsDebugger() && AsGlobal.getQualifiedClassName(this) == "starling.display::DisplayObjectContainer")
     {
         throw new AsAbstractClassError();
     }
     mChildren = new AsVector <AsDisplayObject>();
 }
 public AsTexture()
 {
     if (AsCapabilities.getIsDebugger() && AsGlobal.getQualifiedClassName(this) == "starling.textures::Texture")
     {
         throw new AsAbstractClassError();
     }
     mRepeat = false;
 }
 public AsDisplayObject()
 {
     if (AsCapabilities.getIsDebugger() && AsGlobal.getQualifiedClassName(this) == "starling.display::DisplayObject")
     {
         throw new AsAbstractClassError();
     }
     mX                    = mY = mPivotX = mPivotY = mRotation = mSkewX = mSkewY = 0.0f;
     mScaleX               = mScaleY = mAlpha = 1.0f;
     mVisible              = mTouchable = true;
     mBlendMode            = AsBlendMode.AUTO;
     mTransformationMatrix = new AsMatrix();
     mOrientationChanged   = mUseHandCursor = false;
 }