Local Flex4 language reference in Chrome App

You may already encounter problem when setting up a local copy of Flex4 language reference.

The latest as-doc is leveraging XMLHTTPRequest to retrieve the packages and classes list. In order to make it work, you have to turn off the “Enable native XMLHTTP support” in your IE7/8 browser due to the out-of-date implementation in asdoc.js. This seems not convenient at all.

There’re still other browser candidates for this task. Chrome is a good one to provide a clean view (without toolbar, tabs, etc.) for Flex4 doc. All you need is to create the following shortcut (the allow-file-access-from-files parameter is necessary).

“%USERPROFILE%\Local Settings\Application Data\Google\Chrome\Application\chrome.exe” –app=”file:///<doc path>/AS3_Reference/index.html” –allow-file-access-from-files

Then you may double-click this shortcut and view the flex4 doc with full features (and without browser stuffs).

Fyi, a full list of Chrome’s command line parameters can be found at http://src.chromium.org/svn/trunk/src/chrome/common/chrome_switches.cc