Adobe Air has quite a lot of security restrictions which it imposes on the Javascript trying to run in the sandbox. One of the side effects of this is that ExtJS throws up one of these security violations.

ExtJS 2.3 came with an extension so that it was able to be used within Adobe Air, which managed to bypass this problem, and using this extension, ExtJS works very well in Adobe Air.

However, the latest ExtJS 3.0 does not have this extension built in. According to the forums, they are still working on this. There is, fortunately, a workaround.

I have successfully managed to get ExtJS 3.0 to run in Adobe Air by copying the air extension from the ExtJS 2.3 codebase into the ExtJS 3.0 codebase, and then referencing it appropriately in the html page.

I do have to admit that doing this hack might potentially cause problems if you are trying to use any of the newest features in ExtJS 3.0, but so far have not had any issues.

When the air extension for ExtJS 3.0 does get release, that, of course, would be preferable, but until then, this works for me perfectly.

Share