public function Main() { var urlLoader:URLLoader = new URLLoader(); urlLoader.dataFormat = URLLoaderDataFormat.BINARY; urlLoader.addEventListener(Event.COMPLETE, onComplete); urlLoader.load(new URLRequest("binary.txt")); } URLLoaderã®dataFormatããããã£ã«URLLoaderDataFormat.BINARYãæå®ãããã¨ã§ããã¼ã¿ãåãåãdataããããã£ããã¤ãé åã«ãªãããã¤ããªãã¼ã¿ãåä¿¡ããããã«è¨å®ããã¾ãã private function onComplete(event:Event):void { var urlLoader:URLL
SWFä¸ã§æããç»åããã¼ã«ã«ã«ä¿åããJPEGSaverã¯ã©ã¹ãAS3.0ã¯ã©ã¹ã§ä½ã£ã¦ã¿ãã FileReferenceã¯ã©ã¹ã使ããã è¦ Flash Player 10 ä»¥ä¸ package net { import flash.events.EventDispatcher; import flash.net.FileReference; import flash.utils.ByteArray; import flash.display.BitmapData; import flash.events.Event; import flash.events.ProgressEvent; import flash.events.IOErrorEvent; import flash.events.HTTPStatusEvent; import flash.events.SecurityE
以åä½æããã3Dãªãã¸ã§ã¯ãã«ãã¦ã¹ã§ãã¤ã³ãããããããã°ã©ã ã®ç»åãã¼ã¿ã PHPã¸éä¿¡ãä¿åã§ããããã«ãããã¨æãã¾ãã ãã¡ãã®ãµã¤ããåèã«ãã¾ããã http://www.matzmtok.com/blog/?p=12 ãã®ã½ã¼ã¹ã³ã¼ããæ¹é ããã°ã§ãããã§ãã public function submit(ev:FlexEvent):void{ var codec:IImageEncoder = new PNGEncoder(); var bmpData:BitmapData = new BitmapData(src.width, src.height, true, 0x00000000); var byteArray:ByteArray; var req:URLRequest = new URLRequest(); var loader:URLLoader = new
ActionScriptã©ã¤ãã©ãªas3corelibãgithubã¸ãã¹ããµã¼ãã¼ãå¤æ´ãã¦ãã¾ããã as3corelibã¯com.adobeãªã®ã§å®å¿ãã¦ä½¿ããã©ã¤ãã©ãªã®ã²ã¨ã¤ã§ãã æè¿ã®æµè¡ãªã®ã§ãããããGoogle Codeããgithubã¸ãµã¼ãã¼ãå¤ãã¦ãã¾ããã http://ja.wiki.github.com/mikechambers/as3corelib/ Google Codeã§ã¯ä»å¾ã¡ã³ããã³ã¹ãè¡ãããªãã¨ã¢ãã¦ã³ã¹ããã¦ããã®ã§ããã¦ã³ãã¼ããªã³ã¯ãæ©ã ã«å¤æ´ãã¦ããã¾ãããã Introduction The corelib project is an ActionScript 3 Library that contains a number of classes and utilities for working with ActionScript
Bitmap.draw()ããã¨ããåºæºç¹ãå·¦ä¸ã ã¨åé¡ãªãã®ã§ããã ãã¤ãã¹ã®ä½ç½®ã«DisplayObjectããã£ãããã㨠é åãåå¾ããã¨ãã«é¢åããããªããã¡ã§ãã ããã§ãã£ããã£é åãèªåçã«å¤å®ãã¦ãã£ããã£ããã¯ã©ã¹ãä½ãã¾ããã ASãã¡ã¤ã« DrawAuto.drawBmp(displayObject : DisplayObject) ã§Bitmapãè¿ãã¾ãã DrawAuto.drawBmd(displayObject : DisplayObject) ã§BitmapDataãè¿ãã¾ãã DrawAuto.getRectAuto(displayObject : DisplayObject) ã§ãã©ã¡ã¼ã¿DisplayObjectã®ãã¼ã«ã«Rectangleãè¿ãã¾ãã ä»çµã¿ã¯ãããã¼ã®ã¹ãã©ã¤ããä½ããã©ã¡ã¼ã¿DisplayObjectãaddChild()ã
drawTrianglesã§ããã¼ã第ï¼åã§ãã ååã¯ãã¨ãããã使ã£ã¦ã¿ãã¨ãããã¨ã§drawTrianglesãæ±ãããã®ã¯ã©ã¹ãä½ããé©å½ã«ã¨ãã§ã¯ããä½ã£ã¦ã¿ã¾ããã ä»åã¯ååã®ä»çµã¿ãå©ç¨ããã¡ãã£ã¨ããããã£ã½ãè¦ããã¨ãã§ã¯ããä½ã£ã¦ã¿ã¾ãã èãæ¹ ã¨ã¯è¨ã£ã¦ããååã§drawTrianglesãæ±ãã¯ã©ã¹ãä½ã£ã¦ãã¾ã£ã¦ããã®ã§ãã¨ãã§ã¯ãã®ããªã¨ã¼ã·ã§ã³ãå¢ããã«ããã£ã¦å·¥å¤«ãããã¤ã³ãã¯DistortUnitã¯ã©ã¹ã®fadeInãããã³fadeOutã¡ã½ããã ãã§ãã ååã®ã³ã¼ããè¦ãã¨ãã®ããã«ãªã£ã¦ãã¾ãã public function fadeOut():void { var i:int = 0; for each(var p:touchPoint in PtArray) { BetweenAS3.delay( BetweenAS3.tween(p,{$
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}