Input Text

alright i know this is a really easy question but im making a movie and i want to make it where people have to be 13 or higher to view it so i put a place for input text but i dont know the action script for making it where if they put above 13 they can watch the movie

hey man

its quite easy…

  1. Make a textbox and set it to “Input” (from Static) in the properties panel. Right under where it lets u make it either a dynamic or input box, type in “age” or something of that sort… This will name the textbox “age” (or whatever name u gave it)
  2. Make a button
  3. Make sure the button is selected and open up the actions panel.
  4. In the actions panel you can have something like this:

[AS]
on(release){
if(Number(age.text) > 13){
// viewer is old enuf
}else{
// not old enuf (naughty little child!)
}
}
[/AS]

Hope that helps

Btw… make sure the button and the texbox are in the same “level” as in they should be in the same movieClip or both on the timeline (cause I used a relative path):nerd:

-Aditya
:thumb:

It’s not useful to put a age-check thingy on your site. Anyone below thirteen will be smart enough not to fill in anything lower than 13 …

what voet said is true… its kinda pointless these days…

I mean if 12 year olds out there are using Kazaa and are making stuff in Flash and everything… its kinda pointless…

But a good thing about it is if the kid lies and enters your site and his mom or dad says you are a bad man… you can just tell em their son is a lying freak :crazy: and is at fault himself :stuck_out_tongue:

-Aditya

alright thanx all

you’re most welcome… just wish u were a naked_chick though :beam:

-Aditya