Im not have much luck into finding some Docs on this subject:
var videoTexture = new VideoTexture("test.flv",512,512,true,true);
var textureMaterial = new TextureMaterial(videoTexture);
var planeGeom = new PlaneGeometry(200,200,1,1,false);
var planeMesh = new Mesh(planeGeom,textureMaterial);
planeMesh.z = -100;
planeMesh.y = 25;
textureMaterial.smooth = true;
textureMaterial.alphaBlending = true;
_container.addChild(planeMesh);
videoTexture.player.play();
how would i make a listener for a loading event, all my generic loaders don’t work, i tried a net streaming listener but it keeps throwing errors… ideally i cant add the child until i know its complete…
I don’t know what kind of listener you’re trying to add but if your video class is not extended from an event dispatcher it won’t work.
In any case away3d does have API documentation. None of pre-build events help you?
If you’re already extending from their classes then you could stay on target with what I’m suggesting.
If you dispatch events you create in from your own Event class at the different stages of your VideoTexture class then you can set up your listeners where you need them. For example in the VideoTexture class say you dispatch a “CONNECT” event at the connect() method. Then you can listen for that particular event in the class you’re working out of.