MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Manuel d'utilisateur Page 1

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Logiciels de publication assistée par ordinateur MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE. Adobe Flex Tutorial Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 124
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs

Résumé du contenu

Page 1 - Adobe Flex Tutorial

Adobe Flex Tutorial

Page 2 - ADOBE FLEX TUTORIAL

TUTORIALS POINT Simply Easy Learning Page 5 Flash Builder can be started by executing the following commands on Unix (Solaris, Linux, etc.) machine:

Page 3 - Prerequisites

TUTORIALS POINT Simply Easy Learning Page 95

Page 4 - Table of Contents

TUTORIALS POINT Simply Easy Learning Page 96 Flex – Flex Unit Integration This chapter shows FlexUnit Integration in Flex Development Cycle:. Flash

Page 5

TUTORIALS POINT Simply Easy Learning Page 97 Flash Builder will create the following TestClass1.as file. package com.tutorialspoint.client { p

Page 6 - Flex-Overview

TUTORIALS POINT Simply Easy Learning Page 98 FlexUnit Integration Example Now Let us follow the following steps to test FlexUnit Integration in a Fl

Page 7 - Disadvantages of Flex

TUTORIALS POINT Simply Easy Learning Page 99 } } Following is the content of the modified mxml file src/com.tutorialspoint/HelloWorld.mxml. <

Page 8

TUTORIALS POINT Simply Easy Learning Page 100

Page 9 - Simply Easy Learning Page 4

TUTORIALS POINT Simply Easy Learning Page 101 Flex – Debug Application This chapter describes the debugiing application of Adobe Flex:. Flex prov

Page 10 - Step 4: Setup Apache Tomcat:

TUTORIALS POINT Simply Easy Learning Page 102 3 Compile and run the application to make sure business logic is working as per the requirements. Fol

Page 11 - Simply Easy Learning Page 6

TUTORIALS POINT Simply Easy Learning Page 103 Step 2 - Debug Application Now click on Debug application menu and select HelloWorld application to

Page 12 - Simply Easy Learning Page 7

TUTORIALS POINT Simply Easy Learning Page 104 If everything is fine, application will launch in the browser and you will see following debug l

Page 13 - Flex - Applications

TUTORIALS POINT Simply Easy Learning Page 6 %CATALINA_HOME%\bin\startup.bat or C:\apache-tomcat-6.0.33\bin\startup.bat Tomcat can be started by e

Page 14 - Flex Framework Libraries

TUTORIALS POINT Simply Easy Learning Page 105 You can see the stacktrace for suspended threads.

Page 15 - Client-side code

TUTORIALS POINT Simply Easy Learning Page 106

Page 16 - HelloWorld.mxml

TUTORIALS POINT Simply Easy Learning Page 107 You can see the values for expressions.

Page 17 - Server-side code

TUTORIALS POINT Simply Easy Learning Page 108 You can see the list of breakpoints placed. Now keep pressing F6 until you reach the last li

Page 18

TUTORIALS POINT Simply Easy Learning Page 109 Now you can see the flex code can be debugged in the same way as a Java Application can be debugged.

Page 19

TUTORIALS POINT Simply Easy Learning Page 110 Flex - Internationalization This chapter describes internalization of Flex aapplication: Flex provi

Page 20 - Page 15

TUTORIALS POINT Simply Easy Learning Page 111 Create properties file containing the messages to be used in the application. We've

Page 21

TUTORIALS POINT Simply Easy Learning Page 112 2 Modify HelloWorld.mxml as explained below. Keep rest of the files unchanged. 3 Compile and run the a

Page 22

TUTORIALS POINT Simply Easy Learning Page 113 </s:Panel> <mx:ComboBox id="localeComboBox" dataProvide

Page 23

TUTORIALS POINT Simply Easy Learning Page 114

Page 24

TUTORIALS POINT Simply Easy Learning Page 7 or /usr/local/apache-tomcat-5.5.29/bin/shutdown.sh

Page 25 - Step 7 - Run Application

