AS3ã®flash.utils.ByteArrayã使ãã¨ãã¤ãåä½ã®æä½ãå¯è½ã«ãªãããããã¦Flashã§JPEG,PNGãªã©ã®ç»åçæãã§ããã
ä»ã«ãzipã¢ã¼ã«ã¤ã解åãé³å£°ãªãflvãä½æå¯è½ã
Adobe – Developer Center 2008-09-28ã®è¨äº Saving Flash graphics as image files at runtimeã«ã½ã¼ã¹ãã¡ã¤ã«ä»ãã§ãµã³ãã«ããã£ãã®ã§ããããã試ãã¦ã¿ãã
èè
ã®Clive Goodinsonã¯ãããã§Comicãä½ããPixton.comã®å¶ä½ã«æºãã£ãgoodinson.comã®äººã
ãµã³ãã«ã¯å
¥åããããã¹ããã¨MovieClipããã£ããã£ããå¾ãJPGãPNGã«å¤æãã¦ããµã¼ãã¼ã®PHPã«ãã¼ã¿ãéã
ã»å度èªã¿è¾¼ã
ã»ãã¦ã³ãã¼ããã
ã»ãã©ã¦ã¶ã®å¥ã¦ã¤ã³ãã¦ã«è¡¨ç¤ºãã
ãè¡ããããã«ãªã£ã¦ããã
ãµã¼ãã¼å´ã®PHPã¯åã«ãã¼ã¿ãè¿ãã ãã§ãããã§ç»åãçæãã¦ããªãã
ç»åçæå¦çã¾ã§ãã¹ã¦Flashå´ã§ã§ãããã¨ãã¹ã´ã¤ã
Diretorã ã¨ãµã¼ããã¼ãã£ã¼ã®extraã使ããªãã¨ãããªãã¨ããã»ã»ã»
ByteArrayã®ä»ã«ä»¥ä¸ã®ã©ã¤ãã©ãªã使ãã
Adobeã® corelibã
dynamicflash.comã® com.dynamicflash.util.Base64ã
Base64
ActionScript 3.0 Base64 encoder/decoder ã«ãå°ã解説ãã
Base64ä½è
ã®Steve Websterããã¯Yahoo UKã®Web Developerã§Foundation ActionScript 3.0 with Flash CS3 and Flex èæ¸ã®ä¸äººã
ãæé ãcom.goodinson.snapshot.Snapshot.as
- ãã£ããã£ãããç©å½¢ãgetBoundsã§åå¾
- ç©å½¢ãµã¤ãºã®BitmapDataãã¤ãããã£ããã£å ãè¤è£½
- corelibã® JPGEncoder, PNGEncoder ã§ByteArrayã¸ã¨ã³ã³ã¼ã
- ByteArrayãBase64ã§Stringåã¸
- ãµã¼ãã¼ã¸POSTéä¿¡
åèªã¿è¾¼ã¿ç¨ã¤ã³ã¹ã¿ã³ã¹ loader ãåç´ãªMovieClipã«ããã®ã§ã
ãµã³ãã«ã½ã¼ã¹ã®Snapshot.as
options.loader.load(request);
ã
var ldr:Loader = new Loader();
ldr.load(request);
options.loader.removeChildAt(0);
options.loader.addChild(ldr);
ã¸ä¿®æ£ã
ãµã³ãã«ã§ã¯loaderã¯ãªã³ã±ã¼ã¸ã§Loader Classã®ã¤ã³ã¹ã¿ã³ã¹ã«ãªã£ã¦ããã
[swfobj src=”http://www.inazumatv.com/contents/wp-content/uploads/2008/10/snapshot-test-1.swf” alt=”Flashã§JPG,PNGçæ” width=”600″ height=”300″ id=”snapshot-test-1″ name=”snapshot-test-1″ allowfullscreen=”false” required_player_version=”9.0.124″]
AIRãªããµã¼ãã¼ãªãã§åä½ã§ã§ããããã
update : 2008-12-28
æ·»ä»PHPãã¡ã¤ã«ã¯ä¸æ£ã¢ã¯ã»ã¹ãªã©ã®å¯¾çãªã©ãå
¨ãæ½ããã¦ããªãã®ã§ããã®ã¾ã¾Webã§ä½¿ãã®ã¯å±éºã§ã¯ãªããã¨æãã
POSTããããã¼ã¿ããããã¼ãä»ãã¦è¿ãã¦ããã ãã ãã©ãç´æ¥ã¢ã¯ã»ã¹å¯¾çãããã¯ãã¦ãããæ¹ãè¯ãããã ã
update : 2009-06-19
Flash Player 10 ãã¿ã¼ã²ãã㧠JPEG ã¨ã³ã³ã¼ãã 㨠Alchemy ç jpegencoder ã使ãæ¹ãå¦çãæ©ãã
Alchemy, jpegencoder â ç»é¢ããã£ããã£ãã¦JPEGã§ä¿å
flash.net.FileReference
ã使ãã° PHP ãçµç±ããªãã¦ããã¦ã³ãã¼ããå¯è½ã«ãªãã
as3-corelib ã¯githubã¸ç§»åãã¦ãã¾ãã
https://github.com/mikechambers/as3corelib
ãã³ããã¯: ã¤ãã ãtvãã° » Alchemy, jpegencoder – ç»é¢ããã£ããã£ãã¦JPEGã§ä¿å
ãã³ããã¯: ã¤ãã ãtvãã° » ãã£ããã£ããByteArrayãBitmapDataã¸å¤æãåå©ç¨
ãã³ããã¯: æ¥ã ã®ã¡ã¢å¼µ » [AS3] PNGç»åã®çæ
ãã³ããã¯: ã¤ãã ãtvãã° 2010 « ã¤ãã ãTVãã°