¹ØÓÚflash/flexµÄ³ÌÐòÓò
subject of application domain of flash and air.
ÔÚflash»òflexÖУ¬³ÌÐò¼ÓÔØÍⲿswfÎļþ£¬¸ÃÎļþµÄ³ÌÐòÓòĬÈÏΪÖ÷³Ì ÐòÓòµÄÒ»¸ö×ÓÓòÖС£±ÈÈçÄãʹÓÃA.swf¼ÓÔØB.swfÎļþ£¬B±»¼ÓÔغ󣬳ÉΪA³ÌÐòÓòµÄÒ»¸ö×ÓÓò£¬×ÓÓòÊÇÉêÃ÷ÀàµÄʱ£¬²»Äܸ²¸Ç¸¸ÀàÒÑÉêÃ÷ÀࣺÈç¹ûAÖж¨ ÒåÁËÀàcom.sogou.MapÀ࣬ͬʱBÖÐÒ²¶¨ÒåÁËcom.sogou.MapÀ࣬µ«Êǵ±B¼ÓÈëµ½AµÄ³ÌÐòÓòʱ£¬Ïȼì²éA³ÌÐòÓòÖÐÊÇ·ñÒÑ´æÔÚÒ»¸öÀà¡£ Èç¹û´æÔÚ£¬ÔòʹÓøÃÒÑ´æÔÚÀ࣬·ñÔòÉêÃ÷ÊôÓÚB×Ó³ÌÐòÓòµÄÀà¡£µ±È»Ò²¿ÉÒÔ½«B²»¼ÓÔص½Ä¬ÈÏÓòÖУ¬¶øÊÇн¨Ò»¸öÓò£º
var loader:Loader = new Loader();
var context:LoaderContext = new LoaderContext();
context.applicationDomain = new ApplicationDomain();
loader.load(new URLRequest(”B.swf”), context);
ͬʱ£¬A¿ÉÒÔʹÓÃB³ÌÐòÓòÖеÄÀࣺ
var bDomain:ApplicationDomain = loader.contentLoaderInfo.applicationDomain;
if (bDomain.hasDefinition(”com.sogou.map::JustForB”)) {
//ÅжÏÒ»¸ö³ÌÐòÓòÖÐÊÇ·ñÒѶ¨ÒåÒ»¸öÀà
var bc:class = bDomain.getDefinition(”com.sogou.map::JustForB”) as class;
var bcInst:Object = new bc();
}
È»ºó±ã¿ÉʹÓÃÔÚBÖж¨ÒåµÄÀàJustForBÀà¡£µ±È»BÒà¿ÉʹÓÃA³ÌÐòÓòÖеÄÀ࣬ǰÌáÊÇBµÄÓòΪA³ÌÐòÓòµÄÒ»¸ö×ÓÓò£¬B¿ÉÒÔÖ±½ÓʹÓá£
ÔÙ¾ÍÊÇ£¬½«B¼ÓÔؼÓÈëµ½µ±Ç°³ÌÐòÓòÖУº
var loader:Loader = new Loader();
var context:LoaderContext = new LoaderContext();
context.applicationDomain = ApplicationDomain.currentDomain;
loader.load(new URLRequest(”B.swf”), context);
´ËʱAºÍBµÄ¿ÉÒÔÖ±½ÓʹÓÃÈκη½Ëù¶¨ÒåµÄÈκÎÀàÁË£¨µ±È»ºó¶¨ÒåµÄÀ಻Äܸ²¸ÇÏȶ¨ÒåµÄÀ࣬¼´BÖеÄcom.sogou.map.Map²»Äܸ²¸ÇAÖеÄcom.sogou.map.Map£¬¶þÕßÈκεط½Ê¹ÓõÄMapÀ඼½«À´×ÔAµÄ¶¨Òå¡££©
Ïà¹ØÎĵµ£º
×¢£ºµÚÒ»ÁÐÊÇ´øCheckboxµÄTree¡£
»¹ÓÐÎÊÌâÇë½Ì¸÷λ£º
labelFieldÊÇÔªËضÔÏóµÄÊôÐÔÊÇÏÔʾ²»ÁË£¨carInfo.car_name£©£¬ºÃÏñÖ»¿ÉÏÔʾͬ¼¶µÄÊôÐÔÔõô½â¾ö£¿Ï£Íû¸÷λÄÜ°ïÖúÎÒ£¬Thanks!
<mx:AdvancedDataGrid id="adg" width="100%" height="100%" dataProvider="{instance.cars}"
&n ......
Flex ºÍC++ Ö®¼ä´«Êä½á¹¹ÌåÊý¾Ý
Ò»Ö±ÏëÊÔÑéÓýṹÌå´«Êý¾Ý
µ«ÊÇFlex ºÍC++ µÄÀàÐÍËùÕ¼µÄ×Ö½ÚÊýÓÐʱ²»Ò»Ñù
Èçint ÔÚC++ÖÐÕ¾2¸ö×Ö½Ú£¬¶øÔÚFlexÖÐÕ¼4¸ö×Ö½Ú¡£
ת»»±È½ÏÂé·³¡£
×îºó¾ö¶¨ÓÃXML½øÐд«Êä
È»ºóÁ½±ß¶¼¼ÓÒ»¸öXML ½âÎöºÍ·â×°Àà¡£
C++ ¶ËʹÓõÄtinyXML Àà
FlexÖ±½ÓʹÓÃ×Ô¼º´øµÄ E4X Àà
Flex´úÂëÈçÏÂ
&nb ......
±¾ÎĹ²Á½¸öÎļþ£ºtranslate.mxml ºÍ mapmarking.xml
1¡¢translate.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="librar ......
Flash֪ʶµã×ܽá
(Ò») FlashµÄ¹¤×÷½çÃæ
±êÌâÀ¸
Ö÷¹¤¾ßÀ¸
ÎĵµÑ¡Ï
¹¤¾ßÏä
Îę̀
ÊôÐÔÃæ°å
±à¼À¸
¿âÃæ°å
Îę̀£º½øÐд´×÷µÄÖ÷Òª¹¤×÷ÇøÓò¡£
±ê³ß¡¢Íø¸ñ¡¢±à¼À¸ÖÐÉèÖÃÏÔʾ±ÈÀý¡£
³¡¾°¸ÅÄ
ʱ¼äÖá´°¿Ú£ºÓÉһϵÁеÄÖ¡×é³É£¬Ã¿Ò»Ö¡ÊÇÒ»·ù˲ʱͼ¡£·ÖΪ£ºÍ¼²ã¿ØÖÆÇøºÍʱ¼äÖá¿ØÖÆÇø¡£Ê±¼äÏßÊÇͨ¹ýʱ¼ä±ä»¯¾ ......
Flash OBJECTºÍEMBED±êÇ©Ïê½â
Flash OBJECTºÍEMBED±êÇ©
Ò»¡¢½éÉÜ£º
ÎÒÃÇÒªÔÚÍøÒ³ÖÐÕý³£ÏÔʾflashÄÚÈÝ£¬ÄÇôҳÃæÖбØÐëÒªÓÐÖ¸¶¨flash·¾¶µÄ±êÇ©¡£Ò²¾ÍÊÇOBJECTºÍEMBED±êÇ©¡£OBJECT±êÇ©ÊÇÓÃÓÚwindowsƽ̨µÄIEä¯ÀÀÆ÷µÄ£¬¶øEMBEDÊÇÓÃÓÚwindowsºÍMacintoshƽ̨ϵÄNetscape Navigatorä¯ÀÀÆ÷ÒÔ¼°Macintoshƽ̨ϵÄIEä¯ÀÀÆ÷¡£ ......