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;
Ïà¹ØÎĵµ£º
PotoshopÊÓƵ¶àýÌå½Ì³Ì——»±Ê¹¤¾ß
http://www.pconline.com.cn/pcedu/sj/pm/photoshop/0401/flash/040109fifps222.swf
PhotoshopÊÓƵ¶àýÌå½Ì³Ì——Ó¡Õ¹¤¾ß
http://www.pconline.com.cn/pcedu/sj/pm/photoshop/0401/flash/040112fifps223.swf
PhotoshopÊÓƵ¶àýÌå½Ì³Ì——¼Ç¼¹¤¾ß ......
ת×Ô£ºhttp://www.cnblogs.com/yao/archive/2007/02/24/655190.html
FlashÉÏ´«Îļþ(½áºÏasp.net)
Ò»¡¢ÊµÏÖÔÀí¡£
ÔÚijЩ³¡ºÏ£¬ÎÒÃÇÐèҪʹÓÃFlash½øÐГÎļþÉÏ´«”£¬ÔÒòÊÇFlash ÄÜÖÆ×÷³ö±íÏÖÁ¦·á¸»µÄUI½çÃæ¡£
(×Ô¸ºÓֹª¹ÑÎŵÄÎÒÔÚÕâÀï×öÒ»¸ö²¹³ä£ºFlashʹÓÃflash.net°üÖеÄFileReferenceÊÇ¿ÉÒÔ·¢ËÍÎļþÊý¾ ......
ÍøÉÏһţÈËдÁËһƪÎÄÕ£¬½éÉÜÓ¦ÓóÌÐòÈçºÎ²Ù×÷flashµÄ£ºhttp://blog.csdn.net/nanjianhui/archive/2008/03/19/2196466.aspx
ÓÉÓÚ¿Í»§µÄÒªÇó£¬ÐèÒªÏòϵͳflashÖÐдÈë²úÆ·ÐòÁкţ¬ÎÒÏë²ÉÓÃÏòÓ¦ÓóÌÐòÌṩ½Ó¿ÚµÄ·½·¨À´ÊµÏÖ¡£°´ÕÕÉÏÊöÎÄÕµÄ×ö·¨×öºÃÖ®ºó£¬ÔÚ·Çmulti-binµÄϵͳÏ£¬CreateFile(_T("DSK0:"),...)ÊÇûÓÐÈκÎÎÊÌâµ ......
1.Ê×ÏÈÏÂÔØFusionCharts ºÍ jqueryÏà¹ØµÄjar°ü
2.ÔÚWebRoot£¨MyEclipse£©ÏÂн¨scriptÎļþ¼Ð£¬·ÅÈëjquery.js¡£Ð½¨FusionCharts£¬½«fusionCharts°üϵÄChartsÎļþ¼ÐÕ³Ìù¹ýÀ´£¨ÀïÃæΪ¸÷ÖÖͼÏñ±¨±íµÄÄ£°å£ºÈçFCF_Area2D.swf¡¢FCF_Bar2D.swfµÈµÈ£©£¬½«FusionCharts.js¿½ÈëFusionChartsĿ¼Ï¡£
3.×¼±¸¹¤×÷Íê±Ï¡¢±àд ......