object-reference as string?

后端 未结 3 1719
日久生厌
日久生厌 2021-01-14 01:39

In java, you can get a unique string for an object.

How can you do this in as3?

3条回答
  •  粉色の甜心
    2021-01-14 02:24

    in the same vain as the responses on the java thread, the is a unique ID generator as part of the flex SDK. This is found under mx.utils.UIDUtil, it works fairly simply.

    var ID:String  = UIDUtil.createUID();
    

    Hope this helps.

提交回复
热议问题