Really my VideoMaterial.as file didn't have those methods, but i just replaced that file with the one on the repository and it worked.
Thanks for all. On Wed, Jul 8, 2009 at 7:07 PM, Jensa <[email protected]> wrote: > > Hi Francisco. > There's really only been one version of the VideoMaterial (I wrote it) > and it has the methods that Ben mention. > > You either make a VideoMaterial with: > > object.material = new VideoMaterial( {file:"my.flv",loop:true} ); > > or using properties: > > var videomat:VideoMaterial = new VideoMaterial(); > videomat.file = "my.flv"; > videomat.loop = true; > object.material = mat; > > if you stored a reference to the material, you can play and pause it > using that, just as Ben says. > > J > > On Jul 8, 6:40 pm, Francisco Rojas <[email protected]> > wrote: > > Thanks Ben, it seems like a have an older version of the VideoMaterial > class > > because it doesn't have those methods. > > > > > > > > On Wed, Jul 8, 2009 at 12:22 PM, ben <[email protected]> > wrote: > > > > > Hi Francisco, > > > example : > > > > > ///access the material, here trough your object > > > var videomat:VideoMaterial = yourobject.material as VideoMaterial; > > > videomat.play(); > > > videomat.pause(); > > > videomat.close();//remove the stream of the video >
