Tenho o seguinte script: Stage.scaleMode = "noScale"; Stage.align = "TL"; #include "AVbox.as" //settings AVBox AVBox.fileLoadingImage = "other/preloader.swf"; AVBox.animate = true; AVBox.alphaSpeed = 5; AVBox.borderSize = 10; AVBox.v = false; // var file_xml:String = new String("aires.xml"); var photos:Array = new Array(); var captions:Array = new Array(); var sound:Sound = new Sound(); var xml:XML = new XML(file_xml); // var empty:MovieClip = this.createEmptyMovieClip("empty_", this.getNextHighestDepth()); // xml.ignoreWhite = true; xml.onLoad = function(sucess) { if (sucess) { fc = this.firstChild; total = fc.childNodes.length; sound.loadSound(fc.attributes.sound,false); sound.setVolume(fc.attributes.volume); //cleaning arrangements photos = []; captions = []; //total number of nodes AVBox.total = total; for (i=0; i<total; i++) { // photos.push(fc.childNodes.attributes.src); captions.push(fc.childNodes.attributes.caption); //informing the photos and captions AVBox.src = photos; AVBox.cap = captions; // var thumb:MovieClip = empty.attachMovie("thumb", "thumb"+i, i); thumb._x = i*(thumb._width+5); thumb.img.loadMovie(fc.childNodes.attributes.thumb); thumb.sd.alpha(50,2); thumb.id = i; thumb.onRollOver = function() { sound.start(0,1); this.sd.alpha(0,10); }; thumb.onRollOut = function() { sound.stop(); this.sd.alpha(50,10); }; thumb.onRelease = function() { AVBox.v = true; //Starts AVBox Init_AVBox(this.id); this.sd.alpha(50,10); }; } with (empty) { _x = (Stage.width-_width)/2; _y = (Stage.height-_height)/2; } fs._x = Stage.width-(fs._width+10); bg._width = Stage.width } else { trace("Error!"); } }; xml.load(file_xml); //Put in the function you want to do, if the stage is resized. function avBox_onResize() { with (empty) { _x = (Stage.width-_width)/2; _y = (Stage.height-_height)/2; } fs._x = Stage.width-(fs._width+10); bg._width = Stage.width } fs.onRollOver = function(){ sound.start(0,1); this.gotoAndPlay(2); } fs.onRollOut = function(){ sound.stop(); this.gotoAndPlay(10); } fs.onRelease = function(){ Stage["displayState"] = Stage["displayState"] == "fullScreen" ? "normal" : "fullScreen"; } avBox_onResize(); este é uma galeria que peguei da net e queria saber como limito fotos por linha, conforme eu aumento a quantidade de fotos ele aumenta somente pela horizontal, queria limitar a qtd (exemplo: 4) numa linha e quebrar pra outra, alguém poderia me ajudar? desculpe não entendo nem um pouco de Action Script :mellow: