Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

flash²åÈëÒ³ÃæºóÔÚIEÏÂstageWidthΪ0µÄbug

ÓÃSWFObject£¬½«swfÎļþǶÈëÍøÒ³ºó£¬ÔÚIEä¯ÀÀÆ÷ÖÐÊ×´Îä¯ÀÀÕý³££¬Ë¢Ðºó£¬stageWidth¾ÍΪ0ÁË£¬swfÖлùÓÚstageWidth¶¨Î»µÄÔªËØ£¬¾Í»á´íÂÒ¡£
ת×Ô£¨ljhzzyx 2009-09-24 14:44:20£©
Ê×ÏÈÇø·ÖÒ»ÏÂstageµÄstageWidthºÍwidthÊôÐÔ¡£stage.stageWidthÊÇflash playerµÄ¿í¶È£¬stage.widthÊÇÖ¸stageÀïcontentµÄ¿í¶È£¬Èç¹ûÕâ¸öÎę̀(stage)ÀïʲôÄÚÈݶ¼Ã»ÓУ¬stage.width¾ÍÊÇ0¡£
        ÏÖÔÚµÄÐèÇóÊÇÔÚÔËÐÐÆÚ»ñµÃÎę̀µÄ¸ß¿í£¬ÒÔÆÚ±àÂëʵÏÖ½«×é¼þÌí¼Óµ½Îę̀ÖÐÑëµÈÕâÑùµÄЧ¹û¡£µ«ÊÇÎҵõ½µÄstageWidth ºÍ stageHeight ¶¼Îª0¡£
        ¶ÔÓÚij¸öÎÊÌ⣬ÀÏÍâµÄ½âÊÍ×ÜÊǺÜÏ꾡£ºhttp://hubflanger.com/stage-resize-and-the-stagewidth-and-stageheight-properties/
Turns out that when the stage is initialized, it's stageWidth and stageHeight properties are 0 until a Stage RESIZE event is triggered. This event is dispatched when the scaleMode property of the Stage object is set to StageScaleMode.NO_SCALE and the SWF file is resized ie. when the stage is rendered by the Flash Player. So if you need to add a display object onto the stage and its positioning is dependent on the stageWidth or stageHeight properties at runtime, it’s best handled by a listener that is subscribed to the Stage RESIZE event.
       ÔÚIEÖÐSWFÎļþµÄstageWidth ºÍ stageHeight ±»³õʼ»¯Îª0£¬ÔÙÑÓ³ÙÒ»¶Îʱ¼äºó»á¸üгÉÕýÈ·µÄÊýÖµ¡£ÔÚSWFÎļþ¸üÐÂstageWidth ºÍ stageHeightÊôÐÔʱ£¬»á´¥·¢stage¶ÔÏóµÄresizeʼþ¡£Òò´Ë£¬ ¿ÉÒÔ¸østageÌí¼Óresizeʼþ´¦ÀíÆ÷£¬½«È¡µÃstageWidth ºÍ stageHeightÖµ¼°ºóÐø¹¤×÷·ÅÔÚresize´¦Àíº¯ÊýÀï×ö£¬Ò»µ©stageWidth ºÍ stageHeightÖµ´óÓÚ0£¬Ôò½«´Ëresize¼àÌýÆ÷È¡Ïûµô¡£
Interestingly, despite universal claim that the Flash Player behaves exactly the same on all browsers, this problem only appears in a couple of browser/plugin configurations, namely FireFox/OSX and IE/Win. And strangely, on Safari and Firefox/Win, the RESIZE event is not even dispatched on page load, and neither does the Flash Player register the stageWidth and stageHeight properties as bein


Ïà¹ØÎĵµ£º

FlashСÍæÒâͼ°¸´´×÷£ºÐÂÔö¼ýÍ·£¬Ô²»·£¬³ÝÂÖ£¬ÁâÐÎ


Õâ¸ö¼ýÍ·µÄСͼ°¸¡£
Õâ¸öÖ»ÊÇÓÃÓÚ´´×÷µÄС¹¤¾ßͼÐΣ¬Õâ´ÎÔö¼ÓÁ˼ýÍ·£¬Ô²»·£¬ÁâÐΣ¬Óã¶ùµÈһЩÓÐȤµÄͼ°¸¡£
ʹÓÃÔ²»·µÄ´´×÷£º
³ÝÂÖͼ°¸£º
´´×÷
ʹÓÃÁâÐεĴ´×÷
ÐÂÔöÓã¶ù£ºÍ¼°¸
Demo ÔÚÕâÀ
 
ÓÐÐËȤ½øÐд´×÷µÄʱºòʹÓá£
ÕâЩÀà¿â½ö½öÓÃÓÚʵÑéµÄʱºò½øÐд´×÷¡£·á¸»Ò»Ð©As±¾ÉíһЩͼ°¸¡£ ......

