I have a Flash movie that pulls in variables from an access database and also a cookie value.
My problem is that before I display the records from the DB an animation is run that I only want the user to see once. I have done this by checking a cookie value pulling the value in to flash and then trying to use gotoandStop to by pass the anim if the cookie
value = "beenSeen".
I.E. if this is the second time the user has viewed the page bypass the animation and go straight to the info from the DB. I have verified that the cookie is passed to Flash by using a dynamic txt Box so there is no problem with the asp. Only problem is that the movie refuses to gotoandstop at the correct frame when the cookie is set it just keeps playing the animation at the start.
I have placed everything inside a movie clip which has the following code on the movie:
onClipEvent(data)
{
strDate = myDate;
strNotes = Notes;
strFlashCookie = cookieFlash;
}
onClipEvent(load)
{
CurrentRecord = 0;
loadVariables ("get_details.asp?Record=0", this);
}
This basically pulls in the information from the db and cookie then sets up vars equal to the values.
On the first frame of the movie I have:
if (strFlashCookie == "beenSeen") {
gotoAndStop(form);
}
This should bypass the anim, i have checked the value of strFlashCookie and it is definately being displayed in a txt Box on a layer in the movie clip correctly.
On frame 73 (the end) I have a stop action.
PS To view what I am talking about go to
any help would be greatly appreciated before I go mad.
Thank You in advance.
My problem is that before I display the records from the DB an animation is run that I only want the user to see once. I have done this by checking a cookie value pulling the value in to flash and then trying to use gotoandStop to by pass the anim if the cookie
value = "beenSeen".
I.E. if this is the second time the user has viewed the page bypass the animation and go straight to the info from the DB. I have verified that the cookie is passed to Flash by using a dynamic txt Box so there is no problem with the asp. Only problem is that the movie refuses to gotoandstop at the correct frame when the cookie is set it just keeps playing the animation at the start.
I have placed everything inside a movie clip which has the following code on the movie:
onClipEvent(data)
{
strDate = myDate;
strNotes = Notes;
strFlashCookie = cookieFlash;
}
onClipEvent(load)
{
CurrentRecord = 0;
loadVariables ("get_details.asp?Record=0", this);
}
This basically pulls in the information from the db and cookie then sets up vars equal to the values.
On the first frame of the movie I have:
if (strFlashCookie == "beenSeen") {
gotoAndStop(form);
}
This should bypass the anim, i have checked the value of strFlashCookie and it is definately being displayed in a txt Box on a layer in the movie clip correctly.
On frame 73 (the end) I have a stop action.
PS To view what I am talking about go to
any help would be greatly appreciated before I go mad.
Thank You in advance.