我正在开发一个基于flash的web应用程序。前端是用flex: MXML和ActionScript编写的。该项目在FlashDevelop中构建得很好,但当我使用F5进行测试时,它抛出了错误。
代码行:
[Bindable]
public var currentStateDataProvider:ArrayCollection = new ArrayCollection();错误消息:
[Starting debug session with FDB]
[Fault] exception, information=TypeError: Error #1034: Type Coercion failed: cannot convert mx.collections::ArrayCollection@c2acfc9 to Array.我声明和初始化变量的方式有什么问题吗?
发布于 2016-09-06 15:50:19
错误可能来自varible的使用。声明和实例化看起来不错,它们不应该是问题所在。无论如何,我同意BadFeelingAboutThis的评论。在构造函数中实例化复杂变量对我来说更好。
https://stackoverflow.com/questions/39029545
复制相似问题