AS3 Age gate (3)

May 4th, 2009 by terrypaton, under Library.

An Age gate, pass it the age you want as a minimum to see your content (defaults to 16), and alternatively a debug boolean if you want them to be able to try again (defaults to false). This example sets a random age when the swf is loaded.

eg. if the movieclip for the age gate has an instance name ‘ageGateClip’
ageGateClip.setAge(16)
ageGateClip.debug = true

Download zip

3 Responses to “AS3 Age gate”

  1. adam says:

    Mike has a really good age gate, all event-y and stuff
    Another one in the mix haha

  2. me says:

    i just downloaded the age gate, but the package terrypaton.events is missing, rendering this unpublishable.

  3. me says:

    actually it works if you comment out the events package import! guess its not needed…

Leave a Reply