That was a change after I gave him the Main.as file. You only need one conditional test beno. Each hand was being passed to that checkFrame function. When a frame reached frame 40, you can enter anything you want to happen after that.
public function checkFrame(e:Event):void { if (e.target.currentFrame == 40) { //Enter code that needs to execute when frame 40 is reached } } Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com -----Original Message----- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Dave Watts Sent: Friday, December 11, 2009 1:50 PM To: Flash Coders List Subject: Re: [Flashcoders] Lost My checkFrame > I have the following code: > > ... > > //check the hands and stop when they reach the 40 frame > public function checkFrame(e:Event):void > { > if (e.target.currentFrame == 40) > { > ... > } > if (e.target.currentFrame == 40) > { > ... > } > } This may not have anything to do with your problem, but why do you have two identical conditional tests, one right after the other? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders