Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generate unique numbers in ActionScript

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.

like image 569
Emanuil Rusev Avatar asked Nov 19 '25 09:11

Emanuil Rusev


1 Answers

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(); 
like image 98
Jonathan Feinberg Avatar answered Nov 22 '25 00:11

Jonathan Feinberg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!