Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : flex

MyEclipseÖа²×°FLEX²å¼þ

תÔØÓÚ£ºhttp://hi.baidu.com/wei83523408/blog/item/69a1f4ed0e8102ddb21cb176.html
Ò»¡¢
×¼±¸¹¤×÷£º
ËùÐèÒªµÄÈí¼þ
Eclipse 3.3 + FlexBuilder3 beta2
²å¼þ°æ
+MyEclipse 6.0 +Lcds + Tomcat
5
¶þ¡¢
°²×°¹ý³Ì£º
1.      
°²×°
MyEclipse6.0(
Ôڴ˲»ÔÙÏêÊö
)
¡£
2.      
°²×°
FlexBuilder3 beta2
²å¼þ°æ
(FB3_WWEJ_Plugin.exe)
£¬Çë²Î¿¼ÏÂͼËùʾ
£¨
1
£©Ë«»÷¿ÉÖ´ÐÐÎļþ
£¨
2
£©µ¯³ö¶Ô»°¿ò£¬²»ÓùÜËü£¬Ö±½Óµã»÷
”OK”
¾Í¿ÉÒÔÁË
£¨
3
£©ÏÖÔÚÊÇѯÎÊÄãÊÇ·ñÒª°²×°
FLEX BUILDER 3
²å¼þ£¬Ñ¡Ôñ“
next
”¡£
£¨
4
£©ÏÖÔÚÊÇѯÎÊÄãÊÇ·ñͬÒâЭÒ飬ѡÔñ“ͬÒ┣¬µã»÷“
next
”°´Å¥¡£
£¨
5
£©ÇëÄãÑ¡Ôñ
FLEX BUILDER
µÄ°²×°Â·¾¶£¬Äã¿ÉÒÔ×ÔÐÐÑ¡Ôñ£¬È»ºóµã»÷“
next
”°´Å¥¡£
£¨
6
£©×¢Ò⣺ÕâÒ»²½ºÜÖØÒª£¬ÊÇÒªÄãÑ¡Ôñ
MyEclipse6.0
ÖеÄ
Eclipse
µÄ°²×°Â·¾¶£¬Çë×ÐϸѡÔñ¡£
È»ºóµã»÷“
next
”°´Å¥¼´¿É¡£
£¨
7
£©È»ºóµ¯³öÈÃÄãÄÍÐĵȴýµÄ½çÃ棬¹ýÒ»»á¶ùÈ»ºóµ¯³öÒ»¸ö¶Ô»°¿ò£¬Ñ¯ÎÊÄãÊDz»ÊÇ°²×°µ ......

flex webserver .net

<?xml version="1.0" encoding="utf-8"?>
<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" minWidth="955" minHeight="600">
<fx:Script>
<!--[CDATA[
import mx.rpc.events.ResultEvent;
/* import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
internal function onRequest():void
{
websevercalc.Calu.send();
}
internal function onSuccess(evt:ResultEvent):void
{
this.result.text =evt.result.toString();
}
internal function onFualt(evt:FaultEvent):void
{

} */
private function fnText(event:ResultEvent):void
{
this.result.text = event.result.toString();
}
]]-->
</fx:Script>
<fx:Declarations>
<!-- ½«·Ç¿ÉÊÓÔªËØ£¨ÀýÈç·þÎñ¡¢Öµ¶ÔÏ󣩷ÅÔÚ´Ë´¦ -->
<s:WebService id="websevercalc" wsdl="http://localhost:1524/WebService1.asmx?wsdl" useProxy="false" ......

flexͨ¹ýurl´«²ÎÖÁas½Å±¾ÖÐ

