Really quick + easy flash help

Soldato
Joined
5 Feb 2006
Posts
3,524
Hey guys,

Just trying to create a simple animation in flash that shows numbers counting upwards. Using dynamic text as it needs to count really rather high.

Created a basic movie clip. Think I have it right but just need a wee bit o help.

EDIT : Have worked it out, just needed to define number as a number,so : Number(number)+1;

Secondary question though. Its a really large number and I would like it to have commas in it. How would I add these with out Flash having a spaz ?
 
Last edited:
I don't use actionscript or flash so this is a long shot.. but it looks like you are adding a string to a string. This is why it is appending +1 to the end rather than using numerics to calculate.

Have you used quotes or anything that would suggest a string rather than a value?

Do you specify the type of variable?

Does this page help? http://www.actionscript.org/forums/showthread.php3?t=116768
 
Last edited:
Sort of, I have worked out how to add the to together. Think it did have something to do with string to string activities. Just had to define that is was actually a number. So i have it counting upwards.

I just need now to add commas to it so instead of 231124141 it reads 213,124,141.

Any ideas ?
 
I'm not too sure on how this is working. Why are you getting a long list of numbers without spaces?
 
I'm making it for a video. So its just counting up with the possibilities of something happening. Its spitting out my number into the dynamic text box as just one long number and counts up fine, which i all wanted.

The problem i have is i would love for it to have commas at 3 digit intervals so its easier read.
 
Back
Top Bottom