Re: [Flashcoders] setInterval woes

2007-04-23 Thread Steven Sacks
20, 2007 3:02 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] setInterval woes No, I mean that he is only calling setInterval once and has no apparent need to even assign it to a variable for use with clearInterval later. On 4/20/07, David Ngo [EMAIL PROTECTED] wrote

RE: [Flashcoders] setInterval woes

2007-04-23 Thread David Ngo
that your interval will work as you intended it to. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks Sent: Monday, April 23, 2007 10:06 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] setInterval woes It's debugging 101

Re: [Flashcoders] setInterval woes

2007-04-23 Thread Steven Sacks
Sent: Monday, April 23, 2007 10:06 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] setInterval woes It's debugging 101. Eliminate the obvious things first. Calling clearInterval before setInterval is a preventative measure to protect you from unexpected behavior from

Re: [Flashcoders] setInterval woes

2007-04-23 Thread Jordan Snyder
23, 2007 10:06 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] setInterval woes It's debugging 101. Eliminate the obvious things first. Calling clearInterval before setInterval is a preventative measure to protect you from unexpected behavior from accidental orphaning

[Flashcoders] setInterval woes

2007-04-20 Thread Michael King
Hey all, Some of you may remember my problems with visually mapping streaming data before. I ended up needing them as separate clips to provide individual roll-over support with the ability to add links in a future revision. Well, now that I have it performing better, I'm breaking down the

Re: [Flashcoders] setInterval woes

2007-04-20 Thread Alexander Farber
Are you missing a stop(); maybe? On 4/20/07, Michael King [EMAIL PROTECTED] wrote: The problem is, when I use setInterval as documented, it waits the first minute, does its thing, but then it ignores the interval after that, pulling the data every time that frame comes up. Regards Alex --

Re: [Flashcoders] setInterval woes

2007-04-20 Thread Jordan Snyder
I'm wondering the same as Alexander...perhaps it's something to do with the timeline, or with other code that is happening around the code you posted. Is there anything else we should know? You should also just put a trace at the top of the intervalLoop() function to see if the problem may be

RE: [Flashcoders] setInterval woes

2007-04-20 Thread David Ngo
To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] setInterval woes Hey all, Some of you may remember my problems with visually mapping streaming data before. I ended up needing them as separate clips to provide individual roll-over support with the ability to add links in a future

Re: [Flashcoders] setInterval woes

2007-04-20 Thread Steven Sacks
You should always call clearInterval before setInterval. ALWAYS. Michael King wrote: Hey all, Some of you may remember my problems with visually mapping streaming data before. I ended up needing them as separate clips to provide individual roll-over support with the ability to add links in

Re: [Flashcoders] setInterval woes

2007-04-20 Thread Jordan Snyder
Steven, why is that? If he's only calling it once and the interval is only defined/set once, why would you call clearInterval? On 4/20/07, Steven Sacks [EMAIL PROTECTED] wrote: You should always call clearInterval before setInterval. ALWAYS. Michael King wrote: Hey all, Some of you may

RE: [Flashcoders] setInterval woes

2007-04-20 Thread David Ngo
] On Behalf Of Jordan Snyder Sent: Friday, April 20, 2007 2:03 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] setInterval woes Steven, why is that? If he's only calling it once and the interval is only defined/set once, why would you call clearInterval? On 4/20/07, Steven Sacks [EMAIL

Re: [Flashcoders] setInterval woes

2007-04-20 Thread Jordan Snyder
: [Flashcoders] setInterval woes Steven, why is that? If he's only calling it once and the interval is only defined/set once, why would you call clearInterval? On 4/20/07, Steven Sacks [EMAIL PROTECTED] wrote: You should always call clearInterval before setInterval. ALWAYS. Michael King wrote

RE: [Flashcoders] setInterval woes

2007-04-20 Thread David Ngo
To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] setInterval woes No, I mean that he is only calling setInterval once and has no apparent need to even assign it to a variable for use with clearInterval later. On 4/20/07, David Ngo [EMAIL PROTECTED] wrote: An interval is fired at each

Re: [Flashcoders] setInterval woes

2007-04-20 Thread Jordan Snyder
. That calls a method once and ONLY once after a specified delay. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jordan Snyder Sent: Friday, April 20, 2007 3:02 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] setInterval woes No, I mean that he

Re: [Flashcoders] setInterval woes

2007-04-20 Thread robert
pulling the data every time that frame comes up. Is this called on a timeline with many frames and no stop()? If so, I think you are setting a completely new interval on each loop of the frames. If you want this thing to fire once each minute put it somewhere outside of this loop of

RE: [Flashcoders] setInterval creates tooltip, then kills it

2007-01-02 Thread Mendelsohn, Michael
Actually, that was the mystery, because -- of course -- my tooltip text was *not* selectable, but the I-beam cursor showed up like an uninvited guest. Thanks for the tip! - MM Is there any reason why you need your tooltip text to be selectable? Selectable text gives you the i-beam cursor

