Actually, just this would work too - the other post was from something else:
function GoNext(){ clearInterval(intID) nextframe(); } intID = setInterval(GoNext, 10000); Will move after 10 seconds. Jason Merrill Bank of America Learning Technology Solutions >>-----Original Message----- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of Merrill, Jason >>Sent: Tuesday, June 13, 2006 10:02 AM >>To: Flashcoders mailing list >>Subject: RE: [Flashcoders] timer to advance >> >>You could just use setInterval instead of getTimer: >> >>count = 0; >> >>function GoNext(){ >> count++; >> if(count >= 10){ >> clearInterval(intID) >> nextframe(); >> count = 0; >> } >>} >> >>intID = setInterval(GoNext, 1000); >> >>Jason Merrill >>Bank of America >>Learning Technology Solutions >> >> >> >> >> >> >> >>>>-----Original Message----- >>>>From: [EMAIL PROTECTED] [mailto:flashcoders- >>>>[EMAIL PROTECTED] On Behalf Of David Brunswick >>>>Sent: Tuesday, June 13, 2006 9:45 AM >>>>To: 'Flashcoders mailing list' >>>>Subject: [Flashcoders] timer to advance >>>> >>>>Hello List, I am trying to accomplish a timer that will advance to a >>frame >>>>once a set time has been reached. Of course it doesn't work any ideas >>Here >>>>is the code >>>> >>>>onClipEvent (enterFrame) { >>>> if (_root.delay) { >>>> if (Math.floor(getTimer()/1000) == _root.lastTime+1) { >>>> _root.delay = false; >>>> } >>>> } else if (Math.floor(getTimer()/1000) == >>_root.lastTime+_root.wait) >>>>{ >>>> _root.lastTime = Math.floor(getTimer()/1000); >>>> _root.delay = true; >>>> // custom actions begin >>>> _root.count = _root.count+1; >>>> if (_root.count <= 20) { >>>> gotoAndStop(2); >>>> } >>>> >>>> } >>>>} >>>> >>>>David Brunswick >>>>Multimedia Developer/OLP Administrator >>>>FedEx Customer Information Services >>>>Customer Service Organizational Learning >>>>901-434-6605 >>>> >>>>_______________________________________________ >>>>Flashcoders@chattyfig.figleaf.com >>>>To change your subscription options or search the archive: >>>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>>> >>>>Brought to you by Fig Leaf Software >>>>Premier Authorized Adobe Consulting and Training >>>>http://www.figleaf.com >>>>http://training.figleaf.com >>_______________________________________________ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training >>http://www.figleaf.com >>http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com