¹ØÓÚflex ÖÐevent ±»´¥·¢µÄÎÊÌâ
strategyMarketsOfCurrentStrategy.addEventListener(CollectionEvent.COLLECTION_CHANGE, strategyMarketsDataChangedHandler);
strategyMarketsOfCurrentStrategy.removeAll();
strategyMarketsOfCurrentStrategy.addAll(strategyProfilesForClone);
private function strategyMarketsDataChangedHandler(event:CollectionEvent):void
{
trace("ffffffffffffffffffffffffffffffffffffffff"+ObjectUtil.toString(event.kind));
isStrategyMarketsChanged = true;
if (event.kind == CollectionEventKind.ADD)
{
event.items[0].dirty = true;
event.items[0].isInvalidTradeCountry = true;
event.items[0].isHoldBackFlagExist = true;
event.items[0].isStatusExist = true;
}
}
½á¹ûÊÇstrategyMarketsDataChangedHandler ûÓб»Ö´ÐС£
ÈôÖ»±£ÁôstrategyMarketsOfCurrentStrategy.removeAll();
Ôò¾Í»á±»Ö´Ðе½¡£ ¡£¡£¡£¡£¡£¡£¡£¡£¡£¡£Ææ¹Ö
Ïà¹ØÎĵµ£º
http://elromdesign.com/blog/2010/03/10/test-driven-development-tdd-with-flexunit-4-complete-tutorial/
±¾À´ÊÇ´òËãÍêÕûµÄ·ÒëÍê³ÉÕâÆª²©Îĵģ¬Ò»±ß·Ò룬һ±ß̸̸×Ô¼º¶ÔÇý¶¯²âÊÔ¿ª·¢µÄÀí½â¡£ µ±È»ÎÒµÄÀí½âºÍÔÎÄ×÷ÕßµÄÀí½â²»Ò»¶¨Ò»Ñù£¬µ«ÊÇÖÁÉÙ£¬ÎÒÃǶ¼³ÐÈÏ¿ª·¢µÃÊDzâÊÔÇý¶¯µÄ¡£ È»¶øCSDNµÄ²©¿ÍϵͳÊÇʵÔÚ²»ÄÜÀí½â¡¾Î ......
<?xml version="1.0"?>
<!-- Simple example to demonstrate the ColumnChart and BarChart controls. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="initApp()"
backgroundColor="#FFFFFF" width="350" height="125"
layout="absolute">
<!- ......
<mx:TextInput id="userName" maxChars="4" restrict="a-zA-Z" />
restrictÊôÐÔȷʵ¿ÉÒÔÊäÈëÕýÔò±í´ïʽ£¬½øÐÐÊäÈëµÄÑéÖ¤¡£
µ«ÊÇÔÚ³ÌÐòÖ´ÐеÄʱºòÈç¹ûΪuserName.text = "999"»¹ÊÇ¿ÉÒԳɹ¦µÄ¡£
´ýÐø¡£¡£¡£¡£Ñ§Ï°ÖС£¡£¡£ ......
ÏÈÓÃÏֳɵÄ×é¼þÍæÒ»Ï£¬Ò»»áÔÙÈ¥¿´¿´×é¼þÔ´ÂëÑо¿Ò»Ï¡£
http://code.google.com/p/flex-iframe/
ÏÂÔØÁËflexiframe.swc£¬ÒýÈ빤³Ì¡£
flex´úÂë
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
......
Ò»¡¢Application³£ÓõÄʼþ
initialize=============>³õʼ»¯
createcomplate==========>ÔªËØ¼ÓÔØÍê
initialize·¢ÉúÔÚcreatecomplate֮ǰ¡£
¶þ¡¢Êý¾ÝÇëÇó˵Ã÷
HTTPService==========>httpÊý¾ÝÇëÇó¡£
SOAP(Simple Object Access Protocal)=======> webService
AMF(Adobe Action Message Format)========&g ......