flash »æͼAPI£ºÊó±êÍ϶¯Ð¡Çò
ÏÖÔÚÓиöÁé¸Ð£¬ÄǾÍÊÇͨ¹ýÊó±êÍ϶¯ÕâЩСÇò£¬Êó±êÒƶ¯µÄʱºò£¬ÄÇЩСÇò»á¸ú×ÙÊó±êÄ¿±êÒƶ¯¡£ÕâЩֻҪʹÓÃflash »æͼAPIÖÆ×÷£¬
¾ÍÄܹ»Íê³É£»
µÚÒ»²½£ºËæ»ú´´ÔìһЩСÇò
private function creatBall():void
{
for (var i:int=0; i<10; i++)
{
var ball:Ball=new Ball();
addChild(ball);
list.push(ball);
ball.x=Math.random()*550;
ball.y=Math.random()*400;
}
}
µÚ¶þ²½£º
½øÐжÔÊó±ê¼àÌý£¬Õë¶ÔÊó±êµÄ °´Ï£¬ºÍËÉ¿ª×´Ì¬½øÐмàÌý£¬²¢¼ÓÒÔEnterFrameʼþ£¬Ã¿Ò»Ö¡½øÐÐˢвÙ×÷
private function init():void
{
stage.addEventListener(MouseEvent.MOUSE_DOWN,MouseDown);
stage.addEventListener(MouseEvent.MOUSE_UP,MouseUp);
stage.addEventListener(Event.ENTER_FRAME,Run);
}
µÚÈý²½£º
¶ÔСÇò½øÐлæÖÆÖ±Ïߣ¬ÕâÒ»²½ÎÒÃÇÖ÷ҪʹÓÃmoveTo ºÍLineToµÄ·½Ê½¾ÍÐУ¬ÆäËûµÄÒ²¿ÉÒÔʹÓÃflash cs4µÄdrawpath
¹Ø¼üµÄµØ·½¾ÍÊÇÈ·Á¢ºÃÿһ¸öСÇòµÄλÖá£
//»æÖÆÏßÌõ
private function drawLine(x1,y1):void
{
graphics.clear();
graphics.lineStyle(1,0xff0000);
for (var i:int=0; i<list.length; i++)
{
graphics.moveTo(mouseX,mouseY);
graphics.lineTo(list[i].x,list[i].y);
}
}
µÚËIJ½£ºÐ¡ÇòÔ˶¯
ÔõÑù²ÅÄÜÔËÐУ¿Æäʵ¾ÍÊÇת»»Îª½Ç¶ÈµÄÎÊÌâÁË¡£ÒªÈÃСÇò²úÉúÒƶ¯£¬ÔòÐèÒªÖªµÀËûµÄËٶȣ¬·Ö½âÆävx ºÍvy Á½¸ö·½Ïò£¬¼ÆËã³öËûÃǵÄλÒÆ
private function BallMove():void
{
for (var i:int=0; i<list.length; i++)
{
var angle:Number=Math.atan2(mouseY-list[i].y,mouseX-list[i].x);// ¼ÆËã³öÊó±êµã£¬Óëÿһ¸öСÇòÖ±½ÓµÄ½Ç¶ÈÖµ
list[i].x+=Math.cos(angle)*speed;//λÒÆ¡£
list[i].y+=Math.sin(angle)*speed;
}
}
×ܽ᣺ÕâЩСÍæÒ⣬ֻÊÇ»æͼapi һЩ×î¼òµ¥Ó¦Óã¬ÓÐÁËÕâЩӦÓú㬿ÉÒÔÀ©Õ¹ºÜ¶àºÜ¶àÒâÏë²»µ½µÄЧ¹û¡£²»¹ý²»ÒªÍü¼Ç£¬Ð§¹û±³ºóÍùÍùÊÇһЩÊýѧºÍÎïÀíµÄÔÀí¡£ ÕâÒ»µãºÜÖØÒª¡£
ÓÐʲôÏë·¨?Èç¹ûÓмÇÏÂÀ´°É£¬¶ÔÄã˵²»¶¨ÓаïÖú¡£
package
{
import flash.display.MovieClip;
import flash.events.*;
//Í϶¯Ð¡Çò
public class Main extends MovieClip
{
private var list:Array=new Array();//Áбí
private var key:Boolean=false;
private var speed:int=5;
Ïà¹ØÎĵµ£º
ʲôÊÇFlash Memory´æ´¢Æ÷
½éÉܹØÓÚÉÁËÙ´æ´¢Æ÷ÓйØ֪ʶ ½üÄêÀ´£¬·¢Õ¹ºÜ¿ìµÄÐÂÐÍ°ëµ¼Ìå´æ´¢Æ÷ÊÇÉÁËÙ´æ´¢Æ÷(Flash Memory)¡£ËüµÄÖ÷ÒªÌصãÊÇÔÚ²»¼ÓµçµÄÇé¿öÏÂÄܳ¤ÆÚ±£³Ö´æ´¢µÄÐÅÏ¢¡£¾ÍÆä±¾ÖʶøÑÔ£¬Flash MemoryÊôÓÚEEPROM(µç²Á³ý¿É±à ³ÌÖ»¶Á´æ´¢Æ÷)ÀàÐÍ¡£Ëü¼ÈÓÐROMµÄÌص㣬ÓÖÓкܸߵĴæÈ¡Ëٶȣ¬ ......
ÕâÊÇ֮ǰÔÚCEÉÏ×öµÄNAND FlashµÄÀ©Õ¹£¬ÔÚmobileÉÏҲʵÏÖÁË¡£·½·¨ÊÇÏàͬµÄ£¬ÎÒÃÇËù×öµÄÊÇʵÏÖ64Mµ½128MµÄÀ©Õ¹¡£
¶ÔÓÚÕâÑùµÄÎÊÌ⣬ºÜÃ÷ÏÔ¾ÍÊÇÒª¸Äµ×²ãµÄ¼Ä´æÆ÷£¬Ê×ÏÈÐèÒªÐÞ¸Änand controllerÖеļĴæÆ÷£¬¸ù¾ÝdatasheetÀ´À©´ónand flashµÄµØÖ·Ó³Éä¿Õ¼ä£¬nand controller±ØÐëÓÐÖ§³Ö¶à¸öbankµÄÄÜÁ¦£¬Î ......
ÕâһƪÊÇÁÙʱµÄ±Ê¼£¬ÎÒÃÇÖªµÀas3 ÊÇÃæÏò¶ÔÏóµÄÓïÑÔ£¬ÕâÖÖÓïÑÔÄܹ»·½±ãµÄ·â×°ºÃһЩÀ࣬ÖØÓÃÐԵõ½¼ÓÇ¿¡£Ã¿Ò»¸öÈ˶¼ÓÐÒ»Ì×¾ø»î£¬ÕâЩ¾ø»î¾ÍÏñÎäÁÖµ±ÖÐÿһÅɵÄÎäѧÄÇÑù¡£ÔÚƽʱµÄ¹¤×÷ʹÓÃÉÏ£¬ÊÕ¼¯ÕâЩ¹¤¾ßÄܹ»·½±ã×Ô¼º¹¤×÷£¬Ò²³ÉΪ×Ô¼ºÒ»Ì×Îäѧ¡£
ÀýÈ磺adobe ºËÐÄÀà¿â £¬ 3dÒýÇæÀà¿â£¬ÎïÀíÒýÇæÀà¿â box2d £¬ ......
NASCARºÍÃÀ¹ú¿Õ¾üºÏ×÷ÍøÕ¾
È«ÇòÉú
Îï·ÖÀ೫ÒéÏîÄ¿ GTI Project
Ë÷ÄáÓëÎÒ
Õâ¸öÍøÕ¾ÓÃÊýÂëÏà»ú¼Ç¼Á˶ùͯ³É³¤µÄÐéÄâÌåÑé¡£
µ±
ÄúÔÚ¹Û¿´ÊÓƵ£¬Äú¿ÉÒÔÑ¡ÔñÄúϲ»¶µÄ˲¼ä£¬²¢¼Ç¼ÏÂÀ´¡£
¹²ºÍ¹úµÄ¼¦µ°
¹²ºÍ¹ú¼¦µ°ÓÉËĸö־ͬµÀºÏµÄÈË×é³É£¬ÍŽᣬŬÁ¦½¨ÉèÒ»
¸öеĴ´ÒâÈȵꡣ
ËûÃÇÖ»ÓÐÒ»¸öÄ¿±ê£¬¾ÍÊÇ»ý¼«Íƶ¯ÖÐ ......
ÔÚubuntu
ÉÏ°²×°Á˹ٷ½µÄflash playerºó£¬ÆäÖеĶ¯Ì¬ÖÐÎÄ×ÖÌåÈ´ÏÔʾΪ·½¿éµÄÎÊÌâ¿ÉÒÔÓÃÒÔÏ·½·¨½â¾ö
ɾ³ýÒ»¸ö×ÖÌåµÄÉèÖÃÎļþºó£¬ÖØÐÂÆô¶¯firefoxÎÊÌâ¾Í¿ÉÒÔ½â¾ö¡£
Ö´ÐеÄÃüÁîΪ£º
$ sudo rm /etc/fonts/conf.d/49-sansserif.conf
......