On Sun, Nov 15, 2009 at 1:33 PM, Henrik Andersson <[email protected]>wrote:
> beno - wrote:
>
>> when I tried to enter "Main", as is in the script below (and what is the
>> class associated in the "Properties" tab for the whole Flash movie) Flash
>> complains that I must use a unique name.
>>
>
> Don't give more than one symbol the same class, because it doesn't work.
> Use subclasses as needed.
>
So I've tried this, but still no cigar:
package
{
import flash.display.MovieClip;
import com.greensock.*;
import com.greensock.plugins.*;
import com.greensock.easing.*;
public class Main extends MovieClip
{
public function Main():void
{
function mcHatAndFace():void
{
TweenPlugin.activate([AutoAlphaPlugin]);
var mcHatAndFace = new MovieClip();
this.addChild(mcHatAndFace);
mcHatAndFace.x = 100;
mcHatAndFace.y = 100;
mcHatAndFace.alpha = 0;
TweenLite.to(mcHatAndFace, 1, {autoAlpha:1}); // 2nd param in
seconds; 3rd in % alpha
}
}
}
}
Please advise.
TIA,
beno
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders