Rolling Money Counter

I need to make a "Digital Counter" that from the start of the Flash Movie goes from 0 to "anynumber" that we input.

Example...we have a fund raiser going on and we want the $$ to run up from $0 to $40,241 this week and next week be able to have it go to $41,955

I'd like to do this in Flash MX so that I can add a rising 3D column that comes up as the dollars rise. If I could tie the column to the rising $$'s so much the better.

I currently have a three frame movie but am getting error messages

Frame 1
  var money=0;
  var howhigh=1000;

Frame 2 has a dynamic text box with an instance name of 'money' and the following code
   if(money<howhigh){
   money++;
   }

Frame 3
  gotoAndPlay(2);

I'm not getting any error messages...nor am I getting anything at all for that matter.

I'm using Macromedia Flash MX 7.  It's obvious that I'm not an action script guy...

A little help here?
Larry Bristersr. DeveloperAsked:
Who is Participating?
 
BillystyxCommented:
I have a fla for download at http://www.billystyx.co.uk/setups/raisingmoney.zip


Billystyx
0
 
BillystyxCommented:
frame2 I changed to this:

   if(money<howhigh){
   money++;
   moneydollars="$"+money+".00";
   percent=money/howhigh*100;
 
   bar._yscale=percent;
   }

and I added a mc column instance name 'bar', with a background mc with no instance name and a different colour.

Billystyx
0
 
Larry Bristersr. DeveloperAuthor Commented:
Billystyx,
  Thanks...I'll definately be awarding the points to you in a moment.
Question...is there a way to "step" the dollars by 10's or hundred's so it loads faster?

Reason...

I may need to show this on a screen where we want to go up to $ 15,000.00
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Larry Bristersr. DeveloperAuthor Commented:
Also...the bar doesn't "rise" with the money.  Can we make it match the money and come up like a rising thermometer?
0
 
Larry Bristersr. DeveloperAuthor Commented:
Sorry...
I was wrong on the bar chart...it rises.

But can I get the "step"  or "increment" by 100 ?
0
 
BillystyxCommented:
change this line
money++;
to
money= money+10;

Billystyx
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.