if (updatego == “false”) {
gotoAndPlay(“errorupdate”);
}
if (updatego == “true”) {
gotoAndPlay(“successupdate”);
}
and it should suppose to send me to another frame label errorupdate or successupdate after i have successfully loadVariables from a asp page, but it just stuck me on the frame insteading of sending me to another frame… anyone knows why?
i try put a dummy textbook with variable as updatego to test whether the asp page got send the data true or false back to flash and it did. so i am still pizzled as to why it don direct me to another frame.
try putting it on a movieclip between onClipEvent(enterFrame){} handlers or making it a 2-frame-loop
You can make it a 2-frame-loop by inserting a new keyframe with all the same stuff on the stage on the next frame and adding this action on the frame:
gotoAndPlay(yourframehere);
make yourframehere the frame number where you have the other actions! That makes flash cycle between the 2 frames and it checks the value of the variabl"updatego" every time it ebters the first frame of the 2-frame-loop!