ÿÌìѧһµãflash£¨64£© ²Êɫλͼת»»ºÚ°×ÕÕ
½ñÌì¿´ÁËÍâ¹úһƪÎÄÕ£¬¾õµÃºÜÓÐÒâ˼£¬ÓÚÊÇÔÚÕâÀï¼Ç¼һÏ¡£²Êɫͼת»»³ÉºÚ°×ÕÕ¡£ÔÚps ÒªÊǽ«²ÊÉ«µÄͼת»»ºÚ°×Õյķ½Ê½Ö»ÊÇÐèÒª¼òµ¥µÄ¶¯×÷¡£¶øÔÚflash ´¦ÀíÆðÀ´Ò²·Ç³£¼òµ¥¡£
ÏÈÑ¡ÔñÒ»ÕÅϲ»¶µÄͼƬ£¬È»ºó½øÐд¦Àí¡£ÀýÈçÕâÕÅÕÕƬ£¬Í¼Æ¬ÖеÄÊÇÒ»¸öºÜ²»´íµÄö¦Å®¡£ºÇºÇ
ÏÖÔÚͨ¹ýÒ»¶Î´úÂ룺¾Í¿ÉÒÔ½øÐÐת»»³ÉºÚ°×µÄÕÕƬ£º
ÔÚÕâ¸ö¹ý³ÌÖУ¬Æäʵ¶Ôÿһ¸öÏñËصã½øÐÐÐ޸ģ¬²Å»á²úÉúÕâÖÖЧ¹û¡£ÎÒÃÇͨ¹ýɨÃèÀ´»ñȡÿһ¸öÏñËصãµÄÖµ¡£È»ºóÀûÓÃλͼµÄAPIÐÞ¸Äÿһ¸öÖµ²úÉúÕâÖÖ½á¹û¡£
test();
function test():void
{
trace(0xff);
trace(0xffffff);
var bit:Bitmap=new Bitmap(new Myclass(0,0));
addChild(bit);
bit.width=225;
bit.height=336;
for (var i:uint=0; i<bit.bitmapData.height; i++)
{
for (var j:uint=0; j<bit.bitmapData.width; j++)
{
var pixelValue:uint = bit.bitmapData.getPixel(j, i);
bit.bitmapData.setPixel(j,i,(pixelValue &0xff)<<16 | (pixelValue &0xff)<<8 |(pixelValue & 0xff));
}
}
}
µ±ÖеĹؼüµØ·½£¬ÔÚÓÚ¶Ô
var pixelValue:uint = bit.bitmapData.getPixel(j, i);
bit.bitmapData.setPixel(j,i,(pixelValue &0xff)<<16 | (pixelValue &0xff)<<8 |(pixelValue & 0xff));
½øÐлñȡÿһ¸öÏñËصãµÄÖµ¡£RGBµÄÖµ£¬È»ºóÔÙ¸ù¾ÝλÔËËãÀ´È·¶¨ÕâÖÖЧ¹û¡£
Ö÷ÒªµÄAPI£º
setPixel(x:int, y:int, color:uint):void
ÉèÖà BitmapData ¶ÔÏóµÄµ¥¸öÏñËØ¡£
getPixel(x:int, y:int):uint
·µ»ØÒ»¸öÕûÊý£¬Ëü±íʾ BitmapData ¶ÔÏóÖÐÔÚÌض¨µã (x, y) ´¦µÄ RGB ÏñËØÖµ¡£
ÆäËû×¢ÒâµÄµØ·½£ºÈôÊÇûÓжÔͼƬ½øÐÐÐ޸ijߴçµÄ»°£¬ÄÇôÔÏÈ
for (var i:uint=0; i<bit.bitmapData.height; i++)
¿ÉÒԸijÉfor (var i:uint=0; i<bit.height; i++)
·ñÔò¾Í²»¿ÉÒÔ.
ÆäÖÐ0xff ºÍ0xffffff Ô±¾ÒÔΪÊÇÒ»Ñù£¬µ«ÊǾ¹ý²âÊԵĽá¹û£¬·¢ÏÖ0xff ´ú±íÁË0--255 µÄÑÕÉ«£¬Ò²¾ÍÊdz£¼ûµÄRPGÖµ¡£
0xfffff Êä³öµÄ½á¹û16777215¡£ ½á¹û¾ÍÏÔÈ»²»Ò»ÑùÁË¡£
´ó¼Ò²»·ÁÈ¥²âÊÔһϡ£
ÓÐÒâ˼µÄÊÇ(pixelValue &0xff)<<16 ÕâЩͨ¹ýλÔËËãÔÙÒÆλµÄ¼ÆËã²úÉúµÄ½á¹ûΪʲô»á²úÉúºÚ°×µÄЧ¹ûÄØ?
ºÚ°×Ч¹ûÏñËØÖµÊǶàÉÙ£¿ ÄØ
Èç¹ûÏëµ½²»·Á¸æËßÎÒ¡£
ÏÂÃæÊÇͨ¹ýÀ©Õ¹BItmap Àà½øÐзâ×°µ÷ÓÃ
package
{
impor
Ïà¹ØÎĵµ£º
À´×Ô¡¶Foundation Actionscript 3.0 Animation: Making Things Move!¡·µÄÎïÀí¹«Ê½£º
ÏòÊó±ê£¨»òÕßÈκÎÒ»¸öµã£©Ðýת£º
// ÓÃÒªÐýתµ½µÄ x, y ×ø±êÌæ»» mouseX, mouseY
dx = mouseX - sprite.x;
dy = mouseY - sprite.y;
sprite.rotation = Math.atan2(dy, dx) * 180 / Math.PI;
´´½¨²¨ÐΣº
// ½« x, y »òÆäËüÊôÐ ......
ÒÔÏÂÊǶÔJFFSÎļþϵͳ×÷ÕßдµÄ½éÉÜÎÄÕµķÒë
ͻ񻣼
Ö±µ½×î½ü£¬ÔÚǶÈëʽÉ豸ÖÐ×îÆÕ±éʹÓÃFlash´æ´¢Æ÷µÄ¼¼Êõ¶¼ÊÇÔÚflash chipÉϼٶ¨ÁËÒ»¸öÎļþϵͳÀ´Ä£ÄâÒ»¸ö±ê×¼µÄ¿éÉ豸£¬²¢Ìṩwear levelling(ÄÍÄ¥)£¬²¢ÔÚÕâ¸ö·ÂÕæµÄ¿éÉ豸ÉÏʹÓÃÒ»¸öÕý³£µÄÎļþϵͳ¡£
JFFSÊÇÒ»¸öÓÉÈðµäAxis Communications ABÉè¼ÆµÄÌرðÓÃÓÚǶÈëÊ½ÏµÍ ......
2440+NAND Flash£¨K9F1208UOM£©×ܽá ÊÕ²Ø
2440+NAND Flash£¨K9F1208UOM£©×ܽ᣺
1. ÒÔPageΪµ¥Î»¶Áд£¬´ËFlashΪSmall Page Flash£¬¼´Ã¿Ò³Îª528Byte£¨512 Byte +16 Byte£©
2. ÒÔBlockΪµ¥Î»²Á³ý£¬Ã¿¸öBlockΪ£¨16K+512£©Byte¼´Îª32 Page
3. Õû¸öFlash·ÖΪMain area£¨Êý¾Ý´æ´¢£©ºÍSpare ar ......
¸Õ¸ÕʹÓÃfirefoxʱ£¬ÉÏÓÅ¿áÍøʱ£¬ÐèÒª°²×°flash²å¼þ£¬µ±Ê±ÏµÍ³ÌṩÁËÈý¸ö²å¼þ£¬µ±Ê±ÎÒÑ¡ÔñÁËshockwave flash£¬½á¹û°²×°ºó£¬ºÜ¶àÍøÒ³ÏÔʾ¶¼ÓÐÎÊÌ⣬ΪÁËɾ³ý£¬ÉÏÍøËÑË÷Á˺ܾ㬷½·¨ÈçÏ£º
sudo apt-get remove swfdec-mozilla
sudo apt-get remove libswfdec-0.6-90
ÔÙ°²×°adobe flash²å¼þ£¬ÈçÏ£º
sudo apt-get install ......
import flash.net.navigateToURL;
import flash.net.URLRequest;
//°ÑÁ´½ÓÇ¿ÖÆת»»³ÉURLRequest·½Ê½£¬ÕâÑù²Å¿ÉÒÔ±»navigateToURLÁ¬½Ó
var request:URLRequest = new URLRequest("aaa.html"); //ÌøתµÄÒ³Ãæ
navigateToURL(request,"_self");//Ìøת·½Ê½
stop(); ......