Using Flash 10 debug projector in Flexbuilder 3.3

Here’s how I set up Flexbuilder 3.3 to use the flashplayer_10_sa_debug.exe.

(I still haven’t figured out how to get it to launch full screen, and you may need a commercial app that wraps projector to do that — though it’s probably possible with the open sourcing.)

Download the debug standalone flashplayer 10 here:

http://download.macromedia.com/pub/flashplayer/updaters/10/flashplayer_10_sa_debug.exe

or whatever the current version is from:

http://www.adobe.com/support/flashplayer/downloads.html

Locate a swf and lauch it directly, choosing flashplayer_10_sa_debug.exe when prompted by windows for the application to use.  This will set up the Windows registry to associate the player with .swf files.

Set up your run configuration in Flexbuilder to open the project .swf file at c:\path\to\YourProject-debug\Whatever.swf (instead of http:\\localhost\YourProject-debug\Whatever.html)

flexbuilder_run_configuration

This is a bit of a hack, since it needs done for every project, but oh well.

Now it will launch, but you’ll get a pesky alert like:

Flex Builder cannot locate the required version of Flash Player.  You might need to install Flash Player 9 or reinstall Flex Builder.

Do you want to try to run your application with the current version?

flexbuilder_flashplayer_error

To get rid up this and use Flash 10 (and the new Flex SDK), first download the SDK:

http://flexorg.wip3.adobe.com/flexsdk/3.3.0.4852/flex_sdk_3.3.0.4852.zip

or get whatever the latest version is from here:

http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3

To have Flexbuilder use the latest SDK, open Windows > Preferences > Flex > Installed SDKS

flexbuilder_install_sdk

and add the downloaded SDK, setting it as default.

Open the Flex build path, click on the Library Path tab, and delete playerglobal.swc from Flex 3.3.  Then click “Add SWC” and locate the playerglobal.swc in  path/to/new/sdk/frameworks/libs/player/10

flexbuilder_build_path

Then specify the flashplayer included in the SDK download for the project (again, a hack that needs repeated for each project).  Right click on the project, select “Properties”, and select “Flex Compiler”

flexbuilder_require_flash_version

Then enter 10.0.0 in “Require Flash Version”.  This should work.

See also the following links, which helped me out:

http://panellabs.net/2009/02/18/flex-builder-running-applications-in-projector-standalone-flashplayer/

http://rantspace.net/u/redwyre/2008/12/01/flex-builder-and-flash-10/

Also see:

http://stopcoding.wordpress.com/2008/06/17/hellfire_compiler/

to use the HFCD which pre-loads the compiler in a daemon to speed up compile times.

And http://multidmedia.com/ for the Zinc Flashplayer laucher which can resize the projector on launch (among other things.)  The price is a bit steep though ($300), if that’s all you want to do.

And here’s a blog post about setting up a free Flex development environment:

http://blog.brokenfunction.com/2007/01/29/how-to-develop-for-flash-on-any-os-for-free/

About these ads

One thought on “Using Flash 10 debug projector in Flexbuilder 3.3

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s