Tengo un problema con una clase en actionscript 1.0
Código :
var myRoot = _root;
//este array lleva la cuenta de cuales ventanas estan abiertas
openWindows_array = new Array();
//clase que crea una ventana a partir de un componente propio
function TextViewer(textViewerTitle){
   this.textViewerTitle = textViewerTitle;
   this.tvName = "myTextViewer_" + parseFloat(myRoot.ventanasAbiertas_array.length + 1);
   myRoot.createEmptyMovieClip(this.tvName, 0);
      myRoot[this.tvName]._x = 0;
      myRoot[this.tvName]._y = 0;
      myRoot[this.tvName].attachMovie("neWindowComponent", "textViewerWindow", 0, {theTitle: this.textViewerTitle, theHeight: 350, theWidth: 200, textColor: "000000", firstColor: "-663794", secondColor: "940A-FF"});
   myRoot.openWindows_array.push(this.tvName);
}
firstWindow = new TextViewer("Primera ventana");
secondWindow = new TextViewer("Segunda ventana");
thirdWindow = new TextViewer("Tercera ventana");
El problema es que solo me crea el ultimo objeto "thirdWindow".
¿alguna idea?


 
  
			 
					 
  
			 
					 
  
  
  
 