On Tue, Dec 8, 2009 at 4:14 PM, Nathan Mynarcik <nat...@mynarcik.com> wrote:

> The reason why it isn't tracing is because you are not telling the function
> what mc to check if its current frame is at 10. I believe that is what the
> "e" was for.
>
> mcToCheck.addEventListener(Event.ENTER_FRAME, myLeftHand);
>
> public function myLeftHand(e:Event):void
>     {
>  if (e.target.currentFrame == 10) { trace("yes") };
>     var mcHandInstance2:mcHand = new mcHand();
>    addChild(mcHandInstance2);
>    mcHandInstance2.x = 800;
>    mcHandInstance2.y = 200;
> //    if (e.target.currentFrame == 40) TweenMax.to(mcHandInstance2, 2,
> {x:200, startAt:{totalProgress:1}}).reverse();
>  }
>
> Now assuming no other errors, you should get a trace "yes" when the
> mcToCheck's current frame hits 10.
>

I added that exactly.
Got error 1120 access to undefined property with the mcToCheck...
got 1136 Incorrect number of arguments to public function myLeftHand...
Please advise.
TIA,
beno
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to