I want to use Air as a way to pre-distribute all my javascript to the user. (This is because I use Plone as the webserver ).

The problem is that I cannot seem to load extjs from the air application and still make xhr calls to plone.

Here is what I am trying to do from the Air client point-of-view:
1. log in to plone and get a cookie
2. get a html file from plone. The html file downloads extjs from the Air directories. (so far I can only do this if I am running Aptana's internal server)
3. After Extjs application is build in AIR, make XHR calls back into Plone.

Is this possible?
Does anyone have a full Extjs application that makes xhr calls and also loads extjs from within AIR?