/ Published in: ActionScript 3

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.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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); } }
Comments
