1.ç»ä»¶çå
·ä½å建
ç»ä»¶çå ·ä½å建
源码缠论python源码 ç®ä»源码缠论python源码å建ç»ä»¶å°±æ¯èªè¡è®¾è®¡å¶ä½åºæ°çç»ä»¶ã ã设计ç»ä»¶æ¯ä¸é¡¹ç¹éçå·¥ä½ãèªè¡å¼åç»ä»¶ä¸ä½¿ç¨ç»ä»¶è¿è¡å¯è§åç¨åºå¼ååå¨çæ大çä¸åï¼è¦æ±ç¨åºåçç¥åæçVCLç±»åºç»æï¼ç²¾éé¢å对象ç¨åºè®¾è®¡ã设计ç»ä»¶æ¯ä¸é¡¹è°è¦çå·¥ä½ã对äºç»ä»¶çå¼åè ï¼ç»ä»¶æ¯çº¯ç²¹ç代ç ãç»ä»¶çå¼åä¸æ¯ä¸ä¸ªå¯è§åçå¼åè¿ç¨ï¼èæ¯ç¨C++æObject Pascalä¸¥æ ¼ç¼å¶ä»£ç çå·¥ä½ãå®é ä¸ï¼å建æ°ç»ä»¶ä½¿æ们åå°ä¼ ç»å¼åå·¥å ·çæ¶ä»£ãè½ç¶è¿æ¯ä¸ä¸ªå¤æçè¿ç¨ï¼ä½ä¹æ¯ä¸ä¸ªä¸å³æ°¸é¸çè¿ç¨ãå建ç»ä»¶çæ大æä¹å¨äºå°è£ éå¤çå·¥ä½ï¼å ¶æ¬¡æ¯å¯ä»¥æ©å ç°æç»ä»¶çåè½ãç»ä»¶å建è¿ç¨å æ¬è®¾è®¡ãå¼åãè°è¯ï¼å°±æ¯æè°ç3D'sï¼å·¥ä½ï¼ç¶åæ¯ç»ä»¶ç使ç¨ãç»ä»¶å¼åè åºè¯¥ææ¡çä¸é¡¹ä¸»è¦å 容æ¯ï¼å±æ§ãäºä»¶åæ¹æ³ã
源码缠论python源码ç»ä»¶æºæ件
源码缠论python源码ç»ä»¶é¢æ¿ä¸æä¾çç»ä»¶é½æ¯é¢ç¼è¯è¿ç SWC åªè¾ãåæ¶è¿æä¾äºæº Flash ææ¡£ (FLA)ï¼å ¶ä¸å æ¬çæ¯è¿äºç»ä»¶çå¾å½¢ï¼åæº ActionScript ç±»æ件(AS)ï¼å ¶ä¸å å«çæ¯è¿äºç»ä»¶ç代ç ï¼ï¼ä»¥ä¾¿äºæ¨å¨å建èªå·²çèªå®ä¹ç»ä»¶æ¶ä½¿ç¨ã第 2 çç»ä»¶çæºæ件é Macromedia Flash ä¸èµ·å®è£ ãå¨æ建èªå·±çç»ä»¶ä¹åï¼æå¼å¹¶æ¥çå ¶ä¸é¨åæ件ï¼å°è¯å»äºè§£è¿äºæ件çç»æï¼ä¼å¯¹æ¨ææ帮å©ãRadioButton ç»ä»¶å°±æ¯è¾ä¸ºç®åçç»ä»¶ç示ä¾ï¼æ¨å¯è½åºé¦å ç 究该ç»ä»¶ãStandardComponents.fla çåºä¸çææç»ä»¶é½æ¯å 件ãæ¯ä¸ªå 件é½é¾æ¥å°ä¸ä¸ª ActionScript ç±»ãå®ä»¬çä½ç½®å¦ä¸ï¼
源码缠论python源码FLAæ件æºä»£ç å¨ Windows ä¸ï¼C:Program FilesMacromediaFlash 8è¯è¨ConfigurationComponentFLAStandardComponents.flaã å¨ Macintosh ä¸ï¼HD/Applications/Macromedia Flash 8/Configuration/ComponentFLA/StandardComponents.fla ActionScript ç±»æä»¶å¨ Windows ä¸ï¼C:Program FilesMacromediaFlash 8è¯è¨First RunClassesmx å¨ Macintosh ä¸ï¼HD/Applications/Macromedia Flash 8/First Run/Classes/mx
源码缠论python源码ç»ä»¶ç»ææ¦è¿°
源码缠论python源码ç»ä»¶ç± Flash (FLA)æ件å ActionScript (AS)æ件ç»æãæ¨å¯ä»¥éæ©åå»ºå ¶å®æ件ï¼ä¾å¦ï¼å¾æ å .swd è°è¯æ件ï¼ï¼å¹¶å°å ¶ä¸ç»ä»¶ä¸èµ·æå ï¼ä½ææç»ä»¶é½éè¦ä¸ä¸ª FLA æ件åä¸ä¸ª ActionScript æ件ãå®æç»ä»¶å¼ååï¼éè¦å°å®å¯¼åºä¸º SWC æ件ã
源码缠论python源码Flash (FLA)æ件ãActionScript (AS) æ件å SWC æ件FLAæ件å å«ä¸ä¸ªå½±çåªè¾å 件ï¼è¯¥å ä»¶å¿ é¡»å¨é¾æ¥å±æ§åç»ä»¶å®ä¹å¯¹è¯æ¡ä¸é¾æ¥å° AS æ件ã
源码缠论python源码å½±çåªè¾å 件æ两个帧å两个å¾å±ã第ä¸ä¸ªå¾å±æ¯ Actions å¾å±ï¼å®ç第ä¸å¸§ä¸æä¸ä¸ª stop()å ¨å±å½æ°ã第äºä¸ªå¾å±æ¯ Assets å¾å±ï¼å®æä¸¤ä¸ªå ³é®å¸§ï¼ç¬¬ä¸å¸§å å«ä¸ä¸ªè¾¹æ¡ï¼ç¬¬äºå¸§å å«ææå ¶å®èµæºï¼å ¶ä¸å æ¬ç»ä»¶ä½¿ç¨çå¾å½¢ååºç±»ã
源码缠论python源码æå®ç»ä»¶çå±æ§åæ¹æ³ç ActionScript 代ç ä½äºåç¬ç ActionScript ç±»æ件ä¸ãæ¤ç±»æ件è¿å£°æç»ä»¶çæ©å±çç±»ï¼å¦ææï¼ãAS ç±»æ件çå称为ç»ä»¶çå称å ä¸.asæ©å±åãä¾å¦ï¼MyComponent å å« MyComponent ç»ä»¶çæºä»£ç ã
源码缠论python源码æ好å°ç»ä»¶ç FLA å ASæ件ä¿åå¨åä¸æ件夹并å°è¿ä¸¤ä¸ªæ件æå®ä¸ºç¸åçå称ãå¦æå° ASæ件ä¿åå¨å ¶å®æ件夹ä¸ï¼åå¿ é¡»ç¡®è®¤è¯¥æ件夹å¨ç±»è·¯å¾ä¸ï¼ä»¥ä¾¿ FLA æ件è½å¤æ¾å°å®ãæå ³ç±»è·¯å¾ç详ç»ä¿¡æ¯ï¼è¯·åé å¦ä¹ Flash ä¸ç ActionScript 2.0ä¸çç±»ã
源码缠论python源码æ建第ä¸ä¸ªç»ä»¶
源码缠论python源码å¨æ¬èä¸ï¼å°æ建ä¸ä¸ª Dial ç»ä»¶ãå·²å®æçç»ä»¶æ件Dial.flaãDial å DialAssets.fla ä½äºè®¡ç®æºä¸ç以ä¸ç¤ºä¾æ件夹ä¸ï¼
源码缠论python源码å¨ Windows ä¸ï¼C:Program FilesMacromediaFlash 8Samples and TutorialsSamplesComponentsDialComponentæ件夹ã
源码缠论python源码å¨ Macintosh ä¸ï¼HD/Applications/Macromedia Flash 8/Samples and Tutorials/Samples/Components/DialComponentæ件夹ã
源码缠论python源码Dial ç»ä»¶æ¯ä¸ä¸ªçµä½è®¡ï¼ç±»ä¼¼äºæµéçµåå·®ççµä½è®¡ãç¨æ·å¯ä»¥åå»å¹¶æå¨æéæ¥æ´æ¹æéä½ç½®ãDial ç»ä»¶ç API å ·æä¸ä¸ª value å±æ§ï¼å¯ç¨æ¥è·åå设置æéçä½ç½®ã
源码缠论python源码éæ©ç¶ç±»
源码缠论python源码å建ç»ä»¶æ¶ï¼é¦å è¦ç¡®å®æ¯å¦æ©å±æ个第 2 çç±»ãå¦æéæ©æ©å±æ个第 2 çç±»ï¼åå¯ä»¥æ©å±æ个ç»ä»¶ç±»ï¼ä¾å¦ï¼ButtonãCheckBoxãComboBoxãList çï¼ææ个åºç±»ï¼UIObject æ UIComponentï¼ãé¤ Media ç»ä»¶ä¹å¤ï¼ææå ¶å®ç»ä»¶ç±»é½æ©å±åºç±»ï¼å¦ææ©å±ç»ä»¶ç±»ï¼è¯¥ç±»ä¹ä¼èªå¨ä»åºç±»ç»§æ¿ã
源码缠论python源码两个åºç±»ä¸ºç»ä»¶æä¾äºå¸¸è§åè½ãéè¿æ©å±è¿äºç±»ï¼ç»ä»¶ä¸å¼å§å³å ·å¤ä¸ç»åºæ¬çæ¹æ³ãå±æ§åäºä»¶ã
源码缠论python源码å¨ç¬¬ 2 çæ¡æ¶ä¸ï¼æ¨æ éå建 UIObject åç±»ãUIComponent åç±»æä»»ä½å ¶å®ç±»ãå³ä½¿ç»ä»¶ç±»ç´æ¥ç»§æ¿èª MovieClip ç±»ï¼ä¹å¯ä»¥ä½¿ç¨è®¸å¤å¼ºå¤§çç»ä»¶åè½ï¼å¯¼åºå° SWCæ件æç¼è¯åªè¾ã使ç¨å ç½®å®æ¶é¢è§ãæ¥çå¯æ£æ¥å±æ§ççãä½æ¯ï¼å¦æè¦å°ç»ä»¶ç¨äº Macromedia 第 2 çç»ä»¶ï¼å¹¶è¦ä½¿ç¨ç®¡çå¨ç±»ï¼å°±éè¦æ©å± UIObject æ UIComponentã
源码缠论python源码ä¸è¡¨ç®è¦è¯´æ第 2 çåºç±»ï¼ åºç±» æ©å± 说æ mx.core.UIObject MovieClip UIObject æ¯ææå¾å½¢å¯¹è±¡çåºç±»ã mx.core.UIComponent UIObject UIComponent æ¯ææç»ä»¶çåºç±»ã äºè§£ UIObject ç±»
源码缠论python源码åºäº Macromedia ComponentArchitecture第 2 ççç»ä»¶æºèª UIObject ç±»ï¼è¯¥ç±»æ¯ MovieClip ç±»çåç±»ãMovieClip ç±»æ¯ Flash ä¸å¯ä»¥å¨å±å¹ä¸è¡¨ç¤ºå¯è§å¯¹è±¡çææç±»çåºç±»ã
源码缠论python源码UIObject æ·»å ç¨äºå¤çæ ·å¼åäºä»¶çæ¹æ³ãå®å¨å è½½åå¸è½½æ¶ï¼load å unloadï¼ãå¸å±æ´æ¹æ¶ï¼moveãresizeï¼ä»¥åéèææ¾ç¤ºæ¶ï¼hideå revealï¼ï¼é½ä¼å¨ç»å¶ï¼draw äºä»¶çæäº MovieClip.onEnterFrame äºä»¶ï¼ä¹åå°äºä»¶åéå°å®ç侦å¬å¨ã
源码缠论python源码UIObject å¦å¤æä¾åªè¯»åéæ¥ç¡®å®ç»ä»¶çä½ç½®å大å°ï¼widthãheightãxãyï¼ï¼å¹¶æä¾ move() å setSize() æ¹æ³æ¥æ¹å对象çä½ç½®å大å°ã
源码缠论python源码UIObject ç±»å®ç°ä»¥ä¸åè½ï¼
源码缠论python源码æ ·å¼
源码缠论python源码äºä»¶
源码缠论python源码æ缩æ¾æ¯ä¾è°æ´å¤§å°
源码缠论python源码äºè§£ UIComponent ç±»
源码缠论python源码UIComponent ç±»æ¯ UIObject çåç±»ï¼è¯·åé ç»ä»¶è¯è¨åèä¸çUIComponent ç±»ï¼ãå®æ¯å¤çç¨æ·äº¤äºï¼é¼ æ åé®çè¾å ¥ï¼çææç»ä»¶çåºç±»ãUIComponent ç±»å 许ç»ä»¶æ§è¡ä»¥ä¸æä½ï¼
源码缠论python源码æ¥æ¶ç¦ç¹åé®çè¾å ¥
源码缠论python源码å¯ç¨åç¦ç¨ç»ä»¶
源码缠论python源码æå¸å±è°æ´å¤§å°
源码缠论python源码å ³äºæ©å±å ¶å®ç¬¬ 2 çç±»
源码缠论python源码为äºè½å¤æ´æ¹ä¾¿å°æé ç»ä»¶ï¼å¯ä»¥æ©å±ä»»ä½ç±»çåç±»ï¼è¿æ ·ä¹å°±ä¸éè¦ç´æ¥æ©å± UIObject æ UIComponent ç±»ãå¦ææ©å±ä»»ä½å ¶å®ç¬¬ 2 çç»ä»¶ç±»ï¼Media ç»ä»¶é¤å¤ï¼ï¼é»è®¤æ åµä¸ä¹ä¼æ©å± UIObject å UIComponentãæ¨å¯ä»¥éè¿æ©å±ç»ä»¶åå ¸ä¸ååºçä»»ä½ç»ä»¶ç±»æ¥å建æ°ç»ä»¶ç±»ã
源码缠论python源码ä¾å¦ï¼å¦æè¦å建ä¸ä¸ªç»ä»¶ï¼å ¶è¡ä¸ºä¸ Button ç»ä»¶çè¡ä¸ºå ä¹ç¸åï¼å°±å¯ä»¥æ©å± Button ç±»ï¼èä¸å¿ ä»åºç±»éæ°å建 Button ç±»çææåè½ã
源码缠论python源码ä¸å¾æ¾ç¤ºäºç¬¬ 2 çç»ä»¶çå±æ¬¡ç»æï¼
源码缠论python源码æ¤æ件ç FlashPaper çæ¬å¯å¨ Flashå®è£ ç®å½ç以ä¸ä½ç½®æ¾å°ï¼Flash 8Samples and TutorialsSamplesComponentsarch_diagram.swfã
源码缠论python源码å ³äºæ©å± MovieClip ç±»
源码缠论python源码æ¨å¯ä»¥éæ©ä¸æ©å±ç¬¬ 2 çç±»ï¼è让ç»ä»¶ç´æ¥ç»§æ¿ ActionScript MovieClip ç±»ãä½æ¯ï¼å¦æéè¦ UIObject å UIComponent çä»»ä½åè½ï¼åå¿ é¡»äº²èªæ建ãæ¨å¯ä»¥æå¼ UIObject å UIComponent ç±» (First Run/Classes/mx/core) æ¥æ£æ¥å®ä»¬çæé æ¹å¼ã
源码缠论python源码å建ç»ä»¶å½±çåªè¾
源码缠论python源码è¥è¦å建ä¸ä¸ªç»ä»¶ï¼å¿ é¡»å建ä¸ä¸ªå½±çåªè¾å 件并å°å®é¾æ¥å°è¯¥ç»ä»¶çç±»æ件ã
源码缠论python源码å½±çåªè¾æ两个帧å两个å¾å±ã第ä¸ä¸ªå¾å±æ¯ Actions å¾å±ï¼å®ç第ä¸å¸§ä¸æä¸ä¸ª stop() å ¨å±å½æ°ã第äºä¸ªå¾å±æ¯ Assets å¾å±ï¼å®æä¸¤ä¸ªå ³é®å¸§ã第ä¸å¸§å å«ä¸ä¸ªè¾¹æ¡æå å½æç»å¾ççå ä½ç¬¦çä»»æå¾å½¢ã第äºå¸§å å«ææå ¶å®èµæºï¼å æ¬ç»ä»¶ä½¿ç¨çå¾å½¢ååºç±»ã
源码缠论python源码æå ¥æ°çå½±çåªè¾å 件
源码缠论python源码ææç»ä»¶é½æ¯ MovieClip 对象ãè¦å建æ°ç»ä»¶ï¼é¦å å¿ é¡»å°æ°å 件æå ¥æ°ç FLA æ件ä¸ã
源码缠论python源码æ·»å æ°ç»ä»¶å 件ï¼
源码缠论python源码å¨ Flash ä¸ï¼å建空ç½ç Flash ææ¡£ã
源码缠论python源码éæ©æå ¥>æ°å»ºå 件ã
源码缠论python源码æ¾ç¤ºå建æ°å 件对è¯æ¡ã
源码缠论python源码è¾å ¥å 件å称ã为ç»ä»¶å½åï¼æ¹æ³æ¯å°ç»ä»¶ä¸æ¯ä¸ªåè¯ç第ä¸ä¸ªåæ¯æ´æ¹ä¸ºå¤§ååæ¯ï¼ä¾å¦ MyComponentï¼ã
源码缠论python源码éæ©å½±çåªè¾è¡ä¸ºã
源码缠论python源码åå»é«çº§æé®æ¾ç¤ºé«çº§è®¾ç½®ã
源码缠论python源码éæ©ä¸º ActionScript 导åºï¼åæ¶éæ©å¨ç¬¬ä¸å¸§å¯¼åºã
源码缠论python源码è¾å ¥é¾æ¥æ è¯ç¬¦ã
源码缠论python源码å¨AS 2.0 ç±»ææ¬æ¡ä¸ï¼è¾å ¥ ActionScript 2.0 ç±»çå®å ¨éå®è·¯å¾ã
源码缠论python源码ç±»å称åºä¸æ¾ç¤ºå¨ç»ä»¶é¢æ¿ä¸çç»ä»¶å称ç¸åãä¾å¦ï¼Button ç»ä»¶ç类为 mx.controls.Buttonã
源码缠论python源码注æ
源码缠论python源码ä¸è¦å å«æ件æ©å±åï¼AS 2.0 ç±»ææ¬æ¡æåç±»çæå ä½ç½®ï¼èä¸æ¯è¯¥æ件çæ件系ç»å称ã
源码缠论python源码å¦æ ActionScriptæ件ä½äºå å ï¼å¿ é¡»å å«è¯¥å çå称ãæ¤å¼å¯ä»¥æ¯ç±»è·¯å¾çç¸å¯¹è·¯å¾ï¼ä¹å¯ä»¥æ¯å çç»å¯¹è·¯å¾ï¼ä¾å¦ mypackage.MyComponentï¼ã
源码缠论python源码大å¤æ°æ åµä¸ï¼åºåæ¶éä¸å¨ç¬¬ä¸å¸§å¯¼åºï¼é»è®¤éä¸è¯¥é项ï¼ãæå ³è¯¦ç»ä¿¡æ¯ï¼è¯·åé ç»ä»¶å¼åæ£æ¥å表ã
源码缠论python源码åå»ç¡®å®ã
源码缠论python源码Flash å°å 件添å å°åºä¸ï¼ç¶ååæ¢å°å 件ç¼è¾æ¨¡å¼ãå¨æ¤æ¨¡å¼ä¸ï¼å 件çå称æ¾ç¤ºäºèå°å·¦ä¸è§çä¸æ¹ï¼å¹¶ä¸æä¸ä¸ªåå线表æ该å 件ç注åç¹ã
源码缠论python源码æ¨ç°å¨å°±å¯ä»¥ç¼è¾è¯¥å 件以å建ä¸ä¸ªç»ä»¶ã请åé ç¼è¾å½±çåªè¾ã
源码缠论python源码ç¼è¾å½±çåªè¾
源码缠论python源码å¨å建æ°å ä»¶å¹¶ä¸ºå ¶å®ä¹é¾æ¥åï¼å³å¯å¨è¯¥å 件çæ¶é´è½´ä¸å®ä¹ç»ä»¶çèµæºã
源码缠论python源码ç»ä»¶çå 件åºæ两个å¾å±ãæ¬è说æåºè¯¥æå ¥åªäºå¾å±ï¼åºè¯¥å¨è¿äºå¾å±ä¸æ·»å åªäºå 容ã
源码缠论python源码è¥è¦ç¼è¾å½±çåªè¾ï¼è¯·æ§è¡ä»¥ä¸æä½ï¼
源码缠论python源码å°å¾å±1 éå½å为å¨ä½ï¼ç¶åéæ©ç¬¬ä¸å¸§ã
源码缠论python源码æå¼å¨ä½é¢æ¿ï¼ç¶åæ·»å stop() å½æ°ï¼å¦ä¸æç¤ºï¼ stop();
源码缠论python源码ä¸è¦åæ¤å¸§æ·»å ä»»ä½å¾å½¢èµæºã
源码缠论python源码æ·»å ä¸ä¸ªå为 Assets çå¾å±ã
源码缠论python源码å¨ Assetså¾å±ä¸ï¼éæ©ç¬¬äºå¸§å¹¶æå ¥ä¸ä¸ªç©ºç½å ³é®å¸§ã
源码缠论python源码ç°å¨è¯¥å¾å±ä¸æ两个空ç½å ³é®å¸§ã
源码缠论python源码请æ§è¡ä»¥ä¸æä½ä¹ä¸ï¼
源码缠论python源码·å¦æç»ä»¶å ·æå®ä¹è¾¹çåºåçå¯è§èµæºï¼åå°è¿äºå 件æå°ç¬¬ä¸å¸§ä¸å¹¶è¿è¡éå½å®æã
源码缠论python源码·å¦æç»ä»¶å¨è¿è¡æ¶åå»ºå ¶ææå¯è§èµæºï¼è¯·å°ä¸ä¸ª BoundingBox å 件æå°èå°ä¸ç¬¬ä¸å¸§ä¸ï¼éå½è°æ´å ¶å¤§å°ï¼ç¶åå°å®ä¾å½å为 boundingBox_mcã该å 件ä½äº Configuration/ComponentFLAæ件夹ä¸ç StandardComponents.fla çåºä¸ã
源码缠论python源码å¦æè¦æ©å±ç°æç»ä»¶ï¼è¯·å°è¯¥ç»ä»¶çä¸ä¸ªå®ä¾åä»»ä½å ¶å®åºç±»æ¾å¨ Assetså¾å±ç第äºå¸§ä¸ã
源码缠论python源码为æ¤ï¼è¯·ä»ç»ä»¶é¢æ¿ä¸éæ©è¯¥å 件并å°å®æå°èå°ä¸ãå¦æè¦æ©å±ä¸ä¸ªåºç±»ï¼è¯·æå¼ Configuration/ComponentFLA æ件夹ä¸ç StandardComponents.flaï¼ç¶åå°è¯¥ç±»ä»åºä¸æå°èå°ä¸ã
源码缠论python源码注æ
源码缠论python源码å° UIComponent æå°ç»ä»¶åºæ¶ï¼ä¼æ´æ¹åºä¸çæ件夹å±æ¬¡ç»æãå¦ææç®å次使ç¨åºï¼æå°å®ç¨äºå ¶å®ç»ä»¶ç»ï¼å¦ç¬¬ 2 çç»ä»¶ï¼ï¼åºéæ°ç»ç»æ件夹å±æ¬¡ç»æï¼ä»¥ä¾¿ä¸ StandardComponents.fla åºå¹é ï¼ä»è使åºç»ç»æåºï¼é¿å å 件éå¤ã
源码缠论python源码å¨ç»ä»¶ç Assetså¾å±ç第äºå¸§æ·»å ç±è¯¥ç»ä»¶ä½¿ç¨çææå¾å½¢èµæºã
源码缠论python源码ç»ä»¶æ使ç¨çä»»ä½èµæºï¼æ 论æ¯å ¶å®ç»ä»¶è¿æ¯ä½å¾ä¹ç±»çåªä½ï¼é½åºå ·æä¸ä¸ªæ¾ç½®å¨ Assets å¾å±ç第äºå¸§ä¸çå®ä¾ã
源码缠论python源码å®æçå 件çèµ·æ¥åºä¸ä¸å¾ç¸ä¼¼ï¼
源码缠论python源码å½±çåªè¾å ä»¶å¿ é¡»å¨ç»ä»¶å®ä¹å¯¹è¯æ¡ä¸é¾æ¥å° ActionScript ç±»æ件ãè¿æ¯ Flash äºè§£å¨ä½å¤æ¥æ¾ç»ä»¶å æ è®°çæ¹å¼ãï¼æå ³å æ è®°ç详ç»ä¿¡æ¯ï¼è¯·åé æ·»å ç»ä»¶å æ°æ®ãï¼æ¨ä¹å¯ä»¥å¨ç»ä»¶å®ä¹å¯¹è¯æ¡ä¸éæ©å ¶å®é项ã
源码缠论python源码å°å½±çåªè¾å®ä¹ä¸ºç»ä»¶ï¼
源码缠论python源码å¨åºä¸éæ©å½±çåªè¾ï¼ç¶åä»åºä¸ä¸æèåä¸éæ©ç»ä»¶å®ä¹ï¼Windowsï¼å³é®åå»ï¼Macï¼æä½ Control é®åå»ï¼ã
源码缠论python源码å¿ é¡»è¾å ¥ä¸ä¸ª AS 2.0 ç±»ã
源码缠论python源码å¦æ该类å¨å ä¸ï¼åè¾å ¥å®æ´çå å称ãå¦æéè¦ï¼å¯ä»¥å¨ç»ä»¶å®ä¹å¯¹è¯æ¡ä¸æå®å ¶å®é项ï¼
源码缠论python源码åå»å å· (+) æé®å¯å®ä¹åæ°ã
源码缠论python源码æ¤ä¸ºå¯éæä½ãæ好çåæ³æ¯å¨ç»ä»¶çç±»æ件ä¸ä½¿ç¨å æ°æ®Inspectable æ è®°æ¥æå®åæ°ãå¦ææªæå® ActionScript 2.0 ç±»ï¼åå¨è¿æ¯ä¸ä¸ªå¨ç»ä»¶æ£æ¥å¨ä¸ææ¾ç SWFæ件ãæ¨å¯ä»¥å°å®åµå ¥ç»ä»¶ FLAæ件ææµè§å°ä¸ä¸ªå¤é¨ SWFæ件ã
源码缠论python源码æå®å®æ¶é¢è§ã
源码缠论python源码è¿æ¯ä¸ä¸ªå¤é¨æåµå ¥ç SWFæ件ãæ¤å¤æ éæå®å®æ¶é¢è§ï¼å°ä¸ä¸ªè¾¹æ¡æ·»å å°ç»ä»¶å½±çåªè¾ï¼Flash å³ä¼ä¸ºæ¨å建å®æ¶é¢è§ã请åé å建ç»ä»¶å½±çåªè¾ã
源码缠论python源码è¾å ¥æè¿°ã
源码缠论python源码å¨ Flash MX ä¸ï¼ç±äºåèé¢æ¿å·²å é¤ï¼å æ¤ä¸å»ºè®®ä½¿ç¨æè¿°å段ãæä¾æ¤å段ç®çå¨äºä»¥ Flash MX æ ¼å¼ä¿å FLAæ件æ¶çååå ¼å®¹æ§ã
源码缠论python源码éæ©å¾æ ã
源码缠论python源码æ¤é项æå®ä¸ä¸ª PNGæ件æ¥ç¨ä½ç»ä»¶çå¾æ ãå¦æå¨ ActionScript 2.0 ç±»æ件ä¸æå® IconFileå æ°æ®æ è®°ï¼æä½³åæ³ï¼ï¼åä¼å¿½ç¥è¯¥å段ã
源码缠论python源码éæ©æåæ¶éæ©å®ä¾ä¸åæ°å·²éå®ã
源码缠论python源码å¦æåæ¶éæ©æ¤é项ï¼ç¨æ·åå¯ä»¥åæ¯ä¸ªç»ä»¶å®ä¾æ·»å ä¸åäºç»ä»¶åæ°çåæ°ãé常åºéæ©æ¤è®¾ç½®ãæ¤é项æä¾ä¸ Flash MX çååå ¼å®¹æ§ã
源码缠论python源码æå®æ¾ç¤ºå¨ç»ä»¶é¢æ¿ä¸çå·¥å ·æ示ã
源码缠论python源码å建 ActionScript ç±»æ件
源码缠论python源码ææç»ä»¶å 件é½é¾æ¥å° ActionScript 2.0 ç±»æ件ãï¼æå ³é¾æ¥çä¿¡æ¯ï¼è¯·åé å建ç»ä»¶å½±çåªè¾ãï¼
源码缠论python源码è¦ç¼è¾ ActionScript ç±»æ件ï¼æ¨å¯ä»¥ä½¿ç¨ Flashãä»»ä½ææ¬ç¼è¾å¨ï¼ä¹å¯ä»¥ä½¿ç¨ä»»ä½éæå¼åç¯å¢(IDE)ã
源码缠论python源码å¤é¨ ActionScript ç±»æ©å±å ¶å®ç±»ï¼æ 论该类æ¯ç¬¬ 2 çç»ä»¶ã第 2 çåºç±»è¿æ¯ ActionScript MovieClip ç±»ï¼ãæ¨åºæ©å±æå建çåè½ä¸è¦å建çç»ä»¶æ类似çç±»ãåªè½ä»ä¸ä¸ªç±»ç»§æ¿ï¼æ©å±ï¼ãActionScript 2.0 ä¸å 许å¤ç»§æ¿ã
源码缠论python源码æ¬èå å«ä»¥ä¸ä¸»é¢ï¼
源码缠论python源码ç»ä»¶ç±»æ件çç®å示ä¾
源码缠论python源码ç»ä»¶ç±»æ件æ¦è¿°
源码缠论python源码å®ä¹ç±»åå ¶è¶ ç±»
源码缠论python源码æ è¯ç±»ãå 件åææè å称
源码缠论python源码å®ä¹åé
源码缠论python源码ä½¿ç¨ getter/setter æ¹æ³å®ä¹åæ°
源码缠论python源码æ·»å ç»ä»¶å æ°æ®
源码缠论python源码å®ä¹ç»ä»¶åæ°
源码缠论python源码å ³äºæ ¸å¿å½æ°
源码缠论python源码åéäºä»¶
源码缠论python源码å ³äºæå®å¤è§
源码缠论python源码å ³äºæ ·å¼
源码缠论python源码ç»ä»¶ç±»æ件çç®å示ä¾
源码缠论python源码ä¸é¢æ¯ç±»æ件çä¸ä¸ªç®å示ä¾ï¼è¯¥ç±»æ件å为 <CITE style=BACKGROUND: none transparent scroll repeat 0% 0% class=highlight highlight=true>MyComponent</CITE>ãå¦æè¦å建æ¤ç»ä»¶ï¼åºå°è¯¥ç±»æ件é¾æ¥å° Flash ä¸çç»ä»¶å½±çåªè¾ã
源码缠论python源码æ¤ç¤ºä¾å å«ä» UIComponent 类继æ¿çç»ä»¶ MyComponent è³å°åºæçä¸ç»å¯¼å ¥ãæ¹æ³å声æãMyComponentsæ件ä¿åå¨ myPackage æ件夹ä¸ã
源码缠论python源码ãEvent(eventName)ã
源码缠论python源码// å¯¼å ¥å ã
源码缠论python源码import mx.core.UIObject;
源码缠论python源码// 声æ类并ä»ç¶ç±»æ©å±ã
源码缠论python源码classmypackage.MyComponent extends UIObject {
源码缠论python源码// æ è¯æ¤ç±»æç»å®å°çå 件å称ã
源码缠论python源码static var symbolName:String = mypackage.MyComponent;
源码缠论python源码// æ è¯å 件ææè çå®å ¨éå®å å称ã
源码缠论python源码static var symbolOwner:Object = Object(mypackage.MyComponent);
源码缠论python源码// æä¾className åéã
源码缠论python源码varclassName:String = MyComponent;
源码缠论python源码// å®ä¹ä¸ä¸ªç©ºæé å½æ°ã
源码缠论python源码function MyComponent() {
源码缠论python源码}
源码缠论python源码// è°ç¨ç¶çº§ç init() æ¹æ³ã
源码缠论python源码// éèè¾¹æ¡ï¼è¯¥è¾¹æ¡
源码缠论python源码// ä» å¨åä½æ¶ä½¿ç¨ã
源码缠论python源码function init():Void {
源码缠论python源码super.init();
源码缠论python源码boundingBox_mc.width = 0;
源码缠论python源码boundingBox_mc.height = 0;
源码缠论python源码boundingBox_mc.visible = false;
源码缠论python源码}
源码缠论python源码function createChildren():Void{
源码缠论python源码// è°ç¨ createClassObject æ¥å建å对象ã
源码缠论python源码size();
源码缠论python源码invalidate();
源码缠论python源码}
源码缠论python源码function size(){
源码缠论python源码// ç¼åå¤ç大å°ç代ç ã
源码缠论python源码super.size();
源码缠论python源码invalidate();
源码缠论python源码}
源码缠论python源码function draw(){
源码缠论python源码// ç¼åå¤çå¯è§å表示形å¼ç代ç ã
源码缠论python源码super.draw();
源码缠论python源码}
源码缠论python源码}
源码缠论python源码ç»ä»¶ç±»æ件æ¦è¿°
源码缠论python源码以ä¸æ¯ä»ç»å¦ä½ä¸ºç»ä»¶ç±»å建 ActionScriptæ件ç常è§è¿ç¨ãæ ¹æ®æå建ç»ä»¶ç±»åçä¸åï¼æäºæ¥éª¤æ¯å¯éæ¥éª¤ã
源码缠论python源码ç¼åç»ä»¶ç±»æ件
源码缠论python源码ï¼å¯éï¼å¯¼å ¥ç±»ãï¼è¯·åé å¯¼å ¥ç±»ï¼ã
源码缠论python源码æ§è¡è¿ä¸æ¥éª¤ï¼åæ éååºå ï¼ä¾å¦ï¼ä½¿ç¨ Button èä¸æ¯ mx.controls.Buttonï¼å³å¯å¼ç¨ç±»ã 使ç¨classå ³é®åå®ä¹ç±»ï¼ä½¿ç¨ extend å ³é®åæ©å±ç¶ç±»ãï¼è¯·åé å®ä¹ç±»åå ¶è¶ ç±»ï¼ã
源码缠论python源码å®ä¹ symbolNameãsymbolOwner åclassName åéãï¼è¯·åé æ è¯ç±»ãå 件åææè å称ï¼ã
源码缠论python源码åªæ第 2 çç»ä»¶æéè¦è¿äºåéã
源码缠论python源码å®ä¹æååéãï¼è¯·åé å®ä¹åéï¼ã
源码缠论python源码è¿äºåéå¯ç¨äº getter/setter æ¹æ³ã
源码缠论python源码å®ä¹ä¸ä¸ªæé å½æ°ãï¼è¯·åé å ³äºæé å½æ°ï¼ã
源码缠论python源码å®ä¹ init() æ¹æ³ãï¼è¯·åé å®ä¹ init() æ¹æ³ï¼ã
源码缠论python源码å¦æç±»æ©å±çæ¯ UIComponentï¼åå建类æ¶ä¼è°ç¨æ¤æ¹æ³ãå¦æç±»æ©å±çæ¯ MovieClipï¼åä»æé å½æ°è°ç¨æ¤æ¹æ³ã
源码缠论python源码å®ä¹ createChildren() æ¹æ³ãï¼è¯·åé å®ä¹ createChildren() æ¹æ³ï¼ã
源码缠论python源码å¦æç±»æ©å±çæ¯ UIComponentï¼åå建类æ¶ä¼è°ç¨æ¤æ¹æ³ãå¦æç±»æ©å±çæ¯ MovieClipï¼åä»æé å½æ°è°ç¨æ¤æ¹æ³ã
源码缠论python源码å®ä¹ size() æ¹æ³ãï¼è¯·åé å®ä¹ size() æ¹æ³ï¼ã
源码缠论python源码å¦æç±»æ©å±çæ¯ UIComponentï¼åè°æ´ç»ä»¶å¤§å°æ¶è°ç¨æ¤æ¹æ³ãæ¤å¤ï¼å¨åä½æ¶è°æ´ç»ä»¶çå®æ¶é¢è§å¤§å°æ¶ä¹ä¼è°ç¨æ¤æ¹æ³ã
源码缠论python源码å®ä¹ draw() æ¹æ³ãï¼è¯·åé å ³äºæ æï¼ã
源码缠论python源码å¦æç±»æ©å±çæ¯ UIComponentï¼åç»ä»¶æ ææ¶è°ç¨æ¤æ¹æ³ã
源码缠论python源码æ·»å ä¸ä¸ªå æ°æ®æ è®°å声æãï¼è¯·åé æ·»å ç»ä»¶å æ°æ®ï¼ã
源码缠论python源码æ·»å æ è®°å声æå¯ä½¿ getter/setter å±æ§æ¾ç¤ºå¨ Flash çå±æ§ æ¹æ³ãï¼è¯·åé ä½¿ç¨ getter/setter æ¹æ³å®ä¹åæ°ï¼ã
源码缠论python源码ï¼å¯éï¼ä¸ºç»ä»¶ä¸ä½¿ç¨çæ¯ä¸ªå¤è§å ç´ /é¾æ¥å建åéãï¼è¯·åé å ³äºæå®å¤è§ï¼ã
源码缠论python源码æ§è¡è¿ä¸æ¥éª¤ï¼ç¨æ·åå¯éè¿æ´æ¹ç»ä»¶ä¸çåæ°æ¥è®¾ç½®ä¸åçå¤è§å ç´ ã
源码缠论python源码å¨ç»ä»¶å ç»åç°æç»ä»¶
源码缠论python源码å¨æ¬èä¸ï¼æ¨å°æ建ä¸ä¸ªå¯ä»¥ç»å LabelãTextInput å Button ç»ä»¶çç®åç LogIn ç»ä»¶ãæ¬æç¨æ¼ç¤ºå¦ä½å¨æ°ç»ä»¶ä¸éè¿æ·»å æªç»ç¼è¯ç Flash (FLA) åºå 件æ¥ç»åç°æç»ä»¶ãå·²å®æçç»ä»¶æ件LogIn.flaãLogIn å LogIn.swf ä½äºç¡¬çä¸ç以ä¸ç¤ºä¾æ件夹ä¸ï¼
源码缠论python源码å¨ Windows ä¸ï¼the C:Program FilesMacromediaFlash 8Samples and TutorialsSamplesComponentsLogin folderã
源码缠论python源码å¨ Macintosh ä¸ï¼HD/Applications/Macromedia Flash 8/Samples and Tutorials/Samples/Components/Loginæ件夹ã
源码缠论python源码LogIn ç»ä»¶æä¾è¾å ¥å称åå¯ç ççé¢ãLogIn ç API æ两个å±æ§ name å passwordï¼ç¨æ¥è®¾ç½®åè·åå称åå¯ç TextInput å段ä¸çå符串å¼ãLogIn ç»ä»¶è¿å°å¨ç¨æ·åå»æ 记为LogInçæé®æ¶åéä¸ä¸ªclickäºä»¶ã
源码缠论python源码å建 LogIn Flash (FLA) æ件
源码缠论python源码LogIn ç±»æ件
源码缠论python源码æµè¯åå¯¼åº LogIn ç»ä»¶
源码缠论python源码导åºåååç»ä»¶
源码缠论python源码Flash å°ç»ä»¶å¯¼åºä¸ºç»ä»¶å ï¼SWC æ件ï¼ãç»ä»¶å¯ä»¥åå为 SWCæ件æ FLA æ件ãï¼æå ³å°ç»ä»¶ä½ä¸º FLA ååçä¿¡æ¯ï¼è¯·åé Macromedia DevNet ä¸çæç« ï¼
源码缠论python源码ååç»ä»¶çæ好æ¹æ³æ¯å°å®å¯¼åºä¸º SWCæ件ï¼è¿æ¯å 为 SWC æ件å å«å ¨é¨ ActionScriptãSWF æ件以å使ç¨ç»ä»¶æéçå ¶å®å¯éæ件ãå¦æè¦åæ¶å¼åæ个ç»ä»¶å使ç¨è¯¥ç»ä»¶çåºç¨ç¨åºï¼å SWCæ件ä¹ååæç¨ã
源码缠论python源码SWCæ件å¯ç¨äºååå¨ Macromedia Flash 8ãMacromedia Dreamweaver MX å Macromedia Director MX ä¸ä½¿ç¨çç»ä»¶ã
源码缠论python源码æ 论å¼åç»ä»¶çç®çæ¯ä¸ºäºä¾ä»äººä½¿ç¨è¿æ¯èªå·±ä½¿ç¨ï¼å¯¹ä½ä¸ºç»ä»¶å¼åçæ£å¨è¿è¡é¨åç SWCæ件è¿è¡æµè¯é½é常éè¦ãä¾å¦ï¼ç»ä»¶ç FLAæ件ä¸ä¸ä¼åºç°çé®é¢å¯è½ä¼å¨ SWC æ件ä¸åºç°ã
源码缠论python源码ç»ä»¶å¼åçæåä¸äºæ¥éª¤
源码缠论python源码ç»ä»¶å建å®æ并åå¤å¥½æå ä¹åï¼å³å¯æ·»å å¾æ åå·¥å ·æ示ãè¦ç¡®ä¿å·²å®æææå¿ éçæ¥éª¤ï¼è¯·åé ç»ä»¶å¼åæ£æ¥å表ã
源码缠论python源码æ¬èå å«ä»¥ä¸ä¸»é¢ï¼
源码缠论python源码· æ·»å å¾æ
源码缠论python源码· æ·»å å·¥å ·æ示
源码缠论python源码· ç»ä»¶å¼åæ£æ¥å表
源码缠论python源码æ·»å å¾æ
源码缠论python源码æ¨å¯ä»¥æ·»å å¨ Flash åä½ç¯å¢çç»ä»¶é¢æ¿ä¸è¡¨ç¤ºç»ä»¶çå¾æ ã æ·»å ç»ä»¶çå¾æ ï¼
源码缠论python源码· å建æ°å¾åã
源码缠论python源码å¾åå¿ é¡»ä¸º x åç´ ï¼å¹¶ä¸å¿ é¡»ä¿å为 PNG æ ¼å¼ãå®ç Alpha éæåº¦å¿ é¡»æ¯ 8 ä½ï¼å·¦ä¸è§çåç´ å¿ é¡»æ¯éæçï¼ä»¥æ¯æé®ç½©ã
源码缠论python源码· å¨ç»ä»¶ ActionScript ç±»æ件ä¸çç±»å®ä¹ä¹åæ·»å 以ä¸å®ä¹ï¼ ãIconFile(component_name.png)ã
源码缠论python源码· å°å¾åæ·»å å° FLAæ件æå¨çç®å½ãå¨å¯¼åº SWCæ件æ¶ï¼Flash å°å¨å½æ¡£çæ ¹çº§å å«è¯¥å¾åã
源码缠论python源码æ·»å å·¥å ·æ示
源码缠论python源码å½ç¨æ·å°é¼ æ æ»å° Flash åä½ç¯å¢ä¸ç»ä»¶é¢æ¿ä¸çç»ä»¶å称æå¾æ ä¸æ¶ï¼å·¥å ·æ示就ä¼æ¾ç¤ºåºæ¥ã
源码缠论python源码å¨ç»ä»¶å®ä¹å¯¹è¯æ¡ä¸å¯ä»¥å®ä¹å·¥å ·æ示ãå¯ä»¥ä»ç»ä»¶ FLA æ件çåºé项èå访é®æ¤å¯¹è¯æ¡ï¼Windowsï¼å³é®åå»ï¼Macï¼æä½ Control é®åå»ï¼ã
源码缠论python源码å¨ç»ä»¶å®ä¹å¯¹è¯æ¡ä¸æ·»å å·¥å ·æ示ï¼
源码缠论python源码å¨ Flash ä¸æå¼ç»ä»¶ç FLAæ件æ¶ï¼ç¡®ä¿åºå¯è§ï¼çªå£>åºèåï¼ã
源码缠论python源码åå»åºé项èåï¼Windowsï¼å³é®åå»ï¼Macï¼æä½ Control é®åå»ï¼ã
源码缠论python源码åºé项èåä½äºåºæ é¢æ çå³ä¾§ï¼æ¾ç¤ºä¸ºä¸ä¸ªä¸æ¡çº¿ååä¸ä¸è§å½¢çå¾æ ã
源码缠论python源码éæ©ç»ä»¶å®ä¹é项ã
源码缠论python源码å¨ç»ä»¶å®ä¹å¯¹è¯æ¡çé项ä¸ï¼éæ©æ¾ç¤ºå¨'ç»ä»¶'é¢æ¿ä¸ã
源码缠论python源码å·¥å ·æ示ææ¬æ¡å³ä¼å为å¯ç¼è¾ææ¬æ¡ã
源码缠论python源码å¨å·¥å ·æ示ææ¬æ¡ä¸è¾å ¥ç»ä»¶çå·¥å ·æ示ææ¬ã
源码缠论python源码åå»ç¡®å®ä»¥ä¿åæ´æ¹ã
源码缠论python源码源码缠论python源码