0
Animate numbers within a range using actionscript
New Here
,
/t5/animate-discussions/animate-numbers-within-a-range-using-actionscript/td-p/856160
Aug 12, 2008
Aug 12, 2008
Copy link to clipboard
Copied
Hi all,
well i am trying to create this simulation where in lot of numbers keep changing based on the time line. I find it really hard to manually animate the numbers frame by frame. Is there a way that i can specify a dynamic text and specify a range of 50-100 and then its starts generating the numbers automatically from 50,51,52... etc, and it should reach the end range at a specified frame.
If i follow this method, animating a number from 10-50 and 1-6 will happen in the timeline of 80 frames.
Please help..... Thanks in advance...
well i am trying to create this simulation where in lot of numbers keep changing based on the time line. I find it really hard to manually animate the numbers frame by frame. Is there a way that i can specify a dynamic text and specify a range of 50-100 and then its starts generating the numbers automatically from 50,51,52... etc, and it should reach the end range at a specified frame.
If i follow this method, animating a number from 10-50 and 1-6 will happen in the timeline of 80 frames.
Please help..... Thanks in advance...
TOPICS
ActionScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/animate-discussions/animate-numbers-within-a-range-using-actionscript/m-p/856161#M247354
Aug 12, 2008
Aug 12, 2008
Copy link to clipboard
Copied
You can just use a setInterval function to count up. Then you
can set an interval value that will get you the timing that you
want to have. Something like the code below will change the number
every .2 seconds. It requires a dynamic textfield named
"numbers".
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Sullan_1981
AUTHOR
New Here
,
/t5/animate-discussions/animate-numbers-within-a-range-using-actionscript/m-p/856162#M247355
Aug 12, 2008
Aug 12, 2008
Copy link to clipboard
Copied
Thanks a lot...
But i am able to see the values when i put a trace command for maxCount and count, but when i put trace command for trace(numbers); i am getting some junk values like these..
"<p align="left"></p>"
how do i fix this ???
But i am able to see the values when i put a trace command for maxCount and count, but when i put trace command for trace(numbers); i am getting some junk values like these..
"<p align="left"></p>"
how do i fix this ???
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Sullan_1981
AUTHOR
New Here
,
/t5/animate-discussions/animate-numbers-within-a-range-using-actionscript/m-p/856163#M247356
Aug 12, 2008
Aug 12, 2008
Copy link to clipboard
Copied
When i create a dynamic text field on runtime then its
working out fine......
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
LATEST
/t5/animate-discussions/animate-numbers-within-a-range-using-actionscript/m-p/856164#M247357
Aug 13, 2008
Aug 13, 2008
Copy link to clipboard
Copied
That junk that you were seeing in the trace is because you
have html text selected for that textfield. You will just see the
text as you expect in the actual textfield.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

