获取在弯曲的类型 [英] Get the type in flex

查看:161
本文介绍了获取在弯曲的类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以告诉我,我怎么能在柔性物体的类型?特别是我有我的存储多种类型的(但所有的UIComponents)现在,我评价我想找出我是否有TextInput控件或单选按钮数组的数组。是否有人有一个想法?

can someone tell me how I can identify the type of an object in flex? In particular I have an array where I store multiple types in (but all UIComponents) now as I evaluate the array I want to find out whether I have a TextInput Control or a RadioButton. Does someone have an idea?

在此先感谢

推荐答案

您可以针对使用特定类测试是经营者,也可以使用flash.utils.getQualifiedClassName()(你传递你的对象) - 这将返回的完全限定类名的字符串。

You can either test against a particular class using the "is" operator or you can use flash.utils.getQualifiedClassName() (you pass it your object) - which will return a string of the fully qualified class name.

这篇关于获取在弯曲的类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