• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Building Flash-based websites using Adobe Flex - Lesson 4/10
 

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

on

  • 787 views

Building Flash-based websites using Flex ...

Building Flash-based websites using Flex
Lesson 4 – Actionscript Essentials

by Alex goh, associate trainer @ LAB School ( http://lab.edu.sg/ ), Adobe Authorized Training Centre, Singapore

Statistics

Views

Total Views
787
Views on SlideShare
780
Embed Views
7

Actions

Likes
0
Downloads
15
Comments
0

2 Embeds 7

http://lab.edu.sg 6
http://www.lab.edu.sg 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution-NoDerivs LicenseCC Attribution-NoDerivs License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Building Flash-based websites using Adobe Flex - Lesson 4/10 Building Flash-based websites using Adobe Flex - Lesson 4/10 Presentation Transcript

    • Building Flash-based websites using Flex Lesson 4 – Actionscript Essentials Alex Goh info@alekkus.com
    • Agenda ● Overview of Actionscript 3.0 ● Variables and data types ● Conditionals ● Loops ● Functions ● Binding to variables
    • Overview of Actionscript 3.0 Flash Flex Framework Actionscript .swf .swf Flash Platform
    • Overview of Actionscript 3.0 ● While MXML is sufficient for drawing the user interface on screen, embedding user interactions and changing application behaviour requires executing scripts (similar to the role Javascript plays in HTML documents). ● Why Actionscript 3.0 (AS3) was introduced? ● Needed a Object-oriented Programming Language to support large-scaled application development ●An attempt to bring developers on board onto the Flash platform, which was traditionally regarded as a playground for designers ● AS3 is based on ECMAScript, the same scripting engine of Java, hence, Java developers will find it easier to learn AS3. P.S. Many products from Adobe are Java-based. (e.g. Coldfusion, BlazeDS, LiveCycle ES)
    • Variables and Data Types ● Syntax: ● e.g. ● Common data types
    • Conditionals – if-else statement ● In many cases, the program needs to behave differently or execute different codes based on certain scenarios. ● The most common conditional statement is the if-else statement. ● Syntax:
    • Conditionals – if-else statement ● If more than 2 test cases, include else-if statements. ● Syntax:
    • Conditionals – Conditional Operators ● Conditional operators are used to validate the test cases in the if clause.
    • Conditionals – Compound conditions ● To include more than one test cases within a if or else-if clause.
    • Loops ● Loops cause a block of codes to execute repeatedly, for as long as its test case holds true. ● All common looping methods are available in AS3: ● while loop ● do-while loop ● for loop ● for loop:
    • Functions ● A function is a grouping of a block of codes that can be executed when called. ● Reasons for using function: ● Reusability ● Event handling ● e.g.
    • Binding to Variables ● Ensure a property or variable always get the latest value of another property or variable ● e.g.