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
Ïà¹ØÎĵµ£º
P0werPointÖвåÈëFlash¶¯»µÄÁíÒ»ÖÖ·½·¨
PowerPointÒòÆäͨË×Ò×¶®¡¢ÈÝÒ×ÉÏÊÖ¶ø³ÉΪÀÏʦÃÇÖÆ×÷¿Î¼þµÄ³£Óù¤¾ß£¬¶øFlashÊÇĿǰ±È½ÏÁ÷Ðе͝»ÖÆ×÷Èí¼þ£¬ÓÐʱÔÚPowerPoint¿Î¼þÖÐΪÁ˸üÐÎÏóµØËµÃ÷ÎÊÌ⣬ϣÍû¿ÉÒÔ²åÈëFlash¶¯»¡£
¿´¹ý¡¶ÖйúµçÄÔ½ÌÓý±¨¡·ÒÔǰ¿¯µÇ¹ýÔÚPowerPointÖвåÈëFlash¶¯»µÄÎÄÕ£¬»ù±¾·½·¨ÊÇÑ¡Ôñ²Ëµ¥&ldquo ......
²Î¼Ó£ºhttp://gzxieyun.blog.163.com/blog/static/12122649200911237427572/
ÔÚPowerpoint 2007ÖвåÈë´Ëflash²¢ÔÚÈ«ÆÁʱʵʱÏÔʾ»òÕ߯äËü£º
1 ÔÚ»ÃµÆÆ¬ÖÐǶÈë.swf ¸ñʽFlash ¶¯»
1.1 ÔÚ¹¦ÄÜÇøÏÔʾ¿ª·¢¹¤¾ß
£¨1£©µ¥»÷″Microsoft Office °´Å¥″£¬È»ºóµ¥»÷″PowerPoint Ñ¡Ïî″£»£¨2£©µ¥»÷″³£Ó ......
1.´ò¿ª
http://labs.adobe.com/downloads/flashplayer10_64bit.html
ÏÂÔØ Flash Player 10 for 64-bit Linux
2.½âѹºó¸´ÖƵ½/usr/lib64/mozilla/plugins
mv libflashplayer.so /usr/lib64/mozilla/plugins/libflashplayer.so
3.ÖØÆôfirefox£¬¿ÉÒÔÐÞ¸ÄflashĬÈÏ×ÖÌå
vi /etc/fonts/conf.d/49-sansserif ......
gebi1218 ·¢±íÓÚ 2010-5-25 22:35:00NAND FlashµÄѰַ·½Ê½ºÍNAND FlashµÄmemory×éÖ¯·½Ê½½ôÃÜÏà¹Ø¡£NAND FlashµÄÊý¾ÝÊÇÒÔbitµÄ·½Ê½±£´æÔÚmemory cell£¬Ò»°ãÀ´Ëµ£¬Ò»¸öcellÖÐÖ»ÄÜ´æ´¢Ò»¸öbit¡£ÕâЩcellÒÔ8¸ö»òÕß16¸öΪµ¥Î»£¬Á¬³Ébit line£¬ÐγÉËùνµÄbyte(x8)/word(x16)£¬Õâ¾ÍÊÇNAND DeviceµÄλ¿í¡£ÕâЩLine»áÔÙ×é³ÉPage£¬Í¨³ ......
̸̸Flash MMORPGµÄµØÍ¼¼¼Êõ
ÔÚ¿ª·¢»ùÓÚÍøÒ³µÄFlash MMORPGÓÎϷʱ£¬µØÍ¼¼¼ÊõÍùÍùÊÇ×îÏȱ»Ìá¼°µÄ¡£Íæ¼ÒµÄ´ó²¿·ÖÓÎϷʱ¼ä¶¼ÊÇÔÚµØÍ¼É϶ȹýµÄ£¬ÈçºÎʵÏÖÃÀ¹Û¸ßЧµÄµØÍ¼Ð§¹û£¬ÊÇÿ¸ö¼¼ÊõÈËÔ±¶¼Í·ÌÛ¹ýµÄ¡£¶ÔÓÚÏÖÔÚµÄ2DÓÎÏ·À´Ëµ£¬Èç½ñµÄCPU/ÏÔ¿¨ºÍÄÚ´æÒѾ×㹻ǿ¾¢ÁË£¬Òò´ËºÜÉÙÐè ......