Larry Brister
asked on
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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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
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
ASKER
Also...the bar doesn't "rise" with the money. Can we make it match the money and come up like a rising thermometer?
ASKER
Sorry...
I was wrong on the bar chart...it rises.
But can I get the "step" or "increment" by 100 ?
I was wrong on the bar chart...it rises.
But can I get the "step" or "increment" by 100 ?
change this line
money++;
to
money= money+10;
Billystyx
money++;
to
money= money+10;
Billystyx
if(money<howhigh){
money++;
moneydollars="$"+money+".0
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