å°ãããµã¤ãºå°éã¡ã³ãºæã»ã«ã¸ã¥ã¢ã«ãã©ã³ããRetropics.ï¼ã¬ãããã¯ã¹ï¼ã è³¼å ¥é¡ã®15% ãã¤ã³ã
Keyboard ã¯ã©ã¹ã¯ãæ¨æºãã¼ãã¼ãã§ã¦ã¼ã¶ã¼ãå¶å¾¡ã§ããã¤ã³ã¿ã¼ãã§ã¤ã¹ãä½æããããã«ä½¿ç¨ããã¾ããKeyboard ã¯ã©ã¹ã®ã¡ã½ããããã³ããããã£ã¯ãã³ã³ã¹ãã©ã¯ã¿ã使ç¨ããªãã¦ã使ç¨ã§ãã¾ããKeyboard ã¯ã©ã¹ã®ããããã£ã¯å®æ°ã§ããããã¯ã²ã¼ã ãå¶å¾¡ããéã«æãä¸è¬çã«ä½¿ç¨ããããã¼ã表ãã¾ãã é¢é£é ç®
ã©ããããActionscript3.0ã§ã¯ãé¢æ°ãå¤æ°ã«ä»£å ¥åºæ¥ãããããå¤æ°ã«ãFunctionåãåå¨ãããããã ã¾ããé¢æ°ãä»£å ¥ããå¤æ°ã¯ãé¢æ°ã®èå¥åã¨åãæ§ã«ä½¿ãããããã //ããã§ãFunctionåã®å¤æ°abcã«testãä»£å ¥ var abc:Function = test; //ããã§ãé¢æ°testã®å 容ãè¨è¿° function test(){ trace("ãã¡ã³ã¯ã·ã§ã³ãã¹ã") } //é¢æ°ãä»£å ¥ããå¤æ°abcãé¢æ°ã®èå¥åçã«å®è¡ abc(); ä¸è¨ãå®è¡ããã¨ãã¡ããã¨ãããã¡ã³ã¯ã·ã§ã³ãã¹ãããtraceãããã ãã¡ãããtest();ã¨ãé¢æ°ãç´æ¥å®è¡ãã¦ãåãæ§ã«ããã¡ã³ã¯ã·ã§ã³ãã¹ãããtraceãããã ãããªä½¿ãæ¹ãåºæ¥ããããã èªåã§ä¸è¨ã®æ§ãªã¹ã¯ãªãããæ¸ããã©ããã¯å¥ã«ãã¦ããµã³ãã«ã¨ãã®è§£æãããæã«ãä¸è¨ã®æ§ã«æ¸ãã¦ãããããããªã
ããã«ã¡ã¯ãæè¿Flexã°ããããã£ã¦ããæ¾ç°ã§ããä»æ¥ãFlexãã¿ã§ãã ä»åã¯ãä¸ããããç»åã®ç¹å®ã®ã¨ãªã¢ããã¤ã©ã¤ããããã¹ã¯ãªãããä½ã£ã¦ã¿ã¾ããã æ£ç¢ºã«ã¯ãã¦ã¹ãªã¼ãã¼ãããã¯ã»ã«ã¨åãè²ã®ã¨ãªã¢ã®ãã¤ã©ã¤ãããã¦ãã¾ãã ç»åã®èªã¿è¾¼ã¿ã«ã¯å¤§æµã®å ´åLoaderã使ç¨ãã¾ãããLoaderã§ç»åãèªã¿è¾¼ãã¨ç»åãBitmapåã«å¤æããã¦Loader.contentã«å ¥ãã¾ãã ãã®Bitmapã¯ç»åãã¼ã¿ã®ãã ã®å¨ã®ãããªãã®ã§ãç»åèªä½ã«æãå ããã«ã¯ãBitmap.bitmapDataãã¤ã¸ããã¨ã«ãªãã¾ãã BitmapDataã«ã¯ç»åå¦çãè¡ãããã§ä¾¿å©ãªã¡ã½ãããå¤ãç¨æããã¦ãã¾ããããã®ä¸ããä»åã¯thresholdã¡ã½ããã使ã£ã¦ã¾ãã ããã¾ããªæµãã¯ä»¥ä¸ã®ã¨ããã 1. ç»åã®åå¾ãé ç½® â 2. ãã¦ã¹ã«ã¼ã½ã«ä½ç½®ã®ç»åã®è²ãåå¾ â 3. ç»åå
var mc:MovieClip = new MovieClip(); mc.addEventListener( Event.ENTER_FRAME,          function(){                  mc.x ++;                  if ( mc.x >= 200 ){                        // ã¤ãã³ããªã¹ãã¼ã®åé¤ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â mc.removeEventListener( Event.ENTER_FRAME, arguments.callee );                  } ã¨è¨è¿°ããã°OKã§ããã®ãarguments.calleeãã«ã¯ä»ã®ä½¿ãæ¹ãããã¾ã ãªãã¡ã¬ã³ã¹ã¬ã¤ãã«ããã¨arguments.calleeã¯ç¾å¨å®è¡ä¸ã®é¢æ°ã¸ã®åç §ãã¨ã®ãã¨ã
ActionScript3.0ã§addEventListeneræã«é¢æ°ã¸å¤ã渡ãæ¹æ³ãã以ä¸ã®é ã«ãµã³ãã«ã交ãã¦æ¸ãã¦ããããã¨æãã¾ãã ç´æ¥å¤ã渡ãå ´å å¤æ°ã§æ¸¡ãå ´å é åã§æ¸¡ãå ´å åç §å ã®é¢æ°ã§ãã¼ã¿åãæ示ããããªãå ´å ãã®ä» addEventListener( Event.ENTER_FRAME, func( 'StringParam', 128 ) ); function func( paramA:String, uintB:uint ):Function { trace( paramA + uintB ); return function( event:Event ):void; } var paramA:String = 'StringParam'; var uintB:uint = 128; addEventListener( Event.ENTER_FRAME
ç°¡åã«ä½¿ããActionScript3.0製ã®ã¹ã¯ãã¼ã«ãã¼ãJPPScrollbarããSpark Projectã§ãªãªã¼ã¹ãã¾ãããã¯ããååã¯ã¨ã¢ãã¹ãã¹ã®Just Push Playã«ãããã£ã¦ãã¾ããããã¾ããã以ä¸èª¬æã JPPScrollbar Justï¼ãã ï¼ Putï¼ç½®ãã°ï¼ Playï¼åãï¼ Scrollbarï¼ã¹ã¯ãã¼ã«ãã¼ï¼ ãµã³ãã«ãã¡ã¤ã«ã®ã©ã¤ãã©ãªããã¹ãã¼ã¸ã«ç½®ãã°åãã¦ãããActionScript3.0製ã®ã¹ã¯ãã¼ã«ãã¼ã§ããå人çã«ä½ã£ã¦ãã¾ããããå²ã¨é«æ©è½ã«ãªã£ãã®ã§å ¬éãã¾ãã 主ãªæ©è½ ä»»æã®DisplayObjectãã¹ã¯ãã¼ã«ãã¼ã®ãã¼ãã¨ãã¦ãã¤ã³ãå¯è½ã§ã æ»ãããªæ¸éã¹ã¯ãã¼ã«ã使ç¨å¯è½ã§ã ã³ã³ãã³ãéã«åããã¦ç¸®ãã¹ã¯ãã¼ã«ãã¼ã使ç¨å¯è½ã§ã ã¹ã©ã¤ãã¼ã®é«ãã0ãã¯ã»ã«ã¨ãã¦æ±ããã¨ãå¯è½ã§ã iPhoneã®ãããªãã¹ã¯ãã¼ã«
æ稿è ï¼éä¸ æé | æ稿æ¥ï¼2008.04.19 | [AS 3][ActionScript][Tips][éä¸ã¼ã] ActionScript 3.0ã§ããMovieClipã¤ã³ã¹ã¿ã³ã¹ã«ååãã¤ãã¦ãåç §ããã管çãããã¨ãã§ãã¾ããããããã¤ã³ã¹ã¿ã³ã¹åã®æããå½¹å²ã¯ãActionScript 2.0/1.0ã¨ã¯å°ãå¤ããã¾ããã ãªã¼ãµãªã³ã°æã«é ç½®ããMovieClipã¤ã³ã¹ã¿ã³ã¹ Flashã ã¼ãã¼ãä½æããéãã¤ã¾ããªã¼ãµãªã³ã°æã«ã¿ã¤ã ã©ã¤ã³ã«é ç½®ããMovieClipã¤ã³ã¹ã¿ã³ã¹ã«ã¯ãå¾æ¥ã®ãã¼ã¸ã§ã³ã¨åãããã«ã[ããããã£]ã¤ã³ã¹ãã¯ã¿ã§ã¤ã³ã¹ã¿ã³ã¹åãè¨å®ã§ãã¾ã(å³001)ã å³001â [ããããã£]ã¤ã³ã¹ãã¯ã¿ã§ã¤ã³ã¹ã¿ã³ã¹åãè¨å® ããã¦ãã¹ã¯ãªããã§ã¤ã³ã¹ã¿ã³ã¹åãåç §ãããã¨ã«ãããMovieClipã¤ã³ã¹ã¿ã³ã¹ã®ã³ã³ããã¼ã«ãå¯è½ã§ãããã¨ãã°ãã¿ã¤
ä¸æ¥ä¸åã§ã¯ããããã¨æ¸ãã¦ããã3ã¶æã®ãã©ã³ã¯ã¯é常ã«é·ãã ã¨ãããã¨ã§ãas3ã®åºæ¬ã¨ãã¦ãã¿ã³å¦çã復ç¿ãããã¨ã«ã ã¨ãããã³ã¼ãæ¸ãã¦çµããã [as3] bt_btn.buttonMode=true; //ãã¦ã¹ãªã¼ãã¼ã¤ãã³ãç»é² bt_btn.addEventListener(MouseEvent.ROLL_OVER , over); function over(e:Event):void{ text_txt.text="ä¸ããã"; } //ãã¦ã¹ã¢ã¦ãã¤ãã³ãç»é² bt_btn.addEventListener(MouseEvent.ROLL_OUT , out); function out(e:Event):void{ text_txt.text="ããããªã£ã"; } //ã¯ãªãã¯ã¤ãã³ãç»é² bt_btn.addEventListener(MouseEvent
// æ°å¤ã0ã§åãã¦æå®ã®æ¡æ°ã«æããé¢æ° private function formatZero(n:Number, keta:Number):String { var s:String = String(n); var i:int = 0; while (s.length < keta) { s = "0" + s; } return s; } ãã¡ããå¥è§£ãæãã¦ããã ãã¾ããã private function formatZero(n:Number, keta:uint):String { return ("0000000000000000000000000" + n.toString()).substr(-keta); } substrã«ãã¤ãã¹ãæå®ã§ãããã§ãããã
ActionScript3.0ã§ã¯ï¼ActionScript2.0以åã¨ã¯ï¼ãã¼ãã¼ãã®å ¥åãåå¾ããå¦çãå¤æ´ããã¦ãã¾ãã以åã¯Keyã¯ã©ã¹ã«éç´ããã¦ããå¦çãï¼è¡¨ç¤ºãªã¹ãå ã®ç¹å®ã®ã¡ã³ãã¼ã®ã¤ãã³ãå¦çã«ç§»ããã¾ããããã®å¦çã®å©ç¨æ¹æ³ãå¦ç¿ãã¾ãããã ã¦ã¼ã¶ã¼ã®å ¥åããã£ããã£ãã ActionScript3.0ã§ã¯ï¼ã¦ã¼ã¶ã¼ããã¼ãã¼ããæä½ããéï¼ãã®å ¥åããã£ããã£ãã¦å©ç¨ã§ãã¾ãããã¼ãã¼ãã«ããæä½ã§ï¼ã ã¼ãã¼ã®åãã«å¤åãä»ããããã¨ããããã§ããï¼å³1ï¼ã ã¦ã¼ã¶ã¼ã®å ¥åããã£ããã£ãã¦å¦çãå®è¡ãããã¨ã§ï¼ããããã¿ã¤ãã³ã°ã»ã²ã¼ã ãï¼ãã¼ãã¼ãã§æä½ããã ã¼ãã¼ï¼ã¯ãã¾ãï¼ç°¡åãªã¢ããªã±ã¼ã·ã§ã³ã»ã ã¼ãã¼ã®ã·ã§ã¼ãã«ããæ©è½ã¾ã§ï¼æ§ã ãªç¨éã«å¿ç¨ãããã¨ãã§ãã¾ãã ãã¼ãã¼ãã®å ¥åã«é¢ããã¤ãã³ãå¦çã¯ã©ãã§è¡ãï¼ ActionScript3.0ã§ãã¼ãã¼ã
// ActionScript2 import caurina.transitions.Tweener; Tweener.addTween([instance],{_x:100, time:1, transition:'easeOutQuint', onComplete:handler}); function handler(){ trace("ãã¹ã";); } Tweenerã¯ActionScript3.0ã¨ActionScript2.0ã§ä½¿ç¨ããäºãã§ããã¤ã³ã¹ã¿ã³ã¹ã«å¯¾ãã¦ãã ãã ããã£ããæ¢ã¾ãããã©ãã©ãå¢ããã移åããã³ãã¼ãã³ãã¼ãï¼ï¼ï¼ãã¨ãããããªã¤ã¼ã¸ã³ã°ãè¨å®ã§ãããã¦ã£ã¼ã³å¶å¾¡ã©ã¤ãã©ãªã§ããã¨ã¦ãç°¡åãªScriptã§å®ç¾ã§ãã¾ãï¼ å°å ¥æé ã¾ãã¯Google Codeã«å ¬éããã¦ããã©ã¤ãã©ãªããã¦ã³ãã¼ãã é å¸å ï¼http://code.google.com
Transition Types When using the addTween and addCaller methods, several different transition methods may be used. They're defined by the transition parameter, and each of them define a different easing method. Check the table below for a complete rundown of the available methods. You may also print the table. You need to upgrade your Flash Player This is replaced by the Flash content. Bypass detec
Tweenerã®ãã¦ã³ãã¼ã http://code.google.com/p/tweener/ ãããã¦ã³ãã¼ãããã¦ã³ãã¼ãã解åãã¦ã§ãã .as ãã¡ã¤ã«ã ã .fla æ ¼ç´ãã©ã«ãã>ãcaurinaã>ãtransitionsããã©ã«ãå ã«ãã¹ã¦ç§»å Tweenerã®å®è¡ 1. ã¾ã Flashå ã§é©å½ãªã ã¼ãã¼ã¯ãªãããã¤ã³ã¹ã¿ã³ã¹åãtest_mcãã§ä½æãã¾ãã 2. 次ã«ãã¬ã¼ã ã¢ã¯ã·ã§ã³ã«ä»¥ä¸ãè¨è¿°ãã¦å®è¡ import caurina.transitions.Tweener; Tweener.addTween(test_mc, {x:100, y:200, time:1, transition:"linear"}); ããã§å®è¡ã 3. ãã¥ã¤ã¼ã³ãåé¤ããã«ã¯ Tweener.removeAllTweens(); // ä¸æ¬åé¤ Tweener.removeTw
Tween ã¯ã©ã¹ã使ç¨ããã¨ãã¿ã¼ã²ããã ã¼ãã¼ã¯ãªããã®ããããã£ãæå®ã®ãã¬ã¼ã æ°ã¾ãã¯ç§æ°ã«ãããã¢ãã¡ã¼ã·ã§ã³åããããã«æå®ãããã¨ã§ãActionScript ã使ç¨ãã¦ã ã¼ãã¼ã¯ãªããã移åããµã¤ãºå¤æ´ãããã³ãã§ã¼ããããã¨ãã§ãã¾ãã Tween ã¯ã©ã¹ã§ã¯ããã¾ãã¾ãªã¤ã¼ã¸ã³ã°ã¡ã½ãããæå®ãããã¨ãã§ãã¾ãã"ã¤ã¼ã¸ã³ã°" ã¨ã¯ãã¢ãã¡ã¼ã·ã§ã³ã®ä¸ã§åããå¾ã ã«å éã¾ãã¯æ¸éãããã¨ãæå³ããã¢ãã¡ã¼ã·ã§ã³ããããªã¢ã«ã«è¦ããããã«å½¹ç«ã¡ã¾ããfl.transitions.easing ããã±ã¼ã¸ã«ã¯ãå éã¨æ¸éã«ä½¿ç¨ã§ããå¼ãå«ãã ã¤ã¼ã¸ã³ã°ã¡ã½ãããå¤æ°ç¨æããã¦ãããç°ãªãã¤ã¼ã¸ã³ã°ã¢ãã¡ã¼ã·ã§ã³ã表ç¾ã§ãã¾ãã Tween ã¯ã©ã¹ã®ã¡ã½ããã¨ããããã£ã使ç¨ããã«ã¯ãnew æ¼ç®åã¨ã³ã³ã¹ãã©ã¯ã¿é¢æ°ã使ç¨ãã¦ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ãä½æãããã©ã¡ã¼ã¿ã¨ã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}