# papervision3d and talking to movieclips

**URL:** <https://forum.kirupa.com/t/papervision3d-and-talking-to-movieclips/262752>\
**Category:** flash\
**Created:** [June 9, 2008, 5:24pm UTC](https://forum.kirupa.com/t/papervision3d-and-talking-to-movieclips/262752 "2008-06-09T17:24:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iwiniquit](https://avatars.discourse-cdn.com/v4/letter/i/7993a0/32.png) [@iwiniquit](https://forum.kirupa.com/u/iwiniquit)\
**Post date:** [June 9, 2008, 5:24pm UTC](https://forum.kirupa.com/t/papervision3d-and-talking-to-movieclips/262752/1 "2008-06-09T17:24:27Z")

</div>

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:

```auto
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);

```
