Solved

password protecting access to a flash websit

Posted on 2007-04-04
3
202 Views
Last Modified: 2010-04-03
I am looking for a way of password protecting access to a flash website, can this be done with flash using action script?
0
Comment
Question by:surfjoe
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 11

Expert Comment

by:Tom Ray
ID: 18854212
0
 

Author Comment

by:surfjoe
ID: 18854362
This dose answer my question but when I try using it I get this error:

**Error** Scene=Scene 1, layer=Password AS, frame=1:Line 3: Statement block must be terminated by '}'
     login_btn.onRelease = function() {

**Error** Scene=Scene 1, layer=Password AS, frame=1:Line 13: Syntax error.

Total ActionScript Errors: 2        Reported Errors: 2



Using this AS:

var password ="whatever";

login_btn.onRelease = function() {
if (password_txt.text == password) {
//carry on
gotoAndPlay(2);
} else {
//stop them
stop();
}
0
 
LVL 11

Accepted Solution

by:
Tom Ray earned 500 total points
ID: 18855295
yeah its missing one more "}" at the end.

here is my version:
http://www.tsquared.com/ee/login/

there is a link to download it there too
0

Featured Post

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
It’s a strangely common occurrence that when you send someone their login details for a system, they can’t get in. This article will help you understand why it happens, and what you can do about it.
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question