tags:

views:

629

answers:

8

Hi, i am starting to study FLEX. i have only flex sdk. So can i start study only using that. If so please suggest me the link to go through..

But still, Using an editor will minimize our work and will create the code by its own. So as a new learner it would be tedious to understand and also hard to learn new things...

+2  A: 

Yes, you can use any text editor to write MXML and ActionScript code, and then use the command line to compile the code into a SWF (Flash Movie). The SDK does not include Charts, however.

http://opensource.adobe.com/wiki/display/flexsdk/Downloads

Eric Belair
+3  A: 

You can certainly build application with solely the open source Flex SDK. I have posted some instructions for using only the Flex SDK on Linux. If you are on a different platform the instructions can be slightly adjusted.

James Ward
+2  A: 

If you're on Windows, see if you can run mxmlc.exe (the compiler) from a command prompt. Create a simple Example.mxml file to test it out.

mxmlc.exe Example.mxml

Here's a simple Hello World mxml source code.

Easy steps are well documented on Adobe's site and in chapter 2 of "Flex 3 in Action"

dustmachine
+7  A: 

If you are a student, you can get Flex Builder for free.

Free for students

Gregor Kiddie
+6  A: 

I like FlashDevelop @ http://www.flashdevelop.org/

Open source editor for Adobe Flash/Flex for Windows (may work under Wine?).

Johan Olsson
Also with FlashDevelop, you can open FlexBuilder projects. It also features a nice XML editor and syntax highlighting for many languages.
sharvey
A: 

Flex Builder will be the very best way to learn as its got a debugger and thus lets you step thru code see how it works. FlashDevelop is free tho it lacks a debugger - still very useful

Scott Evernden
+10  A: 

Yes.

Just a bit of background: Flex Builder (a.k.a Flash Builder), the mxmlc compiler (free) and Flash CSx all compile Actionscript code into SWF files and/or AIR files. Flash CSx is a design-centric tool with a ultra-simplistic coding editor built in (not much more useful than Notepad); Flex Builder/Flash Builder is a full-blown programmer's IDE (based on Eclipse); the mxmlc compiler is a free command-line tool that compiles Actionscript files into SWF and AIR files. (You have to use your own editor to write the source files.)

MXML is an xml language that acts as a shortcut for Actionscript. You can code in mxml instead of Actionscript and the compiler will convert your mxml into Actionscript before compiling. You can't use mxml as a shorthand for all AS coding. Mostly you can use it as a substitute for UI coding and as a way of binding data to UI elements. The compiler converts the mxml into Actionscript classes and then compiles the Actionscript classes (the ones created as mxml and the ones coded natively in Actionscript) into bytecode. The Flash virtual machine (e.g. the browser plugin) runs the bytecode.

Currently, you can code both Actionscript and mxml -- and then compile using Flex Builder/Flash Builder or the mxmlc compiler (which is free). Flash CSx can does not understand mxml, so you it can only compile straight-forward Actionscript.

Note: there are third-party tools, such as FDT that can also be used to write and compile Actionscript and mxml.

The language Actionscript has been revised several times. After a brief phase when it was a proprietary language, it morphed into something much like Javascript. Then, with AS 2.0, it became much more like Java -- and it continues in this direction with AS 3.0. (its syntax is very similar to Java and, like Java, it is class-based).

There are a core set of Actionscript classes that are available to you in Flash CSx, Flex Builder/Flash Builder and the free sdk. There are additional classes, known as the Flex Framework, which are available to you in Flex Builder/Flash Builder and in the sdk -- but not in Flash CSx. These extra classes add new visual components, such as a datagrid, an advanced UI-layout engine, and a framework for data-binding.

You can use the Flex Framework without the Flex Builder IDE (which is going to renamed, in the next version to Flash Builder).

Compiling without Flex Builder

You can also use Flex Builder/Flash Builder without using the Flex Framework -- meaning you can program in the IDE and use only Actionscript classes that aren't part of the framework (the classes you'd use if you programmed in Flash and not Flex Builder).

You can choose to use or not use mxml.

You can even use mxml to auto-generate Actionscript that's not part of the Flex Framework (e.g. your own custom classes).

Using mxml for your own classes

Good luck! my Actionscript blog

grumblebee
+1  A: 

Flex Builder (now Flash Builder) is based on the Eclipse IDE - it's actually a plugin to Eclipse. So with Eclipse being open source and free, you can use that as your editor.

You won't get the integrated debugger, and visual design view... but using some free plugins you can still be productive.

1) You'll need the Flex SDK: www.adobe.com/products/flex/flexdownloads/

2) Get Eclipse: eclipse.org/

3) Two notable Eclipse plugins: - www.eclipse.org/webtools/ - www.aptana.com/studio

Alternatively, if you have MSFT's Visual Studio, there's a Flex plugin for that too: - www.sapphiresteel.com/Adobe-Flex-Development-in-Visual

To compile your code you'll use the Flex compiler, information on how to use it can be found here:

www.adobe.com/livedocs/flex/3/html/compilers_13.html#150640

Chapter 2 of Flex 3 In Action also has a section on how to develop Flex applications without Flex Builder:

http://www.amazon.com/dp/1933988746/?tag=insidemark-20

Note that Flex Builder is free for academic faculty, students, and out of work coders. So that's another option.

Cheers.

Tariq Ahmed