On Tue, Feb 2, 2010 at 8:54 AM, Cor <[email protected]> wrote:
> /*
> Without knowing what you exactly trying to do, maybe this helps.
>
> */
>
> package {
> import flash.events.Event;
> import flash.events.ProgressEvent;
> import flash.events.Event;
> import flash.events.MouseEvent;
> import flash.display.MovieClip;
> import com.greensock.*;
> import com.greensock.easing.*;
>
> public class Main2 extends MovieClip {
> //Import Library Assests
> public var myThumb:CloseThumb;
>
> public function Main2() {
> init();
> }
>
> public function init():void {
> theThumb();
> }
> public function theThumb():void {
> myThumb = new CloseThumb();
> myThumb.x = 365;
> myThumb.y = 355;
> addChild(myThumb);
> myThumb.addEventListener(Event.ADDED_TO_STAGE,
> onStage);
> }
> public function onStage(e:Event):void {
> if (e.target.currentFrame == 1) {
>
> e.target.removeEventListener(Event.ADDED_TO_STAGE, onStage);
> trace('check');
> TweenMax.to(myThumb, .4,
> {shortRotation:{rotation:60}, ease:Back.easeOut});
> }
> }
> }
> }
>
> It did add...at least I saw it on stage. It didn't trace, however.
You can d'l everything here:
http://angrynates.com/cart/main2.zip
TIA,
beno
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders