Hello,
I've just started on my first AS3 project and have already run into a problem. Can someone please tell me why the following code is not working correctly. What's NOT happening is that the mc that is passed to the scalethis function is NOT alpha'ing to 0 and I can't for the life of me understand why.
PHP Code:
package
{
import flash.display.*;
import flash.events.*;
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
public class main extends MovieClip
{
public function main()
{
for (var i = 1; i<11; i++)
{
var p = ["plan"+i];
scalethis(p, "alpha", 0, 1, Strong.easeOut);
}
}
public function scalethis(mc, prop, end, time, type):void
{
var sT:Tween = new Tween(mc, prop, type, mc[prop], end, time, true);
}
}
}
Any help would be greatly appreciated.
Cheers
Matt