hey i’m new to as3.0 just like this guy was (http://www.kirupa.com/forum/showthread.php?t=280037&page=1) and i was trying to do the same thing. however, i WAS starting out w/ a movie clip called picMC.
I asked this question earlier and someone told me to write this to make sure the picMC was one the stage when the code was called.
they suggested this:
var picMC:PicMC = new PicMC();
addChild(picMC);
I put that code into my actions panel and my library only has a movie clip in it.
that being said when i export the movie i DON’T get any error messages but my movie clip still doesn’t appear on the stage. The class name in my linkage window is called PicMC and the base class is flash.display.MovieClip.
what’s wrong? why isn’t the movie clip in my library not showing up on the stage?
here’s my code now:
import fl.transitions.Tween;
import fl.transitions.easing.*;
var outTween:Tween;
var picMC:PicMC = new PicMC();
addChild(picMC);
picMC.addEventListener(MouseEvent.MOUSE_OVER, fadeOut);
function fadeOut(event:MouseEvent):void
{
outTween = new Tween(picMC, "alpha", None.easeNone,1,0,1,true);
}
also, why isn’t the datatype in the example a MovieClip or something
why write
var picMC:PicMC = new PicMC();
and not
var picMC:MovieClip = new MovieClip();
and as a rule in AS 3.0 does every tween i make need to be put in its own variable??
also, on my earlier post i saw people talk about tweening engines and i had no clue what that meant but i had general idea. that being said, what are the benefits of a tweening engine? some practical uses? can anyone offer some links or reading about what tween engines do and such?
thanks !!!