Groups | Blog | Home
all groups > flash data integration > may 2006 >

flash data integration : Zero in Flash



stuart__s
5/12/2006 3:11:05 PM
Hi, I am hoping that someone out there can help me.

I am recieving a number of records back from an SQL query. The total number
of records is being presented in a string records.n, where n is the number of
records. If I have records it works perfectly, however I want the movie to
jump to a differnet frame if no records are found, I am using the code...

if (records.n == 0) {
gotoAndStop(60);
}

However the system does not seem to recognise '0' can anyone help me with this
code?

Many thanks in advance for any help that you can give me.

Regards

Stuart Seeley
Jeckyl
5/13/2006 12:00:00 AM
if its a string you need either records.n == "0" .. or (better)
Number(records.n) == 0
--
Jeckyl

AddThis Social Bookmark Button