Flex: Difference between revisions

From air
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 18: Line 18:
<s:Label text="Enter your phone number:" />
<s:Label text="Enter your phone number:" />
<s:TextInput id="phoneInput"/>
<s:TextInput id="phoneInput"/>
<s:Button label="Call" click="call();"/>
<s:Button label="Call" click="call(phoneInput);"/>
</s:Panel>
</s:Panel>


Line 39: Line 39:
<pre>
<pre>
package fr.imag.air.sample.flex{
package fr.imag.air.sample.flex{
public class MyClass interface MyInterface{
public class MyPhone interface IPhone {
public function MyClass() {
public function MyPhone () {
}
}
public function doSomething(): String {
public function call(String number): String {
}
}
}
}
Line 49: Line 49:


''[http://en.wikipedia.org/wiki/ActionScript wikipedia]''
''[http://en.wikipedia.org/wiki/ActionScript wikipedia]''



===Data Centric===
===Data Centric===
Line 63: Line 62:
====RESTFul Services====
====RESTFul Services====
* http://fbflex.wordpress.com/2008/06/12/a-simple-actionscript-flex-rest-client/
* http://fbflex.wordpress.com/2008/06/12/a-simple-actionscript-flex-rest-client/
* http://code.google.com/p/resthttpservice


====Action Message Format (v3)====
====Action Message Format (v3)====
Line 89: Line 89:
* [[BlazeDS]]
* [[BlazeDS]]
* [[GraniteDS]]
* [[GraniteDS]]




==References et Liens==
* Tuto et Livres http://www.flex-tutorial.fr/livres-flex-as3-pdf/


==Liens==
==Liens==

Latest revision as of 12:22, 28 March 2011

Flex est devenu en quelques années un canevas fort apprécié pour la conception de Rich Internet Applications (RIA).

Description

wikipedia


MXML

langage déclarative des interfaces (syntaxe XML)

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
  xmlns:s="library://ns.adobe.com/flex/spark"
  xmlns:mx="library://ns.adobe.com/flex/mx">


 <s:Panel>
  <s:Label text="Enter your phone number:" />
  <s:TextInput id="phoneInput"/>
  <s:Button label="Call" click="call(phoneInput);"/>
 </s:Panel>

 <mx:PhoneNumberValidator 
    source="{phoneInput}"
    property="text"
    allowedFormatChars="()- .+" 
    invalidCharError="Your telephone number contains invalid characters."
    minDigits="{10}"
    wrongLengthError="Your telephone number must contain at least 10 digits."/>

</s:Application>

wikipedia

ActionScript

langage de script (syntaxe ECMAScript)

package fr.imag.air.sample.flex{
  public class MyPhone interface IPhone {
    public function MyPhone () {
    }
    public function call(String number): String {
    }
  }
}

wikipedia

Data Centric

Remote (Procedure) Calls

Web Services

WebServices avec Flex

RESTFul Services

Action Message Format (v3)

binary format used to serialize ActionScript objects (Optimizes exchanged data amount)

Modularité

Chaine de compilation

.mxml + .as -- compilation --> .swf -- ??? --> .exe

Déploiement

  • .swf embarqué dans une WAR

Outils

Editeurs

Compilateurs

Communication



References et Liens

Liens