Recent Weblogs

Links I like

ActionScript Ajax Request

AjaxRequest, A wrapper class to bring URLLoader and URLRequest together for convienence of implementation.

Overview

Coming from a Javascript background I had to search for an analogous class to the XHR/Ajax.Request. In the end I didn't find such an implementation but by combining the functionality of URLLoader and URLRequest it allows for very similar behavior.

The Rundown

AjaxRequest inherits from URLLoader and uses an instance of URLRequest. URLLoader handles all of the events of the transaction, so this acts as the primary class which uses an instance of URLRequest to ease the implementation of redundancies. Using getter method allowed me to direct the property settings to the internal URLRequest object. AjaxRequest also exposes a send method, similar to XHR's send method, it accepts a payload of data that related to URLRequest.data.

The Code

Comments

December 30, 2008savaƟ oyunu

10 numara site

January 20, 2009almanya chat

thanksyou!^%%

Name
Site
Comment
  CAPTCHA Image
Reload Captcha Image
Captcha