£¨×¢£º²ÉÓÃfb4 beta1¿ª·¢£¬ÓÉÓÚ¼æÈÝÎÊÌ⣬¿ÉÒÔÊʵ±¼ÓÒÔÐ޸ķŵ½×Ô¼ºµÄ»·¾³ÖУ¬²âÊÔµÄʱºòÐèÒª·Åµ½·þÎñÆ÷ÉÏÃ棬±¾È˵IJâÊÔurlΪ
http://127.0.0.1/astest/asjs.html?msnum=13112345678£©
mxmlÎļþ£º
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" creationComplete="application1_creationCompleteHandler(event)" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768">
 <fx:Script>
  <![CDATA[
   import mx.controls.Alert;
   import mx.events.FlexEvent;
   
   private var tempParam:String;
   protected function application1_creationCompleteHandler(event:FlexEvent):void
   {
    var param:String=ExternalInterface.call("test");
    if(param!=""){
     tempParam=param;
    }
& ......

Flex Öнâ¾ö stageΪnullµÄ·½·¨


flexÖÐÔÚDisplayObjectÀïÖ±½ÓÓÃstage£¬¿ÉÄÜ»áÊÇnull£¬Ô­Òò²»ÊÇÌ«Çå³þ£¬ÕÒµ½Á˽â¾ö°ì·¨£¬µ±½ÓÊÕµ½ADDED_TO_STAGEʼþʱ£¬stage¿Ï¶¨±»´´½¨³öÀ´ÁË£¬Õâ¸öʱºòÔÙʹÓþÍûÓÐÎÊÌâ¡£
addEventListener( Event.ADDED_TO_STAGE, function( e:Event ):void ??
{
    stage.addEventListener(KeyboardEvent.KEY_DOWN, keyPressed_handler);
    stage.addEventListener(KeyboardEvent.KEY_UP, keyReleased_handler);
}); ......

ÿÌìѧһµãflex£¨2£©£ºAccordion ×é¼þ

  ºÜ¾ÃûȥÁ·Ï°flex ¿ªÊ¼ÓеãÉúÊ裬ÓÃÆðÀ´»¹ÊǺÜÊæ·þ¡£flex 3ºÍflex4Ö®¼ä´æÔÚһЩ²î±ð£¬ËùÒÔÔÚÑ¡ÔñµÄʱºòÐèҪСÐÄÒ»µã£¬½ñÄêÖ÷ÍÆflex 4 ËùÒÔ³õѧµÄÈË¿ÉÒÔÌø¹ýflex 3Ö±½Óѧflex4¡£ ÒòΪflex ¿ª·¢Êǽ¨Á¢ÔÚas 3»ù´¡ÉÏ£¬¹Ê´ËÑо¿Àà¿âÖ®¼ä½á¹¹ÊÇÒ»¼þºÜ²»´íµÄÊÂÇé¡£±Ï¾¹½á¹¹ÃÀÊÇѧϰ±à³ÌÒ»ÖÖÃÀѧÁ÷¡£
  ½ñÌìµÄ´¿´âÁ·Ï°£¬Ò²Ã»ÓÐÆäËûµÄ¡£¶ÔÎÊÌâÒý·¢µÄÊÂÇé»á˵һÏ¡£ÀýÈçдµÄswf µÄ¼õÈÝÎÊÌ⣬Õâ¸öÕæµÄÊÇÒ»¸öºÜÍ·ÌÛµÄÊÂÇé¡£²»µÃ²»Ëµ£¬¼õÈÝÊÇÒ»¸ö¿ÎÌâ¡£flex 3 µÄ×é¼þÔÚûÓÐÓÅ»¯Ï£¬Éú³ÉµÄÖÊÁ¿swf µÄÌåÖØ»á´óÁËÒ»µã¡£±ÈÈçÒ»¸öÅÖ×Ó£¬ÎªÎÏţʽµÄÍøËÙ¼ÓÔؽøÈ¥¡£¿ÉÏë¶øÖª¡£ºÇºÇ£¬Ò»¸ö²»ºÃЦµÄÀäЦ»°¡£¿ªÊ¼ÒÔ¸ö»°Ì⣬Õâ¸öflash ÔÚ¹ú¼ÒµÄÍøÕ¾ÉÏ¿´µ½£¬ÓÚÊÇɽկÁËһϣ¬²ÉÓÃÁËÕâÖÖAccordion ×é¼þ¡£ÔÚÕâÀïÎÒ²»½²½âËûµÄÓ÷¨¡£µÄÈ·ºÜ¶à×ÊÁÏÒѾ­ÆëÈ«ÁË¡£ÏÖÔÚ¿ªÊ¼ÖÆ×÷һϣ¬¿´¿´ÔÚûÓÐÓÅ»¯µÄÇ°ÌáÊÇÈçºÎ¡£
 
Ó÷¨´ó¸ÅÊÇÈç´Ë£¬°Ñ¹Ù·½ÍøһЩÍøվͼƬÇÐÁ˽øÈ¥£¬È»ºó½øÐÐǶÈëÈ¥¡£²ÉÓõÄ×é¼þImage×é¼þ¡£½øÐÐÕâЩ¹¤×÷ºó£¬»¹ÐèÒª¶Ô×ÖÌå½øÐÐÑùʽÖÆ×÷¡£µ±³õÏ£Íûͨ¹ý<mx:Canvas ×é¼þ½øÐÐÉèÖ㬵«ÊDzéѯ×ÊÁϺ󣬷¢ÏÖÕâÖÖ°ì·¨Ðв»Í¨¡£ÓÚÊÇ°Ù¶Èһϡ£ÕÒµ½ÁË´ð°¸
<mx:Accordion  id="acc ......

flex¿ª·¢ÖйØÓÚÄÚ´æÊͷż¸¸ö×¢ÒâµÄµØ·½

1.¼àÌýʼþʱÓÃÈõÒýÓ÷½Ê½£¨ÌرðÊǶÔApplicatiion.applicaionºÍStageµÄʼþ¼àÌý£©£¬·½Ê½ÈçÏ£ºµÚÎå¸ö²ÎÊýֵΪtrue
Application.application.addEventListener(MouseEvent.CLICK,doClick,false,0,true);
2.¼¯ºÏÀàÈçArrayºÍDictionaryÀïµÄÔªËØ£¬ÔÚ²»ÓõÄʱºòÒªÉèÖÃΪnull;(ÓÈÆäÊÇÖ÷Ò³ÃæÉϵļ¯ºÏÀà)£¬È磺myMap[o]=null;
3.·½·¨Öд´½¨µÄ±äÁ¿ÒýÓñØÐëÓÃvarÐÞÊΣ¬·ñÔò½«±»ÈÏΪÊÇÈ«¾Ö±äÁ¿£¬ÓÀÔ¶²»»áÊÍ·ÅÄÚ´æ¡£
4.ËùÓеÄcssÀ඼¶¨Òåµ½css.cssÎļþÀ²»ÒªÔÚÄ£¿éÀﶨÒåcss,²»È»»áµ¼ÖÂgc²»¸É¾»
5.moduelLoaderµÄÄÚ´æй¶ÎÊÌ⣺
¾­¹ý³õ²½²âÊÔ£¬ÔÚdebug°æµÄflashplayerÀModuleLoaderµÄunload·½·¨ÓÐÑÏÖصÄÄÚ´æй¶ÎÊÌ⣨ÓÃmoduleLoader²»¶ÏµØ¼ÓÔز»Í¬µÄurl£©£»µ«ÊÇÔÚrelease°æÖбíÏÖÕý³££»
Èç¹ûÐèÒªÔÚdebug°æµÄ·½·¨Àï¹æ±Ü´ËÎÊÌâ¿ÉÓÃÒÔÏ·½·¨¼ÓÔØurl,²»ÒªÓÃunloader·½·¨£º
/**
*ΪÁ˽â¾ömoduleLoaderµÄÄÚ´æй¶ÎÊÌâ
* @param oldMLoader ÐèÒª¸Ä±äurlµÄmoduleLoader
* @param url Ö¸¶¨µÄurl
*
*/
static public function fixLoadForModuleLoader(oldMLoader:ModuleLoader,url:String):void{
var tparent:Container=oldMLoader.parent;
var index=oldMLoader.parent.g ......
×ܼǼÊý:792; ×ÜÒ³Êý:132; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [14] [15] [16] [17] 18 [19] [20] [21] [22] [23]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