/**********************************\ This File creates a wave simulation using scaling 'bar' movie clips. Each bar references the 2 (sometimes 1) bars next to it so that it can transfer its waving influence to those bars and thereby create the effect. \**********************************/ Stage.scaleMode = "noScale"; /****************\ * CreateBars * creates 'count' bar clips in the 'where' movie clip \****************/ function CreateBars(count, where){ var i; // increment value for looping count bars var bar; // bar being attached in loop var last_bar = false; // last bar created // create an array in the where clip to manage bars where.bars = new Array(); // loop through count times to create count bars in where clip for (i=0; i