LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 


Prev Previous Post   Next Post Next
  #1  
Old 09-11-2002, 08:49 PM
targetplanet targetplanet is offline
Registered User
 
Join Date: Mar 2002
Location: Portland, ME
Posts: 14
Rep Power: 0
targetplanet is on a distinguished road
NAN problems

I am developing an online store in flash and
I am trying to change the qnty of an item when the customer presses the add to cart button, But I am just getting NAN no matter what I try. the origanal # being pull from a database.
It doesn't recognize the number as a number.... the variable, pot_qnty, is a text field, but I have tried using a set veriable just for subtracting the qnty #, but it still tuns out NAN
I have even tried the Number() function
NAN

the current code I have on the button is:
stock = Math.floor(pot_qnty);
pot_qnty = stock - 1;
if (pot_qnty == 0) {
pot_qnty = "sold out";
}


the site URL
http://www.mainepottersmarket.com/mpm.htm
(still in dev.)
any thoughts?
thanks
russ
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compatibility May Be Causing the Mac OS X Lion Problems with Flash FlashMove All Things Apple 0 08-15-2011 02:31 PM
PUBLISHING PROBLEMS (Flash 8), PLEASE HELP!!! Fragger Newbies 0 02-13-2008 04:06 PM
Movie Clip Problems ScottRiley Actionscript 2.0 1 02-07-2006 02:15 PM
external movie loaded problems dirk General Flash 0 12-16-2005 05:56 PM
more php problems with flash - can you check this??? jpwrunyan Client Side 0 07-16-2004 09:38 PM




All times are GMT. The time now is 07:48 AM.