Wednesday, May 21, 2008

Flex Formatter: Sample Phone Formatter in MXML

The component Flex PhoneFormatter takes any number or String can be converted into a number and formats like a phone number. The PhoneFormatter offers the opportunity to set the format of the chain of output using property formatString. The default is this property is (###) ###-####, where # represents the location of a number (American standard). The following example will produce 123.456.7890:
---------------------------------------------------------------------------------




---------------------------------------------------------------------------------

By default, the property formatString can specify several characters. These characters are given by the property validPatternChars, which has the default +, (,), #, -,. and space



Flex Formatter: Coder its own trainers ActionScript

If any of Formatter standard is not suitable to your needs, you can write your own Formatter. To write a personalized Formatter, you must create a class which extends ActionScript mx.formatters.Formatter. This class must override the method format (). The following example create a new Formatter which will add to 0 that the chain is the length of the property "count" of Formatter:
---------------------------------------------------------------------------------------------
package
{
import mx.formatters.Formatter;
public class ZeroFillFormatter extends Formatter {
private var _count:int;
public function set count(value:int):void{
_count = value;
}
public function get count():int{
return _count;
}
public function ZeroFillFormatter(){
super();
_count = -1;
}
// méthode format() à surcharger
override public function format(value:Object):String{
// si nécéssaire, on convertit le paramètre en une String, sinon on le cast en String
var stringValue:String;
if(!(value is String)){
stringValue = value.toString();
} else {
stringValue = String(value);
}
// si la longueur de la chaîne est inférieure à _count,
// on la précède par des zéros
while (_count > stringValue.length){
stringValue = "0" + stringValue;
}
return stringValue;
}
}
}

---------------------------------------------------------------------------------------------

Flex Builder 3 Professional free for students

Adobe has offered Flex Builder 2, a free version for education. If you want to receive your serial number (including a serial number for Flex Charting), you can just go to this address:
Flex Builder Professional 3 free for students
http://www.flexregistration.com/
Simply send a photocopy of your student card scannéeà Adobe and you will receive your serials for Flex Builder in a few days instead spend some $ 250 required for its purchase. For others, you can always try to Flex Builder version 60 days from Adobe:
http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3email

adobe flex 4 - Adobe announced - features

  • Adobe has announced that Flex 4.0 (code named Gumbo) will be released in 2009. Even though this announcement has been made, the product plan has yet to be completed.
    Some themes that have been mentioned by Adobe that will be incorporated into Flex 4 are as follows:
    Design in Mind: The framework will be designed for continuous collaboration between designers and developers.
    Accelerated Development: Be able to take application development from conceptual to reality quickly.
    Horizontal Platform Improvements: Compiler performance, language enhancements, BiDi components, enhanced text. (Speculation derived from Adobe Systems)
    Broadening Horizons: Finding ways to make a framework lighter, supporting more deployment runtimes, runtime MXML. (Speculation derived from Adobe Systems)
    Flex 4 milestones: (Speculation derived form Adobe Systems)

Adobe flex 3.0 - version history

[edit] Release history
Flex 1.0 - March 2004
Flex 1.5 - October 2004
Flex 2.0 (Alpha) - October 2005
Flex 2.0 Beta 1 - February 2006
Flex 2.0 Beta 2 - March 2006
Flex 2.0 Beta 3 - May 2006
Flex 2.0 Final- June 28, 2006
Flex 2.0.1 - January 5, 2007
Flex 3.0 Beta 1 - June 11, 2007
Flex 3.0 Beta 2 - October 1, 2007
Flex 3.0 Beta 3 - December 12, 2007
Flex 3.0 - February 25, 2008

Adobe Flex from Adobe

Adobe Flex is a collection of technologies released by Adobe Systems for the development and deployment of cross platform, rich Internet applications based on the proprietary Adobe Flash platform. The initial release in March 2004 by Macromedia included a software development kit, an IDE, and a J2EE integration application known as Flex Data Services. Since Adobe acquired Macromedia in 2005, subsequent releases of Flex no longer require a license for Flex Data Services, which has become a separate product rebranded as LiveCycle Data Services.
In February 2008, Adobe released the Flex 3 SDK under the open source Mozilla Public License. Adobe Flash Player, the runtime on which Flex applications are viewed, and Flex Builder, the IDE used to build Flex applications, remain proprietary.

Source : wikipedia