Hi.
I am currently trying to create a Flash program which displays the status of various systems connected to my main server. The status is kept in a database which I update manually, when required. Now, I have created an ASP file which queries the database for the most recent entry of each system and returns a set of variables in the GET request back to Flash. I know that the ASP file works however, since when I output the data to the resulting HTML, all the information is there and the query was successful. The problem I am having is that the Flash file which uses the following code does not load the variables from the ASP file.
The above code is placed in the first frame of my "actions" layer. The subsequent layers (where the actual movie is located) are also 1 frame in length. Is this an issue of loading time? In other words, should I place a few more frames in the movie so as to allow more time for the ASP-sent variables to load into Flash? Or, is there a built-in concurrent function in Flash which constantly checks if the variables of a loadVars object is loaded?
Anyways, the status that is gathered from the ASP file is supposed to show up into a dynamic text field in the movie.
In most Flash/ASP tutorials that I have seen, there is usually a button which is clicked which then instantiates the flow of data between the ASP and Flash application. However, what I am trying to do is create a program that would run automatically at startup. Is this also posing a problem with the way the program is functioning?
Any help would be much appreciated.
Thanks,
URL
I am currently trying to create a Flash program which displays the status of various systems connected to my main server. The status is kept in a database which I update manually, when required. Now, I have created an ASP file which queries the database for the most recent entry of each system and returns a set of variables in the GET request back to Flash. I know that the ASP file works however, since when I output the data to the resulting HTML, all the information is there and the query was successful. The problem I am having is that the Flash file which uses the following code does not load the variables from the ASP file.
Code:
//recive the variables from the ASP file using the GET method.
this.loadVariables("sCData.asp","", vars=GET);
system1Status = "";
system2Status = "";
// etc...
The above code is placed in the first frame of my "actions" layer. The subsequent layers (where the actual movie is located) are also 1 frame in length. Is this an issue of loading time? In other words, should I place a few more frames in the movie so as to allow more time for the ASP-sent variables to load into Flash? Or, is there a built-in concurrent function in Flash which constantly checks if the variables of a loadVars object is loaded?
Anyways, the status that is gathered from the ASP file is supposed to show up into a dynamic text field in the movie.
In most Flash/ASP tutorials that I have seen, there is usually a button which is clicked which then instantiates the flow of data between the ASP and Flash application. However, what I am trying to do is create a program that would run automatically at startup. Is this also posing a problem with the way the program is functioning?
Any help would be much appreciated.
Thanks,
URL