SlideShare ist ein Scribd-Unternehmen logo
1 von 14
Downloaden Sie, um offline zu lesen
Building Flash-based websites using Flex

       Lesson 2 – Flex Essentials




                 Alex Goh
                 info@alekkus.com
Agenda

●   Adobe Flex Builder

●   Flex Programming

●   UI Components

●   Customising UI Component

●   Skinning using CSS
Adobe Flex Builder

●   Adobe's development tool for developing Flex applications




    ●   Retail price - US$249
    ●   60 days trial - http://www.adobe.com/products/flex/
    ●   Free to student - https://freeriatools.adobe.com/flex/
    ●   Free to unemployed developers - https://freeriatools.adobe.com/learnflex/

● Alternatively, any text editor can be used to do coding; compile to SWF using
the Adobe's Flex compiler (free)
Adobe Flex Builder – Design mode

Project file navigator   Design area   Component Properties




Drawing components
Adobe Flex Builder – Source mode

Project file navigator   Source codes edit area
Flex Programming


                                 Design mode




                                                          Source mode




●   Flex programming uses a mixture of MXML and Actionscript 3 codes.

●   MXML, like HTML, is mainly to draw the user interface components.

● Actionscript, like Javascript, allows more complex user interactions or
application behaviour.

● Note that there's always an equivalent Actionscript code for all MXML code,
but not vice versa.
Common Flex UI Components - Controls


      Label:               Datagrid:
  TextInput:
  TextArea:


ComboBox:
 CheckBox:
 RadioBox:             DateChooser:
     Button:
ColorPicker:
 DateField:
    Hslider:
     Image:
Common Flex UI Components – Layout and Navigators


 Canvas:               TabNavigator:




  HBox:
                          Accordion:

  VBox:




    Tile:
Customising Flex UI Components

● Flex provides many basic UI components to get you started. Once you are
profiicent, you can make your own UI components or customise the existing
ones.
Skinning UI Components using CSS

●   Customising UI components requires in-depth knowledge of Actionscript.

●   For newcomers, use CSS to change the appearance of UI components.
Data Binding

● Ensure a property or variable always get the latest value of another property
or variable

●   e.g.
Image Component

●Flex Image component accept the following file formats: JPG, GIF, PNG,
SWF (for vector)

●   Image can be load at runtime or embed into the SWF file

●   Load image at runtime




● Embed into SWF file – No need to wait for image to load, but SWF file size
increases
Official Adobe Flex Documentation

●   A MUST-HAVE when developing Flex application

●   Launch from Flex Builder, Help > Help contents, or Shift + F2.
Resources


●   Flex component explorer - http://www.adobe.com/devnet/flex/tourdeflex/

●   Flex examples and source codes - http://blog.flexexamples.com/

Weitere ähnliche Inhalte

Mehr von Stefano Virgilli

Prototyping mobile apps_with_adobe
Prototyping mobile apps_with_adobePrototyping mobile apps_with_adobe
Prototyping mobile apps_with_adobe
Stefano Virgilli
 

Mehr von Stefano Virgilli (9)

Prototyping mobile apps_with_adobe
Prototyping mobile apps_with_adobePrototyping mobile apps_with_adobe
Prototyping mobile apps_with_adobe
 
Cinematography c ot-102
Cinematography c ot-102Cinematography c ot-102
Cinematography c ot-102
 
All about colour - by Stefano Virgilli
All about colour - by Stefano VirgilliAll about colour - by Stefano Virgilli
All about colour - by Stefano Virgilli
 
Blending modes presentation
Blending modes presentationBlending modes presentation
Blending modes presentation
 
Building Flash-based websites using Adobe Flex - Lesson 10/10
Building Flash-based websites using Adobe Flex - Lesson 10/10Building Flash-based websites using Adobe Flex - Lesson 10/10
Building Flash-based websites using Adobe Flex - Lesson 10/10
 
Building Flash-based websites using Adobe Flex - Lesson 4/10
Building Flash-based websites using Adobe Flex - Lesson 4/10Building Flash-based websites using Adobe Flex - Lesson 4/10
Building Flash-based websites using Adobe Flex - Lesson 4/10
 
Building Flash-based websites using Adobe Flex - Lesson 3/10
Building Flash-based websites using Adobe Flex - Lesson 3/10Building Flash-based websites using Adobe Flex - Lesson 3/10
Building Flash-based websites using Adobe Flex - Lesson 3/10
 
Building Flash-based websites using Adobe Flex - Lesson 1/10
Building Flash-based websites using Adobe Flex - Lesson 1/10Building Flash-based websites using Adobe Flex - Lesson 1/10
Building Flash-based websites using Adobe Flex - Lesson 1/10
 
Think again - Demystify graphic design
Think again - Demystify graphic designThink again - Demystify graphic design
Think again - Demystify graphic design
 

Kürzlich hochgeladen

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Kürzlich hochgeladen (20)

General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

Building Flash-based websites using Adobe Flex - Lesson 2/10

  • 1. Building Flash-based websites using Flex Lesson 2 – Flex Essentials Alex Goh info@alekkus.com
  • 2. Agenda ● Adobe Flex Builder ● Flex Programming ● UI Components ● Customising UI Component ● Skinning using CSS
  • 3. Adobe Flex Builder ● Adobe's development tool for developing Flex applications ● Retail price - US$249 ● 60 days trial - http://www.adobe.com/products/flex/ ● Free to student - https://freeriatools.adobe.com/flex/ ● Free to unemployed developers - https://freeriatools.adobe.com/learnflex/ ● Alternatively, any text editor can be used to do coding; compile to SWF using the Adobe's Flex compiler (free)
  • 4. Adobe Flex Builder – Design mode Project file navigator Design area Component Properties Drawing components
  • 5. Adobe Flex Builder – Source mode Project file navigator Source codes edit area
  • 6. Flex Programming Design mode Source mode ● Flex programming uses a mixture of MXML and Actionscript 3 codes. ● MXML, like HTML, is mainly to draw the user interface components. ● Actionscript, like Javascript, allows more complex user interactions or application behaviour. ● Note that there's always an equivalent Actionscript code for all MXML code, but not vice versa.
  • 7. Common Flex UI Components - Controls Label: Datagrid: TextInput: TextArea: ComboBox: CheckBox: RadioBox: DateChooser: Button: ColorPicker: DateField: Hslider: Image:
  • 8. Common Flex UI Components – Layout and Navigators Canvas: TabNavigator: HBox: Accordion: VBox: Tile:
  • 9. Customising Flex UI Components ● Flex provides many basic UI components to get you started. Once you are profiicent, you can make your own UI components or customise the existing ones.
  • 10. Skinning UI Components using CSS ● Customising UI components requires in-depth knowledge of Actionscript. ● For newcomers, use CSS to change the appearance of UI components.
  • 11. Data Binding ● Ensure a property or variable always get the latest value of another property or variable ● e.g.
  • 12. Image Component ●Flex Image component accept the following file formats: JPG, GIF, PNG, SWF (for vector) ● Image can be load at runtime or embed into the SWF file ● Load image at runtime ● Embed into SWF file – No need to wait for image to load, but SWF file size increases
  • 13. Official Adobe Flex Documentation ● A MUST-HAVE when developing Flex application ● Launch from Flex Builder, Help > Help contents, or Shift + F2.
  • 14. Resources ● Flex component explorer - http://www.adobe.com/devnet/flex/tourdeflex/ ● Flex examples and source codes - http://blog.flexexamples.com/