actionscript-3 - 弹性4状态,并在 ActionScript 中使用includein

标签 actionscript-3 apache-flex flex4

如何在ActionScript中处理状态和“ includeIn”标记?例如:

var newState:State = new State();
var comp:Group = new Group();
comp.includeIn = newState;


这不是有效的代码,但这是我想做的。

最佳答案

来自Adobe帮助:关于Spark外观

http://help.adobe.com/en_US/flex/using/WSC8DB0C28-F7A6-48ff-9899-7957415A0A49.html

引用:


只能在MXML中设置excludeFrom和includeIn属性。
您不能在ActionScript中设置这些属性的值。

关于actionscript-3 - 弹性4状态,并在 ActionScript 中使用includein,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3268822/

相关文章:

apache-flex - Flex 中的基本名称?

actionscript-3 - ActionScript - 在 switch 语句中使用 "is"比较?

apache-flex - ActionScript 3 Socket 跨域文件帮助

javascript - 它是 Ecmascript 中的错误 -/\S/.test(null) 返回 true 吗?

actionscript-3 - Flex arraycollection getitemindex 总是返回-1

apache-flex - 防止浏览器中的 Flex 应用程序缓存(多个模块)

apache-flex - 弹性 : Filter HierarchicalData child rows

actionscript-3 - 我可以将 byteArray 保存到 mp3 文件吗?

apache-flex - 使用多个模块时优化 Flex

c# - 使用 C# 创建带有嵌入式 SWF 和 FlashVars 的 PDF