problem in integers in flash
this is a part of my as2 code
[AS]var total_pages:Number = myData.total_pages;
var nextlink:Number = myData.next;
next_.onRelease = function()
{
if(nextlink<=total_pages)
{ trace(total_pages);
trace(nextlink);
submitDataToTextfile1(nextlink);
}[/AS]
this is what i m sending from my php code
[PHP]
echo "&total_pages=$total_pages&";
echo "&next=$l&";[/PHP]
here $total_pages=29 and $l=3
my problem is when i check condition in IF section in as2 code , it is false for nextlink=3 . why ?? i am not getting it , plz somebody help me !!!
aaloo
Junior Poster in Training
76 posts since Oct 2011
Reputation Points: 22
Solved Threads: 0