Re: [Flashcoders] setInterval creates tooltip, then kills it

2006-12-31 Thread me myself
Is there any reason why you need your tooltip text to be selectable? Selectable text gives you the i-beam cursor when you roll over it, and the i-beam interferes with button events. Try this... myTextField.selectable = false; On 12/29/06, Mendelsohn, Michael [EMAIL PROTECTED] wrote: Thanks,

[Flashcoders] setInterval creates tooltip, then kills it

2006-12-29 Thread Mendelsohn, Michael
Hi list... //Happy new year! I have a tooltip function that makes a tooltip MC follow the mouse over when rolling over another MC, but it gets blown out after two frames, and the mouse turns to an I-beam cursor. I can't figure out why. I *don't* think it's a setInterval issue, but I might be

Re: [Flashcoders] setInterval creates tooltip, then kills it

2006-12-29 Thread Grégoire Divaret
The issue is not the interval but the rollOver. when you move your mouse, the tooltip MC is not immediately moved and you roll over it (so you got the I-beam cursor) when it is moved the rollOver function is called again and the interval is launched again. You only have to put

RE: [Flashcoders] setInterval creates tooltip, then kills it

2006-12-29 Thread Mendelsohn, Michael
Thanks, Grégoire. Your thought process seemed to work. I also ended up having to include a check for whether or not the tooltip MC was undefined onEnterFrame. - MM class toolbarFunctions extends MovieClip { private var tipID:Number; function toolbarFunctions() { }

[Flashcoders] setInterval and IE ...

2006-11-30 Thread Stephen Ford
Has anyone ever experienced any problems with using setIntervals in IE, both with window mode of transparent and without any window mode (normal) ? Thanks, Stephen.___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the

RE: [Flashcoders] setInterval and IE ...

2006-11-30 Thread Ben Smeets
Nope, using them all the time, but no problems whatsoever. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Ford Sent: donderdag 30 november 2006 10:00 To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] setInterval and IE ... Has anyone

RE: [Flashcoders] setInterval and IE ...

2006-11-30 Thread Sander van Surksum
What kind of problems do you have? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Smeets Sent: donderdag 30 november 2006 10:40 To: Flashcoders mailing list Subject: RE: [Flashcoders] setInterval and IE ... Nope, using them all the time

RE: [Flashcoders] setInterval and IE ...

2006-11-30 Thread Силин В . Е .
Surksum Sent: Thursday, November 30, 2006 2:48 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] setInterval and IE ... What kind of problems do you have? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Smeets Sent: donderdag 30 november 2006

[Flashcoders] setInterval

2006-07-26 Thread keitai guy
hi list - i have some weirdness with setInterval, wondering if someone could suggest solutions? code: var intId:Number; img = new ImageLoader( imgUrl, tgtMc ); intId = setInterval(img, checkLoading, 100 ); // doesnt work

RE: [Flashcoders] setInterval

2006-07-26 Thread jim
I don't think you should be using quotes around the function name. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of keitai guy Sent: 26 July 2006 21:10 To: Flashcoders mailing list Subject: [Flashcoders] setInterval hi list - i have some weirdness

Re: [Flashcoders] setInterval

2006-07-26 Thread Michael Bedar
The first form is fine, but you are trying to address a function called checkLoading inside an instance of ImageLoader, which does not exist.. if checkLoading is on the root level, then you would say: intId = setInterval(_root, checkLoading, 100 ); The second form is incorrect, no

Re: [Flashcoders] setInterval

2006-07-26 Thread keitai guy
hi - thanks for the help ... if checkLoading is on the root level, then you would say: intId = setInterval(_root, checkLoading, 100 ); great, this works. now i'd like to try and get it working inside an object... The second form is incorrect, no quotes there.. intId = setInterval( this,

Re: [Flashcoders] setInterval

2006-07-26 Thread Michael Bedar
setInterval either takes a function, or an object with the name of a function that object contains as a string, hence the 2 ways of using it On Jul 26, 2006, at 5:16 PM, keitai guy wrote: hi - thanks for the help ... if checkLoading is on the root level, then you would say: intId =

Re: [Flashcoders] setInterval and loadMovie

2006-07-14 Thread Flash Mel
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

Re: [Flashcoders] setInterval and loadMovie

2006-07-14 Thread Tony Trapp
, 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

[Flashcoders] setInterval and loadMovie

2006-07-09 Thread Flash Mel
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

RE: [Flashcoders] setInterval and loadMovie

