VideoEvent doesnot work in 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.
Any suggestions on solving this ?
(As this was solved a while back, I'm posting the answer here as a public courtesy to get this off the unanswered list. Asker is welcome to post their own answer and accept it, or just accept this one. Whichever.)
The compiler apparently gets confused with fl.video.VideoEvent. Use the full reference instead.
addEventListener(fl.video.VideoEvent.READY, ready);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With