Flash AS3Öг£ÓõÄÊýѧ¹«Ê½ÓëAS3³ÌÐò±íʾÐÎʽ
Flash AS3Öг£ÓõÄÊýѧ¹«Ê½ÓëAS3³ÌÐò±íʾÐÎʽ
2009-01-15 00:08
»ù±¾Èý½Çº¯ÊýµÄ¼ÆË㣺
½ÇµÄÕýÏÒÖµ£½¶Ô±ß/б±ß
½ÇµÄÓàÏÒÖµ£½ÁÚ±ß/б±ß
½ÇµÄÕýÇÐÖµ£½¶Ô±ß/ÁÚ±ß
½Ç¶ÈÖÆÓ뻡¶ÈÖƵÄÏ໥ת»»£º
»¡¶È£½½Ç¶È×Math.PI/180
½Ç¶È£½»¡¶È×180/Math.PI
ÏòÊó±êÐýת£¨»òÏòijµãÐýת£©£º
dx=mouseX-sprite.x;
dy=mouseY-sprite.y;
sprite.rotation=Math.atan2(dy,dx)*180/Math.PI;
´´½¨²¨ÐΣº
public function onEnterFrame(e:Event){
value=center+Math.sin(angle)*range;
angle+=speed;
}
´´½¨Ô²ÐΣº
public function onEnterFrame(e:Event){
xposition=centerX+Math.cos(angle)*radius;
yposition=centerY+Math.sin(angle)*radius;
angle+=speed;
}
´´½¨ÍÖÔ²£º
public function onEnterFrame(e:Event){
xposition=centerX+Math.cos(angle)*radiusX;
yposition=centerY+Math.sin(angle)*radiusY;
angle+=speed;
}
¼ÆËãÁ½µã¼ä¾àÀ룺
dx=x2-x1;
dy=y2-y1;
dist=Math.sqrt(dx*dx+dy*dy);
Ïà¹ØÎĵµ£º
ÏîÄ¿ÒªÇóÔÚflashÖÐÏÔʾpdfÎĵµ¡£ÆäÖиÃflashµÄ×ó²àÓÐÒ»¸öµ¼º½À¸£¬Óû§¿ÉÒÔÑ¡Ôñ²é¿´ÄǸöpdfÎĵµ£¬ÏàÓ¦µÄpdfÎĵµ¾ÍÔÚÓÒ²àÏÔʾ¡£googleһϷ¢ÏÖflashÄ¿Ç°²¢²»Ö§³ÖÏÔʾpdf£¬Ö»ÓÐAIR¿ÉÒÔ¡£ÕæÊǸ㲻¶®ÕâÊÇΪʲô¡£ÐҺ÷¢ÏÖ¿ÉÒÔÄÚǶһ¸öpdf readerÕâÑùµÄ¶«Î÷ÔÚÍøÒ³ÖУ¬È»ºóÔÙ×öÒ»¸öflashµ¼º½À¸£¬Ö®¼äͨ¹ýjavascript½øÐÐͨÐÅ¡£ÈçºÎÔ ......
Math¶ÔÏó£¬×÷ΪһÃűà³Ì
ÓïÑÔ£¬½øÐÐÊýѧ¼ÆËãÊDZز»¿ÉÉٵġ£ÔÚÊýѧ¼ÆËãÖо³£»áʹÓõ½Êýѧº¯Êý
£¬ÈçÈ¡¾ø¶ÔÖµ¡¢¿ª·½¡¢È¡Õû¡¢ÇóÈý½Çº¯ÊýÖµµÈ£¬»¹ÓÐÒ»ÖÖÖØÒªµÄº¯ÊýÊÇËæ»úº¯Êý¡£ActionScript½«ËùÓÐÕâЩÓëÊýѧÓйصķ½·¨¡¢³£Êý¡¢Èý½Çº¯ÊýÒÔ¼°Ëæ»úÊý¶¼¼¯Öе½Ò»¸ö¶ÔÏóÀïÃæ——Math¶ÔÏó¡£Math¶ÔÏóÊÇActionScriptµÄÒ»¿éÇà ......
ÔÚhtmlÎļþÖÐǶÈëµÄ´úÂëÈçÏÂ:
<script type="text/javascript">
var xmlUrl="news.xml";
var swfURL="news.swf";
var img_Speed=2;
var page_Speed=3000;
var TextPosition="down";
var HeadlineColor="#ff0000";
var HeadlineFont="14px";
va ......
×÷ÕߣºØýÃû À´Ô´£º±¾Õ¾ÕûÀí ·¢²¼Ê±¼ä£º2010-02-24 09:42:10
ÎÒÃÇÏþµÃdoubleClickÊÂÇéÊÇÔÚas3ÖÐÐÂÔö¼ÓµÄÊÂÇé,ÎÒÃǾ³£ÐèÇóʹÓõ½Õâ¸öÊÂÇé,ÔÚas2ÎÒʱÆÚÐèÇó±¾ÈËдº¯ÊýÅбðË«»÷,ÔÚas3ÖоÍÄܹ»Ö±½ÓʹÓÃÕâ¸öÊÂÇéÁË,µ«ÊÇÔÚʹÓÃÕâ¸öÊÂÇéµÄʱ·ÖÓиöϸ½ÚÒª´ÎÒª,Ê×ÏÈÊÂÇéÊÇInteractiveObjectËùÊôµÄ,Òò¶ø´ÓInte ......
Ê×ÏÈ£¬ÅäÖÃRedBootµÄIP¼°Æätftp·þÎñÆ÷IP£¬×°ºÃtftp·þÎñÆ÷£¬ÐèÒªÏÂÔصÄÄں˼°ÄÚ´æ¾µÏóÓ¦·ÅÔÚ·þÎñÆ÷µÄ/tftpbootĿ¼ÏÂ
ÅäÖÃRedBootµÄÖ¸ÁîÊÇ
> fconfig
×¢Ò⣺Æô¶¯µÄÑÓʱ²»ÒªÉèΪ0£¬·ñÔòÒÔºó¾ÍºÜÄÑÔÙ¸ü¸ÄϵͳÁË
È»ºóÒªÖ´ÐÐflash´æ´¢Æ÷µÄ³õʼ»¯¹¤×÷£º
> fis init
Ö®ºó£¬½«kernelÓëramdisk.gzͨ¹ýtftpÏÂÔØÖÁÄڴ沢д ......