1.ããããããµã³ãã«ã®Flashããã¦ã³ãã¼ããã¦ãã ããã ãªã»ãã(ã¤ã³ã¹ã¿ã³ã¹ãresetButtonã)ã¨ã¹ã¿ã¼ã/ã¹ããã(ã¤ã³ã¹ã¿ã³ã¹ãstartButtonã)ã®æ©è½ãæããããã¿ã³ãäºã¤ãæéã®è¨æ¸¬ãè¡ãããã¹ãããã¯ã¹(ã¤ã³ã¹ã¿ã³ã¹ãtimeã)ãä¸ã¤ããã¾ããä»åã¯ãã¬ã¼ã ã«æ¸ããActionScriptãããã¿ã³ã« 2.ãã¬ã¤ã¤ã¼ãactionãã®1ãã¬ã¼ã ç®ã«ä»¥ä¸ã®Actionscriptãè¨è¿°ãã¾ãã time.text = "00:00:00"; startFlag = false; firstFlag = false; nowTime = 0 startTime = 0; dispBaseTime = 0; function displayUpdate(){ _root.nowTime = getTimer(); _root.dispBaseTime = _
ä¸å®æéå»ã¿ã§ç¹°ãè¿ã ã¢ãã¡ã¼ã·ã§ã³ãè¡ãã¨ãã£ãå ´åã«ã¯ãonEnterFrameã¤ãã³ããã³ãã©ãå©ç¨ãã¦ç¹°ãè¿ãã®å¦çãå®è¡ããã®ãä¸è¬çãªæ¹æ³ã§ããããããç¹°ãè¿ãã®å¦çã¯å¿ ãonEnterFrameã¤ãã³ããã³ãã©ããå¼ã³åºããªããã°ãªããªãã¨ãããã¹ã¯ãªãããæ¸ãããã§çª®å±ã§ããã¾ããonEnterFrameã¤ãã³ããã³ãã©ã§ã¯å¦çã®ã¿ã¤ãã³ã°ãã ã¼ãã¼ã¯ãªããã®ãã¬ã¼ã ã¬ã¼ãã«å·¦å³ããã¦ãã¾ãã¨ããä¸é½åãããã¾ãã setInterval()é¢æ°ã使ãã°onEnterFrameã¤ãã³ããã³ãã©ã使ããã«ç¹°ãè¿ãã®å¦çãè¡ããã¨ãã§ããã¾ããæè¨ã®ç§é移åã®ããã«æ£ç¢ºãªã¿ã¤ãã³ã°ã§åããå¶å¾¡ãããå ´åããã¬ã¼ã ã¬ã¼ãã¨ã¯ã¾ã£ããéãã¿ã¤ãã³ã°ã®ç¹°ãè¿ãå¦çãè¡ããã¨ãã§ãã¾ãã ãã¨ãã°æ¬¡ã®ã¹ãã¼ãã¡ã³ããå®è¡ããã¨ãmyObjãªãã¸ã§ã¯ãã®myMethod()ã¡ã½ããã2
ç¾å ´ã§ä½¿ãããã·ãªã¼ãºãå¤é¨XMLã¨é£æºããåã°ã©ãã®æç»ã§ãã XMLãèªã¿è¾¼ãã§è¡¨ç¤ºãã¦ãã¾ããæåãå ¨ã¦ã¹ã¯ãªããã§ä½ã£ã¦ã¿ãã®ã§ãããæç»ã«ãããCPUã使ããã¦ãã¾ã£ã¦éãã£ãã®ã§ã3.6度(1%åï¼ã®æåMCãä½ããããattachMovieã§ä½¿ãã¾ãããã¨ã§åä½ã軽ããããã¨ãåºæ¥ã¾ããã XMLå´ã§ã¯ãè¦ç´ åãã°ã©ãã®è²ãæ°å¤ãæå®ã§ããããã«ããFLAå´ã§ã¯åæè¨å®é¨åã§ãåã°ã©ãã®åå¾ãä¸å¿ç¹ãå½±ã¤ããããè¨å®ã§ããã®ã§å²ãã¨ä½¿ãåããå¹ãã¨æãã¾ããä½ããå®é使ãå ´åã¯XMLã®ãã£ãã·ã¥å¯¾çã¯å¿ è¦ã§ãã //========== //data.xml <?xml version="1.0" encoding="utf-8"?> <items> <item id="1" name="Firefox" num="53" color="ffffff" /> <item id
ã使ç¨ã®ãã©ã¦ã¶ç°å¢ã§ã¯ãæ¬ãµã¤ããæ£ãã表示ã§ããªãå¯è½æ§ãããã¾ãã 以ä¸ã®æ³¨æç¹ã確èªããå¿ è¦ãªè¨å®ãè¡ã£ãä¸ã§å度表示ãã¦ãã ããã ãã©ã¦ã¶ã® JavaScript è¨å®ãæå¹åãã¦ãã ããã ææ°ã® Adobe Flash Player ãã¤ã³ã¹ãã¼ã«ãã¦ãã ããã
wonderflã¯ããµã¤ãä¸ã§Flashãã¤ãããã¨ã®ã§ãããµã¼ãã¹ã é常Flashãã¤ããããã«ã¯ãFlash IDEãFlexãFlashDevelopçã¨ãã£ããã¼ã«ã使ã£ã¦ãã³ã¼ããæ¸ããã³ã³ãã¤ã«ããå¿ è¦ãããã¾ãããwonderflã§ã¯ããµã¤ãã«ãããã©ã¼ã ã«Actionscript3ã®ã³ã¼ããæ¸ãã°ããµã¼ããµã¤ãã§ã³ã³ãã¤ã«ãè¡ãã¾ãã ã¤ã¾ãããã©ã¦ã¶ããããã°ãFlashãã¤ããã¾ããã³ã³ãã¤ã«çµæã¯ãµã¤ãä¸ã«è¡¨ç¤ºãããä½æãããFlashï¼swfï¼ã¯ãã¼ã¸ä¸ã«èªåçã«è¡¨ç¤ºãããã®ã§ãå®æããFlashããªã¢ã«ã¿ã¤ã ã«è¦ãªããã³ã¼ããæ¸ããã¨ãã§ãã¾ãã â»APIã¨ãã¦ãã¯ã¦ãª OpenIDã使ç¨ãã¦ãããã«ããã¤ãªããã°ã誰ããFlashã¯ãªã¨ã¤ã¿ã¼ã«ãªãã¾ããä¸çä¸ã®Flashã¯ãªã¨ã¤ã¿ã¼ãã¦ã¼ã¶ã¼ã«ãªãwonderflã¯ã æåéããä¸çã®Flashå³éã¨ãªã£ã¦ã
Flash ã¬ã¤ãï¼æ¸¡è¾ºÂ å¤§ä» åå¿è ãã§ããç°¡åã§æ¥½ãããã©ãã·ã¥ã®ä½ãæ¹ãããActionScriptã®ã¯ã¶ã¾ã§ã解説ã åæä¾é ¼ ååã
Flash ã¯ã¯ãã¼ã¸ã£ã使ãã¦ä¾¿å©ã§ãã ãããã æè¿ã¯ãªãã¸ã§ã¯ãæåã¨ã ActionScript 2.0 ã°ããåãæ²æ±°ããã¦ã ãã¾ãã¯ãã¼ã¸ã£ã®ä¾¿å©ããç¥ããã¦ããªãæãããã¾ãã é£ãããªãã¸ã§ã¯ãæåã®åå¼·ã¯ã¨ããããå 延ã°ãã«ãã¦ããã¦ã æ°æ¥½ã«ä½¿ããã¯ãã¼ã¸ã£ã§æ¥½ãã ActionScript ã®ããã°ã©ãã³ã°ããã¦ã¿ã¾ãããï¼ ãé¡ï¼N ãã¬ã¼ã ç®ã«ââãã ãã¨ãã°ã Flash ã®ã ã¼ãã¼ãåçã㦠5 ãã¬ã¼ã å¾ã«ã æå®ããã³ã¼ããèµ°ãããã«ã¯ã ã©ãããã°ããã§ããããï¼ ã ã¼ãã¼ã¯ãªããã®ç¬¬ 5 ãã¬ã¼ã ã«ã å®è¡ããããã¢ã¯ã·ã§ã³ãæ¸ãã°ããã ãã§ãã ããããã®æ¹æ³ã¯ã åé¡ãã¡ãã£ã¨ä¸è¬åããã ãã§ä½¿ããªããªãã¾ãã ãã® 5 ãã¬ã¼ã ã®ã5ãã¨ããæ°å¤ãäºãããã£ã¦ããªãå ´åã¯ã ä¸ã®æ¹æ³ã¯ä½¿ãã¾ãããã onEnterFrame ã§ã¯ã5 ãã¬
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}