TUTORIALS POINT Simply Easy Learning Page 115 Flex – Printing Support Flex provides a special class FlexPrintJob to print flex objects.  FlexPrint

Page 26

TUTORIALS POINT Simply Easy Learning Page 116 printJob.send(); Printing Example Step Description 1 Create a project with a name HelloWorld under a

Page 27

TUTORIALS POINT Simply Easy Learning Page 117 horizontalAlign="center" verticalAlign="middle"> &l

Page 28

TUTORIALS POINT Simply Easy Learning Page 118 Click on print me button and you can see the printout of the data grid shown below.

Page 29

TUTORIALS POINT Simply Easy Learning Page 119

Page 30

TUTORIALS POINT Simply Easy Learning Page 8 Flex - Applications This chapter describes the applications under Adobe Flex: Bfore we start with c

Page 31 - Run Application

TUTORIALS POINT Simply Easy Learning Page 9  Compiles a HelloWorld.html (a wrapper file for swf file) from a file index.template.html

Page 32

TUTORIALS POINT Simply Easy Learning Page 10 2 textlayout.swc This library supports the text layout related features. 3 framework.swc This is the fl

Page 33 - Flex Life Cycle Example

TUTORIALS POINT Simply Easy Learning Page 11 Public resources These are helper files referenced by Flex application, such as Host HTML page, CSS o

Page 34

TUTORIALS POINT Simply Easy Learning Page 12 Following Table gives the description of all the tags used in the above code script. S.N. Node & De

Page 35

TUTORIALS POINT Simply Easy Learning Page 13 Flex – Create Application This chapter shows how to create application under Adobe Flex. We'll us

Page 36

TUTORIALS POINT Simply Easy Learning Page 14 Select Application Type Web (runs in Adobe Flash Player) if not selected and leave other default values

Page 37 - Flex Style with CSS Example

i ADOBE FLEX TUTORIAL Simply Easy Learning by tutorialspoint.com tutorialspoint.com

Page 38

TUTORIALS POINT Simply Easy Learning Page 15 Folder Location src  Source code (mxml / as classes) files.  We've created com/tutorials

Page 39

TUTORIALS POINT Simply Easy Learning Page 16 Step 2 - Create external CSS file Create a CSS file styles.css for Wrapper HTML page in html-template

Page 40

TUTORIALS POINT Simply Easy Learning Page 17 <head> <title>${title}</title> <meta name="google" value="notransla

Page 41

TUTORIALS POINT Simply Easy Learning Page 18 <noscript> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width

Page 42 - Step 2: Apply skin

TUTORIALS POINT Simply Easy Learning Page 19 +pageHost +"www.adobe.com/images/shared/download_buttons/get_flash_player.gif&a

Page 43 - Flex Style with Skin Example

