Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Top 10 things new Flex developers should know

Top 10 things new Flex developers should know
By Michael Portuesi | Published: November 27, 2009
While helping a coworker get started with Flash and Flex development, I thought it would be a good time to cover the list of things that I have found pretty essential to know about Flex development, coming into it as a new developer.
Some of these items are simple details that you need to know. Others point to profound differences between Flash/ActionScript/Flex and other development environments.
Before you start
If you know HTML/CSS development, and some JavaScript, but nothing about ActionScript or Flex, you should really take the time to understand what object-oriented programming means, as ActionScript is a true object-oriented language, and Flex is an object-oriented framework.  The same advice applies if you have been doing pure timeline-based Flash development without getting much into the ActionScript stuff.
Doug Winnie of Adobe has produced an excellent article addressing this topic.  Additionally, he offers a series of free online video tutorials to get you started with ActionScript development from the perspective of a Flash developer.
1. Things happen asynchronously, even the simple stuff
Flex is a very asynchronous framework.  What does ‘asynchronous’ mean?  Basically, it means that you can’t really depend upon something happening right when you invoke the call to it in your code.  Instead, the actual consequences of an assignment, or a call to a method on an object, might happen at some arbitrary time in the future.
This is not just the case when you call a remote HTTP webservice from your Flex application; it’s also the case when you do something as simple as setting the dataProvider property for a user interface control such as a DataGrid. Behind the scenes, DataGrid performs all kinds of work that doesn’t necessarily occur at the time your code make the assignment, and you don’t neces


Ïà¹ØÎĵµ£º

Flex easingFunction

<?xml version="1.0" encoding="utf-8"?>
<Application xmlns="http://www.adobe.com/2006/mxml"
backgroundGradientColors="[0x000000,0x000000]"
themeColor="#222222"
horizontalAlign="left"
paddingLeft="10" paddingRight="10"
creationComplete="genData();"
viewSourceURL="srcview/index.ht ......

ʹÓÃFabrication+PureMVC¿ª·¢multi modular FlexÓ¦ÓÃ

PureMVCʵÏÖÁ˼òµ¥µÄMVC¿ò¼Ü£¬½«Ó¦Ó÷ÖΪmodel¡¢viewºÍcontrolÈý²¿·Ö¡£
ºÃ´¦ºÜ¶àÁË£¬½µµÍÁËÄ£¿éÖ®¼äµÄñîºÏÐÔ¡¢Ìá¸ßÁ˳ÌÐòµÄ¿Éά»¤ÐԺͿÉÀ©Õ¹ÐÔ¡£
fabricationÔÚPureMVC»ù´¡ÉÏ×öÁËÀ©Õ¹£¬¼ò»¯ÁËpureMVCµÄ¿ª·¢ÄѶȣ¬ÏÂÃæ¼òµ¥½éÉÜÒ»ÏÂfabricationµÄ¿ª·¢¹ý³Ì¡£
Ê×ÏÈ£¬¸ù¾ÝÐèҪʵÏÖorg.puremvc.as3.multicore.utilities.fabric ......

flexÖÐÐÞ¸ÄsilderµÄthumbµÄ´óС

<mx:HSlider id="priceSlider" creationComplete="{HsilderChangeThumb(event)}"/>
<mx:Script>
        <![CDATA[
private function HsilderChangeThumb(e:Event):void
  {
    var slider:HSlider = e.target as HSlider;
 &nbs ......

flex»ñµÃsession

--------web.xmlÎļþ
<listener>
        <listener-class>flex.messaging.HttpFlexSession</listener-class>
    </listener>
--------Java´úÂë
public class GetSeesion {
 /**
  * ÉèÖÃsession
  * */
 public ......

Flex 4 betaÓ¦ÓÃʵÀý£ºSpark Intranet Sample App

±¾ÎÄͨ¹ýΪһ¸öÐé¹¹µÄ¹«Ë¾Éè¼ÆµÄ¾ÖÓòÍøÓ¦ÓÃʵÀý——Spark Intranet Sample App£¨Èçͼ1£©£¬½éÉÜÁËFlex 4 beataºÍFlash Builder 4 betaÖÐеÄһЩÌØÐÔ¡£
±¾ÎÄÄÚÈÝÊʺÏÓÚÓÐFlex 2»òFlex 3֪ʶ£¬×îºÃ»¹¶ÔFlex 4 beta¿ò¼ÜÓÐһЩ»ù±¾½Ó´¥µÄ¿ª·¢Õß¡£Í¨¹ý¾ßÌåÓ¦ÓÃÀí½âFlex 4ÓëÆä¸üÔç°æ±¾Ö®¼ä²îÒ죬ÊÇÒ»¸öºÃ°ì·¨¡£±¾ÎÄÖ÷Ò ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