All pastes #486805 Raw Edit

Unnamed

public javascript v1 · immutable
·published 2007-05-14 02:12 UTC
rendered paste body
function onPhotosSearch(rs:ResultsSet)	{				if (switched == 0){		_numResults = rs.photos.length;			 var depth = 0;	 	var nextY = 70;		_photos = new Array ();		log("Loading " + _numResults + " photos out of possible " + rs.total + "");		SHIZZLE = rs.total;		var l : Number = _numResults;		var i : Number = -1;		while (++i<l)		{			var thisPhoto:Photo = rs.photos[i];			_flashr.photosGetInfo(thisPhoto.id, thisPhoto.secret);			var taggy:Array = thisPhoto.getTagsAsStrings();							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 : (55)} );				nextY += tempMC._height + 2;				tempMC.name_txt.text = taggy[nother];				count ++;															tempMC.onRelease = function () {_root.test.text = this.name_txt.text; tryhard = _root.test.text; trace(tryhard);address = this;			}  		   }						}}				else {//from here						_numResults = rs.photos.length;			 var depth = 0;	 	var nextY = 70;		_photos = new Array ();		log("Loading " + _numResults + " photos out of possible " + rs.total + "");		SHIZZLE1 = rs.total;		var l : Number = _numResults;		var i : Number = -1;		while (++i<l)		{			var thisPhoto:Photo = rs.photos[i];			_flashr.photosGetInfo(thisPhoto.id, thisPhoto.secret);					}				}//to here	}	//HERE IS WHERE I WISH TO CALL ADDRESS	function onAllPhotosLoaded2()	{	 		var l : Number = _photos.length;		var i : Number = -1;		while (++i<l)		{			var thisPhoto:Photo = _photos[i];			var nY:Number=230;			var nX:Number;			nX = -70 + (_photos.length * 10) + (i * 78);			trace(address);			_root.result_txt.text = SHIZZLE1;			}	}