Restrictions on minors in as2?

  • Hi, I'm trying to put a restriction on minors in as2 that works for your year of birth.

    The only thing I do esque qe want an action if they are over 18 years.
    Regards, thanks

    on(release){
    if(Number(edad.text) >= 18){
    krpano.call("removeplugin(terminos);");

    }
    else{
    resultado.text = "No eres mayor de edad";
    }
    }

    Regards, thanks

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!