Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Flash concatenates my numbers!
From: Jordan L. Chilcott
Date: Mon, 22 Jan 2001 08:59:15 -0000

on 12/27/00 1:29 PM, Jason_Schubringataal [dot] org at Jason_Schubringataal [dot] org
wrote:

> I have created calculators a million times in Flash, but have never run across
> this and hope you can help me.
>
> What I am doing: A simple calculation that takes 2 numerical variables (input
> by user) and adds them together to create a third variable. Easy, right?
>
> What is happening: The 2 variables input by the user are being concatenated.
> ie: 2+4=24
>
> Apparently, Flash is thinking the variables are text strings for some reason.
> The really odd part is that an older version of this calculator works fine and
> I
> am using the exact same script and exact same input form. What settings could
> I
> have possibly messed up? This is not hard so it is kind of embarrassing, but
> this is really odd so I thought I would see if anyone has any idea what
> happened.
>
> Any and all suggestions are appreciated.

If you are using Flash 5, wrap each number with a parseInt() function and
see if that does the trick for you.

jord
--
Jordan L. Chilcott, President
the Computer Software Specialists
Guelph, Ontario
---------------------------------
Tel: (519) 837-1879
Cel: (519) 760-1879
eFax: (253) 276-8631

jchilcottatcompsoftspec [dot] com (mailto:jchilcottatcompsoftspec [dot] com)
http://www.compsoftspec.com
AIM: j1chilcott

Is a 2000 Volkwagen Beetle considered a Y2K bug?




[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]