Solved

password protecting access to a flash websit

Posted on 2007-04-04
3
196 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
  • 2
3 Comments
 
LVL 11

Expert Comment

by:sibgig
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:
sibgig 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
Using Quotation Marks in PHP This question (http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_28217211.html) seems to come up a lot for developers who are new to PHP.  And it got me thinking, "How can we explain the rule…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now