All pastes #398784 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-03-17 15:20 UTC
rendered paste body
// Now we construct the layoutString which goes to the reader.swf
		layoutLength = items.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;
			}
		}