# PaperVision3D VideoStreamMaterial & GreenSock VideoLoader

**URL:** <https://forum.kirupa.com/t/papervision3d-videostreammaterial-greensock-videoloader/320623>\
**Category:** flash\
**Created:** [March 28, 2011, 9:22pm UTC](https://forum.kirupa.com/t/papervision3d-videostreammaterial-greensock-videoloader/320623 "2011-03-28T21:22:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RedGiant](https://avatars.discourse-cdn.com/v4/letter/r/b19c9b/32.png) [@RedGiant](https://forum.kirupa.com/u/RedGiant)\
**Post date:** [March 28, 2011, 9:22pm UTC](https://forum.kirupa.com/t/papervision3d-videostreammaterial-greensock-videoloader/320623/1 "2011-03-28T21:22:54Z")

</div>

As a budding programmer, I have come to love using GreenSock’s VideoLoader. Now I am trying to incorporate it into Papervision3D’s VideoStreamMaterial with just a hair of success. Here is my ordeal:

1st: Using GreenSock’s VideoLoader class, I load an entire .flv before anything continues.

```auto
var vl:VideoLoader = new VideoLoader("../bin/video/clickme.flv",{name:"myVideo", autoPlay:false,centerRegistration:true,onComplete:videoLoaderComplete});

```

2nd: After the onComplete event is fired, a new VideoStreamMaterial is instanced. The two required parameters are _VideoStreamMaterial(video:Video, stream:NetStream)_

```auto
var vidmat:VideoStreamMaterial = new VideoStreamMaterial(vl.rawContent,vl.netStream);

```

3rd: Now all of this works. It loads, attaches the material to the cube, the 3D cube is rendering correctly(Because I attached a rotate on mouseOver), and you can hear the netstream audio. However, the only material I see attached to the cube is the first frame of the video. It appears to be paused.

Any tips would be welcomed ecstatically.
