This browser plug-in first got serious attention as Macromedia Flash 1. Macromedia merged with Adobe in late so the full name of the current plug-in is Adobe Flash Player 9.
SWF files contain graphic, layout and logic information, but applications can also load data and programs from networks or local file systems. Spectacular effects are achieved with little effort by the programmer. Being restricted to the browser plug-in environment limits the possible applications for a rich Internet application RIA.
Flash and AS3 links
Recognizing this, Adobe is working on a stand alone desktop application environment called the Adobe Integrated Runtime or AIR, previously code-named Apollo. MXML file type. Control over component layout uses concepts such as "grid" layouts that will be familiar to Java programmers. Reasonable defaults are defined that let you get started with something that works and refine the layout later. In contrast with the Flex 1. Naturally, Adobe would love to sell you the Flex Builder IDE, but you can experiment freely and show off your Flash creations without spending any money.
Shop with confidence
Shop now and earn 2 points per $1
ActionScript 3 uses compilation to a new bytecode scheme, which is incompatible with all previous versions, so the current Flash Player plug-in actually contains 2 virtual machines to work with previous scripts as well as the latest. For higher performance, ActionScript 3 uses "just in time" JIT compilation of bytecodes to cpu-specific machine codes. Now lets look at a simple Flex script for a Flash application.
A script must be a complete XML document with a mx:Application tag as the root element. In this example, all of the interface components are contained inside a plain "mx:Panel" tag. Note that the mx:Button tag specifies a "click" attribute that has the value "news. The mx:HTTPService tag sets up the code to send a request to the specified URL and defines how the returned data is to be treated, in this case as plain text.
The process of actually sending a request and getting a result only occurs when the implied send method is invoked by a mouse click on the mx:Button. This process terminates with either a call to the normal result handling method or the fault handling method. Flex provides other types of remote service access, I chose this example because it is the simplest to explain.
You can also import external ActionScript files.
As discussed in my previous article , Sun's JavaFX scripting language is intended to bring the highly flexible and customizable "Swing" component library into the RIA arena. JavaFX has a much larger library of Java functions to draw on when necessary, but Flex excels at spectacular user interface effects. In April of this year, Microsoft introduced a browser plug-in, "Silverlight" clearly intended to compete with the Flash Player.
Programming Flex 3 - Chafic Kazoun, Joey Lott - Google книги
Silverlight player 1. Since Microsoft can ensure that new computers have Silverlight installed and updated automatically it will eventually become widely distributed.
In fact Adobe's goal is to reach 1 million developers using Flex in the next few years. The Flex Framework 2 is free and the Flex Enterprise Services 2 is free up to five client seats and running on a single unclustered server. Flex Builder 2. The full release is planned for the first half of calendar year To explore the beta, go to Adobe Labs.