The advancedLoader allows you to set a number of different effects for the component to use. These effects can be triggered by the loading and unloading of images and rolling over the component.
You can set the effect used when loading completes using this actionscript:
myAdvancedLoader.CompleteEffect = "Wobble in"
You can set the effect triggered when an image is unloaded like this:
The different values supported are as follows: 'None', 'Fade in', 'Rotate in', 'Wobble in' and 'Zoom in'.
myAdvancedLoader.UnloadEffect = "Wobble out";
The different values supported are as follows: 'None', 'Fade out', 'Rotate out', 'Wobble out' and 'Zoom out'.
To set the effect triggered when the component is rolled over use this script:
myAdvancedLoader.ROverEffect = "Wobble";
The different values supported are as follows: 'None', 'Bounce', 'Eased', 'Rotate' and 'Wobble'.
In addition to controlling the effect utilised by the component it is also possible to customize the effects by setting their speed and for the 'wobble' effect, the strength.
To control the speed of an effect use this code:
myAdvancedLoader.EffectSpeed = 50;
myAdvancedLoader.ROverEffect = "Eased";
To control the strength and speed of the 'wobble' effect use this code:
myAdvancedLoader.EffectStrength = 90;
myAdvancedLoader.EffectSpeed = 50;
myAdvancedLoader.ROverEffect = "Wobble";
Note that when setting the 'EffectStrength' and 'EffectSpeed' properties the lower the number, the less of an effect, so an EffectStrength of 10 is slow whereas an EffectStrength of 90 is fast.