flex ×°Ôضà¸ömodule³öÏÖ: Ç¿ÖÆת»»ÀàÐÍʧ°Ü
flex ×°Ôضà¸ömodule³öÏÖ: Ç¿ÖÆת»»ÀàÐÍʧ°Ü,³öÏÖijЩÀ಻ÄÜת»»
ÀýÈ磺
ÎÞ·¨½« mx.managers::PopUpManagerImpl@7155ac1 ת»»Îª mx.managers.IPopUpManager¡£
½â¾ö·½·¨ÊÇÔÚApplication¼ÓÈëÒýÓÃ
1.
import
mx.managers.DragManager;
private
var dragManager : DragManager;
2.
ÔÚModuleLoader µÄcreationComplete·½·¨ÖмÓÈëÈçÏ´úÂ룺
moduleLoader.applicationDomain
= ApplicationDomain.currentDomain;
ÔÚmoduleloader×öÇл»µÄʱºò£¬¼ÓÉÏ£º
moduleLoader.unloadModuleÔÙ×ö
moduleLoader.loadModule().
Ïà¹ØÎĵµ£º
FLEXÖÐËùÓеIJ¼¾Ö¶¼ÐèÒªÈÝÆ÷¡£<mx:Application>±êǩʵ¼ÊÉϾÍÊÇÒ»¸öÈÝÆ÷¡£Ã¿¸öÈÝÆ÷¶¼ÓÐÒ»¶¨µÄ¹æÔòÀ´È·¶¨×ÓÔªËصÄÅÅÁз½Ê½£¬Ò²¾ÍÊDZ¾ÎÄÌÖÂÛµÄFLEXÈÝÆ÷²¼¾Ö¹æÔò¡£
VBox
×ÓÔªËØÑØ´¹Ö±·½ÏòÅÅÁС£Ã¿¸ö×ÓÔªËض¼»á»æÖÆÔÚÇ°Ò»¸ö×ÓÔªËصÄÏ·½¡£
HBox
×ÓÔªËØÑØˮƽ·½ÏòÅÅÁС£Ã¿¸ö×ÓÔªËض¼»á»æÖÆÔÚÇ°Ò»¸ö×ÓÔªËصÄÓÒ·½¡£
Canv ......
Ò»¡¢×Ô¶¨ÒåPanel×é¼þ
package test
{
import mx.containers.Panel;
import mx.core.UIComponent;
/**
* ×Ô¶¨ÒåPanel
* **/
public class MyPanel extends Panel
......
ÔÚflex ¿ª·¢ÏîÄ¿ÖУ¬ºÜ¶à¶¼»áʹÓÃModuleÀ´¼õÉÙapplication¼ÓÔعý´óµÄÎÊÌâ¡£ModuleҲȷʵ½â¾öÁËÕâ¸öÎÊÌâ¡£
µ«ÊÇÔÚʹÓÃModule¹ý³ÌÖÐÐèҪעÒâµÄÒ»µã ·Ç³£¹Ø¼üµÄÒ»µãÄǾÍÊÇ ¶¨ÒåÒ»¸öIModuleInfoµÄʱºò Ò»¶¨Òª¼ÇµÃ°Ñ¶¨Òå³ÉÈ«¾Ö±äÁ¿Å¶¡£²»È»¾Í»á³öÏÖ µÚÒ»´Î¼ÓÔز»ÁË ¶þµÚ¶þ´Î µÚÈý´Î¡£¡£¡£¡£¶¼¿ÉÒÔµÄЧ¹û¡£²»×¢ÒâÕâµãÕÒËÀÁ˶¼ÕÒ² ......
ÎÄÕÂÒ»£ºhttp://blog.csdn.net/eyking/archive/2009/10/21/4702330.aspx
Flex¾ÍÊÇÖÂÁ¦ÓÚRIAµÄÓ¦Óã¬AdobeΪÁËÀ©´óÕ½³¡£¬ÍƳöÁËAIR»·¾³£¬ÄÇô´Ëʱ²ÉÓÃFlex±àдµÄ³ÌÐòÔÚä¯ÀÀÆ÷ÖÐÓë×ÀÃæ»·¾³Ï¶¼¿ÉÒԺܺõÄÒÆÖ²ÁË¡£ÏñFlexÓëFlashÕâÑùÆæ¹ÖµÄ¶«Î÷£¬Õ½³¡²»½ö½öÔÚä¯ÀÀÆ÷ÉÏ£¬»¹Åܵ½ÁË×ÀÃæ»·¾³Ï¡£Ò»¸öºÜÖØÒªµÄ°²È«Ä£Ð;ͱ»Ìá³öÁË£ºF ......
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%"
viewSourceURL="srcview/index.html" backgroundColor="0x000000" layout="absolute">
<mx:Script>
&nb ......