all groups > flash actionscript > march 2005 >
You're in the

flash actionscript

group:

better way of retrieving variables from an asp file??


better way of retrieving variables from an asp file?? elbeardo
3/14/2005 9:28:37 PM
flash actionscript:
Hi,
I have a form with dynamic text boxes that retrieve info from an asp file
called book.asp that in turn retrieves its info from an access database. When i
test it locally, my browser just displays "waiting for local host..." in the
status bar and nothing happens so i dont know which is wrong either my asp file
or my AS so im just hoping that someone here can confirm that my AS is correct
or that its wrong and could input their sugestions. Im using flash mx2004 btw.
Thanks,
rob

onClipEvent(load)
{
CurrentRecord = 0;
loadVariables ("book.asp?Record=0", this);
}
onClipEvent(data)
{
strNumber = bookNumber;
strAuthor = author;
strPages = noOfPages;
strYear = yearPublished;
strTitle = bookTitle;
strType = type;
strLocation = bookLocation;
strISBN = ISBN;
strPosition = "Book" add String(CurrentRecord+1) add " of " add
String(TotalRecords);
}
Re: better way of retrieving variables from an asp file?? elbeardo
3/14/2005 9:32:57 PM
I also have this on my "next" button but i dont think this would affect the
initial loading of the clip and data.

thanks,
rob

on (release)
{
CurrentRecord++;
if (CurrentRecord == TotalRecords)
CurrentRecord = 0;

loadVariables("book.asp?Record=" add String(CurrentRecord), this);
}
AddThis Social Bookmark Button