Skew

Package:
Class:
Inheritance:
biz.flashscript.animation
public class Skew
N/A
The Skew class distorts/skews objects. To create an instance of the Skew class use the constructor new Skew() and add parameters as desired.
Public Methods
Method Defined By
Skew()
Creates a new instance of the Skew class.
Skew
skewObject(origClip:DisplayObjectContainer, _a:Number=1, _b:Number=0, _c:Number=0, _d:Number=1):void
Triggers skewing of an object.
Skew
Constructor Detail
Skew ()  Constructor
public function Skew()
Intializes a new Skew instance.
Method Detail

skewObject()  method
public function skewObject(origClip:DisplayObjectContainer, _a:Number=1, _b:Number=0, _c:Number=0, _d:Number=1):void

Triggers skewing of an object.

Parameters

  • origClip:DisplayObjectContainer ____ Specifies the object to skew.
  • _a:Number=1 ____ Specifies the width of the object (horizontal). Default is 1.
  • _b:Number=1 ____ Specifies skewing of the object in y position. Default is 0.
  • _c:Number=1 ____ Specifies skewing of the object in x position. Default is 0.
  • _d:Number=1 ____ Specifies the height of the object (vertical). Default is 1.
Examples
Create a new fla file and name it Skews.fla. Place the fla in the same folder as the biz folder. Put a MovieClip (mc) on the stage. Then create an Actionscript file, name it Skews.as and place this script.
package 
{
	import flash.display.Sprite;
	import biz.flashscript.animation.Skew;
	import flash.display.MovieClip;

	public class Skews extends Sprite
	{
		public var mc:MovieClip;
		public function Skews ():void
		{
			var sk:Skew = new Skew();
			sk.skewObject (mc,1,0.2,1,1);
		}
	}
}