OS & éçºç°å¢å¥ã«ãç°å¢æ§ç¯ãã Hello, World! ããã¾ã§ã®æé ãã¾ã¨ãã¾ãããã©ã®éçºç°å¢ã使ãã°è¯ããããåãããªã人ã¯ãéçºã¹ã¿ã¤ã«ãé¸ã¼ããè¦ã¦é¸ãã§ãã ãããã HelloWorldã®ã½ã¼ã¹ã³ã¼ã ããããã®ãã¥ã¼ããªã¢ã«ã§ä½æããHelloWorldã®ã½ã¼ã¹ã³ã¼ãã¯ä»¥ä¸ã®ãã®ã§ãã package { import flash.display.Sprite; import flash.text.TextField; public class HelloWorld extends Sprite { public function HelloWorld() { var textField:TextField = new TextField(); textField.text = "Hello World"; addChild(textField
åã®è¨äºã§ç´¹ä»ãã Flash Professional Toolkit for CreateJS ã¯ãCreateJS ã¨å¼ã°ãããªã¼ãã³ã½ã¼ã¹ã®ãã¬ã¼ã ã¯ã¼ã¯ç¾¤ã®ä½¿ç¨ãåæã¨ãã¦ãã¾ãããã®ãããFlash Pro ããæ¸ãåºããã html ãã¡ã¤ã«ã¨ js ãã¡ã¤ã«ã¯ãCanvas ã® API ãå©ç¨ãã代ããã« CreateJS ã® API ãå¼ã³åºãã¾ãã ãã¢ãããªå ã§ç´¹ä»ãããã³ã¼ãã¯ããããªæãã§ããã (lib.shadow2 = function() { this.initialize(); this.shape = new Shape(); ... ã¨ãããã¨ã§ãæ¸ãåºãããã³ã³ãã³ãã®ç·¨éãããã«ã¯ãCreateJS ã®ä½¿ãæ¹ãå¦ã°ãªãã¨ãã¡ããã§ãã ï¼åç´ãªã¿ã¤ã ã©ã¤ã³ã¢ãã¡ã¼ã·ã§ã³ã¯å¥ã¨ãã¦...ï¼ ãã ããããã¯ãAS3 ã®ç¥èããã人ã«ã¯ããããè¯ã話ã
EaselJS ã® DisplayObject ã«ã¯ãããã¤ããã¦ã¹ã¤ãã³ããæ±ãããã®ã¡ã½ãããããã¾ããä»åã¯ãããããå©ç¨ãããã¦ã¹æä½ã¸ã®å¯¾å¿æ¹æ³ãç´¹ä»ãã¾ãã å©ç¨ã§ããé¢æ°ã¯ä»¥ä¸ã® 5 ã¤ã§ããååã使ãæ¹ã AS2 ã®ã¤ãã³ãå¦çã«è¯ãä¼¼ã¦ãã¾ãã onClick : ã¦ã¼ã¶ã¼ããã¦ã¹ãã¿ã³ãã¯ãªãã¯ãã onPress : ã¦ã¼ã¶ã¼ããã¦ã¹ãã¿ã³ãæ¼ãã onDoubleClick : ã¦ã¼ã¶ã表示ãªãã¸ã§ã¯ãä¸ã§ããã«ã¯ãªãã¯ãã onMouseOut : ãã¦ã¹ãã¤ã³ã¿ã表示ãªãã¸ã§ã¯ãã®å¤ã«ç§»åãã onMouseOver : ãã¦ã¹ãã¤ã³ã¿ã表示ãªãã¸ã§ã¯ãä¸ã«ç§»åãã è¦ã¦ã®ã¨ãããFlash Player ã®ãã¦ã¹ã¤ãã³ãã¨æ¯ã¹ãã¨æ°ã¯å°ãªãã§ãããã£ã¨ãããã®è¾ºãã®ä»æ§ã¯ãCreateJS ãåºè·ãããã¨ãã«ã¯å¤ãã£ã¦ããããããã¾ããã ã¤ãã³ãçºçæã«å¼ã³
EaselJS ããæä¾ããã Ticker ã¯ãä¸å®éé㧠tick ã¤ãã³ããä»ã®ãªãã¸ã§ã¯ãã«ä¼ããæ©è½ãæã£ã¦ãã¾ãããã㨠TweenJS ãçµã¿åããã¦ã¢ãã¡ã¼ã·ã§ã³ãå®ç¾ããã®ã CreateJS ã®åºæ¬ã§ãã åã®è¨äºã§ã触ããããã«ãCreateJS ã« MovieClip ã追å ãããå¯è½æ§ããããããã¢ãã¡ã¼ã·ã§ã³å¶ä½ã®æ段ã¯ãæ´ã«å¢ããã®ããããã¾ãããã¨ããããä»å㯠TweenJS ã®ä½¿ãæ¹ããç´¹ä»ãã¾ãã ãªããç¾å¨å ¬éä¸ã® TweenJS ã®ãã¼ã¸ã§ã³ã¯ã¾ã 0.1 ã§ãReadme ã«ãã¢ã«ãã¡çã§ãããã¨ãæè¨ããã¦ããã®ã§ãCreateJS ãç»å ´ããæã«ã¯ãä»æ§ãå¤ãã£ã¦ããããããã¾ããããã®ç¹ã¯ã注æä¸ããã Ticker ã¾ããTicker ã®ä½¿ãæ¹ã§ãããã¬ã¼ã ã¬ã¼ã ï¼ãããã¯ã¤ãã³ãã®ééï¼ ãæå®ãã¦ãå®æçã«æéã®çµéãéç¥ãããªãã¸
AIR ãã¯ããã¸ã¼ãã¬ãã¥ã¼ã«å«ã¾ããæ°ãã ActionScript ã®ã³ã³ãã¤ã© ASC 2.0 ã¯ãæ¢åã®ã³ã³ãã¤ã©ã¨åä½ãç°ãªãã¾ããããã¯ããã AS3 ã®è¨èªä»æ§ã«å¯¾ããæºæ ã®åº¦åããé«ããããã®å¤æ´ã§ããã¨ã®ãã¨ã§ãã ããã¾ã§ãè¨èªä»æ§ã«ã¯åããªããã®ã®ããã¾ãã¾ã³ã³ãã¤ã©ãè¦éãã¦ããããããã¯è¬ã£ãæ±ãããã¦ãããã¨ããã±ã¼ã¹ãä¿®æ£ããã¾ãã è±èªã§ã¯å¤æ´ç¹ã®ä¸è¦§è¡¨ãå ¬éããã¦ãã¾ãã®ã§ããã£ã¨ç¿»è¨³ããç©ãæ²è¼ãã¦ããã¾ããæ£è¦ã®ææ¸ã§ã¯ãªãã®ã§ãééãããã£ããã容赦ãã ããã
人ãè²ã¦ãã¨ããã®ã¯ãã¨ã¦ãé£ããã ãªããªããè²ã¦ãæ¹ãæªå®æãªäººéã ããã ã¡ãã£ã¨çµé¨å¤ã®ããæªå®æãªäººããçµé¨å¤ã®å°ãªãæªå®æãªäººã¨ãã¨ãã«åéºãããã¨ãã«ã¬ãã«ãããã¦ãããã¨ãã人ãè²ã¦ãã£ã¦ãã¨ã ã¨æãã 人ãè²ã¦ããã¨æãã¨ãã©ããã¦ãä¸ããç®ç·ã«ãªã£ã¦ãã¾ããä¸ããç®ç·ã ã¨æ°æã¡ãç¸æã«ä¼ããã«ãããæ°æã¡ãä¼ãããªãã¨ç¸æããã¾ãæé·ãã¦ãããªãã ã ããã人ãè²ã¦ãæ©ä¼ããã£ãããã¨ãã«åéºããã仲éãæã£ãã¨èãããããã£ã¨ãã®æ¹ããã¾ãããã ããã§ã¯ãèªåã®è©±ãããããèªåã¨ããããã¯èªåãã¡ã®è©±ããªã 2010å¹´ãèªåã¯ãæ¼éããã©ä¸ããããªãããæ°è¦ãã¸ãã¹ã®ä¼ç»ãèãããããããã¿ã¤ããä½ã£ã¦ããããã¦ããããã©ä¸ããã£ã¦ããã®ã¯ãå½ç¶ã½ã¼ã·ã£ã«ã¢ããªã¨ãããã®ãå¦ã¶ããã ããã©ä¸ã®è½åã¯ããªãåä¸ãããã©ãä»äºã§ã¯ããããçµæãåºããªãã£ããç¹ã«ä¼ç»èã
ã«ã¬ã¼ãã©ãã好ãã§ããä»æ¥ã®ãæ¼ã¯ã«ã¬ã¼ãã©ãã§ãããæ£å®ã§ãã ä»æ¥ã¯Javascriptã§ã¯ã©ã¹éçºããã¦ã¿ããã¨æãã¾ãã åé ã®ã«ã¬ã¼ãã©ãã¯é¢ä¿ãªãã§ãããä½ããããªããã¨æã£ã¦ã¤ã好ç©ãåºãã¦ã¿ã¾ããã ãåãã®ã¨ãããActionscriptã¯ãã¨ãã¨ãã¼ã¸ã§ã³1ã®é ã¯Javascriptã¨ã»ã¼åãè¨èªã§ãããã¤ã¾ãAS1ã®é ã®ã¯ã©ã¹éçºããã®ã¾ã¾ä½¿ããå½¢ã¨ãªã£ã¦ãã¾ãã ããã§Javascriptã§ã¯ã©ã¹ãä½ã£ããããã¨ãã«ãããï¼ASã ã¨ããããããæ¹ãJSã ã¨ã©ããããã ã£ããã£ã¦ã®ãæ¸ãããããã«ãå®å ¨ã«å人çãªåå¿é²ãä½ã£ã¦ã¿ã¾ãããèªå·±æµãªããã«ãªã¬ãªã¬è¦ç´ã°ã£ããã§æ¥ããããéãã§ãããã£ããä½ã£ã¦å ¬éããã®ã§ãªãããã®ãå½¹ã«ãã¦ã°ããããã§ãã Javascriptã§ã®ã¯ã©ã¹ã®ä½ãæ¹ã¯æ¬å½ã«ããããã®æ¹æ³ãããã¾ããããã®ä¸ã§åãä¸çªé¦´æãã§ããæ¸ãæ¹ã ãã
AS3ã©ã¤ã¯ã«è¨è¿°ã§ããJavaScriptã²ã¼ã ã©ã¤ãã©ãªã§ãã(ã©ã¤ã»ã³ã¹ã¯MIT License) ãã¦ã³ãã¼ã - https://github.com/DeNADev/Arctic.js <html> <head> <script type="text/javascript" src="js/arctic.js"></script> <script type="text/javascript" src="js/game.js"></script> </head> <body> <canvas id="canvas"></canvas> </body> </html> (function() { // arcGameã¯ã©ã¹ãç¶æ¿ããã¡ã¤ã³ã¯ã©ã¹ var Main = arc.Class.create(arc.Game, { // ã³ã³ã¹ãã©ã¯ã¿(å¿ è¦ãªãå¼æ°ãæå®) initial
æ¬è¨äºã¯ããiPhoneã¢ããªã®éçºæ¹æ³ for Flash Professional CS5 åç·¨ãã®ç¶ãã§ããå¾ç·¨ã§ã¯ãä¸è¨ã®ã¹ããã3以éã説æãã¾ãã iPhoneã¢ããªéçºã®æµã ã¹ããã1ï¼Flash Professional CS5ã§ã¢ããªå¶ä½ãéå§ ã¹ããã2ï¼ã¢ããã«ããéçºç¨è¨¼ææ¸ã¨ãããã¸ã§ãã³ã°ãããã¡ã¤ã«ãåå¾ ã¹ããã3ï¼Flash Professional CS5ã§ãããªãã·ã¥ ã¹ããã4ï¼iTunesã«ç»é² ã¹ããã5ï¼iPhoneã¨åæ ã¹ããã6ï¼AppStoreã¸ã®ç³è«ç¨ãã¡ã¤ã«ãä½æ â»2010å¹´ã®Flash Professional CS5çºå£²ææã«ã¯ãAppleã®è¦ç´å¤æ´ã«ãã£ã¦Flash Professional CS5ã§ä½ã£ãiPhoneã¢ããªã¯é å¸ã§ããªãããã«ãªã£ã¦ãã¾ãããããã®å¾ã®è¦ç´å¤æ´ã«ãããé å¸ãããã¨ãå¯è½ã«ãªãã¾ãããæ¬è¨
wonderflã¯ããµã¤ãä¸ã§Flashãã¤ãããã¨ã®ã§ãããµã¼ãã¹ã é常Flashãã¤ããããã«ã¯ãFlash IDEãFlexãFlashDevelopçã¨ãã£ããã¼ã«ã使ã£ã¦ãã³ã¼ããæ¸ããã³ã³ãã¤ã«ããå¿ è¦ãããã¾ãããwonderflã§ã¯ããµã¤ãã«ãããã©ã¼ã ã«Actionscript3ã®ã³ã¼ããæ¸ãã°ããµã¼ããµã¤ãã§ã³ã³ãã¤ã«ãè¡ãã¾ãã ã¤ã¾ãããã©ã¦ã¶ããããã°ãFlashãã¤ããã¾ããã³ã³ãã¤ã«çµæã¯ãµã¤ãä¸ã«è¡¨ç¤ºãããä½æãããFlashï¼swfï¼ã¯ãã¼ã¸ä¸ã«èªåçã«è¡¨ç¤ºãããã®ã§ãå®æããFlashããªã¢ã«ã¿ã¤ã ã«è¦ãªããã³ã¼ããæ¸ããã¨ãã§ãã¾ãã â»APIã¨ãã¦ãã¯ã¦ãª OpenIDã使ç¨ãã¦ãããã«ããã¤ãªããã°ã誰ããFlashã¯ãªã¨ã¤ã¿ã¼ã«ãªãã¾ããä¸çä¸ã®Flashã¯ãªã¨ã¤ã¿ã¼ãã¦ã¼ã¶ã¼ã«ãªãwonderflã¯ã æåéããä¸çã®Flashå³éã¨ãªã£ã¦ã
Flash Professional CS5 ã使ç¨ã㦠iPhone ã¢ããªã±ã¼ã·ã§ã³ãéçºããã«ã¯ãP12 証ææ¸ãã¡ã¤ã«ã使ç¨ããå¿ è¦ãããã¾ãããã®è¨¼ææ¸ã¯ãApple ããå ¥æãã Apple iPhone éçºç¨è¨¼ææ¸ãã¡ã¤ã«ã«åºã¥ãã¦çæãã¾ãã Mac OS ã§ã® iPhone éçºç¨è¨¼ææ¸ã® P12 ãã¡ã¤ã«ã¸ã®å¤æ Apple iPhone 証ææ¸ã Apple ãããã¦ã³ãã¼ãããããP12 証ææ¸å½¢å¼ã«æ¸ãåºãã¾ããMac® OS ã§ãããè¡ãæé ã¯æ¬¡ã®ã¨ããã§ãã ã¢ããªã±ã¼ã·ã§ã³/ã¦ã¼ãã£ãªãã£ãã©ã«ãã¼å ã«ãããã¼ãã§ã¼ã³ã¢ã¯ã»ã¹ã¢ããªã±ã¼ã·ã§ã³ãéãã¾ãã 証ææ¸ããã¼ãã§ã¼ã³ã«ã¾ã 追å ãã¦ããªãå ´åã¯ããã¡ã¤ã«ï¼èªã¿è¾¼ã¿ãé¸æãã¾ãã次ã«ãApple ããåå¾ãã証ææ¸ãã¡ã¤ã«ï¼.cer ãã¡ã¤ã«ï¼ã«ç§»åãã¾ãã ãã¼ãã§ã¼ã³ã¢ã¯ã»ã¹ã®ãåé¡ãã§ãéµããé¸
éçºç¨è¨¼ææ¸ãåå¾ããã«ã¯ã証ææ¸ç½²åè¦æ±ãã¡ã¤ã«ãçæãã¦ãApple iPhone Dev Center ãµã¤ãã«éä¿¡ããå¿ è¦ãããã¾ãã Mac OS ã§ã®è¨¼ææ¸ç½²åè¦æ±ã®çæ Mac OS ã§ã¯ããã¼ãã§ã¼ã³ã¢ã¯ã»ã¹ã¢ããªã±ã¼ã·ã§ã³ã使ç¨ãã¦ãã³ã¼ãç½²åè¦æ±ãä½æã§ãã¾ãããã¼ãã§ã¼ã³ã¢ã¯ã»ã¹ã¢ããªã±ã¼ã·ã§ã³ã¯ãã¢ããªã±ã¼ã·ã§ã³ãã£ã¬ã¯ããªã®ã¦ã¼ãã£ãªãã£ãµããã£ã¬ã¯ããªããã¾ãããã¼ãã§ã¼ã³ã¢ã¯ã»ã¹ã¡ãã¥ã¼ã§ã証ææ¸ã¢ã·ã¹ã¿ã³ãï¼èªè¨¼å±ã«è¨¼ææ¸ãè¦æ±ãé¸æãã¾ãã ãã¼ãã§ã¼ã³ã¢ã¯ã»ã¹ãéãã¾ãã ãã¼ãã§ã¼ã³ã¢ã¯ã»ã¹ã¡ãã¥ã¼ã§ããç°å¢è¨å®ããé¸æãã¾ãã ç°å¢è¨å®ãã¤ã¢ãã°ããã¯ã¹ã§ãã証ææ¸ããã¯ãªãã¯ãã¾ãã次ã«ãããªã³ã©ã¤ã³è¨¼ææ¸ç¶æ³ãããã³ã«ï¼OCSPï¼ãããã³ã証ææ¸å¤±å¹ãªã¹ãï¼CRLï¼ãããåãã«è¨å®ãã¾ãããã¤ã¢ãã°ããã¯ã¹ãéãã¾ãã ãã¼ãã§ã¼ã³ã¢ã¯ã»ã¹ã¡ãã¥
iPhone éçºç¨è¨¼ææ¸ã¨ãããã¸ã§ãã³ã°ãããã¡ã¤ã«ã Apple ããå ¥æããå¿ è¦ãããã¾ããã¾ãã証ææ¸ã P12 証ææ¸ã«å¤æããå¿ è¦ãããã¾ãã iTunes ã®ã¤ã³ã¹ãã¼ã« ã¢ããªã±ã¼ã·ã§ã³ã iPhone ã«ã¤ã³ã¹ãã¼ã«ããã«ã¯ãiTunes ãå¿ è¦ã§ããã¾ããiTunes ã使ç¨ãã¦ãiPhone ã®ããã¤ã¹ ID ã決å®ãã¾ããiPhone éçºç¨è¨¼ææ¸ãé©ç¨ããã¨ãã«ã¯ãããã¤ã¹ ID ãå¿ è¦ã«ãªãã¾ãã iPhone éçºç¨è¨¼ææ¸ã®ç³è«ããã³ãããã¸ã§ãã³ã°ãããã¡ã¤ã«ã®ä½æ ã¾ã ç»é²ãã¦ããªãå ´åã¯ãApple iPhone Dev Center ãµã¤ã ï¼http://developer.apple.com/iphone/ ï¼ã§ iPhone ãããããã¼ã¨ãã¦ç»é²ãã¾ãã 注æï¼ iPhone åã AIR ã¢ããªã±ã¼ã·ã§ã³ãéçºããã®ã«ãiPhone SDK
ããæãã¨ãè¨ãæ°åã失ããminamiã§ãã ãã¼ã¸ã®JavascriptããFlashã®ActionScriptãå¼ã³åºãæ¹æ³ãæè¿ã¾ã§ç¥ããªãã£ãã®ã§åå¿é²çã«æ¸ãã¾ãã ExternalInterface.addCallback()ã使ã ActionScriptããJavascriptãå¼ã³åºãã«ã¯ExternalInterface.call()ã¨ããé¢æ°ã使ãã¾ããã JavaScriptããActionScriptãå¼ã¶éã«ãåãã¯ã©ã¹ã®ExternalInterface.addCallback()ã¨ããé¢æ°ã使ãã¾ãã ExternalInterface.addCallback()ã¯ActionScript ã¡ã½ãããã³ã³ããããå¼ã³åºãå¯è½ãªãã®ã¨ãã¦ç»é²ãããã¨ãã§ãã¾ãã è¨è¿°ã®ãµã³ãã« ASå´ã®è¨è¿° // flash.external.ExternalInterfa
AS3ã§ãµã¦ã³ããæ±ãå ´åãSoundãSoundChannelãSoundTransformãªã©ãããã¯ã©ã¹ãå¤ãã¦çµæ§ãããããããã§ããã¡ãã®è¨äºã«è¼ã£ã¦ãããµã¦ã³ããç°¡åã«æ±ãããã®ã©ããã¼ã¯ã©ã¹ãçµæ§ä¾¿å©ãªã®ã§ãã¾ã«ä½¿ã£ã¦ãããã ãã©ããã®ã¾ã¾ä½¿ãã¨Flex SDKã§ã¯è¦åãåºã¾ããã®ã§ç´ãããã使ã£ã¦ãããã¡ã«è¶³ããªãæ©è½ãä»ã足ããããã¦ããã®ã§ããã®èªåç¨ã®SoundWrapperã¯ã©ã¹ãåå¿é²ã SoundWrapperã¯ã©ã¹ åºæ¬æ©è½ã¯å ãã¿ã®è¨äºã¾ãã¾ãªãã ãã©ãã¾ãFlex SDKãªã©ã®åæå®ãå³æ ¼ã«ãã§ãã¯ãããã³ã³ãã¤ã©ã§è¦åãåºãªãããã«ä¿®æ£ããããããã以ä¸ã®æ©è½ã追å ããããä»æ§ãå¤æ´ãããããã ãµã¦ã³ãåçå®äºã®ã¤ãã³ããã£ã¹ãããã追å ãµã¦ã³ãã®ããªã¥ã¼ã ãã¼ãã«ãã¦ãåæ¢ããªãããã«å¤æ´ åçæéãåå¾ããtotalTimeããããã£ã追å ãã¨
åã«BetweenAS3#durationã¡ã½ããã®åå¨ã«ä»æ¥æ°ã¥ããã¨ããã ãã®è©±ãªãã ãã©ããããã«æ°ã¥ãã¾ã§ãTweenEvent.COMPLETEã¨Timerã¨ã使ã£ã¦æé測ã£ã¦ãã¯ãããã durationã¡ã½ãã ãã®durationã¡ã½ããããITweenãªãã¸ã§ã¯ãã®åçæéãè¿ãã¦ããããFLVPlaybackã¯ã©ã¹ã§è¨ãã¨ããã®totalTimeã¡ã½ããã«ç¸å½ãããã¤ã åççµäº5ç§åã«ãã®ãªãã¸ã§ã¯ãããã£ã¡ã«ãã¥ã¤ã¼ã³ãããã¨ããåççµäº1ç§åã«BGMããã§ã¼ãã¢ã¦ãããããªãã¦ãã¨ãããã¨ãã«ã¯ãããããªãã¨è©±ã«ãªããªããã ãã©ãæè¿ã¾ã§durationã¡ã½ããã®åå¨ãç¥ããªãã¦ãparallelãserialããã¹ããã¾ãã£ããã¥ã¤ã¼ã³ã®ç§æ°ãæåã§è¨ç®ãã¦ãâ¦ã package { import flash.display.Sprite; import fla
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}