Musical visualizer difficulties

Before you review this code i would like to explain it to you and tell you what is going on and the issue i would like to solve. I am creating a musical visulizer however I am having difficulty when it comes to controlling the cloned DisplayObject3D. The code is broken down as follows var plane is created which is a papervision Plane it is then put in the Array Planes. Array Planes is then placed in planesHolder, which is a DisplayObject3D. All of this so far creates a carousel. I then create a function multipe with an Array ListHolder. Array ListHolder is a clone of planesHolder, all of this works fine to duplicate the carousel. The issue I am having is that I am controlling Array planes with the sound, which work fine for the initial carousel but not the cloned DisplayObject3D in function multiple.

So my question is how can I control Array ListHolder with sound the same way I controlled Array planes with sound?

This example uses both Papervision3D and TweenLite.

Thank you in advanced for any help with this issue I know it’s a lot to read and review but your help is greatly appreciated.



package
{
import com.greensock.TweenLite;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.TimerEvent;
import flash.media.Sound;
import flash.media.SoundMixer;
import flash.net.URLRequest;
import flash.utils.ByteArray;
import flash.utils.Timer;
import org.papervision3d.materials.ColorMaterial;
import org.papervision3d.objects.DisplayObject3D;
import org.papervision3d.objects.primitives.Plane;
import org.papervision3d.view.BasicView;


public class Example26 extends BasicView
{
public var pivot : Sprite;
public var plane:Plane = new Plane;
protected var listHolder:Array =[];
protected var planesHolder:DisplayObject3D;
protected var planes:Array = [];
protected var numItems:Number = 30;
protected var radius:Number = 500;
protected var currentItem:Number = 0;
protected var colorMaterial:ColorMaterial;
public var tmr :Timer = new Timer( 200 );
// sound vars
public var sndObject:Sound = new Sound()
public var reqObject:URLRequest = new URLRequest("07 The Spectator copy.mp3");
public var sndBytes:ByteArray = new ByteArray();

public function Example26():void
{
super();
init();
initSound()
}

protected function init():void
{
startRendering();
createChildren();
commitProperties();
multiple()
addEventListener(Event.ENTER_FRAME, render);
tmr.addEventListener( TimerEvent.TIMER, tick );
tmr.start();

// Set camera properties
camera.x = 500;
camera.y = 500;
camera.z = 200;
camera.zoom = 5;
camera.focus = 100;
camera.sort = false;

// Set pivot point
pivot = new Sprite();
pivot.x = 500;
pivot.y = 500;
}

protected function createChildren():void
{
planesHolder = new DisplayObject3D();

//Create Material 2
colorMaterial = new ColorMaterial(Math.random()*0xFF0000);
colorMaterial.doubleSided = true;

for (var i:int = 0; i < numItems; i++)
{
//Create Material 2
plane = new Plane(colorMaterial, 100, 100);
planes.push(plane);

//Add plane to the scene
planesHolder.addChild(plane);
}
scene.addChild(planesHolder);
planesHolder.y = -600
}

public function multiple():void
{
var listHolder:Array = new Array()
for (var a:int = 0; a < 4; a++)
{
listHolder[a] = planesHolder.clone()
scene.addChild(listHolder[a]);
listHolder[a].y = 150*a
}
}

public function commitProperties():void
{
//Set properties of our planes
for (var i:int = 0; i < planes.length; i++)
{
var angle:Number = Math.PI * 2 / numItems * i;
plane = planes[i];
plane.x = Math.cos(angle) * radius;
plane.z = Math.sin(angle) * radius;
plane.rotationY = -360 / numItems * i - 90;
}
}

public function render(event:Event = null):void
{
camera.x += (((stage.mouseX-(stage.stageWidth * .5))*3)-camera.x )* .3;
camera.y += (((stage.mouseY-(stage.stageHeight*.5))*3)-camera.y )*.3;
}

public function initSound():void {
// load mp3 file and play it
sndObject.load(reqObject);
sndObject.play();
}

public function tick(e:TimerEvent):void
{
//var num:Number = -sndBytes.readFloat()*2;
var temp : Array = new Array();

SoundMixer.computeSpectrum(sndBytes, true, 0 );

for ( var j:int = 0; j < 30; j+= Math.floor( 30/ planes.length ) )
{
temp.push( (sndBytes.readFloat() * 1.5 ) + 1 );
}

for ( var i:uint = 0; i < planes.length; i++ )
{
TweenLite.to( planes[i], 0.1, { scaleY:temp[i], scaleZ:temp[i], scaleX:temp[i]} );
//planes[i].alpha = temp[i] - 0.9;
}

}
}
}
This has nothing to do with Box2D.

Original thread: https://box2d.org/forum/viewtopic.php?t=4584