Adobe Flash Builder: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
m (Text replacement - "<pageby nominor="false" comments="false"/>" to "<!-- <pageby nominor="false" comments="false"/> -->")
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Stub}}
{{Incomplete}}
{{Under construction}}
<!-- <pageby nominor="false" comments="false"/> -->
<pageby nominor="false" comments="false"/>


This page is part of the [[Flex tutorials]].
This page is part of the [[Flex tutorials]].


== Introduction ==
== Introduction ==
Update: This product is now called Flash Builder. As of April 2010 the current version is ''Flash Builder 4''


'''Adobe Flex Builder''' is an [[Integrated Development Environment]] (IDE) for developing [[Adobe Flex|flex/actionscript/flash]] applications.
'''Adobe Flex Builder''' is an [[Integrated Development Environment]] (IDE) for developing [[Adobe Flex|flex/actionscript/flash]] applications.


See also: [[MXML]] (for a short intro to MXML, the layout language)[[Actionscript 3]] (entry point for pure AS tutorials) and  [[Flash ActionScript 3 overview]] (the Flash AS equivalent).
See also:  
* [[Adobe Flex]] (for a short presentation of the Flex development framework)
* [[MXML]] (for a short introduction to MXML, the Flex XML language)
* [[ActionScript 3 tutorials]] (entry point for pure AS tutorials),
* [[Flash ActionScript 3 overview]] (the Flash AS equivalent)  
* [[Flex tutorials]] list for more flex-related tutorials.


