I’ve been working on this flash project for my girlfriend, and because I foolishly never took flash in school I’ve run into some problems. I’ve started to understand the basics of how to write action scripts, and I’ve gotten pretty far on this project… but alas I’m stuck.
So the project is basically a calculator. She works at a health food/catering company, and has to calculate the total calories/protein/carbs/fat for each clients meal that is on the program. What she wanted is a program that she can input all the meals that would be given out that day, and have it so that she could just click them and it would calculate the 4 or 5 that she selected for each client.
I’ve got it all lied out, and I know how to add all the numbers together. What I’m having trouble with is getting all the text fields from each item (cal/pro/carbs/fat) to go to the section I set up so she can see what she is calculating.
I’ve been using if/else statements so that if one dynamic field is full it using the next one… but I can only get it to do it for one column (Calories) it doesn’t seem to want to let me use the same button to do the column for protein…
I guess what I’m trying to say, is there an easier way then using if/else statements… or is there a way to apply more then one function to a button.
This is probably a noob question, but any help would be great.
If this doesn’t make sense I can upload a screen shot.
Thanks,