00:00
00:00
Newgrounds Background Image Theme

Sinbad118 just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Password Tutorial SM

Share Collapse

Author Comments

I made that to help other beginner actionscripters like me

I hope it helps someone!!!

Log in / sign up to vote & review!

Thanks for the tip

Great, but...

I try to do the same, but in my file there is also a dynamic box with var "answer". My script is:

on(release){
if(_root.password == "unlock safe"){
gotoAndStop(2);
}else{
_root.answer = "access denied"
}
}

But when I type the correct password, I get "access denied" in the answer box.
Please help!

...........................

also in the option thingy make it say password instead of single line (under the options panle) then it makes it all ********

Marksolo is wrong

I beg to differ Mark...

it's
on(release){
if(password == "XXXXX"){
gotoAndStop(X)
}else {
gotoAndStop(X)
}
}

forgot a }

Really nice =)

but =P the AS is wrong =P...

In dont mean to bug ya, but, the script is wrong so i will correct it here 4 someone that just pasted it and id did not work:

-------------*As u putted it * ------------------
on(release){
  if(password eq "XXXXX"){
     gotoAndStop(X)
}else
    gotoAndStop(X)
}
---------------* As i would be * ---------
on(release){
  if(password == "XXXXX"){
     gotoAndStop(X)
}else {
    gotoAndStop(X)
}
---------------------------------------

I hope this helps someone!
Nice work, keep working! ;) 3/5

Credits & Info

Views
6,179
Faves:
5
Votes
16
Score
2.74 / 5.00

Uploaded
Mar 18, 2005
2:36 PM EST
Genre
Tutorial