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;