Archive for June, 2008

Plugins for Ion search

If you use the http://community.adobe.com/ion/ search engine for finding Flex information fast, then you might find the following useful: A plugin for FireFox and a Google Toolbar custom button for IE that give you instant access to the search engine from within you browser.

FireFox plugin for Ion

  1. Download the ion.xml file.
  2. Save this as ion.xml in your {Mozilla}\searchplugins directory (for
    example, “c:\Program Files\Mozilla FireFox 3 Beta 5\searchplugins”)
    and it should show up in your list of search plugins.

Goole Toolbar custom button for IE

  1. Go to the Ion home page: http://community.adobe.com/ion.
  2. Select Flex from the product drop down list.
  3. Right-click on the text input in the Ion search and click “Generate
    Custom Search…”.

    The Google Toolbar Custom Button Generator dialog appears.

    You can replace “community.adobe” in the first text input with any
    name you want to appear in the toolbar. In the second text input, you
    can replace “Adobe Community Help – Search Results” with any
    description you want.

  4. Click the Replace button and click OK.

That’s it. You can now select “community.adobe” (or whatever string
you specified) from the toolbar, and then execute a search directly.

The Security Sandbox in Flex Builder 3

We recently received a question from a user about Flex Builder security sandbox settings. I thought the answer to this question would be of general interest.

Question: In Flex Builder 2, the security sandbox settings for both debug mode and release mode was local-trusted. In Flex Builder 3, why is release mode now local-with-network?

Short Answer: Whether a given SWF, when run locally in a non-trusted location, is local-with-filesystem or local-with-network is a compilation setting. This setting is stored as a flag in the SWF header and is the only compiler flag. The default is local-with-network and has not changed in Flex Builder 3.

What is new with Flex Builder 3 is that we no longer put the release SWF inside the trusted debug output folder by default. The advantage to the developer is that the release SWF will run in the same security sandbox in which it will be deployed. Thus you get accurate application behavior instead of the more permissive local-trusted, which is only available to the developer.

Detailed Answer: In Flex Builder 2 we put the release SWF alongside the debug SWF, which was inside an output folder that we configured the flash player to trust for the following reason:

You could click, debug, and launch your application and have it access network services without first configuring the project to host the SWF on a web server (and thus have to launch it with a proper http:// URL). Basically, you can launch your application from the file system using file:/// URLs.

The problem with this approach is that when testing the release SWF, even if you edited the launch URLs to use http://, you would be running the application out of local-trusted instead of the actual deployment sandbox (remote).

There are other problems with this arrangement, such as facilitating the accidental deployment of both debug and release SWFs in the output folder.

So, for Flex Builder 3 we separated the notion of the Run button from the release SWF. The Run button merely launches the debug-capable SWF with debugging turned off. The Export Release Wizard creates the actual release SWF. Flex Builder 3 encourages you to put the release SWF somewhere other than your debug output folder. Thus, to test the release version, you must launch and test it as an end user would using a browser and web server (that is, unless you actually want the end user to try to run it locally).

Note: Use the custom compiler option, use-network=false, if you want to override the Flex Builder default compiler option. This would change the settings to local-with-filesystem.