All pastes #479241 Raw Edit

Anonymous

public javascript v1 · immutable
·published 2007-05-09 17:02 UTC
rendered paste body
function onPhotosSearch(rs:ResultsSet){     _numResults = rs.photos.length;	 var depth = 0;	 var nextY = 10;     for (var i:Number=0; i<_numResults; i++) {     var thisPhoto:Photo = rs.photos[i];	 	 var taggy:Array = thisPhoto.getTagsAsStrings();	 _flashr.photosGetInfo(thisPhoto.id, thisPhoto.secret);	trace('Photo: ' + thisPhoto + ', tags:' + taggy);	_root.wow.text = taggy;		 for (var nother = 0; nother < taggy.length; nother++) {	trace (taggy[nother]);					var tempMC:MovieClip = attachMovie ("box", "box" + count, depth ++, {_y : (nextY) , _x : (5)} );			nextY += tempMC._height + 2;			tempMC.name_txt.text = taggy[nother];			count ++;								 tempMC.onRelease = function(){				 _root.tag.text = taggy[nother];			 doSearch2();			 } 		     }}}function doSearch2(){		trace("single");	}