hi there
I have created a package to handle some 3d bits using papervision.
I am having the issue whereby I have a few static methods that control the planes and bitmapMaterial.
In a nut shell using static methods dont allow the 3d motions to be assigned individually.
Code:
function callThumbs():void {
for (var i:Number = 0; i < my_total; i++) {
var thumb_url = my_images*.@THUMB;
var coneBlackMaterial:BitmapFileMaterial = new BitmapFileMaterial(thumb_url);
coneBlack = new Plane( coneBlackMaterial, 250, 200, 3, 3);
rootNode.addChild(coneBlack);
Tweener.addTween(coneBlack, { rotationX:0, rotationY:0, z:70, time:1, transition:"easeinoutexpo"});
}
}
basically could some one show me how to create
coneBlack+i = new Plane( coneBlackMaterial, 250, 200, 3, 3);
this is tricky as coneBlack1 needs to be private var cone1: Plane; but i am using a good lot of xml to cycle through the loop, and would like to create the private methods in a loop???
does any one know if this is possible.
thanks