Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我发现该函数"getChildByName"只能获取mxml. 当我必须添加一个 id 为"dynamic_id"动态的元素时。
"getChildByName"
mxml
"dynamic_id"
我怎样才能得到这个元素?
MXML 中使用的 id 将被解析为对组件的简单引用。public var contentGroup:Group;例如。因此,您只需向组件添加新字段。
public var contentGroup:Group;