Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password Protect your .swf files!?

Status
Not open for further replies.

bomayed

Technical User
May 13, 2002
101
AE
I have made 3 flash movies. Each movie exports an swf file. Correct? Ok! Let's say I have now 1.swf 2.swf 3.swf files.

I want to place a login screen in (1.swf) where the user must input a username and password to access ( 2.swf and 3.swf).

If the user tries to access ( 2.swf or 3.swf) without going through 1.swf file , then he will be directed to an html page or whatever saying "ERROR , Please Login First".

Can someone help me achive this?

Thank you all . .
 
for the first part there are many tutorials on user login screens and it all depends on what kind of scripting languages are supported by your browser. I know of a few for php so post again if thats what you will be using.


for part 2 its a case of putting the error message in frame 1 with a stop action. when the user gets to these swf after entering the password then it will start on frame2. (you can pass a variable telling flash to skip frame 1). a user going there without having gone through the login screen will be stuck on frame 1.
 
May not offer all the protection if server side scripting is used, but this one is Flash only...


Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top