TUTORIALS POINT Simply Easy Learning Page 20 <fx:Script> <![CDATA[ import mx.controls.Alert; import mx.events.FlexEv

Page 44

TUTORIALS POINT Simply Easy Learning Page 21 Because you are running your application in flash player, so you will need to install Flash Player pl

Page 45

TUTORIALS POINT Simply Easy Learning Page 22 Flex – Deploy Application This chapter shows the deployment of application: This tutorial will explai

Page 46

TUTORIALS POINT Simply Easy Learning Page 23 . Select project as HelloWorld using the wizard window as follows

Page 47

TUTORIALS POINT Simply Easy Learning Page 24 Leave other default values as such and click Finish Button. Now Flash Builder will creat

Page 48

ii ABOUT THE TUTORIAL Adobe Flex Tutorial Flex is a powerful, open source application framework that allows you to easily build mobile applications

Page 49 - Flex Data Binding Example

TUTORIALS POINT Simply Easy Learning Page 25 <fx:Style source="/com/tutorialspoint/client/Style.css"/> <fx:Script>

Page 50

TUTORIALS POINT Simply Easy Learning Page 26 Create WAR File Now our applictaion is working fine and we are ready to export it as a war file. Follow

Page 51

TUTORIALS POINT Simply Easy Learning Page 27 Flex – Life Cycle Phases This chapter shows the phases under Life Cycle of Flex application:. Life Cyc

Page 52 - Flex – Basic Controls

TUTORIALS POINT Simply Easy Learning Page 28 1 preInitialize: mx.core.UIComponent.preinitialize Event Type: mx.events.FlexEvent.PREINITIALIZE This

Page 53

TUTORIALS POINT Simply Easy Learning Page 29 1 Create a project with a name HelloWorld under a package com.tutorialspoint.client as explained in the

Page 54 - Event Dispatcher Class

TUTORIALS POINT Simply Easy Learning Page 30

Page 55 - Introduction

TUTORIALS POINT Simply Easy Learning Page 31 Flex – Style With CSS This chapter describes the styles under Adobe Flex: Flex supports the use of CSS

Page 56 - Public Properties

TUTORIALS POINT Simply Easy Learning Page 32 You can define styles within UI container component using <fx:Style> tag Class Level Selector <

Page 57

TUTORIALS POINT Simply Easy Learning Page 33 1 Create a project with a name HelloWorld under a package com.tutorialspoint.client as explained in the

Page 58

TUTORIALS POINT Simply Easy Learning Page 34 /* id level selector */ #msgLabel { color: gray; } /* style appli

Page 59

iii Table of ContentsAdobe Flex Tutorial ... i Audience ...

Page 60

TUTORIALS POINT Simply Easy Learning Page 35

Page 61

TUTORIALS POINT Simply Easy Learning Page 36 Flex – Style With Skin This chapter style with skinning in Adobe Flex: What is Skining? Skinning in Fl

Page 62

TUTORIALS POINT Simply Easy Learning Page 37 Enter Package as com.tutorialspoint.skin, name as GradientBackgroundSkin and choose host component as

Page 63 - Public methods

TUTORIALS POINT Simply Easy Learning Page 38 Apply skin in MXML script (statically) Apply GradientBackgroundSkin to a BorderContainer with id mainCo

Page 64

TUTORIALS POINT Simply Easy Learning Page 39 name=contentGroup, type=spark.components.Group, required=false --> <!-- fill --> &

Page 65

TUTORIALS POINT Simply Easy Learning Page 40 verticalAlign="middle"> <s:Label id="lblHeader" fontSize="

Page 66

TUTORIALS POINT Simply Easy Learning Page 41

Page 67

TUTORIALS POINT Simply Easy Learning Page 42

Page 68

TUTORIALS POINT Simply Easy Learning Page 43 Flex – Data Binding This chapter describes the Data Binding concepts. What is Data Binding? D ata Bind

Page 69 - Protected method

TUTORIALS POINT Simply Easy Learning Page 44 <fx:Script> <![CDATA[ import mx.binding.utils.BindingUtils; import mx.events.Fl

Page 70

iii Life Cycle of flex application: ... 27 Flex – Style With Skin ...

Page 71

TUTORIALS POINT Simply Easy Learning Page 45 <s:Label id="lblHeader" text="Data Binding Demonstration" font

Page 72

TUTORIALS POINT Simply Easy Learning Page 46

Page 73 - Basic Controls

TUTORIALS POINT Simply Easy Learning Page 47 Flex – Basic Controls This chapter describes basic controls of Adobe Flex:. Every user interface cons

Page 74

TUTORIALS POINT Simply Easy Learning Page 48 Every Basic UI control inherits properties from UIComponent class which in turn inherits

Page 75

TUTORIALS POINT Simply Easy Learning Page 49 Event Dispatcher Class Introduction  The EventDispatcher class is the base class for all classes tha

Page 76

TUTORIALS POINT Simply Easy Learning Page 50 S.N. Method & Description 1 EventDispatcher(target:IEventDispatcher = null) Aggregates an instanc

Page 77

TUTORIALS POINT Simply Easy Learning Page 51 Class declaration Following is the declaration for mx.core.UIComponent class: public class UIComponent

Page 78

TUTORIALS POINT Simply Easy Learning Page 52 12 automationValue : Array [read-only] This value generally corresponds to the rendered appearance of t

Page 79

TUTORIALS POINT Simply Easy Learning Page 53 30 errorString : String The text that displayed by a component's error tip when a component is mon

Page 80

TUTORIALS POINT Simply Easy Learning Page 54 A flag that determines if an object has been through all three phases of layout: commitment, measuremen

Page 81 - Flex – Visual Effects

TUTORIALSPOINT Simply Easy Learning Page 1 Flex-Overview This chapter describes the basic definition and concepts of Adobe Flex:. What is Flex? FL

Page 82

TUTORIALS POINT Simply Easy Learning Page 55 66 mouseFocusEnabled : Boolean Whether you can receive focus when clicked on. 67 nestLevel : int Depth

Page 83 - Protected properties

TUTORIALS POINT Simply Easy Learning Page 56 84 rotationX : Number [override] Indicates the x-axis rotation of the DisplayObject instance, in degree

Page 84 - Protected methods

TUTORIALS POINT Simply Easy Learning Page 57 100 top : Object For components, this layout constraint property is a facade on top of the similarly-na

Page 85

TUTORIALS POINT Simply Easy Learning Page 58 Protected Properties Following are the protected properties for mx.core.UIComponent class: S.N. Name &

Page 86

TUTORIALS POINT Simply Easy Learning Page 59 6 contentToLocal(point:Point):Point Converts a Point object from content to local coordinates. 7 create

Page 87

TUTORIALS POINT Simply Easy Learning Page 60 true):Number Returns the y coordinate of the element's bounds at the specified element size. 24 ge

Page 88

TUTORIALS POINT Simply Easy Learning Page 61 or null if this Repeater isn't repeated. 42 getStyle(styleProp:String):* Gets a style property tha

Page 89

TUTORIALS POINT Simply Easy Learning Page 62 UIFTETextField) using a UITextFormat determined by the styles of this UIComponent. 60 move(x:Number, y:

Page 90 -

TUTORIALS POINT Simply Easy Learning Page 63 77 setLayoutMatrix(value:Matrix, invalidateLayout:Boolean):void Sets the transform Matrix that is used

Page 91 -  Using MXML

TUTORIALS POINT Simply Easy Learning Page 64 Protected method S.N. Method & Description 1 adjustFocusRect(obj:DisplayObject = null):void Adjust

Page 92

TUTORIALS POINT Simply Easy Learning Page 2  Flex applications can run on Browsers as well as on Desktop.  Flex applications are platform in

Page 93 - Using MXML

TUTORIALS POINT Simply Easy Learning Page 65 16 invalidateParentSizeAndDisplayList():void Helper method to invalidate parent size and display list i

Page 94

TUTORIALS POINT Simply Easy Learning Page 66 when the component has finished its construction, property processing, measuring, layout, and drawing.

Page 95

TUTORIALS POINT Simply Easy Learning Page 67 20 mouseWheelOutside from a component opened using the PopUpManager when the user scrolls the mouse whe

Page 96

TUTORIALS POINT Simply Easy Learning Page 68 35 touchInteractionStart A non-cancellable event, by a component when it starts responding to a touch i

Page 97

TUTORIALS POINT Simply Easy Learning Page 69 3 Image The Image control lets you import JPEG, PNG, GIF, and SWF files at runtime. 4 LinkButton The Li

Page 98 - RPC Service Call Example

TUTORIALS POINT Simply Easy Learning Page 70 Flex – Form Controls This chapter describes the form controls under Adobe Flex:. Form controls allows u

Page 99

TUTORIALS POINT Simply Easy Learning Page 71 The ComboBox control is a child class of the DropDownListBase control. 6 DateChooser The DateChooser co

Page 100 - TUTORIALS POINT

TUTORIALS POINT Simply Easy Learning Page 72 Flex – Complex Controls This chapter describes the complex controls under Adobe Flex:. Complex contro

Page 101 - CHAPTER

TUTORIALS POINT Simply Easy Learning Page 73 5 RichTextEditor The RichTextEditor control lets users enter and format text. 6 TileList The TileList c

Page 102

TUTORIALS POINT Simply Easy Learning Page 74 Flex – Layout Panels This chapter describes layout panels under Adobe Flex: Layout panel controls p

Page 103 - FlexUnit Integration Example

TUTORIALS POINT Simply Easy Learning Page 3 Flex - Environment Setup This chapter describes the environment setup of Adobe Flex:. This tutorial w

Page 104 - Running Test cases

TUTORIALS POINT Simply Easy Learning Page 75 4 HGroup The HGroup container is a Group container that uses the HorizontalLayout class. 5 Panel The Pa

Page 105

TUTORIALS POINT Simply Easy Learning Page 76 Flex – Visual Effects This chapter describes the visual effects to add behavior to Flex application: W

Page 106 - Flex – Debug Application

TUTORIALS POINT Simply Easy Learning Page 77 1 className : String [read-only] The name of the effect class, such as "Fade". 2 customFilter

Page 107 - Step 1 - Place BreakPoints

TUTORIALS POINT Simply Easy Learning Page 78 19 triggerEvent : Event The Event object passed to this Effect by the EffectManager when an effect is t

Page 108 - Step 2 - Debug Application

TUTORIALS POINT Simply Easy Learning Page 79 11 play(targets:Array = null, playReversedFromEnd:Boolean = false):Array Begins playing the effect. 12

Page 109

TUTORIALS POINT Simply Easy Learning Page 80 2 effectStart Dispatched when the effect starts playing. 3 effectStop Dispatched when the effect has be

Page 110

TUTORIALS POINT Simply Easy Learning Page 81 Flex – Event Handling This chapter describes the usage of Event Handling: Flex uses concept of

Page 111

TUTORIALS POINT Simply Easy Learning Page 82 Consider the following application code <?xml version="1.0" encoding="utf-8"?>

Page 112

TUTORIALS POINT Simply Easy Learning Page 83 Following is the content of the modified mxml file src/com.tutorialspoint/HelloWorld.mxml. <?xml v

Page 113

TUTORIALS POINT Simply Easy Learning Page 84 <s:Label id="lblHeader" text="Event Handling Demonstration"

Page 114

TUTORIALS POINT Simply Easy Learning Page 4 Windows java version "1.6.0_21" Java(TM) SE Runtime Environment (build 1.6.0_21-b07) Java Hot

Page 115

TUTORIALS POINT Simply Easy Learning Page 85

Page 116 - Internalization Example

TUTORIALS POINT Simply Easy Learning Page 86 Flex – Custom Controls This chapter describes the Custom Controls under Adobe Flex:. Flex provides two

Page 117

TUTORIALS POINT Simply Easy Learning Page 87 Flash Builder will create the following CustomButton.as file. package com.tutorialspoint.client { i

Page 118

TUTORIALS POINT Simply Easy Learning Page 88 Using MXML You can create a component by extending existing component. To create a component using Flas

Page 119

TUTORIALS POINT Simply Easy Learning Page 89 Following is the content of the modified mxml file src/com.tutorialspoint/client/CustomLog

Page 120 - Flex – Printing Support

TUTORIALS POINT Simply Easy Learning Page 90 } Following is the content of the modified mxml file src/com.tutorialspoint/client/HelloWorld.mxml. &

Page 121 - Printing Example

TUTORIALS POINT Simply Easy Learning Page 91

Page 122

TUTORIALS POINT Simply Easy Learning Page 92 Flex – RPC Services This chapter describes RPC Services provided by Adobe Flex:. Flex provides RPC ser

Page 123

TUTORIALS POINT Simply Easy Learning Page 93 <items> <item name="Book" description="History of France"></item&

Page 124

TUTORIALS POINT Simply Easy Learning Page 94 <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.ado

Commentaires sur ces manuels

Pas de commentaire