Flash Animation Stops or Hangs at 3,243. Why?
Sorry this is probably not the best place to ask this, but I suspect it's a general question.
Using this code sample --
http://flowingdata.com/2008/10/21/cod...
I tried inserting my own list of retail store openings (about 14,000) and it always hangs at 3,243. s there a maximum number of sprites in Flash or something? I tried different data and it always hangs at that number, so I know it's not a bad character or bad data. It's like there's just a limit as to how many can be read in or rendered.
Any ideas appreciated!
Thanks,
Eric
Using this code sample --
http://flowingdata.com/2008/10/21/cod...
I tried inserting my own list of retail store openings (about 14,000) and it always hangs at 3,243. s there a maximum number of sprites in Flash or something? I tried different data and it always hangs at that number, so I know it's not a bad character or bad data. It's like there's just a limit as to how many can be read in or rendered.
Any ideas appreciated!
Thanks,
Eric
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Hi Eric,
I'm not overly familiar with that exact code, but you might check a few things.
First make sure you're compiling and running with debugging enabled and using the debug version of the flash player - that way if an error occurs you'll find out where it is in your code.
Second, perhaps it's an erroneous value in your data? A bad lat/lon that doesn't get parsed might cause an error. Or if the size of the dots depends on a value from your file, watch out for errors like divide by zero.
There isn't a limit on numbers of Sprites that I'm aware of, except for the performance-related implications of trying to do too much stuff per frame in animations.
Tom. -
Sorry, I just realised you already confirmed it's not a bad value. Let us know if you're using the debugging stuff, it will help locate the problem. -
Inappropriate?Ahh! silly me. There's a line in the code in MarkersClip.as --
storesPerYear = [1,1,1,2,5,5,5,15,17,19,25,19,27,39,34,43,54,150,63,87,99,110,121,142,125,131,178,163,138,156,107,129,53,60,66,80,105,106,114,96,130,118,37];
That's got to be it.
Eric -
Inappropriate?Yes, it seems like Nathan took a couple of short cuts! Glad you found it.
Loading Profile...



EMPLOYEE