28 April 2010

Running Flex 4 SDK and FlashDevelop

Using only Flash IDE for ActionScript or AIR projects is almost never final choice for many developers. In fact, majority of developers use all kind of available tools. When team work is involved usable knowledge of these tools is a must and this is also a big plus in anyone's portfolio. Here is small intro how to introduce Flex 4 SDK + FlashDevelop workflow.

First of all go and download Flex 4 SDK from Adobe Opensource Pages. Install downloaded files somewhere on your hard drive C:\flex4sdk for example. Set path to this folder. Right click on My Computer icon, go to Advanced tab and click on Environment Variables. In System variables list choose path, click edit and add path to newly created folder to the end of line. Go to Command Prompt and test your work with compc -version command.

You will also need FlashDevelop from their site, downloaded and installed. I have 3.0.6 RTM running, but more recent version is now available. Simple HelloWorld AS3 Project is enough to see if everything is OK.

I got following error after I tried to compile my project: 'C:\Documents and Settings\[USER]\My Documents\FDProjects\HelloWorld\HelloWorld.as: Warning: This compilation unit did not have a factoryClass specified in Frame metadata to load the configured runtime shared libraries. To compile without runtime shared libraries either set the -static-link-runtime-shared-libraries option to true or remove the -runtime-shared-libraries option.'

In order to solve this problem, right click on project name, open Properties and choose Compiler Options. Within Additional Compiler Options add this line: -static-link-runtime-shared-libraries=true (see image). This will solve warning issue.

setting flex compiler advanced options
One more thing. I highly recommend using Senocular's pseudo output panel for testing purposes.

So, there you have it, basic setup of Flex 4 SDK and FlashDevelop. If you like this post leave comment or share. Thanks.

*_*

4 comments:

DanCanProgram said...

Ahh Thank you for this! I found that with out including this it will still run but it just takes two builds is all.

If you do not include the shared runtime libraries I was getting bad errors like "Error #1014: Class mx.core::BitmapAsset could not be found" when I tried to Embed images into my AS3 program because of not including "-static-link-runtime-shared-libraries=true"

Thank you for this!

neanlos said...

Hi, What is Senocular's pseudo output panel used for?

flanture said...

Hi neanlos, you use it to create output panel inside your resulting swf file for tracing, just like you have one with Flash IDE. This is great if you use only flex sdk for development.

Anonymous said...

is this the same with Linux OS

 

template by blogger templates