views:

233

answers:

2

In php there's a function called uniqid. It generates unique identifiers based on the current time. I was wondering if something like that was available in ActionScript.

+2  A: 

There is no built-in way to generate a true UUID in ActionScript. You can get something good enough via

import mx.utils.UIDUtil;
var uuid:String = UIDUtil.createUID();
Jonathan Feinberg
A: 
    import mx.utils.UIDUtil;
    var uuid:String = UIDUtil.createUID(); 
    getURL("Javascript:fname=" + uuid + ";get_name();");

Why firebug says that fname is undefined?

Tried getURL("Javascript:fname=" + UIDUtil.createUID() + ";get_name();");

Same result: undefined

Please help me.

Beck