All pastes #398827 Raw Edit

menace

public text v1 · immutable
·published 2007-03-17 15:54 UTC
rendered paste body
// Now we construct the layoutString which goes to the reader.swf
		layoutLength = words_pos.length;
		for (j=0; j<layoutLength; j++) {
			_name = items[j];
			xpos = _root[_name+j+"x"];
			ypos = _root[_name+j+"y"];
			text = escape(_root[_name+j].text);
			// if the layoutString exists, append data
			if (layoutString != null) {
				layoutString = layoutString+","+_name+","+xpos+","+ypos+","+text;
			} else {
			// layoutString doesn't exist, create it
				layoutString = _name+","+xpos+","+ypos+","+text;
			}
		}