[Flashcoders] Getting frustrated. regarding set Interval, and for loop.

2007-02-28 Thread Paul V.
Let me explain the problem I am having and then I will send you some code. I want to load up images in a slide show with set interval, with the images being called image1 image2 image 3 etc. I want to be coding a dynamic slide show so that if I change the images I can just replace the mc

RE: [Flashcoders] Getting frustrated. regarding set Interval, and for loop.

2007-02-28 Thread Matt Samet
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul V. Sent: Wednesday, February 28, 2007 5:03 PM To: Flashnewbie Mailing List; Flashcoders mailing list Subject: [Flashcoders] Getting frustrated. regarding set Interval,and for loop. Let me explain the problem I am having and then I will send

Re: [Flashcoders] Getting frustrated. regarding set Interval, and for loop.

2007-02-28 Thread Omar Fouad
assign the setInterval to a variable than clear the interval this way : var myInterval = setInterval(blah blah blah); clearInterval(myInterval); read about clearInterval on the docs... U'll realize it more On 3/1/07, Paul V. [EMAIL PROTECTED] wrote: Let me explain the problem I am having and

Re: [Flashcoders] Getting frustrated. regarding set Interval, and for loop.

2007-02-28 Thread Alain Rousseau
Hi Paul, actually what you should do with setInterval is something like setInterval(functionReference, interval); or to keep the scope of the interval : setInterval(this, functionReference, interval); secondly, if you want to load the image at a set interval, then your approach is wrong.

Re: [Flashcoders] Getting frustrated. regarding set Interval, and for loop.

2007-02-28 Thread Alain Rousseau
Ahh yes forgot something to stop loading images : function doLoadImage() { movieCount++; this.attachMovie(image+i, image+i, 41); // allways refer to the movieClip you are attaching, in your case it's this image = this[image+i]; // eval is deprecated in Flahs 8, so this is a better

RE: [Flashcoders] Getting frustrated. regarding set Interval, and for loop.

2007-02-28 Thread Kalani Bright
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Omar Fouad Sent: Wednesday, February 28, 2007 5:18 PM To: Paul V.; flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Getting frustrated. regarding set Interval,and for loop. assign the setInterval to a variable than clear the interval

Re: [Flashcoders] Getting frustrated. regarding set Interval, and for loop.

2007-02-28 Thread Alain Rousseau
And another error on my part in doLoadImage replace i with movieCount Alain Rousseau wrote: Hi Paul, actually what you should do with setInterval is something like setInterval(functionReference, interval); or to keep the scope of the interval : setInterval(this, functionReference,

RE: [Flashcoders] Getting frustrated. regarding set Interval, and for loop.

2007-02-28 Thread Steven Sacks | BLITZ
So even though I never wrote it I would offer the following advice, which is to *almost* not use setInterval at all. Hogwash. http://www.kennybunch.com/index.php?p=16 :) ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or

Re: [Flashcoders] Getting frustrated. regarding set Interval, and for loop.

2007-02-28 Thread Omar Fouad
a reference to the object. Good luck, Kalani -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Omar Fouad Sent: Wednesday, February 28, 2007 5:18 PM To: Paul V.; flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Getting frustrated. regarding set

Re: [Flashcoders] Getting frustrated. regarding set Interval, and for loop.

2007-02-28 Thread Omar Fouad
Of Omar Fouad Sent: Wednesday, February 28, 2007 5:18 PM To: Paul V.; flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Getting frustrated. regarding set Interval,and for loop. assign the setInterval to a variable than clear the interval this way : var myInterval = setInterval(blah

Re: [Flashcoders] Getting frustrated. regarding set Interval, and for loop.

2007-02-28 Thread Muzak
/flashnewbie regards, Muzak - Original Message - From: Kalani Bright [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Thursday, March 01, 2007 3:15 AM Subject: RE: [Flashcoders] Getting frustrated. regarding set Interval,and for loop. When I was using AS2 I found that no matter

Re: [Flashcoders] Getting frustrated. regarding set Interval, and for loop.

2007-02-28 Thread Adam Pasztory
Intervals are not a problem as long as you use them correctly. Just make sure for every setInterval() call you have a corresponding clearInterval() call. Usually the clearInterval() is within your interval event handler function, so once the interval end condition is met, there's no way for

RE: [Flashcoders] Getting frustrated. regarding set Interval, and for loop.

2007-02-28 Thread Kalani Bright
manager but I still would use a timer. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ Sent: Wednesday, February 28, 2007 6:38 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Getting frustrated. regarding set Interval

Re: [Flashcoders] Getting frustrated. regarding set Interval, and for loop. Thanks All!

2007-02-28 Thread Paul V.
: Re: [Flashcoders] Getting frustrated. regarding set Interval,and for loop. Link Updated :D http://www.proeye.net/omarfouad/myClasses/SetTimer.rar On 3/1/07, Omar Fouad [EMAIL PROTECTED] wrote: well I've actually created a class called SetTimer.as that executes a function after a given

RE: [Flashcoders] Getting frustrated. regarding set Interval, and for loop.

2007-02-28 Thread Kalani Bright
: [Flashcoders] Getting frustrated. regarding set Interval,and for loop. As a posted last week or something, there's a few things to keep in mind when using setInterval - clear interval before setting it - always use this syntax setInterval(scope, method, interval) - and never use this syntax

Re: [Flashcoders] Getting frustrated. regarding set Interval, and for loop.

2007-02-28 Thread Muzak
- Original Message - From: Kalani Bright [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Thursday, March 01, 2007 4:55 AM Subject: RE: [Flashcoders] Getting frustrated. regarding set Interval,and for loop. 1) setInterval is not accurate. Try moving the window around