papervision3d and talking to movieclips

sorry for the stupid title but i’m not sure how else to sum it up.

so basically what i’m doing is exporting/loading a bunch of movieclips into the scene using a for loop. the problem is, that in these movieclips i have a dynamic text box (index_txt) where i want to display the index number of the loop in each movieclip. i have no idea how the levels work with papervision3d and as3 though (i’m new to it).

here’s the code I have:

var container:Sprite = new Sprite();
container.x = stage.stageWidth * 0.5;
container.y = stage.stageHeight * 0.5;
addChild(container);

var scene:Scene3D = new Scene3D(container);
var camera:Camera3D = new Camera3D();
camera.zoom = 5;

var mc:MovieAssetMaterial = new MovieAssetMaterial("box");
mc.oneSide = false;
mc.smooth = true;
var k:Number = 0;

for (var i:uint=1; i < 10; i++) {
    var p:Plane = new Plane(mc, 116, 116, 2, 2);
    scene.addChild(p);
    
    p.x = k;
    p.y = 0;
        
    k = 125 * i;

    ///// THE PROBLEM /////
    p*.index_txt.text = i;
}


scene.renderCamera(camera);