Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VideoEvent not working in Flash Player 10.2

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 ?

like image 422
Vishwas Avatar asked Jun 23 '12 18:06

Vishwas


1 Answers

(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);

like image 65
CodeMouse92 Avatar answered Nov 11 '22 23:11

CodeMouse92