Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : flash

VBÏÔʾ͸Ã÷FLASHЧ¹û

VBÏÔʾ͸Ã÷FLASHЧ¹û
  ÑÝʾЧ¹û£º
 
    ´úÂëÈçÏ£º
¹«¹²ÉùÃ÷ÇøÓò
Option Explicit
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
Const WS_EX_LAYERED = &H80000
Const GWL_EXSTYLE = (-20)
Const LWA_COLORKEY = &H1
Dim rtn&
Private Sub Form_Load()
    ShockwaveFlash1.BackgroundColor = RGB(255, 255, 255)
    rtn = GetWindowLong(hwnd, GWL_EXSTYLE)
    rtn = rtn Or WS_EX_LAYERED
    SetWindowLong hwnd, GWL_EXSTYLE, rtn
    SetLayeredWindowAttributes hwnd, RGB(255, 255, 255), 0, LWA_COLO ......

VBÏÔʾ͸Ã÷FLASHЧ¹û

VBÏÔʾ͸Ã÷FLASHЧ¹û
  ÑÝʾЧ¹û£º
 
    ´úÂëÈçÏ£º
¹«¹²ÉùÃ÷ÇøÓò
Option Explicit
Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Private Declare Function SetLayeredWindowAttributes Lib "user32" (ByVal hwnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long
Const WS_EX_LAYERED = &H80000
Const GWL_EXSTYLE = (-20)
Const LWA_COLORKEY = &H1
Dim rtn&
Private Sub Form_Load()
    ShockwaveFlash1.BackgroundColor = RGB(255, 255, 255)
    rtn = GetWindowLong(hwnd, GWL_EXSTYLE)
    rtn = rtn Or WS_EX_LAYERED
    SetWindowLong hwnd, GWL_EXSTYLE, rtn
    SetLayeredWindowAttributes hwnd, RGB(255, 255, 255), 0, LWA_COLO ......

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

    ̸̸Flash MMORPGµÄµØͼ¼¼Êõ
 
    ÔÚ¿ª·¢»ùÓÚÍøÒ³µÄFlash MMORPGÓÎϷʱ£¬µØͼ¼¼ÊõÍùÍùÊÇ×îÏȱ»Ìá¼°µÄ¡£Íæ¼ÒµÄ´ó²¿·ÖÓÎϷʱ¼ä¶¼ÊÇÔÚµØͼÉ϶ȹýµÄ£¬ÈçºÎʵÏÖÃÀ¹Û¸ßЧµÄµØͼЧ¹û£¬ÊÇÿ¸ö¼¼ÊõÈËÔ±¶¼Í·ÌÛ¹ýµÄ¡£¶ÔÓÚÏÖÔÚµÄ2DÓÎÏ·À´Ëµ£¬Èç½ñµÄCPU/ÏÔ¿¨ºÍÄÚ´æÒѾ­×㹻ǿ¾¢ÁË£¬Òò´ËºÜÉÙÐèÒª¿¼ÂÇÕâЩ£¬µ«ÊǶÔÓÚFlashÀ´Ëµ£¬ÓÈÆäÊÇ»ùÓÚÍøÒ³µÄFlash£¬CPU/ÏÔ¿¨µÄ¿ìÂý£¬ÄÚ´æÕ¼ÓõĴóС£¬ÍøÂç´ø¿íµÄ´óС£¬¶¼ÊÇÔÚÉè¼ÆµØͼ¼¼ÊõʱҪ¿¼Âǵġ£
ÕâÀï±È½Ï·ÖÎöһϡ¶ÌìÊéÆæ̸¡·£¬¡¶À¥ÂØ¡·£¬¡¶ÀÖÍÁ¡·£¬¡¶Ä§Á¦Ñ§Ì᷵ĵØͼ¼¼ÊõµÄÓÅÁÓ¡£
¡¶ÌìÊé¡·µÄµØͼ¼ÓÔØÊÇÒ»ÖÖ²ÉÓÃÁËʵʱÁ÷»¯¼¼ÊõµÄ¼ÓÔØ·½Ê½¡£¡¶ÌìÊé¡·ÖеĵØͼ¿ÉÒÔ·ÖΪСµØͼ£¬Êµ¼ÊµØͼ£¬Â·µã¡£Æô¶¯µÄʱºò£¬ÓÅÏȼÓÔØСµØͼ£»ÔËÐÐÖУ¬Ëæ׎ÇÉ«µÄÐÐ×ߣ¬ÏÈʹÓÃСµØͼ»Ó×ÅÂíÈü¿ËЧ¹û£¬ÔÙʵʱ¼ÓÔØʵ¼ÊµÄµØͼ¿é¡£ÕâÖÖ×ö·¨µÄÓŵ㣺µØͼÃÀ¹Û£¬ÒòΪµØͼÊÇÍêÈ«ÊÖ»æµÄ£¬½Ó½üÓÚÖ÷Á÷2DÓÎÏ·µÄЧ¹û£¬±ÈÈçÐÛΰµÄ¸ßɽ£¬×³ÀöµÄ¹¬µî£¬¸÷ÖÖÆð·üµÄ·¾¶£»Çл»µØͼѸËÙ£¬ÒòΪÇл»Ê±²»ÐèÒª¼ÓÔصØͼ£»ÄÚ´æÕ¼ÓñȽÏÉÙ£¬ÒòΪµØͼֻÓÐÒ»²ã£»CPUÕ¼ÓÃÒ²±È½ÏÉÙ£¬ÒòΪµØͼֻÓÐÒ»²ã£¬²»ÐèÒª¿¼ÂÇÈ˺ͱ³¾°Ö®¼äµÄÕÚµ²¹Øϵ£¬ÖØ»æ×ÜÃæ»ýÉÙ¡£È±µã¾ ......

ÔÚflash builderµÄ´¿actionscript¹¤³ÌÖе¼Èëflex×é¼þ

flashbuilderÖпÉÒÔ½¨Á¢flex¹¤³ÌÓëactionscript¹¤³Ì.
flex¹¤³ÌÄÚ¿ÉÒÔʹÓÃmxmlÊÇÍê³ÉÉè¼Æ¹¤×÷.
actionscript¹¤³Ì½¨Á¢Ê±Ä¬ÈÏÖ»ÓÐ:
playerglobal.swc
flex.swc
utilities.sec
playerglobal.swc
Õ⼸¸öÀà¿â.ûÓÐframework.swc,¾ÍÎÞ·¨Ê¹ÓÃButtonµÈ¿Ø¼þÁË.
½â¾ö·½°¸ÊÇ actionscript¹¤³ÌÖмÓÈëframework.swc.
·¾¶ÊÇ x:/Adobe/Flash Builder/sdks/4.0.0/frameworks/libs/framework.swc
Ö®ºó»¹µÃ¼ÓÈëÒ»¸ö framework_rb.swc
·¾¶ÊÇ x:/Adobe/Flash Builder/sdks/4.0.0/frameworks/locale/en_US/automation_rb.swc
Ö®ºó¾Í¿ÉÒÔÕý³£±àÒëÁË ......

ÔÚflash builderµÄ´¿actionscript¹¤³ÌÖе¼Èëflex×é¼þ

flashbuilderÖпÉÒÔ½¨Á¢flex¹¤³ÌÓëactionscript¹¤³Ì.
flex¹¤³ÌÄÚ¿ÉÒÔʹÓÃmxmlÊÇÍê³ÉÉè¼Æ¹¤×÷.
actionscript¹¤³Ì½¨Á¢Ê±Ä¬ÈÏÖ»ÓÐ:
playerglobal.swc
flex.swc
utilities.sec
playerglobal.swc
Õ⼸¸öÀà¿â.ûÓÐframework.swc,¾ÍÎÞ·¨Ê¹ÓÃButtonµÈ¿Ø¼þÁË.
½â¾ö·½°¸ÊÇ actionscript¹¤³ÌÖмÓÈëframework.swc.
·¾¶ÊÇ x:/Adobe/Flash Builder/sdks/4.0.0/frameworks/libs/framework.swc
Ö®ºó»¹µÃ¼ÓÈëÒ»¸ö framework_rb.swc
·¾¶ÊÇ x:/Adobe/Flash Builder/sdks/4.0.0/frameworks/locale/en_US/automation_rb.swc
Ö®ºó¾Í¿ÉÒÔÕý³£±àÒëÁË ......

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 ......

½ñÈÕ²éflash¼ÓÔØÓÎϷÿһ²½Óû§µÄÁ÷ʧ


ÅÂÄÄÌìÔÙÓõ½£¬Ê¡µÄÔÙÖØÐÂд£º
#!/bin/sh
save_path=$1
log_path="/usr/local/nginx/logs/null.log"
_from=`head $log_path -n1 |awk '{print $4}'|awk -F"[" '{print $2}'|grep -oE "[A-Za-z0-9:]+"`
_end=`tail $log_path -n1 |awk '{print $4}'|awk -F"[" '{print $2}'|grep -oE "[A-Za-z0-9:]+"`
from=`echo $_from|replace " " "_"`
end=`echo $_end|replace " " "_"`
cat $log_path |grep "fram"|awk -F"&" '{print $2"-"$3}'|awk -F"=" '{print $2"-"$3}'|awk -F"-p-" '{print $1"\t"$2}' > farm$from"_to_"$end$save_path
awk -f check_init.awk farm$from"_to_"$end$save_path|sort -k +1 > "farm_"$from"_to_"$end$save_path"_detail"
cat "farm_"$from"_to_"$end$save_path"_detail"|awk '{print $1}'|uniq -c|awk '($1<5){print}' > "farm_"$from"_to_"$end$save_path"_sort"
cat farm$from"_to_"$end$save_path|sort|awk '{print $1}'|uniq -c|awk '($1<4){print $0}' > farm$from"_to_"$end"_uniq_"$save_path
awk 'NR==FNR{a[$2]}NR>FNR{if($1 in a){print $0}}' "farm_"$from"_to_"$end$save_path"_sort" "farm_"$fro ......

½â¾ödiv±»flashÕÚµ²ÎÊÌâ


ºÜ¶àʱºò£¬µ±ÄãÓÐÒ»¸ö²ãÊÇÐèҪƯ¸¡ÔÚÒ³ÃæÖ®ÉÏÏÔʾµÄʱºò£¬¶øÄãµÄÒ³ÃæÀïÓÖ´æÔÚFLASH£¬Õâ¸öʱºò£¬Æ¯¸¡²ã»á±»FLASHÕÚµ²×¡£¬ÄÇô½â¾ö°ì·¨¾ÍÊǸøFLASHÉèÖÃ͸Ã÷ÊôÐÔ¡£
Ìí¼Ó²ÎÊý<param name="wmode"
value="transparent"> 
//¿ÉºÜºÃµÄ±»IEä¯ÀÀÆ÷ËùÖ§³Ö
½« wmode="transparent"
¼ÓÈëµ½<embed>±êÇ©ÄÚ 
//¿ÉºÜºÃµÄ±»FireFoxµÈä¯ÀÀÆ÷ËùÖ§³Ö
ʾÀý£º
<noscript>
  <object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0
"
width="744" height="60">
   
<param name="movie"
value="Templates/default/images/02.swf" />
   
<param name="quality" value="high"
/>
    <param name="wmode" value="transparent"
/>
   
<embed src="Templates/default/images/02.swf"
q ......
×ܼǼÊý:497; ×ÜÒ³Êý:83; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [1] [2] [3] 4 [5] [6] [7] [8] [9] [10]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