Revision: 24248
Updated Code
at February 24, 2010 10:36 by eddequincey
Updated Code
import com.adobe.serialization.json.JSON; var loader:URLLoader = new URLLoader(); var request:URLRequest = new URLRequest(); request.url = "http://feeds.delicious.com/v2/json"; loader.load(request); loader.addEventListener(Event.COMPLETE, decodeJSON); function decodeJSON(event:Event):void { var loader:URLLoader = URLLoader(event.target) ; var Bookmarks:Array = JSON.decode(loader.data) ; for (var key:Object in Bookmarks) { trace(Bookmarks[key].u); trace(Bookmarks[key].d); trace(Bookmarks[key].t); } }
Revision: 24247
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 24, 2010 10:36 by eddequincey
Initial Code
import com.adobe.serialization.json.JSON; var loader:URLLoader = new URLLoader(); var request:URLRequest = new URLRequest(); // http://feeds.delicious.com/v2/{format} request.url = "http://feeds.delicious.com/v2/json"; loader.load(request); loader.addEventListener(Event.COMPLETE, decodeJSON); function decodeJSON(event:Event):void { var loader:URLLoader = URLLoader(event.target) ; var Bookmarks:Array = JSON.decode(loader.data) ; for (var key:Object in Bookmarks) { trace(Bookmarks[key].u); trace(Bookmarks[key].d); trace(Bookmarks[key].t); } }
Initial URL
Initial Description
Need to download the ActionScript 3.0 library http://code.google.com/p/as3corelib/ and extract the "com" folder into the same folder as your .fla file.
Initial Title
Get a delicious JSON feed via ActionScript 3 (and as3corelib)
Initial Tags
json
Initial Language
ActionScript 3