Re: [Flashcoders] setInterval and loadMovie
Hey Steven just wanted to tell ya I miss the old site you guys had back about 4 years ago and also the update you guys did. Very good stuff!!! Tony Trapp - Original Message - From: "Flash Mel" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Thursday, July 13, 2006 10:58 AM Subject: Re: [Flashcoders] setInterval and loadMovie > Thanks guys, got it working! > > Cheers, > > fM. > > > > On 7/10/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote: > > > > You orphaned a running interval. You need to make sure you > > clearInterval first. You could put it in the onUnload of your loaded > > movie, or you could clear the interval in that swf just before you > > loadMovie. > > > > BLITZ | Steven Sacks - 310-551-0200 x209 > > > > > > > -Original Message- > > > From: [EMAIL PROTECTED] [mailto:flashcoders- > > > [EMAIL PROTECTED] On Behalf Of Flash Mel > > > Sent: Sunday, July 09, 2006 8:04 PM > > > To: Flashcoders mailing list > > > Subject: [Flashcoders] setInterval and loadMovie > > > > > > Evening, > > > > > > I'm having a brainfart here. I have a movie that loads separate .swfs > > > into a clip called holdGallery_mc. All of the .swfs are simply > > > different slideshows (reads from xml, images files on server, > > > preloader for each image, pan image vert or horz depending on size, > > > etc.). Anyway, the core for all the slideshows to work is a > > > setInterval script "reStartSlides = setInterval(startSlides, 4000);" > > > > > > Here is my problem, when loading the the .swfs into the main movie, > > > the first one naturally, is ok. But when I try loading another .swf > > > to replace the current on, the old .swf is gone but its interval is > > > still alive and kicking. > > > > > > What, what?! > > > > > > What is happening? > > > ___ > > > 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] setInterval and loadMovie
Thanks guys, got it working! Cheers, fM. On 7/10/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote: You orphaned a running interval. You need to make sure you clearInterval first. You could put it in the onUnload of your loaded movie, or you could clear the interval in that swf just before you loadMovie. BLITZ | Steven Sacks - 310-551-0200 x209 > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Flash Mel > Sent: Sunday, July 09, 2006 8:04 PM > To: Flashcoders mailing list > Subject: [Flashcoders] setInterval and loadMovie > > Evening, > > I'm having a brainfart here. I have a movie that loads separate .swfs > into a clip called holdGallery_mc. All of the .swfs are simply > different slideshows (reads from xml, images files on server, > preloader for each image, pan image vert or horz depending on size, > etc.). Anyway, the core for all the slideshows to work is a > setInterval script "reStartSlides = setInterval(startSlides, 4000);" > > Here is my problem, when loading the the .swfs into the main movie, > the first one naturally, is ok. But when I try loading another .swf > to replace the current on, the old .swf is gone but its interval is > still alive and kicking. > > What, what?! > > What is happening? > ___ > 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] setInterval and loadMovie
You orphaned a running interval. You need to make sure you clearInterval first. You could put it in the onUnload of your loaded movie, or you could clear the interval in that swf just before you loadMovie. BLITZ | Steven Sacks - 310-551-0200 x209 > -Original Message- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of Flash Mel > Sent: Sunday, July 09, 2006 8:04 PM > To: Flashcoders mailing list > Subject: [Flashcoders] setInterval and loadMovie > > Evening, > > I'm having a brainfart here. I have a movie that loads separate .swfs > into a clip called holdGallery_mc. All of the .swfs are simply > different slideshows (reads from xml, images files on server, > preloader for each image, pan image vert or horz depending on size, > etc.). Anyway, the core for all the slideshows to work is a > setInterval script "reStartSlides = setInterval(startSlides, 4000);" > > Here is my problem, when loading the the .swfs into the main movie, > the first one naturally, is ok. But when I try loading another .swf > to replace the current on, the old .swf is gone but its interval is > still alive and kicking. > > What, what?! > > What is happening? > ___ > 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] setInterval and loadMovie
Here is my problem, when loading the the .swfs into the main movie, the first one naturally, is ok. But when I try loading another .swf to replace the current on, the old .swf is gone but its interval is still alive and kicking. What, what?! What is happening? setIntervals continue to be running even when their original movieclip is deleted, unloaded, or otherwise removed. It exists on some kind of global scope. Always clearInterval your intervals. It's the only way to make them stop. - Zeh ___ 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] setInterval and loadMovie
Use "clearInterval(reStartSlides);" when you want the interval to stop. -Keith http://home.mn.rr.com/keithreinfeld -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Flash Mel Sent: Sunday, July 09, 2006 10:04 PM To: Flashcoders mailing list Subject: [Flashcoders] setInterval and loadMovie Evening, I'm having a brainfart here. I have a movie that loads separate .swfs into a clip called holdGallery_mc. All of the .swfs are simply different slideshows (reads from xml, images files on server, preloader for each image, pan image vert or horz depending on size, etc.). Anyway, the core for all the slideshows to work is a setInterval script "reStartSlides = setInterval(startSlides, 4000);" Here is my problem, when loading the the .swfs into the main movie, the first one naturally, is ok. But when I try loading another .swf to replace the current on, the old .swf is gone but its interval is still alive and kicking. What, what?! What is happening? ___ 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] setInterval and loadMovie
Evening, I'm having a brainfart here. I have a movie that loads separate .swfs into a clip called holdGallery_mc. All of the .swfs are simply different slideshows (reads from xml, images files on server, preloader for each image, pan image vert or horz depending on size, etc.). Anyway, the core for all the slideshows to work is a setInterval script "reStartSlides = setInterval(startSlides, 4000);" Here is my problem, when loading the the .swfs into the main movie, the first one naturally, is ok. But when I try loading another .swf to replace the current on, the old .swf is gone but its interval is still alive and kicking. What, what?! What is happening? ___ 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