flash on 2014-1-30
♥0 |
Line 15 |
Modified 2014-01-30 22:35:05 |
MIT License
archived:2017-03-20 06:15:12
ActionScript3 source code
/**
* Copyright Fraz ( http://wonderfl.net/user/Fraz )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/7GBO
*/
package {
import com.actionscriptbible.Example;
import flash.utils.getTimer;
public class FlashTest extends Example {
public function FlashTest() {
// write as3 code here..
var data:Object = {};
data.guid = "abc123";
data.license = "WI-FG6T-KJY6";
var json:String = JSON.stringify(data);
var timestamp:Number = Math.round(new Date().time / 1000); //Create a date timestamp and remove milliseconds
var key:String = "secret" + timestamp;
/*var encyptedJson:String = .encrypt(json, key);
var params:Object = {};
params.timestamp = timestamp;
params.data = encyptedJson;*/
trace(timestamp);
}
}
}