/ Published in: ActionScript 3

Ability to expire your AS3 based application in as easy as 1, 2, 3 with the amazing Rivera Era.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//ITS THE RIVERA ERA //THE PUERTO RICAN DREAM COME TRUE import flash.events.Event; //REPLACE: YEAR, MONTH, DAY BELOW //WITH YOUR EXPIRE DATE IN NUMBER FORMAT var expireDate:Date = new Date(2014,5,31); var curDate:Date = new Date(); stage.addEventListener(Event.ENTER_FRAME, chkExpire); function chkExpire(evt:Event):void { if (curDate <= expireDate) { //YOUR EXPIRE ACTIONS HERE } else { return; }
Comments
