Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

password protecting access to a flash websit

Posted on 2007-04-04
3
Medium Priority
?
206 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 2000 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

Looking for a new Web Host?

Lunarpages' assortment of hosting products and solutions ensure a perfect fit for anyone looking to get their vision or products to market. Our award winning customer support and 30-day money back guarantee show the pride we take in being the industry's premier MSP.

Question has a verified solution.

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

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…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

609 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