| Flashscript classes (ActionScript 3) | Home | MX | MX 2004 | Flash 8 | Flash 9 |Flash 10 |PHP |Components | Snippets | Contact | |
MirrorImage |
|
|
See also
| Property | Defined By |
|---|---|
|
skewA
: Number
Changing this property value will change the width of the mirror image. |
MirrorImage |
|
skewB
: Number
Changing this property value will change the rotation of the mirror image. |
MirrorImage |
|
skewC
: Number
Changing this property value will change the x position and when negative or positive the skew direction of the mirror image. |
MirrorImage |
|
skewD
: Number
Changing this property value will change the y position of the mirror image. |
MirrorImage |
| Method | Defined By |
|---|---|
|
MirrorImage()
Creates a new instance of the MirrorImage class. |
MirrorImage |
|
setBitmap(origClip:MovieClip, _alpha:Number=1, distance:int=0, blurX:int=5, blurY:int=5, haveMask:MovieClip=null):void method
Will initiate the creation of a mirror image reflection of an object (must be MovieClip). |
MirrorImage |
| Event | Defined By |
|---|---|
| All inherited events for the Sprite class. | N/A |
| Property Detail |
|---|
|
skewA
property
skewA:Number [read-write] Changing this property value will change the width of the mirror image. The default value is 1. Implementationpublic function get skewA():Numberpublic function set skewA(value:Number):void |
|
skewB
property
skewB:Number [read-write] Changing this property value will change the rotation of the mirror image. The default value is 0. Implementationpublic function get skewB():Numberpublic function set skewB(value:Number):void |
|
skewC
property
skewC:Number [read-write] Changing this property value will change the x position and when negative or positive the skew direction of the mirror image. The default value is -0.3. Implementationpublic function get skewC():Numberpublic function set skewC(value:Number):void |
|
skewD
property
skewD:Number [read-write] Changing this property value will change the y position of the mirror image. The default value is -1. Implementationpublic function get skewD():Numberpublic function set skewD(value:Number):void |
| Constructor Detail |
|---|
|
MirrorImage () Constructor
public function MirrorImage() |
| Intializes a new MirrorImage instance. |
| Method Detail |
|---|
|
setBitmap() method
This method will initiate the mirror image methods. |
Parameters
|
| Examples |
|---|
Create a new fla file and name it Mirrorimage.fla. Place the fla in the same folder as the biz folder. Create a MovieClip and place it on the timeline. Give the name
mc. Then create an Actionscript file, name it Mirrorimage.as and place this script.
package
{
import flash.display.Sprite;
import biz.flashscript.animation.MirrorImage;
public class Mirrorimage extends Sprite
{
public function Mirrorimage ():void
{
var mi:MirrorImage = new MirrorImage();
addChild (mi);
mi.setBitmap (mc,0.5,10,5);
}
}
}
|