flashλͼ¼¼ÊõÑо¿Æª(5)£ºÏñËØ»
½ñÌì¹â¹ËÁËÍâ¹úµÄijһЩ²©¿Í¶ÔλͼµÄÓ¦Ó㬷¢ÏÖ¶ÔλͼµÄ²Ù×÷»á±ä»¯³öºÜ¶àºÜ¶àЧ¹û£¬ÆäÖÐһƪÊÇÏñËØ»µÄʵÏÖ£¬½èÖúÕâÖÖ¶ÔλͼµÄÏñËØ²Ù×÷Ó¦Óã¬ÖØÐÂ×éºÏ³ÉеÄͼƬ£¬È»ºóÆ´ºÏ³ÉÒ»ÕÅеÄͼƬ¡£
˼·ºÜ¼òµ¥¡£½èÓÃÕâÖÖÊÖ·¨Ó¦ÓöÔһЩЧ¹û»áºÜ´ó°ïÖú¡£Èç¾ÛºÏÓë·ÖÉ¢µÄÏñËØ¶¯»¡£
×ó±ßÊÇÒ»ÕÅÕý³£µÄ£¬¶øÓÒ±ßÊÇÒ»Õž¹ýÏñËØ´¦ÀíµÄ»ÒÌ«ÀǵÄͼƬ¡£
ͨ¹ýÍⲿ¼ÓÔØ»ØÀ´µÄͼƬ£¬»ñÈ¡µ½Êý¾ÝÔ´£¬Í¨¹ýÕâ¸öÊý¾ÝÔ´ÎÒÃÇ¿ÉÒÔ½èÓÃbitmapdata ÀàµÄ»ñÈ¡ÏñËØµÄÖµµÄ²Ù×÷£¬Ã¿Ò»¸öÏñËØ°üº¬RBGµÄÖµ£¬Í¨¹ýgetPixel£¨x,y£©Äܹ»¶Ôλͼ½øÐÐÏñËØ»ñÈ¡¡£È»ºó½øÐÐÌî³äʹÓá£×îºó²úÉú³öÓÒ±ßÏñËØµÄ»ÃæµÄЧ¹û¡£Ö÷񻃾¼°µÄ·½·¨Ó¦ÓÃÊÇ
Á½¸öÑ»·»ñÈ¡ÏñËØµÄµÄÖµ¡£
//½øÐÐÏñËØ»ñÈ¡£¬ÖØ×éÏñËØ
for (var i:int=0; i<Width; i+=step)
{
for (var j:int=0; j<Height; j+=step)
{
var color:uint=bmpData.getPixel(i,j);
var rect:Rectangle=new Rectangle(i,j,step,step);
bmpData.fillRect(rect,color);//Ìî³äÏñËØ
}
}
ÏÂÃæÊÇʵÏÖ¹ý³Ì£¬×îÖ÷ÒªÁ˽⵽getPixelÕâ¸ö·½·¨Ê¹Óü´¿É¡£
view plaincopy to clipboardprint?
package
{
import flash.display.Sprite;
import flash.display.Loader;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.events.*;
import flash.net.*;
import flash.geom.Rectangle;
public class Main extends Sprite
{
private var loader:Loader;
private var url:String="3.jpg";
private var step:int=5;
public function Main()
Ïà¹ØÎĵµ£º
µçÄÔÓÐÒ»ÌìͻȻ³öÏÖÁËÒ»¸öÎÊÌ⣬ÔÚÎÒ½øÅ©³¡×¼±¸Ã¿ÈÕ͵²Ëʱ£¬³öÏÖÒ»¸ö½çÃæÒªÎÒÏÂÔØ×îÐÂFLASH²å¼þ£¬ÎÒ°´Í¼±êµã»÷£¬½á¹ûµçÄÔ¸æËßÎÒ°²×°Ê§°Ü£¬ºóÀ´»ù±¾Ã¿´ò¿ªÒ»¸öÍøÒ³¾Íµ¯³öÒªÎÒ°²×°FLASH PLAYERÖ®ÀàµÄ£¬´Ó´ËÎұ㿪ʼÁËÎÒÒì³£ÓôÃÆµÄÉÏÍøÉúÑÄ¡£ÔÚÍøÉÏÕÒÁËһЩ½â¾ö°ì·¨£¬È·Ê¼ÖÕû¸ã¶¨&helli ......
ÕâÊÇһƪÀ´×ÔAdobe ¿ª·¢ÕßÖÐÐĵÄÎÄÕ£¬ÓÉRIAMeeting·ÒëС×é³ÉÔ±ÍõºØ·Òë¡£ÔÎĵØÖ·ÊÇ£ºhttp://www.adobe.com/devnet/flashplayer/articles/privacy_mode_fp10.1.html
ÓÐʱºòÄãÏ£ÍûʹÓÃ˽ÃÜä¯ÀÀ·½Ê½À´´ò¿ªÍøÕ¾£¬Adobe Flash Player 10.1 ½«ÔÚ¶à¸öä¯ÀÀÆ÷ÖÐÖ§³Ö˽ÃÜä¯ÀÀ·½Ê½¡£
˽ÃÜä¯ÀÀ½«ÈÃÄãä¯ÀÀÍøÒ³µ«²»ÔÚµçÄÔÉÏÁôÏÂÈκÎÀ ......
ÔÎļû£ºhttp://x264dev.multimedia.cx/?p=292
Flash£¬Google£¬VP8ÒÔ¼°»¥ÁªÍøÊÓÆµµÄδÀ´
Õ⽫»áÊÇÒ»¸ö±ÈÍù³£¸ü³¤µÄÌû×Ó£¬ÒòΪËü»áº¸ÇÁËÐí¶àÄÚÈÝ¡£
»¥ÁªÍøÉϳä³â×ű§Ô¹FlashµÄÎÄÕºܳ¤Ê±¼äÁË£¬ÒÔÖÁÓÚÌýÆðÀ´¾ÍÏñÕû¸ö»¥ÁªÍøÔÚº°ÀÇÀ´ÁË¡£µ«ÊÇ£¬µ±È»£¬¾¡¹Ü²»¶Ï±§Ô¹£¬ËûÃÇÊǶԵģºFlashÔÚWindows x86ÒÔÍâµÄƽ̨ÐÔÄܶ¼ºÜÔã¸â¶ø ......
ÔÚÖ®Ç°ÖÆ×÷µÄ°æ±¾£¬ÓÉÓÚûÓÐÒýÈ뻺³åµÄЧ¹û£¬¿´ÆðÀ´Ð§¹û²¢²»ºÃ£¬ÕâÒ»´ÎÐÞ¸Äһϣ¬°Ñ֮ǰµÄ¸ÄÔìһϡ£ÓÐÁË»º³åµÄ°ïÖú£¬Ð§¹ûÍêÉÆÁ˺ܶà
µ«ÊÇ»¹ÊÇÓÐÄÚ´æµÄһЩÎÊÌ⣬ÈÃÈ˾õµÃ²»Ë¬¡£
¸Ä½ø°ì·¨£¬¶ÔÿһÕÅͼƬ¼ÓÈëEvent¡£EnterFrame ʼþ£¬Ã¿Ò»Ö¡Ë¢Ð£¬ÕâÑùµÄºÃ´¦Ê¹¶¯»±äµÃÁ¬¹á£¬µ«ÊDz»ºÃµÄµØ·½»áµ¼ÖÂÄÚ´æÊ¹Óùý¶à
ʹ ......
Ò»¡¢½éÉÜÓëFlash¶¯»¿ØÖÆÓйصÄjavascriptº¯Êý£º
º¯ÊýÃû ʹÓà &n ......