Hi,
I have the FLVPlayback component on the stage. This is the only code I have in this file:
import fl.video.VideoEvent;
vidPlayer.addEventListener(VideoEvent.PLAYING_STATE_ENTERED, showVideo);
vidPlayer.source = "rtmp://streamingServerAddress/spstVideo.flv";
function showVideo(event:VideoEvent) {
trace(vidPlayer.state);
}
When I try and publish I get this error message:
Scene 1, Layer 'Layer 2', Frame 1, Line 3 1119: Access of possibly undefined property PLAYING_STATE_ENTERED through a reference with static type Class.
This happens when I try to use any Events for the video player (COMPLETE, PLAYHEAD_UPDATE, REWIND… etc.). The video plays if I comment out line 3. Other things like vidPlayer.state also work fine. It seems like just events are not working. I have old CS3 & CS4 projects where I’ve used VideoEvents over and over without problems. Any Ideas?