Ñо¿FlashǶÈëÓÎÏ·ÖеĿÉÐÐÐÔ.......
äÖȾÎÊÌâÒѽâ¾ö
ʼþÏìÓ¦Òѽâ¾ö
ÏÂÃæÊÇC++ÓëFlash ASµÄ½»»¥, ÒÔMFCΪÀý:
1. н¨Ò»¸öMFC Dialog³ÌÐò
2. Ìí¼ÓÒ»¸öFlash¿Ø¼þ
3. °ÑFlash¿Ø¼þÌí¼ÓÒ»¸ö±äÁ¿
4. ÔÚOnInitDialog()ÖÐÌí¼ÓÔØ.swfÎļþ
// CCppFlashDlg ÏûÏ¢´¦Àí³ÌÐò
BOOL CCppFlashDlg::OnInitDialog()
{
CDialog::OnInitDialog();
// ÉèÖô˶Ի°¿òµÄͼ±ê¡£µ±Ó¦ÓóÌÐòÖ÷´°¿Ú²»ÊǶԻ°¿òʱ£¬¿ò¼Ü½«×Ô¶¯
// Ö´Ðд˲Ù×÷
SetIcon(m_hIcon, TRUE); // ÉèÖôóͼ±ê
SetIcon(m_hIcon, FALSE); // ÉèÖÃСͼ±ê
// TODO: ÔÚ´ËÌí¼Ó¶îÍâµÄ³õʼ»¯´úÂë
this->flashUI.LoadMovie(0, "C:\\Documents and Settings\\Administrator\\My Documents\\My Flash\\HelloWorld.swf");
return TRUE; // ³ý·Ç½«½¹µãÉèÖõ½¿Ø¼þ£¬·ñÔò·µ»Ø TRUE
}
5. ÖÆ×÷Ò»¸öflash, ·ÅÒ»¸öButtonÉÏÈ¥, µ¼³öһϾͿÉÒÔÔÚMFCÖп´µ½ÁË
void CCppFlashDlg::FSCommandShockwaveflash1(LPCTSTR command, LPCTSTR args)
{
// TODO: Add your message handler code here
if (0 == strcmp("MsgBox", com ......
objectǶÈë¶ÔÏóÖ®Flash²¥·ÅÆ÷
object±ê¼Ç¶¨ÒåÒ»¸öǶÈëµÄ¶ÔÏó¡£ÇëʹÓôËÔªËØÏòÄúµÄ XHTML Ò³ÃæÌí¼Ó¶àýÌå¡£´ËÔªËØÔËÐÐÄú¹æ¶¨²åÈë HTML ÎĵµÖеĶÔÏóµÄÊý¾ÝºÍ²ÎÊý£¬ÒÔ¼°¿ÉÓÃÀ´ÏÔʾºÍ²Ù×÷Êý¾ÝµÄ´úÂë¡£Òò´Ëobject±ê¼Ç¿ÉÒÔÓÃÀ´ÏÔʾflash¶¯»¡£object±ê¼ÇÖ»ÊÊÓÃÓÚIEÄں˵Ää¯ÀÀÆ÷,¶ÔÓÚ·ÇIEÄں˵Ää¯ÀÀÆ÷¿ÉÓÃÇ°ÃæѧϰµÄembed¶àýÌå²å¼þ²åÈ붯»¡£object ÔªËØ¿ÉλÓÚÔÚ head ÔªËØ»ò body ÔªËØÄÚ²¿¡£<object> Óë </object> Ö®¼äµÄÎı¾ÊÇÌæ»»Îı¾£¬Õë¶Ô²»Ö§³Ö´Ë±êÇ©µÄä¯ÀÀÆ÷¡£<param> ±êÇ©¿É¶¨ÒåÓÃÓÚ¶ÔÏóµÄ run-time ÉèÖᣠobject±ê¼ÇµÄÖ÷ÒªÊôÐÔÓÐ:
ÊôÐÔ
½âÊÍ
align
¶¨ÒåΧÈƸöÔÏóµÄÎı¾¶ÔÆ뷽ʽ£¬¿ÉÈ¡Öµleft right top bottom¡£
archive
Ò»¸ö¿Õ¸ñ·Ö¸ôµÄÖ¸Ïòµµ°¸ÎļþµÄ URL ÁÐ±í¡£ÕâЩµµ°¸Îļþ°üº¬ÁËÓë¶ÔÏóÏà¹ØµÄ×ÊÔ´¡£
border
¶¨Òå¶ÔÏóÖÜΧµÄ±ß¿ò¡£
classid
¶¨ÒåǶÈë Windows Registry Öлòij¸ö URL ÖеÄÀàµÄ ID Öµ£¬´ËÊôÐÔ¿ÉÓÃÀ´Ö¸¶¨ä¯ÀÀÆ÷Öаüº¬µÄ¶ÔÏóµÄλÖá£
prebase
¶¨ÒåÔںδ¦¿ÉÕÒµ½¶ÔÏóËùÐèµÄ´úÂ룬Ìṩһ¸ö»ù×¼ URL¡£
data
¶¨ÒåÒýÓöÔÏóÊý¾ÝµÄ URL¡£Èç¹ûÓÐÐèÒª¶ÔÏó´¦ÀíµÄÊý¾ÝÎļþ,ÒªÓà data ÊôÐÔÀ´Ö¸¶¨ÕâЩÊý¾ÝÎļþ¡£
declare
¿É¶¨Òå´Ë¶ÔÏó½ ......
ÔÚLinuxÏÂÓÃFirefoxä¯ÀÀÓÐFlashµÄÍøҳʱ£¬¾³£Åöµ½ÓÐЩÎÄ×Ö²»ÄÜÕý³£ÏÔʾ£¬ÓÐЩ»¹¿ÉÄÜÏÔʾÂÒÂ룬±ÈÈçGoogle µÄÔÚÏßÒôÀÖ
²¥·ÅÒôÀÖʱ£¬ÍêÈ«ÏÔʾ²»ÁËÎÄ×Ö¡£
½â¾ö·½·¨ºÜ¼òµ¥£¬²Ù×÷ÈçÏ£º
ÐÞ¸Ä/etc/fonts/conf.d/49-sansserif.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
If the font still has no generic name, add sans-serif
-->
<match target="pattern">
<test qual="all" name="family" compare="not_eq">
<string>sans-serif</string>
</test>
<test qual="all" name="family" compare="not_eq">
<string>serif</string>
</test>
<test qual="all" name="family" compare="not_eq">
<string>monospace</string>
</test>
<edit name="family" mode="append_last">
<stri ......
[FLASH]
as3.0Ïà¶ÔÓÚas2.0µÄÒ³ÃæÊý¾Ý²»Í¬µÄ´«µÝ·½Ê½
´ó¼Ò¶¼ÖªµÀflashÌṩÁËÒ»¸öºÜºÃµÄFlashVars²ÎÊý£¬¾ÍÊÇͨ¹ýËû¿ÉÒÔ´«µÝ²ÎÊý¸øflash£¬È»ºóflashÔÚ½øÐвÙ×÷£¬
¾ßÌåÓ÷¨ÊÇ:<param name="FlashVars" value="p1=value" />
ÕâÑù¾ÍÖ±½Ó¿ÉÒÔÔÙflashÀïµ÷Óà p1 Õâ¸ö²ÎÊýµÄÖµ value ÁË£»
as2.0Àï¿ÉÒÔÖ±½Óµ÷ÓÃÀýÈ磺ÄãÉèÖÃÁËÒ»¸öÃûΪ mytext µÄÎı¾¿òÄÇôÄã¾Í¿ÉÒÔµ÷ÓÃΪ
mytext.text = p1;
ÕâÑù¾Í´«µÝ½øÀ´ÁË¡£
µ«ÊÇas3.0¾Í²»Í¬ÁË
µ÷ÓøñʽΪ mytext.text = root.loaderInfo.parameters.p1;
ÒòΪÔÚas2ÖÐÕâЩ±äÁ¿»á±»¼òµ¥µÄÉùÃ÷µ½_rootÉÏ£¬µ«ÔÚas3ÖÐÓÐËù¸Ä±ä¡£ÏÖÔÚÕâЩ±äÁ¿±»·Åµ½ÁËrootϵÄparameters¶ÔÏóÏÂ
ÔÚAS3ÖÐFlash Ҫͨ¹ý£ºroot.loaderInfo.parameters // »ò stage.loaderInfo.parametersÀ´È¡µÃ´«µÝµÄ²ÎÊý
ÔÚFlex 2ÖÐͨ¹ý£ºApplication.application.parametersÀ´È¡µÃ´«µÝµÄ²ÎÊý¡£
Ï£Íû¶Ô´ó¼ÒÓÐÓã¡ ......
½áºÏÀíÂÛºÍʵ¼ÊÓ¦Ó㬶ÔRAM¡¢ROM¡¢FlashµÄ×öÒÔÇø±ð£¬ÈôÓò»µ±Ö®´¦ÇëÌá³ö
RAM(Random Access Memory)
È«ÃûΪËæ»ú´æÈ¡¼ÇÒäÌ壬ËüÏ൱ÓÚPC»úÉϵÄÒƶ¯´æ´¢£¬ÓÃÀ´´æ´¢ºÍ±£´æÊý¾ÝµÄ¡£ËüÔÚÈκÎʱºò¶¼¿ÉÒÔ¶Áд£¬RAMͨ³£ÊÇ×÷Ϊ²Ù×÷ϵͳ»òÆäËûÕýÔÚÔËÐгÌÐòµÄÁÙʱ´æ´¢½éÖÊ(ÄÚ´æ)¡£µ±µçÔ´¹Ø±ÕʱRAM²»Äܱ£ÁôÊý¾Ý¡£
RAMÓÐSRAM¡¢DRAMÁ½´óÀà
SRAM£¨Static RAM/SRAM£©£¬
¾²Ì¬RAM£¬SRAMËٶȷdz£¿ì£¬ÊÇÄ¿Ç°¶Áд×î¿ìµÄ´æ´¢É豸ÁË£¬µ«ÊÇËüÒ²·Ç³£°º¹ó£¬ËùÒÔÖ»ÔÚÒª
ÇóºÜ¿Á¿ÌµÄµØ·½Ê¹Óã¬Æ©ÈçCPUµÄÒ»¼¶»º³å£¬ ¶þ¼¶»º³å¡£
DRAM£¨Dynamic RAM/DRAM£©£¬
DRAM±£ÁôÊý¾ÝµÄʱ¼äºÜ¶Ì£¬ËÙ¶ÈÒ²±ÈSRAMÂý£¬²»¹ýËü»¹ÊDZÈÈκεÄROM¶¼Òª¿ì£¬µ«´Ó¼Û¸ñÉÏ
À´ËµDRAMÏà±ÈSRAMÒª±ãÒ˺ܶ࣬¼ÆËã»úÄÚ´æ¾ÍÊÇDRAMµÄ¡£DRAM·ÖΪºÜ¶àÖÖ£¬³£¼ûµÄÖ÷ÒªÓÐ
FPRAM/FastPage¡¢EDORAM¡¢SDRAM¡¢DDR RAM¡¢RDRAM¡¢SGRAMÒÔ¼°WRAMµÈ£¬ÕâÀï
&nbs ......
NAND Flash µÄÊý¾ÝÊÇÒÔbit µÄ·½Ê½±£´æÔÚmemory cell£¬Ò»°ãÀ´Ëµ£¬Ò»¸öcell ÖÐÖ»ÄÜ´æ´¢Ò»¸öbit¡£ÕâЩcell ÒÔ8 ¸ö»òÕß16 ¸öΪµ¥Î»£¬Á¬³Ébit line£¬ÐγÉËùνµÄbyte(x8)/word(x16)£¬Õâ¾ÍÊÇNAND Device µÄλ¿í¡£ÕâЩLine »áÔÙ×é³ÉPage.
(Nand Flash ÓжàÖֽṹ£¬ÎÒʹÓõÄNand Flash ÊÇK9F1208,ÏÂÃæÄÚÈÝÕë¶ÔÈýÐǵÄK9F1208U0M)£¬Ã¿Ò³528Byte£¬Ã¿32 ¸öpage ÐγÉÒ»¸öBlock£¬ Sizeof(block)=16kByte ¡£
1 block="16kbyte"£¬512Mbit=64Mbyte£¬Numberof(block)=4096 1block=32page, 1page=528byte=512byte(Main Area)+16byte(Spare Area)
Nand flash ÒÔҳΪµ¥Î»¶ÁдÊý¾Ý£¬¶øÒÔ¿éΪµ¥Î»²Á³ýÊý¾Ý¡£
°´ÕÕÕâÑùµÄ×éÖ¯·½Ê½¿ÉÒÔÐγÉËùνµÄÈýÀàµØÖ·£º
--Block Address -- Page Address --Column Address
¶ÔÓÚNAND Flash À´½²£¬µØÖ·ºÍÃüÁîÖ»ÄÜÔÚI/O[7:0]ÉÏ´«µÝ£¬Êý¾Ý¿í¶ÈÊÇ8 λ¡£
512byteÐèÒª9bitÀ´±íʾ£¬¶ÔÓÚ528byteϵÁеÄNAND£¬Õâ512byte±»·Ö³É1st halfºÍ2nd half,¸÷×ԵķÃÎÊÓɵØÖ·Ö¸ÕëÃüÁîÀ´Ñ¡Ôñ£¬A[7:0]¾ÍÊÇËùνµÄcolumn address¡£
32 ¸öpage ÐèÒª5bit À´±íʾ£¬Õ¼ÓÃA[13:9]£¬¼´¸Ãpage ÔÚ¿éÄÚµÄÏà¶ÔµØÖ·¡£BlockµÄµØÖ·ÊÇÓÉA14 ÒÔÉϵÄbit À´±íʾ£¬ÀýÈç512Mb µÄNAND£¬¹²4096block£ ......