same problem here, how do we fix this?

On Apr 27, 1:19 pm, Sylvain Godbert <[email protected]> wrote:
> Hi,
>
> I am trying to get the AnimatedBitmapMaterial material working but I
> am facing some issues. Here is my code :
>
> [Embed(source="/assets/anim.swf")] private var _TextureAnim:Class;
>
> private function ExempleAnimatedBitmapMaterial():void
> {
> _Scene = new Scene3D();
>
> _Camera3D = new Camera3D();
> _Camera3D.zoom=2;
> _Camera3D.z = 1000;
> _Camera3D.focus=2000;
> _Camera3D.lookAt( new Number3D(0, 0, 0) );
>
> _View = new View3D({x: stage.stageWidth*.5, y : stage.stageHeight*.
> 5});
> _View.scene = _Scene;
> _View.camera = _Camera3D;
> addChild(_View);
>
> var animatedBitmapMaterial:AnimatedBitmapMaterial=  new
> AnimatedBitmapMaterial(new _TextureAnim(),{autoplay:true,
> loop:false});
>
> var plane:Plane = new Plane();
> plane.pitch(90);
> plane.material  = animatedBitmapMaterial;
>
> _View.scene.addChild(plane);
>
> }
>
> ...
>
> private function onEnterFrame(event:Event):void
> {
> _View.render();
>
> }
>
> Problem is that _View.render() brings up a pop up with an error
> message saying that a null  reference is being used. Am I using it in
> a wrong way ?
>
> Sylvain
>
> --
> Subscription 
> settings:http://groups.google.com/group/away3d-dev/subscribe?hl=en

Reply via email to