Revision: 5124
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 13, 2008 03:01 by Nikolai
Initial Code
private function attachThumbs (anzreihe:Number, anzgesamt:Number, itemwidth:Number, itemheight:Number, margin:Number) :Void { trace("attachThumbs"); var anzahl_reihe:Number = anzreihe; var anzahl_gesamt:Number = anzgesamt; var mc_breite:Number = itemwidth; var mc_hoehe:Number = itemheight; var abstand:Number = margin*2; var x_wert:Number = 48; var y_wert:Number = 248; var x_start:Number = x_wert/2; var y_start:Number = y_wert/2; for (var i:Number=0; i<anzahl_gesamt; i++) { var initObj:Object = new Object(); initObj.targetx = x_start+(i%anzahl_reihe)*(mc_breite+abstand); initObj.targety = y_start+Math.floor(i/anzahl_reihe)*(mc_hoehe+abstand); initObj._x = initObj.targetx; initObj._y = initObj.targety; initObj._alpha = 0; initObj.count = i; var tmpMC:MovieClip = UI.attachMovie("VideoThumb","videothumb"+i,i+3, initObj); tmpMC.loadThumbPic(imagepath+"thumb.png"); tmpMC.alphaTo(100,1,'linear',i*0.1); //tmpMC.tween(["_alpha","_x","_y"],[100,initObj.targetx,initObj.targety],1,'easeOutQuad',i*0.1); } }
Initial URL
Initial Description
Initial Title
Arrange MCs from Library to Stage
Initial Tags
order
Initial Language
ActionScript