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
RE: [Flashcoders] timer to advance
Could this be what you need: http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhel p.htm?context=LiveDocs_Partsfile=1717.html The first comment by Francis at the bottom... Wouter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Brunswick Sent: Tuesday, June 13, 2006 3:45 PM 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
RE: [Flashcoders] timer to advance
Actually, just this would work too - the other post was from something else: function GoNext(){ clearInterval(intID) nextframe(); } intID = setInterval(GoNext, 1); 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
RE: [Flashcoders] timer to advance
That worked perfect thanks David Brunswick Multimedia Developer/OLP Administrator FedEx Customer Information Services Customer Service Organizational Learning 901-434-6605 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, June 13, 2006 9:07 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] timer to advance Actually, just this would work too - the other post was from something else: function GoNext(){ clearInterval(intID) nextframe(); } intID = setInterval(GoNext, 1); 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 ___ 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
RE: [Flashcoders] timer to advance
setTimeout is even easier to use tehn: setTimeout(GoNext,1); And it clears itself! cool -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Brunswick Sent: Tuesday, June 13, 2006 4:28 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] timer to advance That worked perfect thanks David Brunswick Multimedia Developer/OLP Administrator FedEx Customer Information Services Customer Service Organizational Learning 901-434-6605 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Tuesday, June 13, 2006 9:07 AM To: Flashcoders mailing list Subject: RE: [Flashcoders] timer to advance Actually, just this would work too - the other post was from something else: function GoNext(){ clearInterval(intID) nextframe(); } intID = setInterval(GoNext, 1); 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 ___ 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