2006-07-09 Thread Keith Reinfeld
: [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

Re: [Flashcoders] setInterval and loadMovie

2006-07-09 Thread Zeh Fernando
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

RE: [Flashcoders] SetInterval vs. onEnterFrame

2006-05-24 Thread Tom Lee
be a problem - you should be able to scope them to one object whose purpose is to keep track of them all. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rifled Cloaca Sent: Wednesday, May 24, 2006 5:03 PM To: Flashcoders mailing list Subject: [Flashcoders

Re: [Flashcoders] SetInterval vs. onEnterFrame

2006-05-24 Thread Adam Pasztory
I've found anecdotally the onEnterFrames are less CPU intensive than a setInterval running at a similar rate. The cons of setInterval are worth noting, but if you're using a good OOP code design, and you're strict about tracking your interval IDs, then you don't have to be too afraid of

Re: [Flashcoders] SetInterval vs. onEnterFrame

2006-05-24 Thread Tyler Wright
setInterval's use up next to nothing on processor, even if you have 20 of them going. I find that the best judgement of which to use is the task at hand. Because framerate is for animation, I find it best to use onEnterFrame when doing coded animation. Flash will cause an automatic screen redraw

RE: [Flashcoders] setInterval intervalID type?

2006-04-19 Thread Michael Trim
what type of object is the intervalId that gets returned from setInterval()? Number ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to

Re: [Flashcoders] setInterval intervalID type?

2006-04-19 Thread Dimitrios Bendilas
It's a Number Regards, Dimitrios Bendilas - Original Message - From: Merrill, Jason [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, April 19, 2006 7:08 PM Subject: [Flashcoders] setInterval intervalID type? May be a dumb question

RE: [Flashcoders] setInterval intervalID type?

2006-04-19 Thread Merrill, Jason
PROTECTED] On Behalf Of Geoff Stearns Sent: Wednesday, April 19, 2006 12:11 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] setInterval intervalID type? it returns a number. On Apr 19, 2006, at 12:08 PM, Merrill, Jason wrote: May be a dumb question, but what type of object

Re: [Flashcoders] setInterval intervalID type?

2006-04-19 Thread Julian 'Julik' Tarkhanov
On 19-apr-2006, at 18:08, Merrill, Jason wrote: May be a dumb question, but what type of object is the intervalId that gets returned from setInterval()? It's a Number. -- Julian 'Julik' Tarkhanov me at julik.nl ___

[Flashcoders] setInterval inside created Clip

2006-02-24 Thread Kevin Aebig
Hey All, I'm looping through a structure adding movieclips along the way for each element. I need to setup a separate interval inside each new clip. If I call the function directly, I need this to be constantly updating without an onEnterFrame. _root.work.createEmptyMovieClip( newName,

Re: [Flashcoders] setInterval inside created Clip

2006-02-24 Thread Byron Canfield
newClip.intervalid = setInterval(newClip.doSomething, 200); -- Byron Barn Canfield Hey All, I'm looping through a structure adding movieclips along the way for each element. I need to setup a separate interval inside each new clip. If I call the function directly, I need this to be

Re: [Flashcoders] setInterval inside created Clip

2006-02-24 Thread Nick Gerig
] On Behalf Of Byron Canfield Sent: February 24, 2006 11:01 AM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] setInterval inside created Clip newClip.intervalid = setInterval(newClip.doSomething, 200); ___ Flashcoders

RE: [Flashcoders] setInterval inside created Clip

2006-02-24 Thread Ettwein, Josh
] On Behalf Of Kevin Aebig Sent: Friday, February 24, 2006 9:27 AM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] setInterval inside created Clip Nope... didn't work. This is weird because a call to newClip.doSomething() works exactly as expected... Cheers, Kevin -Original Message

RE: [Flashcoders] setInterval inside created Clip

2006-02-24 Thread Kevin Aebig
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nick Gerig Sent: February 24, 2006 12:10 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] setInterval inside created Clip maybe: newClip.intervalid = setInterval(newClip,doSomething, 200); Kevin Aebig wrote

Re: [Flashcoders] setInterval inside created Clip

2006-02-24 Thread eric dolecki
] On Behalf Of Ettwein, Josh Sent: February 24, 2006 12:29 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] setInterval inside created Clip How about... Note I added some dummy values to vars to get it to work in my environment. The last param is optional, but I figured I'd throw

RE: [Flashcoders] setInterval inside created Clip

2006-02-24 Thread jim
Try mx.utils.Delegate might be the scope. Jim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Aebig Sent: 24 February 2006 19:59 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] setInterval inside created Clip I gave it a try

RE: [Flashcoders] setInterval inside created Clip

2006-02-24 Thread jim
February 2006 20:00 To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] setInterval inside created Clip Nope... still won't go. I actually decided to do a little test and when I set the function to be onEnterFrame instead of doSomething, it performs well. The only problem is that I'm unsure how

Re: [Flashcoders] setInterval inside created Clip

