FlexÖеÄRemoteClass meta tagµÄʹÓÃ˵Ã÷
簡單µÄ來說£¬RemoteClassÊÇÔÚ編寫 ActionScript Class 檔時¸æÖª該 ActionScript Class ÊÇ對應µ½ÄÄ個遠¶¨¶ËµÄ Class 檔(·ÇActionScript),舉個Àý×Ó來說£¬ÈôÔÚ遠µØ¶ËÓÐ個 Java Object Ãû為 Test£¬ÈôÓÐ個 ActionScript Class Ҫȥ對應時£¬¾Í¿ÉÒÔ¼ÓÉÏ這¶ÎÃèÊö£¬當È»²»È¥ÃèÊöÊDz»會馬Éϳö錯µÄ£¬µ«ÊÇÔÚ執ÐÐ階¶Î£¬Èç¹ûÖ±½ÓʹÓöø沒經過轉換這時ºò將會³ö現錯誤訊Ï¢ ¡£
Java´úÂë
package samples.crm{
[RemoteClass(alias="samples.crm.Test")]
public class Test
{
……..
}
}
package samples.crm{
[RemoteClass(alias="samples.crm.Test")]
public class Test
{
……..
}
}
ͨ³£Óõ½µÄ時機ÊÇ當ÄãʹÓõ½複雜µÄ Flash Remoting£¬當Ëü傳»ØÒ»個 Class Object £¬¶øÄãÓÖÏ£ÍûÄÜÖ±½ÓÓà Class µÄ·½·¨²Ù×÷時£¬¾Í會Óõ½該 meta tag¡£
Ïà¹ØÎĵµ£º
×¼±¸¹¤×÷
eclipse Èí¼þ°ü eclipse-jee-galileo-SR2-win32.zip£¨Ãâ°²×°µÄ£©
flex ²å¼þ FB3_WWEJ_Plugin.exe
Èí¼þÏÂÔؾͲ»ËµÁË°¡ ´Ó¹ÙÍøÉ϶¼¿ÉÒÔÕÒµ½µÄ¡£
²å¼þ°²×°²½Ö裺 1.°Ñeclipse Èí¼þ°ü ½âѹµ½CÅÌÏ£¨¾ßÌå¸ù¾Ý×Ô¼ºÐèÒªÕâ²»Êǹؼü£©
&nbs ......
ÊʺϳõѧÕßÀí½â
1£¬testflex.mxml
<?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"
creationComplete="init()"
minWidth="955 ......
A client asked me to do something seemingly simple.
"I want the Alert to have just this one sentence bolded."
Well, it's not exactly simple, so here's how you do it:
there are two solutions as below :
import mx.core.IUITextField;
use namespace mx.core.mx_internal;
message +="Press ......
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()">
<mx:Style source="skin/yflexskin.css" />
<mx:Script>
<! ......
µ±ArrayµÄÊý¾Ý·¢Éú±ä»¯µÄʱºò£¬ÓÃËü×÷ΪÊý¾ÝÔ´µÄ¿Ø¼þ²»ÄܸÐÖªÕâÖֱ仯¡£
ÀýÈ磺myArray.push("new value"); Õâʱ£¬Èç¹ûÒ»¸öListÓÃËü×÷ΪdataProvider£¬ListµÄÁбíÖв»»áÔö¼ÓмÓÈëµÄÕâ¸öÖµ¡£
¶øµ±ArrayCollectionµÄÊý¾Ý·¢Éú±ä»¯µÄʱºò£¬Äܹ»Í¨Öª¿Ø¼þ·¢Éú±ä»¯¡£
ÀýÈ磺myArrayCollection.addItem("new item"); Õâʱ£¬È ......