Hi Andy,
You can set MovieMaterial size by using lockH and lockW properties.
see this as a sort of embed.
more than 10000...
In this case, I presume your plane displayed normally shows a very
small texture, and you probably compensate by making the plane bigger...
To avoid this just set the clipRect of the MovieMaterial as well...
you avoid then to compensate the size of your sprite/mc.
Fabrice
On May 5, 2009, at 10:28 AM, Andy Fang 方永安 wrote:
I load a .swf file into a loader.
And then set content of loader as a Sprite.
Assing this sprite as a MovieMaterial.
Finally, attach this MovieMaterial in a Plane.
But I find the dimensions of stage become very big (more than 10000 x
10000).
Here is my source code.
swfLoader=new Loader();
swfRequest=new URLRequest("sample.swf");
swfLoader.load(swfRequest);
swfLoader.contentLoaderInfo.addEventListneer(Event.COMPLETE,
swfLoadedHandler);
function swfLoadedHandler():void{
swfInstance=swfLoader.content as Sprite
swfMaterial=new MovieMaterial(swfInstance, {interactive:true,
smooth:true});
swfPlane=new Plane({material:swfMaterial});
}