2006-02-24 Thread eric dolecki
how many clips could be running at the same time and I don't want a performance hit... !K -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nick Gerig Sent: February 24, 2006 12:10 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] setInterval

RE: [Flashcoders] setInterval inside created Clip

2006-02-24 Thread Kevin Aebig
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of eric dolecki Sent: February 24, 2006 2:04 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] setInterval inside created Clip var vItemCount:Number = 2; var newName = test; this.createEmptyMovieClip(work, 1

[Flashcoders] setInterval interfering with Sound

2006-01-27 Thread Jack H
Has anyone experienced an interval stopping sounds? I made a basketball game where I have an interval which creates random flashes of light on the stage. When the user misses or gets a ball in, a sound is initiated, which is totally unrelated to the interval. Gradually the flashes of light gets

Re: [Flashcoders] setInterval interfering with Sound

2006-01-27 Thread Ramon Tayag
Try commenting out the line that makes the light flash - but still fire the interval. If it doesn't interfere anymore, then that means it's the drawing of the light that interferes. On 1/28/06, Jack H [EMAIL PROTECTED] wrote: Has anyone experienced an interval stopping sounds? I made a

Re: [Flashcoders] SetInterval Magic

2006-01-11 Thread Sönke Rohde
Hi, This is a scope-issue. Try import mx.utils.Delegate ... setInterval(Delegate.create(this, func), 2000); Cheers, Sönke Hi Coders, In following code, I am creating a new dynamic movie clip (in function N1 of script object) and associating the handler for unload event. Next I am

Re: [Flashcoders] SetInterval Magic

2006-01-11 Thread Alias
Hi guys, It's important to realise that setInterval has two different ways to call it. The first, and most commonly used, is this: setInterval(functionReference:Function, interval:Number, [param1:Object, param2, ..., paramN]) : Number The second, which is less well known, but substantially

RE: [Flashcoders] SetInterval Magic

2006-01-11 Thread Dhiraj Girdhar
Sent: Wednesday, January 11, 2006 6:09 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] SetInterval Magic Hi guys, It's important to realise that setInterval has two different ways to call it. The first, and most commonly used, is this: setInterval(functionReference:Function

Re: [Flashcoders] setInterval() and the trouble

2005-10-30 Thread Kent Humphrey
Eric E. Dolecki wrote: use setTimeout now and you dont need to worry about interval ids. e.dolecki Have you found any documentation about setTimeout - because I haven't : ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] setInterval() and the trouble

2005-10-30 Thread eric dolecki
Its undocumented, but it works in a fire once kind of situation like javascript: foo = setTimeout( func, ms) clearTimeout(foo) but only if you need to stop the interval. Otherwise, just fire it and forget it. e.d. On 10/30/05, Kent Humphrey [EMAIL PROTECTED] wrote: Eric E. Dolecki wrote:

RE: [Flashcoders] setInterval() and the trouble

2005-10-30 Thread Tim Beynart
Why is something so useful undocumented? I have to bend over backwards to create single-fire timers. Thanks for the post. -Original Message- Its undocumented, but it works in a fire once kind of situation like javascript: foo = setTimeout( func, ms) clearTimeout(foo) but only if you

RE: [Flashcoders] setInterval() and the trouble

2005-10-30 Thread Steve Rankin
Not sure, but it's in the new ActionScript 2.0 Language Reference for Flash Player 8. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Beynart Sent: Sunday, October 30, 2005 2:59 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] setInterval

Re: [Flashcoders] setInterval() and the trouble

2005-10-30 Thread Peter O'Brien
not be documented is beyond me. Derek Vadneau -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Rankin Sent: Sunday, October 30, 2005 4:37 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] setInterval() and the trouble Not sure, but it's

Re: [Flashcoders] setInterval() and the trouble

2005-10-30 Thread Weyert de Boer
I got some stuff working now ;-=) Looks like I had some infinite loop indeed. Pff. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] setInterval() and the trouble

2005-10-29 Thread Liam Morley
I imagine you're calling clearInterval with the appropriate interval ID upon each quiz question submittal, and then afterwards recalling setInterval for the new question? How does it fail the second time? Does it just never call it again, or does it call the function at a different interval? Liam

Re: [Flashcoders] setInterval() and the trouble

2005-10-29 Thread JOR
At first glance it looks like you have a potential continuous loop issue? stopwatchComplete() questionComplete() stopwatchComplete() and so on if (id = questions.length) Second is I don't see where id is defined in questionComplete() did you mean to type this instead: if ( questionId

Re: [Flashcoders] setInterval() and the trouble

2005-10-29 Thread Eric E. Dolecki
use setTimeout now and you dont need to worry about interval ids. e.dolecki On Oct 29, 2005, at 11:21 AM, Weyert de Boer wrote: JOR wrote: At first glance it looks like you have a potential continuous loop issue? stopwatchComplete() questionComplete() stopwatchComplete() and so on