var loader:URLLoader = new URLLoader(); // telling the loader that we are dealing with variables here. loader.dataFormat = URLLoaderDataFormat.VARIABLES; // This is an eventlistener, these are used all the time in AS3 // learn to use them, this basically tells flash to listen to a specific event // and then call a specific function. // in Our case we listen for the even called COMPLETE which means it will active // a function called "loading" when our flash movie has completed. loader.addEventListener(Event.COMPLETE, loading); // Here we tell our loading which file to extract from. loader.load(new URLRequest("http://192.168.1.3/pam/read_quotes_for_day.php?n=2008-04-8")); // This is the function that will happen when the eventlistener activates. // basiclly it says that our text fields called content_1 and _2's text property // should be equal to loader.data.var_1 and var_2 (as you might remember from the explanation above). function loading (event:Event):void { quote1.text = loader.data.quote1 quote2.text = loader.data.quote2 }