import processing.xml.*; XMLElement[] links; Word[] words; String var; void setup() { size(600, 600); String url = "http://www.new.facebook.com/feeds/friends_status.php?id=765257215&key=05d1346f2d&format=rss20"; XMLElement rss = new XMLElement(this, url); // Initialize the Array of objects words = new Word[20]; // Get all elements XMLElement[] links = rss.getChildren("channel/item/title"); for (int i = 0; i < 20; i++) { //holder variable for Status text String var = links[i].getContent(); println(var); //instantiate all the status objects words[i] = new Word(var); } } void draw() { for (int i = 0; i < 20; i++) { words[i].display(mouseX, mouseY+i*20); } } class Word { PFont font; String statusText; float x; float y; Word(String tStatusText) { statusText = tStatusText; font = loadFont("FoundryGridnik-Regular-48.vlw"); textFont(font, 16); } void display(float tx, float ty) { x = tx; y = ty; // The font must be located in the sketch's // "data" directory to load successfully text(statusText, x, y); } }