|
Answer» okay, so the thing is i'm fairly experienced with Macromedia Flash... except for the actionscript. i have only the faintest skills of its syntax and application.
now take for example a PIN number: you need to push a combination of four digits in the correct order to pass. this is almost exactly what i need done with my flash 'game'. i'm in the midst of creating a flash game type of thing for my website, and to enter the website you first need to click the four buttons in a particular order like its some sort of PIN.
ASSUMING the instance names (and order of clicking) are respectively button1, button2, button3 and button4, what is the actionscript i need to achieve this "PIN number" effect? I've used a password field which COULD be UTILISED as something similar to a PIN format - it just records the digits in one box in a preset order:
var myPassword:String = '1234';
submit_btn.onRelease = function (){ if (password_txt.text == myPassword) { gotoAndPlay(); } else { gotoAndStop(); } }
password_txt is the instance name of the textbox I used. HOPE it helps some.thanks, pcwizard;; studying ur post is giving me a greater understanding of actionscript.. but unless i can enter digits in ur password_txt field by clicking buttons, a password field is no use... thanks anyway pcwizard
okay, heres my idea:
if you go to my website, all that seems to be there is a brick WALL. the only way to enter the website is to click a select four bricks in the correct order.
that is how i related it to a PIN number;; the clicking four buttons in the right order part. all i need is the actionscript to make that work.
|