The Problem I am facing is that eventhough i type in the correct username and password it takes me to the page of Invalid Username and Password. I would tell you guys what all i did
I created a new document 350 x 270 pixels Background color - Red
Then went on to creating a Total of 4 layers
Layer 1 - Static Text
In this i created 3 keyframes on 1,2 and 3
On the First Keyframe I Created Two Static Text
One was Username: (9,46.9) and the other Password:(9,125.9)
On The Second Keyframe I Created another Static Text
"Login Successful!!!!" (91,56.9)
On The Third Keyframe I Created another Static Text
"Invalid Username Or Password. Please Try Again
Layer 2 - Input Text
On this layer i created only one keyframe on keyframe 1
I made two input boxes with borders
One i kept it to the left of the Static box saying Username: I chosed Single Line and gave the input box the variable name user
The Second one i kept it to the left of the Static box saying Password: I chosed Password (The one where you can choose Single Line , Multiline and so on....) and gave the box the variable name pass
Layer - 3 Buttons
Made 3 Keyframes on 1,2 and 3
On Keyframe 1 i created a button saying "Login"(9,181.8), i kept it under the Password: and gave the button some actionscript code that goes like this
on(release, keyPress "<Enter>"){
if("sorn" eq user and "cool" eq pass){
gotoAndPlay(2);
}else{
gotoAndStop(3);
}
}
On Keyframe 2 i created another button saying "Continue"(115,167.8), i kept this button under the "Login Successful!!!!" text
I have yet to give it some codes but let me solve this problem first
One The Third Keyframe saying "Back"(115,167.8), i kept it under the "Incalid Password..." text and gave the button some actionscript code that goes like this
on(release, keyPress "<Enter>"){
gotoAndPlay(1);
}
Layer - 4 Action
I created 3 Blank Keyframes on 1,2 and 3
On the first Keyframe i gave the code:
stop();
This is all i did and when i tried entering the Username and password (correct one) it takes me to Frame 3
Thanks,
Anusorn a.k.a Amrik
