Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

won't add numbers

Status
Not open for further replies.

AWEinCA

Programmer
Oct 18, 2000
35
US
I am fairly new with Flash. I got one of those beginer books. I followed the directions exactly and can't figure out why I can't add 2 different numbers from to different input text boxes and assign the sum to a dynamic text box.

This is the actionscript in the on(release) handler of a button.
{
LuckyNumber = Number(Age) + Number(Month);
}

where Age and Month are input text boxes and LuckyNumber is the Dynamic text box.

What am I over looking for something as simple as this not to work?

Thank for any help you can offer!

Frustrated
 
Hey OldNewbie!

I was hoping you would reply to my question:) I have got to be overlooking something and it is driving me crazy!!!!

I have exported the movie and used Test Movie, Debug Movie, Test Scene. They all have the same result in the dynamic text box...NaN. For sum reason it has no idea what I am trying to do. I have made sure that the Expression check box is checked numurous times (and it always is).

I'm feeling a little stupid, because as I said, "This should be an easy thing to do!"

Thanks again for replying. I hope you get my response

Aaron
 
Send me your .fla (francoisgill@hotmail.com) or make available somewhere!

;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top