The various freely available online documentation for Flex Builder is very good (much better than for  
The various freely available online documentation for Flex Builder is very good (much better than for the [http://edutechwiki.unige.ch/en/Flash_CS3_desktop_tutorial|Flash CS3] tool I believe). Therefore we won't (for the moment) make this a real tutorial.


== Using Flex Builder ==
== Using Flex Builder 3 ==


; Step 1 - Create a new Project.  
; Step 1 - Create a new Project.  
Line 23: Line 29:
[[Flex datagrid component tutorial]].
[[Flex datagrid component tutorial]].


You should see something like this:
You should see something like this, i.e. the [[MXML]] code in "source mode".
[[image:flex-builder3-mxml.png|thumb|800px|none|Adobe Flex Builder 3 - Some mxml code]]
[[image:flex-builder3-mxml.png|thumb|800px|none|Adobe Flex Builder 3 - Some mxml code]]


; Step 2 alternative B - Drag a component to the stage
; Step 2 alternative B - Drag a component to the stage
Click on the Design tag and drag the component to the stage
Click on the Design TAB and drag the component to the stage (.e.g. a label on top and a datagrid below)
You should see something like this:
You should see a components selector to the left and something like in the picture below (after editing the code in "source mode").
[[image:flex-builder3-designview.png|thumb|800px|none|Adobe Flex Builder 3 - Design view]]
[[image:flex-builder3-designview.png|thumb|800px|none|Adobe Flex Builder 3 - Design view]]
* As you can see, Flex has more components than Flash 3 / AS3


; Step 3 - Run / Compile
; Step 3 - Run / Compile
: Click on the green arrow or use the "run" menu
: Click on the green arrow or use the "run" menu
Of course it's more complicated than that, but these 3 steps summarize the procedure :)
== Structure an application in the Flex builder ==
Flex builder allows to create a project structure according to your needs and to edit both MXML and AS files. I also communicates with the Flex (MXML) compiler that generates the *.swf and *.html.
<uml>
ClassName.FB("Flex Builder 3");
ClassName.MXML("MXML Compiler");
Note.HTML("application.html");
Note.SWF("application.swf");
Note.AP("Application Project","(directory structure)");
Note.CO("Code", "(MXML and ActionScript)" );
Note.A("Multimedia Assets", "(Images, Audio, ..)");
Note.L("Libraries");
leftToRight(30)(FB,MXML,HTML);
topToBottom(20)(HTML,SWF);
topToBottom(20)(FB,AP);
leftToRight(30)(CO,A,L);
topToBottom(20)(AP,A);
drawObjects(FB, MXML,HTML,SWF,AP,CO,A,L);
link(association)(FB.e -- MXML.w);
link(association)(FB.s -- AP.n);
link(association)(AP.s -- CO.n);
link(association)(AP.s -- A.n);
link(association)(AP.s -- L.n);
link(associationUni)(MXML.e -- HTML.w);
link(associationUni)(MXML.e -- SWF.w);
</uml>
An application project includes typically three kinds of files (as in the figure above): source code, multimedia assets and libraries. These will go into the '''src''' directory structure. When you create a new project, Flex builder will create the following directories (this setup can be changed somewhat):
:- Flex_project_name  (generated by the builder when you create a new project)
::- bin-debug (contains the files created by the MXML compiler)
::- html-template (the template used to generate the final html file, you can change this.)
::- libs (this folder contains .swc files, i.e. code libraries)
::- src (this folder will include your source code)
::::- Flex_project_name.mxml (default main application file
::::- A directory structure for the rest of your project files that you should plan yourself.


== Links ==
== Links ==
Line 41: Line 94:
* [http://livedocs.adobe.com/flex/3/html/Part1_Using_FB_1.html Using Adobe Flex Builder 3] (HTML LiveDocs) - [http://livedocs.adobe.com/flex/3/using_fb_flex3.pdf PDF version] (233 pages).
* [http://livedocs.adobe.com/flex/3/html/Part1_Using_FB_1.html Using Adobe Flex Builder 3] (HTML LiveDocs) - [http://livedocs.adobe.com/flex/3/using_fb_flex3.pdf PDF version] (233 pages).


; General
; Flex
* See the [[Flash and AS3 links - documentation]] for some links
* [http://livedocs.adobe.com/flex/3/html/index.html Adobe Flex 3 Help]. See [[Adobe Flex]] and [[Flash and AS3 links - documentation]] for more links
* Explore Adobe's [http://www.adobe.com/devnet/flex/ Flex DevNet]
* Explore Adobe's [http://www.adobe.com/devnet/flex/ Flex DevNet] for other tutorials.
* Adobe [http://www.adobe.com/support/documentation/en/flex/ Flex resources]


=== Software ===
=== Software ===


; Flex Builder
; Flex Builder
* You can testdrive it for 30 days ([http://www.adobe.com/products/flex/flexdownloads/ download])
* You can test drive it for 30 days ([http://www.adobe.com/products/flex/flexdownloads/ download])
* Educators and students can get a serial number for free use by [https://freeriatools.adobe.com/ filling in a form]
* Educators and students can get a serial number for free use by [https://freeriatools.adobe.com/ filling in a form]


Line 55: Line 107:
* [http://www.flashdevelop.org/ Flashdevelop]. Free and open source tool that provides syntax support and an interface with the Flex compilers.
* [http://www.flashdevelop.org/ Flashdevelop]. Free and open source tool that provides syntax support and an interface with the Flex compilers.


; Tutorials
* [http://blog.tsclausing.com/post/11 Flex Part 01: Structure] by T. Scot Clausing on January 15, 2008 (Explains how to set up a MVC Directory structure, you also may look at all his [http://blog.tsclausing.com/post/tag/flex Flex]-related postings.


[[Category: Multimedia]]
[[Category: Multimedia]]
[[Category: Technologies]]
 
[[Category: Authoring tools]]
[[Category: Authoring tools]]
[[Category: Flex]]
[[Category: Flex]]
[[Category: Flash]]
[[Category: Actionscript 3]]
[[Category: Actionscript 3]]
[[Category: Rich internet applications]]
[[Category: Rich internet applications]]

Latest revision as of 18:38, 22 August 2016

This page is part of the Flex tutorials.

Introduction

Update: This product is now called Flash Builder. As of April 2010 the current version is Flash Builder 4

Adobe Flex Builder is an Integrated Development Environment (IDE) for developing flex/actionscript/flash applications.

See also:

The various freely available online documentation for Flex Builder is very good (much better than for the CS3 tool I believe). Therefore we won't (for the moment) make this a real tutorial.

Using Flex Builder 3

Step 1 - Create a new Project.

Like most IDEs you can't just edit a little file, but you need to define a new project: File->New; Flex project.

  • We called our project "testing"
Step 2 alternative A - Add some *.mxml code.

Just copy and paste some code. E.g. get some code from the Flex datagrid component tutorial.

You should see something like this, i.e. the MXML code in "source mode".

Adobe Flex Builder 3 - Some mxml code
Step 2 alternative B - Drag a component to the stage

Click on the Design TAB and drag the component to the stage (.e.g. a label on top and a datagrid below) You should see a components selector to the left and something like in the picture below (after editing the code in "source mode").

Adobe Flex Builder 3 - Design view
  • As you can see, Flex has more components than Flash 3 / AS3
Step 3 - Run / Compile
Click on the green arrow or use the "run" menu

Of course it's more complicated than that, but these 3 steps summarize the procedure :)

Structure an application in the Flex builder

Flex builder allows to create a project structure according to your needs and to edit both MXML and AS files. I also communicates with the Flex (MXML) compiler that generates the *.swf and *.html.

Diagrams error (with plantuml command): /bin/bash: line 1: plantuml: command not found

An application project includes typically three kinds of files (as in the figure above): source code, multimedia assets and libraries. These will go into the src directory structure. When you create a new project, Flex builder will create the following directories (this setup can be changed somewhat):

- Flex_project_name (generated by the builder when you create a new project)
- bin-debug (contains the files created by the MXML compiler)
- html-template (the template used to generate the final html file, you can change this.)
- libs (this folder contains .swc files, i.e. code libraries)
- src (this folder will include your source code)
- Flex_project_name.mxml (default main application file
- A directory structure for the rest of your project files that you should plan yourself.

Links

Documentation

Flex Builder
Flex

Software

Flex Builder
  • You can test drive it for 30 days (download)
  • Educators and students can get a serial number for free use by filling in a form
Alternatives
  • Flashdevelop. Free and open source tool that provides syntax support and an interface with the Flex compilers.


Tutorials
  • Flex Part 01: Structure by T. Scot Clausing on January 15, 2008 (Explains how to set up a MVC Directory structure, you also may look at all his Flex-related postings.