FORUMS: list search recent posts

sharing privacy

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Lefteris Sifidis
sharing privacy
on Jan 14, 2011 at 5:12:29 pm

hi, i'm gonna create a flash site. is there a way to make a part of it accessible only to vip members?


Return to posts index

demetri tashie
Re: sharing privacy
on Jan 14, 2011 at 5:41:10 pm

geia sou lefteri,

yes, you can "password protect" some function ( navigating to a new frame. loading a new swf, etc)
various ways with various levels of security.

an easy way, that is not terribly secure, is to have an input text box serve as your password container. a simple button click can verify using an 'if' conditional statement if the password is correct. if it is, it allows the user to do whatever yo want them to do.

i wouldn't use the technique for financial or other strict security situations, but for entrance to a 'vip access area' it could do the job easily

you can see a simple example of it here: http://www.demetri-media.com/FlashTalker/password.swf

this is the code that makes it work:

correct.visible=false;

btn.addEventListener(MouseEvent.CLICK,checksAnswer);
function checksAnswer(e:MouseEvent):void {
if (intext.text=="hellenas"){correct.visible=true, intext.text="correct" } else
{
intext.text="try-again"
}
}


'correct' is the movieclip that appears if you used the correct password (hellenas).
'btn' is the grey button
'intext' is the input text box for the password

hope that helps.


Return to posts index

Lefteris Sifidis
Re: sharing privacy
on Jan 14, 2011 at 7:05:46 pm

i want it both for financial purposes and peer access


Return to posts index


demetri tashie
Re: sharing privacy
on Jan 14, 2011 at 9:59:39 pm

well, certainly don't use that method where financial or other PPI could be at risk.

you might note the big flaw in this usage - that the password itself is stored in the SWF itself. so while this would be a good means to keep the honest people honest, it doesn't protect from those intent on doing harm.

anyone who could get hold of the swf could theoretically decomplie it and expose the code ( which contains the password ). you could of course encrypt your swf to protect it from decompliers which would add a large measure of safety.

but still, for full out serious protection, you would need to access a secured connection back to a secured server. hopefully someone else can offer insight in how to best go about doing that.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]