Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Loading data from file... |
From: | Jon Williams |
Date: | Mon, 3 Jul 2000 14:51:06 +0100 |
If you want your authentication to be serious, you don't
want to send the list of valid usernames and passwords
to flash. That's easily hackable.
What you want to do is have flash send the person's
username / password to the server (cgi/servlet/etc)
and have the server reply with a new swf file if the
authentication is successful.
If however, you're intent on doing it all flash, nothing
but the flash, you'd make a textfile that looks like:
user1=mary
&mary_pass=wombat
&user2=jim
&jim_pass=slackstack
&user3=tina
&tina_pass=oopsy
...etc...
You load it all up, with the load variables command,
then you have the user enter myName and myPass into a
pair of textboxes, and compare to your list like this:
- -
Set Variable: "authenticated" = false
If (Eval(myName & "_pass") eq myPass)
Set Variable: "authenticated" = true
End If
- -
(technically you don't even need the user1 user2 user3 etc
unless you want to do a separate check for: "that username
does not exist"...which i guess you'd need to do since the
above code would let someone put in a bs username and an
empty password, and they'd probably be authenticated ...
that's why you do this sort of thing on the backend...)
so please don't do it this way....*grin*
-jon
Nuno Esculcas wrote:
> Hello to all
>
> I've got a problem, i want to do a site that needs to be autorized for
> the acess. And i need that the flash loads a file (or something) that is
> will be easy to update.
>
> How i do this, the idea is probably a file that has "name" and "pass"
> and load this at the start of the flash application (but how this is done,
> the loading of the file?)
>
> --
> Ateciosamente:
>
> Nuno Jos� Rodrigues Mendes Esculcas
>
> njmendesstudent [dot] dei [dot] uc [dot] pt
>
> flasher is generously supported by...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> flashforward2000 and the Flash(tm) Film Festival
> July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
> www.flashforward2000.com
> Produced by United Digital Artists and lynda.com
> Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
> shockwave.com and Electric Rain.
> 1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
> Register before June 30 and save $200!!-- www.flashforward2000.com
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email helpchinwag [dot] com
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
Re: FLASH: Loading data from file..., Nuno Esculcas
Replies
FLASH: user interaction: big oversight, Stuart Mayhew (Garanti Te
FLASH: Loading data from file..., Nuno Esculcas
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]