gpt4 book ai didi

actionscript-3 - 如何在 AS3 中获取类的别名字符串?

转载 作者:行者123 更新时间:2023-12-01 04:22:41 24 4
gpt4 key购买 nike

var alias:String = 'models.User';
registerClassAlias(alias, models.User);

// If I have the alias, then
// I can get the class like this:
var klass:Class = flash.net.getClassByAlias(alias);

// How do I do the reverse
// (get the alias from the class)?
//
// I want to do this, but I can't find a
// 'getAliasByClass' function.
alias = getAliasByClass(klass);

最佳答案

关于actionscript-3 - 如何在 AS3 中获取类的别名字符串?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/417334/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com