Hi i am trying to do a flash website which looks different at different time of the day, say morning, afternoons & nite.
I have an asp page which send me the value of 1/2/3. Now i load this value in flash, but I am unable to shift the control to the respective frame, I think my if statement is not working.
The code on the first frame is.
----------------------------------------------------
rand=Math.round(math.random()*100000);
loadVariables("timeval.asp?i="+rand,"");
if (chkval == 1) {
gotoAndPlay(5);
}
if (chkval == 2) {
gotoAndPlay(6);
}
if (chkval == 3) {
gotoAndPlay(7);
}
------------------------------------------------------
where chkval is the name of the variable on the asp file.
the value asp returns will be &chkval=1 / &chkval=2 / &chkval=3.
I had even tried assigning chkval to another variable, but nothing seems to work.
I am able to get the value, but the if statement is not working.
I am using FlashMX2004. Someone plz help me...
Thanx in advance...
Regards,
Tommcat
I have an asp page which send me the value of 1/2/3. Now i load this value in flash, but I am unable to shift the control to the respective frame, I think my if statement is not working.
The code on the first frame is.
----------------------------------------------------
rand=Math.round(math.random()*100000);
loadVariables("timeval.asp?i="+rand,"");
if (chkval == 1) {
gotoAndPlay(5);
}
if (chkval == 2) {
gotoAndPlay(6);
}
if (chkval == 3) {
gotoAndPlay(7);
}
------------------------------------------------------
where chkval is the name of the variable on the asp file.
the value asp returns will be &chkval=1 / &chkval=2 / &chkval=3.
I had even tried assigning chkval to another variable, but nothing seems to work.
I am able to get the value, but the if statement is not working.
I am using FlashMX2004. Someone plz help me...
Thanx in advance...
Regards,
Tommcat