Flash ÓëÐÔÄÜʵÑé±Ê¼Ç£º¶ÔÏó³Ø

  ½ñÌìÒ»¸öÏÂÎçÔÚºÍcivet_Dr.M.½øÐÐÌÖÂÛ£¬ÌÖÂۺܶà¹ØÓÚflash ÐÔÄÜ·½ÃæµÄÎÊÌ⣬ÕâЩÌÖÂÛÔÝʱ¿´²»µ½Ê²Ã´½á¹û£¬Ò²²»ÄÜ×ܽá³öÒ»Ì׺ÜÍêÕûµÄ·½°¸¡£²»¹ýflashºÍÄÚ´æÖ®¼äµÄʹÓÃÊÇÒ»¸öºÜÖØÒªÒéÌâ¡£ÆäÖÐÎÒÃÇÌÖÂÛÁËÒ»¸ö¶ÔÏó³ØµÄÎÊÌâ¡£ÔÚjavaµ±ÖÐÓÐÏ̳߳صĸÅÄÆäÖÐÔ­Àí¸ú¶ÔÏó³ØÊDz¶àµÄ¡£ÎÒÃÇÖªµÀµ±ÎÒÃÇ´´½¨¶ÔÏóʱºò£¬¾ÍÐèÒªÏ ......

[Flash]NAND Flash²úÉú»µ¿éÔ­Òò

gebi1218 ·¢±íÓÚ 2010-5-25 22:32:00ÓÉÓÚNAND FlashµÄ¹¤ÒÕ²»Äܱ£Ö¤NANDµÄMemory ArrayÔÚÆäÉúÃüÖÜÆÚÖб£³ÖÐÔÄܵĿɿ¿£¬Òò´Ë£¬ÔÚNANDµÄÉú²úÖм°Ê¹Óùý³ÌÖлá²úÉú»µ¿é¡£»µ¿éµÄÌØÐÔÊÇ£ºµ±±à³Ì/²Á³ýÕâ¸ö¿éʱ£¬²»Äܽ«Ä³Ð©Î»À­¸ß£¬Õâ»áÔì³ÉPage ProgramºÍBlock Erase²Ù×÷ʱµÄ´íÎó£¬ÏàÓ¦µØ·´Ó³µ½Status RegisterµÄÏàӦλ¡£×ÜÌåÉÏ£¬» ......

ÌýÓêBBSµÄflash¿çվ©¶´½â¾ö°ì·¨

¾­daquanÌáÐÑ£¬·¢ÏÖÌýÓê¶ÔÓÚÉÏ´«µÄflashÎļþµÄ½Å±¾Ã»Óд¦Àí£¬Óû§Äܹ»ÀûÓÃÉÏ´«µÄflashµÄ½Å±¾¹¦ÄÜ£¨±ÈÈç´øÓÐgeturl¶¯×÷µÄflash£©ÊµÏÖ×Ô¶¯Ìøתµ½Ä³¸öÕ¾µã¡£
µ½±±ÓÊÈËÂÛ̳²Î¿¼ÁËһϣ¬·¢ÏÖËûÃÇÓжÔflash½Å±¾µÄ½ûÓã¬ÓÚÊǽè¼ø±±ÓÊÈ˵Ä×ö·¨£¬¶ÔÌýÓêµÄflash¸½¼þ½Å±¾¶¯×÷½øÐÐÁË´¦Àí£¬¾ßÌå×ö·¨ÈçÏ£º
¸Ä¶¯Ö®Ç°µÄ´úÂ룺
<objec ......

̸̸Flash MMORPGµÄµØͼ¼¼Êõ

    ̸̸Flash MMORPGµÄµØͼ¼¼Êõ
 
    ÔÚ¿ª·¢»ùÓÚÍøÒ³µÄFlash MMORPGÓÎϷʱ£¬µØͼ¼¼ÊõÍùÍùÊÇ×îÏȱ»Ìá¼°µÄ¡£Íæ¼ÒµÄ´ó²¿·ÖÓÎϷʱ¼ä¶¼ÊÇÔÚµØͼÉ϶ȹýµÄ£¬ÈçºÎʵÏÖÃÀ¹Û¸ßЧµÄµØͼЧ¹û£¬ÊÇÿ¸ö¼¼ÊõÈËÔ±¶¼Í·ÌÛ¹ýµÄ¡£¶ÔÓÚÏÖÔÚµÄ2DÓÎÏ·À´Ëµ£¬Èç½ñµÄCPU/ÏÔ¿¨ºÍÄÚ´æÒѾ­×㹻ǿ¾¢ÁË£¬Òò´ËºÜÉÙÐè ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