Fade Out/In Effects
This file applies to the following Files : Advanced XML Banner / Image / Photo/ Picture / SWF Rotator.
Below are links to examples showing each effect in action. Each example has the following settings. Fade out to alpha value 0, duration 2 seconds, delay 0 seconds, width and height of each segment 40px.
// NOTE // Be careful how small the values you enter for the width and height, as some computers might not be able to run smoothly. // NOTE //
Effect
If you want to play around with adding your own effect, go to the src / source folder, then com >> skialbainn >> bitmap >> effects and open BitmapBreakUp.as.
Next find the function named start(). It will look like the text below :
public function start():void { for (k = 0; k < _ar.length; k++) {
var sh:Shape;
if (tw == "normal") { _gt = new GTween(_ar[k], d, p ); _gt.delay = dl; }
if (tw == "effect1") { _gt = new GTween(_ar[k], d + Math.cos(k), p ); _gt.delay = dl; }
if (tw == "effect2") { _gt = new GTween(_ar[k], d % Math.cos(k), p ); _gt.delay = dl; }
if (tw == "effect3") { _gt = new GTween(_ar[k], d + Math.cos(k%10), p ); _gt.delay = dl; }
if (tw == "effect4") { _gt = new GTween(_ar[k], d - Math.cos(k%10), p ); _gt.delay = dl; }
if (tw == "effect5") { _gt = new GTween(_ar[k], d + Math.cos(k/10), p ); _gt.delay = dl; }
if (tw == "effect6") { _gt = new GTween(_ar[k], d % Math.cos(k / 0.9), p ); _gt.delay = dl; }
}
}
Under effect6, add the following :
if (tw == "effect7") { _gt = new GTween(_ar[k], d, p); _gt.delay = dl; }
This is the basic layout for a new effect. Rename effect7 with the name of the new effect.
_ar[k] is the target, so dont change that. d stands for duration, this is set from the xml file.
You can replace d with some Math for example d + Math.cos(k*10), this would give a different number for each segment.
p is the properties to effect.
dl is the delay for each effect.
Once you have played around with the new effect, save the file, open the xml file, and enter in the new name for the image to be effected.