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
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
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
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
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
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
--
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
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
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
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
] 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
: [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
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
. 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
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
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
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,
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
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
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() {
}
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
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
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
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
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
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
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
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,
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 =
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
, 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
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
: [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
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
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
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
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
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
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
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
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
___
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,
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
] 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
] 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
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
] 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
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
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
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
-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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
65 matches
Mail list logo