Jump to content


Enter a code help?


  • You cannot reply to this topic
5 replies to this topic

#1 Phatmat

    Young Padawan

  • Members
  • Pip
  • 6 posts

Posted 09 July 2007 - 07:10 AM

Hi, im just making a website, but wanted to make a basic flash password to enter. So basically, im going to have my homepage as just a blank page with "Code: ______" and the users have to enter a specific (lets say for example 1234) code to enter. This is because I only want certain people using the site :P

Can anyone help me on this?

Also, is there a way to remove that annoying "Click to activate" control before being able to use flash? Everything I make in flash requires the users to "Click to activate" before use, I was just wondering if there was a way to remove it.

thanks!
Matt.

#2 Pax

    P2L Jedi

  • Members
  • PipPipPip
  • 911 posts
  • Gender:Male
  • Location:Windsor, ON, Canada

Posted 09 July 2007 - 09:58 AM

For the click to activate stuff, check out the sticky topic about IE's security changes. Last post in there should link to the SwfObject site from Deconcept. Use that to bypass the click.

For the login stuff....code it in php and have the page the logged in users go to contain the flash. Any var that you store in flash can be retrieved using a decompiler, so its not exactly good for security.

#3 Phatmat

    Young Padawan

  • Members
  • Pip
  • 6 posts

Posted 09 July 2007 - 10:28 AM

View PostPax, on Jul 9 2007, 10:58 PM, said:

For the click to activate stuff, check out the sticky topic about IE's security changes. Last post in there should link to the SwfObject site from Deconcept. Use that to bypass the click.

For the login stuff....code it in php and have the page the logged in users go to contain the flash. Any var that you store in flash can be retrieved using a decompiler, so its not exactly good for security.


thanks for the quick reply, but i have no idea how to write/do anything with PHP. this was just a small thing for some friends, and I don't really mind about security. if people get in, its not that much of a big deal =). i think i will still make it in flash.

is any kinda person out there able and willing to give me some code (sry, im newb in flash actionscrpit) that can do this "Code:_____" thing? just some basic stuff, i can probly manage to mould it to suit my needs, thanks!

**Edit: I just downloaded the embedding swf, "swfobject", but have no idea how to use it (once again, flash newb). if you can also help me on this it would be great!

Edited by Phatmat, 09 July 2007 - 10:35 AM.


#4 Pax

    P2L Jedi

  • Members
  • PipPipPip
  • 911 posts
  • Gender:Male
  • Location:Windsor, ON, Canada

Posted 09 July 2007 - 11:03 AM

Just read the website you got swfobject from. It'll show you how to use it.

For your code thing, make a dynamic text box for the user to enter a value in, and a movieclip to use as a submit button.

myButtonInstanceName.onRelease = function(){
if(myDynamicTextInstanceName.text == "thePassword"){
//password is correct, do what you need it to do here
} else {
// password is wrong
}
}
Obviously change the myButtonInstanceName with the instance name of your movieclip. Same goes for myDynamictextinsancename and thePassword.

Make sure you put the code on the same level as the textfield and the submit mc.

#5 Phatmat

    Young Padawan

  • Members
  • Pip
  • 6 posts

Posted 09 July 2007 - 09:22 PM

ok, it worked! thanks for the help :)

i will read the website for that embedding flash object, and post here if i still can't get it to work.

#6 Pax

    P2L Jedi

  • Members
  • PipPipPip
  • 911 posts
  • Gender:Male
  • Location:Windsor, ON, Canada

Posted 10 July 2007 - 11:04 AM

Alright, good luck. SwfObj is pretty simple. Shouldn't be all too hard to get working.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users