My account
Shopping cart
Knowledge base
Support


Usage and Code Samples for Square Effects Pro V1 Flash Component




ScrollBar Pro V1 Usage and Code Samples

Square Effect Pro is a movieclip prototype (actionscript component) that masks movieclips with square type masks matrixes under diverse algorithms. There are 7 parameters that can be customized in order to get an original tweening square effect. Try our preseted effects in the flash header and also try to customize your own effect in real time customizing values for the method params.

Simply drag and drop the Square Effect Pro component to the stage, than all you need to do is call the .squareEffect(params) method on any movieclip on your stage.
You can play with our flash header, and when you like a transition copy and paste it to your code. The tweening will be similar as the one obtained in our movie (if you use the same frameRate: 30)

Usage:
my_mc.squareEffect(__width:Number, __delta:Number, __growspeed:Number, __speed:Number, __preset:String, __apear:Boolean, __radius:Number);

__width: an integer that specifies the square width (and height)
__delta: an integer that specifies the division(multiplying) factor
__growspeed: an integer specifying the opening speed of the square
__speed: an integer specifying the speed of duplicating squares
__preset: a string for the preset you want to perform. available options: "up-down", down-up", "middle", "middle-reverse", "right-left", "left-right", "diagonal", "diagonal-reverse", "one-one", "random"
__apear: a boolean variable specifying that the clip is going to apear visible or to dissapear with the mask tweening
__radius: the radius of the corner

Code Samples

img1.squareEffect(50, 12, 24, 10, "diagonal", true, 10);
img1.squareEffect(60, 8, 14, 8, "diagonal-reverse", false, 20);

//onSquareEffectEnd detect when the effect is completed
img1.onSquareEffectEnd = function(dirfinish) {
trace("efect ended");
};