View Full Version : Password Protection
razornetwork
08-14-2003, 12:29 PM
im guessin with this new swish script i could maybe use it to make a password protection on a page.
i can program VB and this is how it would go ...
if pass.text="password" then
<go to frame>
end if
how can i do this in swish script?
thanx in advance :)
dammitjanet
08-14-2003, 12:55 PM
pretty much the same, however you run into issues with security, since all text is help as plain text (utf8 and utf-16) inside a SWF, your passwords are not going to be very secure if held inside a SWF.
using a server side scripting language is more secure, and SWISHmax now supports sending information to server side scripting just like Flash.
razornetwork
08-14-2003, 01:06 PM
its only small security ... that doesnt matter ...
i just cant get the code to work !
i just want a button and when it is clicked go to the next scene if the password is right.
any1 got the code for this?
dammitjanet
08-14-2003, 01:13 PM
ok when comparing strings in Swish try and make sure you use eq instead of =.
also, you will more than likely need to reference the text field fully inside a button (depends on where in the scene you are) as in if (_root.pass.txt eq "password") {
gotoSceneAndPlay(label);
}
i'd have to see the SWI to see if there are any other issues.
Schwalbach
08-14-2003, 01:13 PM
Hey, check out my login, maybe it will help out: http://files.swish-tutorials.com/files.php...act=file&id=461 (http://files.swish-tutorials.com/files.php?act=file&id=461) <--Is the simple one, with simple password protection. http://files.swish-tutorials.com/files.php...act=file&id=466 (http://files.swish-tutorials.com/files.php?act=file&id=466) <--- Is the more advanced one.
razornetwork
08-14-2003, 01:16 PM
thanx guys just what i wanted :D
thanx again
Razor :ph34r:
vBulletin® v3.6.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.