# 'VideoPlayer.play()' throws 'VideoError: 1008' if used without 'FLVPlayback'

**URL:** https://forum.kirupa.com/t/videoplayer-play-throws-videoerror-1008-if-used-without-flvplayback/313597
**Category:** flash
**Created:** [September 3, 2010, 11:19pm UTC](https://forum.kirupa.com/t/videoplayer-play-throws-videoerror-1008-if-used-without-flvplayback/313597 "2010-09-03T23:19:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![audiohominis](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@audiohominis](https://forum.kirupa.com/u/audiohominis)
#### Post date: [September 3, 2010, 11:19pm UTC](https://forum.kirupa.com/t/videoplayer-play-throws-videoerror-1008-if-used-without-flvplayback/313597/1 "2010-09-03T23:19:12Z")

</div>

[FONT=Verdana]Greetings.  
For some reason calling [FONT=“Courier New”]play()[/FONT] on a [FONT=“Courier New”]VideoPlayer[/FONT], **[COLOR=“Red”]unless[/COLOR]** first an [FONT=“Courier New”]FLVPlayback[/FONT] is declared and instantiated, yields the following error.[/FONT]

[FONT=“Courier New”]VideoError: 1008: VideoPlayer.iNCManagerClass has not been set or its value is invalid: fl.video.NCManager  
at fl.video::VideoPlayer/[http://www.adobe.com/2007/flash/flvplayback/internal::createINCManager()](http://www.adobe.com/2007/flash/flvplayback/internal::createINCManager())  
at fl.video::VideoPlayer/[http://www.adobe.com/2007/flash/flvplayback/internal::\_load()](http://www.adobe.com/2007/flash/flvplayback/internal::_load())  
at fl.video::VideoPlayer/play()  
at FLVPE::Main/init()[C:\My Projects\FLVPlaybackExternal\src\FLVPE\Main.as:48]  
at FLVPE::Main()[C:\My Projects\FLVPlaybackExternal\src\FLVPE\Main.as:34][/FONT]

```php
package FLVPE
{
    import flash.display.Sprite;
    import flash.events.Event;
    import fl.video.VideoPlayer;
    import fl.video.FLVPlayback;
    public class Main extends Sprite
    {
        private var videoPlayer:VideoPlayer = new VideoPlayer(320, 240);
        private var flvp:FLVPlayback = new FLVPlayback();
		//Commenting the above line out throws 1008 VideoError...
        public function Main():void
        {
            if (stage) init();
            else addEventListener(Event.ADDED_TO_STAGE, init);
        };
        private function init(e:Event = null):void
        {            
            removeEventListener(Event.ADDED_TO_STAGE, init);
            addChild(videoPlayer);
            videoPlayer.play('video.mp4');
        };
    };
};  

```

Obviously this has something to do with [FONT=“Courier New”]NCManager[/FONT] but the [livedocs example](http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/fl/video/VideoPlayer.html#includeExamplesSummary) doesn’t seem to rely on it.
