Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Flash (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 15th, 2004, 03:32 AM
Authorized User
 
Join Date: Nov 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default authenticating users

hi,
how can i setup a username and password authentication before a user can browse my Flash site?
thanks

 
Old November 15th, 2004, 11:33 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Are you wanting one Username and password for everybody or are you wanting each individual user to have their own username and password?

If you are having one universal username and pass, then you can embed this into your movie and do a comparison. If every username and pass are unique then I look at using a flash with a database to store the information, and this will require some backside coding such as ASP, Cold Fusion, etc.

I have some code that I can upload for you a little later if you are using just the universal username and password.

Peace
Mike
 
Old November 15th, 2004, 11:46 AM
Authorized User
 
Join Date: Nov 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

what programming language are you using for universal username and password ?

 
Old November 15th, 2004, 12:01 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It's ActionScript, all I did was create the login page in the first frame. On the second frame compared my information. Then if it matches take the user to whereever you want them to go, otherwise direct the user back to the login page.

Peace
Mike
 
Old November 15th, 2004, 12:09 PM
Authorized User
 
Join Date: Nov 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default

can you show me the code?

 
Old November 15th, 2004, 12:23 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, I have it at home though, at lunch I will upload the fla file for you and send you an email where to download it at.

Peace
Mike
 
Old November 15th, 2004, 10:11 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 249
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have uploaded the script at http://www.eclecticpixel.com/scripts, sorry I didn't get this at lunch but I accidentally trashed it at some point in time and had to redo it. On frame 1 you will need to go in and replace "YourUserName" and "YourPassword" with whatever you want.

Peace
Mike





Similar Threads
Thread Thread Starter Forum Replies Last Post
WCF Authenticating users from Database irfanb2000 BOOK: Professional WCF Programming: .NET Dev with Windows Communication Found ISBN: 9780470089842 1 May 7th, 2008 05:36 PM
error authenticating to active directory planeswalk ASP.NET 1.0 and 1.1 Professional 2 June 2nd, 2005 02:49 AM
Authenticating against Active Directory JamiebearT VB How-To 4 September 22nd, 2003 11:06 AM
Authenticating Windows Password cooky4 VB How-To 0 September 8th, 2003 01:22 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.