[Papervision3D] MovieMaterial using a dynamic movieclip
Carlson, Jonathan David
jdcarlson at liberty.edu
Thu Jan 24 08:10:58 PST 2008
Hey guys, I've seen applying a MovieMaterial with a movieclip from the
library, but how do you do this with a dynamically created movieclip??
Example: I'm making a movieclip and then loading an image into it, I
then want to use this new movieclip as a MovieMaterial...
my_mc = new MovieClipLoader();
var image = this.createEmptyMovieClip("imageHolder",100);
my_mc.loadClip("media/image.jpg",image);
var material:MovieMaterial = new MovieMaterial(image);
material.oneSide = false;
var plane:Plane = new Plane(material,0,0,10,10);
plane.x = (container._width /2);
plane.y = (container._height / 2)-110;
plane.z = 0;
scene.push(plane);
why does this not work?? I'm been trying for a few hours now with no
luck...
Jonathan Carlson
Creative Web Developer
Liberty University
jdcarlson at liberty.edu <mailto:jdcarlson at liberty.edu>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080124/e3a15897/attachment.html
More information about the Papervision3D
mailing list