Hi All,
Unsure if it is me or not but -
Using this code and having the compiled .swf in the same folder as
the .flv - I get the file was not found.
It is a cut down version of the example in the new book, if you need
to see the Chapter05SampleBase I can post that also, but I don't think
that has anything to do with my problem.
Thanks for looking.
package flash3dbook.ch05
{
import away3d.materials.VideoMaterial;
import away3d.primitives.Cube;
/**
* @author Jono
*/
[SWF(backgroundColor="#FFFFFF", frameRate="24", width="800",
height="600")]
public class UsingAnimatedMaterials extends Chapter05SampleBase
{
public function UsingAnimatedMaterials()
{
super();
}
override protected function _createScene():void
{
_cube = new Cube();
_cube.width = 75;
_cube.height = 75;
_cube.depth = 75;
_view.scene.addChild(_cube);
}
override protected function _createMaterials():void
{
var videoMat:VideoMaterial = new VideoMaterial();
videoMat.file = "Away3D_Showreel2010.flv";
_cube.material = videoMat;
}
}
}