Wednesday, January 14, 2009

Flash 10 in Flex 3 (How to Install SDK for Eclipse)

This is not anything new... many people have posted on this very topic. It just took me awhile to find the links so I'd like to put everything in one place that is easy to find.

1. Download the latest SDK (currently 3.2).

2. Create a new folder called "3.2" in the following directory: Program Files/Adobe/Flex Builder 3 Plug-in/sdks/
(Replace Flex Builder 3 Plug-in with whatever your Flex3 Folder is called)

3. Unzip the contents of the SDK zip file to this folder.

4. Have the SDK Target Flash Player 10 by following these instructions.

5. In Eclipse, go to Windows and open up the Preferences. Off to the left, click on "Flex" and then click on "Installed Flex SDKs". Now on your right, click "Add" and browse for the 3.2 folder you created in step 2.

6. Now you should have Flex 3.2 listed as an available SDK. Check Flex 3.2 and click Apply.

DONE!

11 comments:

Anonymous said...

Nice, that'll save some hunting around, cheers mate.

( Btw, you touched your xbox in a while ? I'm sure my friend request is still pending, although to be honest I could see why you'd be having 2nd thoughts about it ;) ).

Anonymous said...

Is there a plugin which automatically does that. I mean do we have something which provides everything of Flex builder 3 except for the graphical interface. I guess that should be possible with the sdks.

Ickydime said...

Heya Squize, good to see you on here. Man, I have not touched that Xbox. I would love to, but I can relate to your barely having time to breath post... I came back from holiday and bam! Smack to the face. but its a good smack. It means we must be doing something right.

@Anon
Not quite sure what you are asking. But you are correct in that you don't need Flex Builder or the Flex Builder plugin for Eclipse or even Flash IDE for that matter. You can compile just from the SDK if you so choose.
Hopefully that answers your question.

lixz said...

for Flex Builder 3, just change the Project | Properties | Require Flash Player --> 10.0.0

http://ficforlife.com/2009/04/flex-3-filereference-error-load.html

hope it's usefull 4 ya people :p

just sharing

Unknown said...

Dumb Query:
"Flex" does not appear as an option in the Windows -> Preference menu.
How does one get Eclipse to find/recognize the Flex SDK?

Ickydime said...

@Dru
You'll need to install Flex Builder first. Head here for a 60 day trial: http://www.adobe.com/cfusion/entitlement/index.cfm?e=flexbuilder3

And then scroll down to where it says "Adobe Flex Builder 3 Professional Eclipse Plug-In".

Give that guy a whirl.

Anonymous said...

Is there a way to do this without getting the free trial for flex builder? I want to have it longer than 60 days and I don't want to have to pay for the plugin.

Ickydime said...

Check out FlashDevelop: http://www.flashdevelop.org/wikidocs/index.php?title=Main_Page

Its not an eclipse plugin but it is a very good AS editor (much better than the IDE and some prefer it over Flex3) and it is FREE.

Unknown said...

Works like a charm !! You saved the day... can't thank you enough

Mikhail Zoupas

nazeer said...

@Ickydime

Great topic, but I'm wondering why should I have to install flex builder to have the flex SDK in eclipse. Just we can't have flex SDK added into the eclipse plugins?

What is the dependency here?

Ickydime said...

@nazeer
To be honest, I am not sure.

This post is over a year old and since then they revamped everything and call it FlashBuilder. I am not sure what the install process is for FlashBuilder.

Personally, I moved onto FlashDevelop, which has been very straight forward for me.