VideoEvent无法在Flash Player 10.2中运行

Vis*_*ani 6 actionscript-3

VideoEvent在Flash Player 10.2中不起作用

import fl.video.VideoEvent 

addEventListener(VideoEvent.READY, ready);


Compiler Error: ( For Flash Player 10.2, works fine in Flash Player 9)
1119: Access of possibly undefined property READY through a reference with static type Class.
Run Code Online (Sandbox Code Playgroud)

解决这个问题的任何建议?

Cod*_*e92 4

(由于这个问题不久前已经得到解决,出于公共礼貌,我将答案发布在这里,以便将其从未回答的列表中删除。欢迎提问者发布自己的答案并接受它,或者只是接受这个答案。无论哪种。)

编译器显然与 fl.video.VideoEvent 混淆了。请改用完整的参考。

addEventListener(fl.video.VideoEvent.READY, ready);