VideoMaterial change .file

Software: Away3D 4.x

ventoline, Newbie
Posted: 30 November 2011 01:27 PM   Total Posts: 2

Hi there,
This is my first use of Away3D, coming from a PV3D background. I have a plane with a VideoMaterial and what to change its .file dynamically. The file changes but only after the current video has finished playing, here is the code:

public var materialPlaneMC3:VideoMaterial= new VideoMaterial({lockW800lockH:600});
materialPlaneMC3.smooth true;
materialPlaneMC3.loop true;
plane3.material materialPlaneMC3
world3d.in2ar.materialPlaneMC3.file  world3d.in2ar.vdosArray[ref.id -1];
//the the video plays, but only change after the previous one has finished 

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X