# Video Events are not working at all (CS5.5)

**URL:** <https://forum.kirupa.com/t/video-events-are-not-working-at-all-cs5-5/325024>\
**Category:** flash\
**Created:** [September 21, 2011, 6:42pm UTC](https://forum.kirupa.com/t/video-events-are-not-working-at-all-cs5-5/325024 "2011-09-21T18:42:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![caraticus](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/caraticus/32/4195_2.png) [@caraticus](https://forum.kirupa.com/u/caraticus)\
**Post date:** [September 21, 2011, 6:42pm UTC](https://forum.kirupa.com/t/video-events-are-not-working-at-all-cs5-5/325024/1 "2011-09-21T18:42:50Z")

</div>

Hi,

I have the FLVPlayback component on the stage. This is the only code I have in this file:

```auto
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:

```auto
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?
