Password Protection Actionscript
Hi there,I have this actionscript for a simple password protection which doesn't quite work, i have looked on previous threads for the same sort of code but have not found a solution, i am using flash 8, please help on (release, keyPress "<Enter>") { if (password == "abcde") { getURL("
Adobe > ActionScript 1 and 2
Posted on: 05/15/2007 05:19:39 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Password Protection Actionscript
I tried the script provided in the Tutorials section, but it's for Flash 5 (Actionscript 1.0) and when converted to Flash 8 and Actionscript 2.0, i doesn't quite work:
http://www.actionscript.org/resource...ges/Page1.html
any ideas how i can make it work?
Password Protection Actionscript
i have create a password protection for a site and i am experiencing a problem with the button;
**Error** Scene=Scene 1, layer=text, frame=1:Line 2: Statement must appear within on handler
ok_btn.onPress = function() {
forgive me, i am new to this so it is probably something obvious! the button code is:
ok_btn.onPress = function() {
if (_root.thePassword.text == _root.secretcode) {
_root.gotoAndStop(3);
} else {
_root.gotoAndStop(2);
}
}
Password Protection W/ E-mailed Password
I need a password protection gate that E-mailes a password to the visitor if they pay to enter the site. I really need this or I can't take this job I got. Please help. If can be anything like .html, .swf, .php, .etc.
I'm just a flash designer and I don't have a ton of knowlege in programing outside of flash and html.
Thanks!!!
Password Protection
Howdy,
I'm trying to make some low level password protection for a site and I mean "Low Level". What I would like to do is create an entry box that the visitor would enter a password into. When they click "ENTER" the script will check to see if the word they entered matches. If it does then the main index site page will open, replacing the current window.
I've been told that I could do this with HTML and a CGI but I don't have access to that. I figured Flash has the capability and then I don't have to worry about a CGI.
I know some basic action scripting but nothing to elaborate. Be gentle.
Password Protection
hello,
does anyone know how to make a password protected area on a site? what's to stop someone from just typing the URL and getting past the password page.?, i have a password page, it's 3 frames. frame one is prompting the user to enter the password. frame 3 is where he goes if he types in a wrong password. frame 2 is the page where s/he goes if they type in the right one. from there, they can click a button to get in. what's to stop the viewer from doing a "forward one step" (when you right click on a flash movie, this option is there). is there a way to make it totally secure?
thanks for the help...
Password Protection
Can anyone help me out with what I need to write so that I can POST the value of an input textbox on the server.
My input box is named variable "password".
I need to POST the parameter "pass" which should based on the variable "password" to a server . This is what I have written to the submit button:
on (release, keyPress "<Enter>") {
getURL ("?pass=eval (password)", "_self", "POST");
}
It returns this:
Query String [pass=String%20(%20password%20)]
Request Method [post]
please help me out.
rasheid
Password Protection
I want a part off my flashsite to be protected by a password and username. How can I do this the best. I have A idea but mayby you guys have a more efficient way!
thnx henke
Password Protection
Please will someone help me!!!! I downloaded a flash file that offers password protection. It has user name and password. It said I could create up to 10,000 users. I can't get in contact with the guy who created it and I am VERY new to Flash. How do I create the names and passwords. Also, it says it allows access to a .html file. How do I direct it to the file I want? Also, what prevents someone from just typing in the URL of the target site, and thus bypassing the password prompt? Sorry to lay a lot on ya'll but I am dying and I am on a deadline which was supposed to be today...
Password Protection
How ?
how how how ?
How can i do it ?
Members can sign-up.Not mee !
Türk var mý ?
Password Protection
How secure is flash if you check off "protect from import" in Publish Settings? Aren't there programs that can still import your file?
Is there a better (more secure) way of doing password protection? For example say I had a page where a user could eneter a user name and password to get to a certain section of my site. What if I made the user name and password into variables and then passed them to an ASP page or something similar(I lack knowledge in this department) and then that page processed the username and password? Is it possible to pass variables out of a swf file?
Thanks for any help.
Password Protection Help
hello... I was reading this tutorial.. yes... it's still late at night as it was from my previous post about target paths of my instances...
but here's another thing I'm wondering... I was reading this tutorial:
http://www.flashkit.com/tutorials/Ac...-645/index.php
and I looked at it... and I was wondering... is there any way to turn this into a type of thing where you input a password instead of generating one...
that way I can use it as a keygen and applie it to a CD-Protection passkey type interface I'm developing...
I'm not exactly good with strings in flash... I'm just... intermediate and kinda expert I guess...
I can exactly write hard and bare actionscript code from the top of my head though and make it do what I want it to do... like make a scrolling menu or something.... but that's besides the point...
any of you know how to convert this formula in this tutorial to a password input? so I can use it as a keygen for CD-Protection? (it wont be just the projector trust me... there'll be lots of protection around it)
thanks to whoever helps me =) I really appreciate it =)
Password Protection...
Hey, I was wondering if I wanted to password protect different parts of my movie, could I have a login screen that will first get the username and password entered then search a text file to see if the username and password match, and if they do give the user access but if they don't then deny access. I want to do this using a text field, so I was thinking a text file database but I am confused as to how to set that up in flash.
Thanks in advance.
Password Protection
Hi all,
I would like to implement password protection for my Flash site that I hope to start on soon. I have a book titled Developing Websites with Macromedia Flash MX by Rickard Muller and from what I can tell, it's going to be a helpful resource for me. On page 290 of the book, there's a code example for password protection which is shown below:
on (release) {
password = password.toLowerCase();
if (password == "flashmx") {
gotoAndPlay ("Scene 2", 1);
} else {
gotoAndPlay ("Scene 3", 1);
}
}
How can I modify this code so that the password is NOT automatically set to lowercase. More importantly, I would like 2 passwords to be used. How can I allow for this?
Password Protection
Hi all. So i have a username input box and password input box, and this is the script for my log in button:
================================================== ===
{ if (password=="tutorial" or password=="romania") {
mess="You forgot the username!";
}
if (username=="flashkit" & password=="tutorial" or username=="vlad" & password=="romania") {
mess="Welcome " + username;
}
}
================================================== ===
How do i tell the movie to go to say..frame 100?
Ive tried a goto and play, but that doesnt seem to do anything..no matter how many times i hit the login button. Any ideas ? :P
Password Protection
I've been working on a flash site for a while and it is almost done. What I'm left to do is add a password protected page which the members can access thru a log-in.
Is this reliable or is there a way the information can be cracked? More specifically, lets say I set a variable to be a password and use a conditional to check if the input equals the variable. Unless someone else has access to the .fla the password cannot be cracked right?
Cheers :>
Password Protection
I am just getting into AS 2.0 cold. It is going OK so far... I am learning. Thinking aboout PW protection.
Can I create an entire system with a data base which creates user accounts with all the normal features -- log in, lost PW key words, etc....
Just wondering about that. I am thinking XML to hold the data.
I think the answer is yes already... Is difficult...?
I don't think there is any easy way to accomplish this...
ODC..
Password Protection?
hey friends
I'm still building this CDRom. In it i have a safety sectiion where the user has to go through a shortish presentation b4 they can continue. I wonder if i could put a password box on the front page, so they could skip the safety stuff second time round and go strait to the content? Is this possilbe?
If so - how they heck do i do it?!
Password Protection
Hello all and happy Holidays,
I have a Flash MX page that needs password protection. How am I going to do that? Is it PHP, or text file or something else? Does it need to talk to a db? is there any tutorial out there. Does DMX or Flash MX have any automatic process that I can use?
Thanks
Jacques
Password Protection
I have a question on password protection, I went through this one:
http://www.kirupa.com/developer/acti...entication.htm
here on Kirupa which works fine but I need it to go a protected page or a denial page which are both outside of Flash such as an HTML page on my server. Is this possible? I tried to use getURL on the 2nd and 3rd frame with a goto kinda thing but cant get it to work, any suggestions, I am using most of the code off the tute above.
Thanks,
Josh
Best Password Protection?
I need to password protect my galleries. I also need to have it so the photographer can easily create a folder, upload pics, and make a username and password for that folder. What is the best way to do this.
XML is no good because people can just pull that up, right?
.txt files you think would be as bad as .txt but apparently browsers can't read .txt, so maybe it's good?
I don't think .htaccess is the way to go because I don't want the person messing that up.
Anything else?
Thanks everyone.
Password Protection Help
I've made a small site with flash password protection. Just password input text and a button enter with an if/else statement. Only if you use forward (rightclick) you can skip the password protection.
My flash swf is made from two scenes, the password scene and the site-scene. So there are two options I guess:
-no rightmouse click allowed
-good actionscript which doesn't allow the 'forward' option in the player
Thanks in advance!
Tipsko
Password Protection
Is there a way to password protect a scene of a movie?
And if the wrong password is entered the user is sent to the scene where they started?
Password Protection
I have a URL containing a password-protected swf. If I launch a second password-protected swf (in a different URL) from the first, how can I send a variable to it to stop the user having to enter the password again?
Any clues would be most welcome.
Password Protection
Hi,
I'm having difficulties in getting my password protection working properly. Heres my actionscript:
on (release, keyPress "<Enter>") {
if (password eq "texas") {
gotoAndStop("index", "preloader");
} else {
gotoAndStop("error");
}
}
In my password box, when you type the wrong password, an error message appears & asks you to retry which is fine, but when you type the correct password I would like it to move to the preloader label, but nothing happens
Ive also tried:
gotoAndPlay("index", "preloader");
But still it doesn't work
Can anyone help?
Thanks CreasedP
Password Protection HELP
Hey everyone... i used a password protection tut off actionscript.org but for some reason it's not working. If somebody could take a look at my FLA that would be awesome.
http://www.metascapestudios.com/SomaCine.fla
thanks
Password Protection Flash?
Hello there!!!
I have a problem with hiding the password from flash. It appears if u open the .SWF file into notepad or a other txt programme. Is it possible too hide this in flash????????greetings and many
thx Conspectus
Password Protection Script
I tried the script provided in the Tutorials section, but it's for Flash 5 (Actionscript 1.0) and when converted to Flash 8 and Actionscript 2.0, it doesn't work.
I tried scripting the following on my own:
on(press, keyPress "<Enter>"){
if ((passwordTxt.text != "shelbyg")) {
gotoAndStop("error");
} else if (passwordTxt.text == "shelbyg"){
gotoAndPlay("private");
}
}
I can't tell if there's something wrong with the script or if I've not named a varialbe correctly or something else altogher. The .fla file is attached. Any help would be appreciated. Thanks!
Karen
PHP Password Protection Problem
hello,
i'm attepting to create a administration area, it needs to be password protected with a medium level of security, password kept in .PHP file. I found some code from an old thread, but can't seem to get it to work.
I created a inputfield and named it 'Admin', and created a button and named that adminbutton.....
Code:
stop();
adminbutton = new Object();
adminbutton.pass=Admin.text;
adminbutton.onLoad=function(success) {
if (success&&this.pass) {
gotoAndPlay("adminArea");
} else {
Admin = "Access denied";
}
}
adminbutton.sendAndLoad("admin.php",adminbutton,"POST");
PHP Code:
<?php
$passToCheck=$_POST["pass"];
if(!$passToCheck) die(ok=0);
$thePass="password";
if(thePass==$passToCheck) {
print 'ok=1';
} else {
print 'ok=0';
}
?>
Password Protection And Direction
I'm looking to create a simple login with a username and password. The catch is I want the username to determine where you get re-directed to. So for instance if you enter username "BOB" it takes you to bob's page. or if you enter username "SALLY" it takes you to her page? I have a few tutorials on password protected pages, but none of them redirect or have a dynamic redirection based upon the input field? any help would be great.
Username & Password Protection
I have a script I have found and slightly modified to help me achieve a user name and password protection for a flash file. I understand there is no way to ensure protection of flash files. Fortunetly for me I am looking to add protection to filter out people in a company browsing around the server or other instances.
My question is: How can I add another username and password to the script below?
I have played with it a little and could add a username and password behind the ones listed, but ofcourse all that enables is another username and password option. I would want to use employees "employee number" and their password to enter the flash material. Basically right now I have only one username that matches its particular password. I want to add other users that match thier specific passwords.
I'm sure there are better ways to go about this and am open to them. I don't know much other scripting but can pick up on it. I would like to hopefully do it in flash, considering there won't be many people haveing "access". Maybe .xml could be set up and go from there. I have little experience with xml but have researched and done a few tutorials with it in flash.
Any help or ideas are greatly appreciated.
Thanks
Luke
Attach Code
String.prototype.isWhiteSpace = function() {
return ((this != undefined && this.length>0) ? (this.split(" ").join("").length == 0 ? b=true : b=false) : (b=false));
};
var UserName = "";
var Password = "";
var Guide = "Please Enter Your User Name And Password";
_global.webCheck = function() {
if (_root.Password.length == 0 | _root.Password.length == "" | _root.Password eq "") {
_root.Guide = "No Password Entered Please Try Again";
stop();
} else if (_root.Password.isWhiteSpace()) {
_root.Guide = "Sorry Incorrect Password Entered Please Try Again";
stop();
} else if (_root.Password == "password1") {
nextFrame();
} else {
_root.Guide = "Sorry Incorrect Password Entered Please Try Again";
stop();
}
};
stop();
mcEnter.onRelease = function() {
if (_root.UserName.isWhiteSpace() | _root.UserName.length == 0 | _root.UserName == "" | _root.UserName eq "") {
_root.Guide = "No User Name Entered Please Try Again";
stop();
} else if (_root.UserName == "user1") {
webCheck();
} else {
_root.Guide = "Sorry Incorrect User Name Entered Please Try Again";
stop();
}
};
[flash Mx] Need Password Protection Help Please....
I'm trying to create password protection something like this site's:
http://pinkletoes.com/index2.php [under the "candy store" link]
I've tried looking up tutorials, but all I can find are ones that tell me how to create one password for one movie. What I'd like to do is use one input field and have multiple possible passwords that would take you to their corresponding movies.
Thanks for your help!
[flash Mx] Need Password Protection Help...
I'm trying to create password protection something like this site's:
http://pinkletoes.com/index2.php [under the "candy store" link]
I've tried looking up tutorials, but all I can find are ones that tell me how to create one password for one movie. What I'd like to do is use one input field and have multiple possible passwords that would take you to their corresponding movies.
Thanks for your help!
Password Protection Not Workinig
Alright im working on making a website in flash, and im making a password protected page, but the password protection isnt working. I enter the correct password, and click the enter button, yet it doesnt do anything...This is the code I have for the button:
---------------------------------------
onClipEvent (mouseUp) {
if (password eq "oreos") {
getURL("ppp.html");
}
}
---------------------------------------
Ans I have the Var for the input box set as password...but its not working..any help is appreciated...
Password Protection And Buttons
I would like to be able to password protect a scene in my flash document.
for example:
scene 1:
prompts for password
if password=correct
then goes to scene 2
if password=incorrect
quits
---
and what is the action script for a button when it's clicked, to go to the next frame.
parrotman
Arghh,FLASH PASSWORD PROTECTION SUX
I want an flash password protection, but there are only very easy to hack movies online!
Is there anyone with a .swf that doesn't give away the password and login name when opened in notepad e.o.?
Username/Password Protection For Your Homepage
Help, help...
Who can help me to make an Username/Password Protection for a webpage ?
I found one in the tutorials but there you can only use one User&Password...I need it for some more..what can i do...?
Thx Tom
Password Protection From Text File
Hey Guys,
Im looking to make a crude password protection for my flash file. I want to be able to draw from a text file that has a list of passwords and logins. Is it possible to do this with simple action script or must I use CGi and all of those other back end scripting programs that I know nothing about
please help guys if you have the time.
Thanks
Don
Password Protection, Link Problems
Hi, I'm currently working on a Flash site for my first client and I'm having some issues. Luckily, I'm employed by this client for a completely different job, but since I recently graduated with a Graphic Arts degree they're having me design their web page for them. Anywho, I have a couple of problems. 1: My links to navigate around the site don't work right. Instead of taking me to the correct pages, they take me from the Home page to the second page to the third to the fourth, etc. in the order they were created using the same button. As far as I know, my action scripting is correct, for example to take me to the company directory page:
on (release) { gotoAndPlay ('Staff', '1') }
for that particular scene is entitled "Staff" and I want it to start at frame 1. However, I can keep clicking on the "Company Directory" button link and it goes to a different page each time I click on it. I never had this problem when I used Flash in school but we used Flash 5.0 and I now have Flash MX and some of that kind of stuff is different. My other problem is their needs to be a password protected login for clients to send us orders which I have no clue how to do whatsoever. ANY help would be oh so GREATLY appreciated!!!Thanks!!!!
Erich
Password Protection Version 2.0 PROBLEM :(
Hi
I have a problem wiht the Password Protection Version 2.0 taht i downloade form thes Homeapge. The LoginName, Password, and URL are saved in the .swf file the Problem is all noob can use a Decompiler and get the LoginName, Password, and URL form the .swf file, i hope somebody can modify thes Flash file for my PPPllleeeaaassseee
Here is the .fla File.
Sorry for my bad English
Password Protection With Key Class Listeners
Flash 8
ive had a little trouble getting password protection
stop();
var myPassword:String = 'password';
submit_btn.onRelease = function (){
if (password_txt.text == myPassword) {
nextframe();
}
}
to work with a key class listener or something to the same effect
var myListener:Object = new Object();
myListener.onKeyDown = function() {
if (Key.getCode() == Key.ENTER) {
nextframe();
}
};
Key.addListener(myListener);
so that the user can press enter instead of clicking a button to submit there password.
Any help would be appreciated.
Password Protection Code Won't Fire Correctly
This is really starting to bug me. Anyways, I have password-protection enabled for my Flash movie which is entirely ActionScript based. This is the code
code:
//if the user enters the correct password, continue on to the next scene//
//if the wrong password is entered, let the user know immediately
on (release) {
if (PassField == "Ostarello") {
gotoAndPlay ("The Movie", 1);
} else {
gotoAndPlay("Not Authorized", 1);
}
}
I didn't get any errors the second time around after fixing some bugs in the code but the code's not firing properly. I'm stuck as to what to do next. I've attached the Flash MX version of the file.
Flash Password Protection: Easily Bypassed> Solution?
When you create a password promt in flash, it really doesn't do anything. Right click on the flash movie, and choose "Play" and you are through the system. Is there some way to disable the "play" feature? I'm REALLY bad at scripting.. I currently just have the slide transition speed at 120/min. It works enough for what I'm currently using it for, but there MUST be another way.
I hope this hasn't been brought up yet, this is my first time back to Kirupa.com in a year! If so (^) please leave a link to the thread.
Thanks
Flash Password Protection: Easily Bypassed> Solution?
When you create a password promt in flash, it really doesn't do anything. Right click on the flash movie, and choose "Play" and you are through the system. Is there some way to disable the "play" feature? I'm REALLY bad at scripting.. I currently just have the slide transition speed at 120/min. It works enough for what I'm currently using it for, but there MUST be another way.
I hope this hasn't been brought up yet, this is my first time back to Kirupa.com in a year! If so (^) please leave a link to the thread.
Thanks
ActionScript Protection (Not Whole SWF )
Hi,
months ago there was an online actionscript encryption application.
We were pasting the bytecodes of our actionscripts (functions, prototypes etc) getting form ASV and pasting them to the form on this site.
And site was returning encrypted bytecodes.
We can use these encrypted bytecodes in .fla files.
And everything was ok.
But this project is down
I've googled and couldn' find any soft doing these.
There are many SWF Encyption utilities but no actionscript encryption ones.
Still searching....
MX2004: Actionscript 2 Protection
I recently make a number of files using external AS2 scripts. However, for presentation I do not always want to show the AS2 script after downloading the file. Of course one can convert everything into V2 components but I don't want. With AS1 there was no problem since the script is within the movie.
Any ideas?
ActionScript Protection/Encryption
Hi!
Lets say that I have a flash interface that uses php to write/read vars.
So if someone wants to hack our website all he has to do is look at the code and send some vars manually to the .php file.
I've seen some encryption apps that claim to fully protect your swf but at the same time there are those who claim to decompile protected ones.
Is there any better way to protect the php>flash communication?
[b]Password Actionscript[/b]
Password script
I found this actionscript on the net, i try it and it didnt work when i used it in my flash.
please look at it.
This is the site: flash password site
This is the script in frame 1:
-----------------------------------------------------
// define an external variable
var externalVars = new LoadVars();
// when the file is loaded the password will be assigned to the
// variable name of the variable in the text file ’secretcode’.
//’content’ is the name of the variable contained in the text
//file.
externalVars.onLoad = function() {
secretcode = this.content;
}
// load the text file.
externalVars.load("code.txt");
// When button is pressed�.
ok_btn.onPress = function() {
// if ‘thePassword’ input text box = ’secretcode’
// then goto frame 3.
if (_root.thePassword.text == _root.secretcode) {
_root.gotoAndStop(3);
} else {
// else ‘thePassword’ is incorrect then goto frame 2.
_root.gotoAndStop(2);
}
}
thePassword.password=true;
----------------------------------------------------
what is rong with it?
thanks...
ActionScript Activated Password
Hey!
Can anyone help me? I need to have a password using ActionScript. But I don't know how to encrypt the correct 'Script! How do I check if the variable inputted by the guest is the same as my given password and continue with the movie if it's a match, and do nothing if otherwise? Help!
|