Академический Документы
Профессиональный Документы
Культура Документы
• ECMA-4 compliant
• Object oriented
– Packages
– Classes
– Inheritance
– Interfaces
• Strong and weak typing
• Online API
– http://livedocs.adobe.com/flex/201/langref/index.html
package {
import flash.media.Video;
import flash.net.NetStream;
import flash.net.NetConnection;
• mxmlc compiler
1. Stage one
1. Parse MXML into ActionScript classes
2. Compile ActionScript into bytecode
3. Insert bytecode into a binary SWF file
2. Stage two (just-in-time compilation)
1. Flash Players contain an ActionScript Virtual
Machine (AVM). At runtime, the AVM turns
the bytecode into machine language code
that the particular OS can interpret.
• SOAP?
– You can use it, but passing XML is not as
efficient as using binary exchange. Adobe
claims it is 10 times slower.
http://labs.adobe.com/technologies/blazeds/
• Example
– <mx:RemoteObject id=“myRO” destination=“myService"
fault=“fault(arg)"
result=“result(arg)" />
– Fault handling is done by callback handler fault(arg), where
‘arg’ is the error. It can handle Java exceptions and network
failures.
– Successful results are processed by callback handler
result(arg)
• remoting-config.xml
– <destination id=“myService">
<properties>
<source>com.me.myService</source>
<scope>application</scope>
</properties>
</destination>
• http://www.adobe.com/devnet/flex/articles/java_testdrive.html
• A couple tips for the installation…
– Set JAVA_HOME environment variable to, for example:
C:\Program Files\Java\jdk1.5.0_11
• Do not include the \bin directory on the path!
– Your root directory may be C:\Documents and Settings, but for
simplicity, place the fds-tomcat directory in your C:\ drive.
• A class not found exception is thrown for the word “and”
because the pathname is not quoted.
• http://labs.adobe.com/technologies/air/
• “Adobe Integrated Runtime (AIR) is a cross-
operating system runtime being developed by
Adobe that allows developers to leverage
their existing web development skills (Flash,
Flex, HTML, JavaScript, Ajax) to build and
deploy rich Internet applications (RIAs) to the
desktop.”
• http://www.dc-flex.org/
• Meetings usually held at AboutWeb in
Rockville, MD
• Next meeting
– Wednesday, March 05 2008 6:00pm - 9:00pm
– 6177 Executive Blvd, Rockville MD 20852