flash »æͼAPI£º»æÖÆСÓã
ÑÝʾµØÖ·£º
forked from: SimpleFish - wonderfl build flash online
½ñÌìÎÒÃÇÒª´´½¨Ò»¸öСÓãµÄ»æÖÆ¡£Õâ´ÎÎÒÃÇ»áʹÓÃSimpleFish.as ´´½¨»æÖÆСÓãÀà ¡£Í¬Ê±ÎÒÃÇ»áʹÓûæͼAPi µ±ÖеÄcurveTo µÄÒ»¸ö·½·¨¡£Õâ¸ö·½·¨Ó÷¨ÈçÏ£¬
this.graphics.moveTo(¿ªÊ¼ÆðµãX,¿ªÊ¼ÆðµãY);
this.graphics.curveTo(¿ØÖƵãX, ¿ØÖƵãY £¬Ä¿±êµãX, Ä¿±êµãY);
ÎÒÃÇÒÔÏÂÃæµÄͼ×÷Ϊһ¸öÉè¼Æͼ°¸¡££¬¿ÉÒÔ¿´³öÕâ´Î»æÖÆ£¬ÎÒÃÇʹÓõİ취²ÉÓÃÆ´ºÏµÄ×éºÏ·½Ê½½øÐС£µ±ÖÐÎÒÃÇʹÓõÄÇúÏß»æÖÆ£¬
Ô²µÄ»æÖÆ£¬ÒÔ¼°Ê¹ÓÃÃèÏߵİ취½øÐÐÁ¬Ïß¡£
ÎÒÃÇ´Ó¿ªÊ¼µÄµã£¨0,0£©½øÐÐ×÷Ϊ£¬ÓãÉí¸ß¶ÈµÄÒ»°ë×÷Ϊ¿ØÖƵã×ø±ê¡£¶øÓãβ°Í¾Í½øÐÐÁ¬Ïߵġ£
½â¾öÁËÕâ¸öÇúÏßµÄÎÊÌ⣬½ÓÏÂÀ´¾ÍÊÇ×éºÏµÄÎÊÌâÁË¡£µ±È»ÕâÌõÓãÊÇûÓмÓÓã³áµÄ¡£ËùÒÔÕâÖÖÓã½Ð×ö¼òµ¥ÎÞÊÖÓãÒ²²»ÊÇûÓеÀÀí°É£¬Ó¦¸Ã¸øËû¸Ä¸öºÃÃû×Ö¡£
¶¨ºÃÆð³õµÄµã£¬Í¬Ê±¶¨ºÃ¿ØÖƵãºÍÄ¿±êµã¡£ÕâÑùÎÒÃǵÄÇúÏß¾ÍÄÜ»æÖƳöÀ´ÁË
ÏÂÃæÊÇÒ»¸öÌṩдºÃµÄСÓãÀà
///SimpleFish.as ¸ÃÀàΪ¼òµ¥Óã
//vesion 1.0
//author ÏÄÌìµÄÊ÷ÈË
package
{
import flash.geom.Point;
import flash.display.Sprite;
public class SimpleFish extends Sprite
{
public var speed:Number;
public function SimpleFish()
{
}
public function clone():SimpleFish
{
return new SimpleFish();
}
//´´½¨¼òµ¥µÄÓã
public function CreatSimpleFish(Width:Number,Height:Number,eyes_Width:Number=5,Fish_rear:Number=50,n:int=4):void
{
this.graphics.lineStyle(1,0x000000);
this.graphics.moveTo(0,0);
this.graphics.curveTo(Width/2, Height, Width, 0);
this.graphics.moveTo(0,0);
this.graphics.curveTo(Width/2, -Height, Width, 0);
this.graphics.drawCircle(Width/5,0,eyes_Width);
this.graphics.moveTo(Width/4,-Height/2.7);
this.graphics.curveTo(Width/3, 0, Width/4, Height/2.7);
//´´½¨Óãβ
this.graphics.moveTo( Width, 0);
this.graphics.lineTo( Width+Width/n, Fish_rear);
this.graphics.moveTo( Width, 0);
this.graphics.lineTo( Width+Width/n, -Fish_rear);
this.graphics.lineTo( Width+Width/n,
Ïà¹ØÎĵµ£º
¾ßÌå·½·¨ÈçÏ£º
1. µã»÷¹¤¾ß——>ºê——>ºê
2. µ¯³öÒ»¸öºê´´½¨´°Ìå,ÔÚ´°¿ÚÖÐÊäÈëºêÃû£¨ÀýÈ磺ºêÃû£ºExtractFlash£©µã»÷´´½¨°´Å¥¡£
3. µ¯³öÒ»¸ö±à³Ì½çÃ棬ÔÚ½çÃæµÄÖмäÓÐÒ»¸öС´°¿Ú£¬ÔÚ´°¿ÚÖÐÊäÈëÏÂÃæµÄ³ÌÐò¶Î¡£
Sub ExtractFlash()
Dim tmpFileName As String, FileNumber As Integer
Dim ......
subject of application domain of flash and air.
ÔÚflash»òflexÖУ¬³ÌÐò¼ÓÔØÍⲿswfÎļþ£¬¸ÃÎļþµÄ³ÌÐòÓòĬÈÏΪÖ÷³Ì ÐòÓòµÄÒ»¸ö×ÓÓòÖС£±ÈÈçÄãʹÓÃA.swf¼ÓÔØB.swfÎļþ£¬B±»¼ÓÔغ󣬳ÉΪA³ÌÐòÓòµÄÒ»¸ö×ÓÓò£¬×ÓÓòÊÇÉêÃ÷ÀàµÄʱ£¬²»Äܸ²¸Ç¸¸ÀàÒÑÉêÃ÷ÀࣺÈç¹ûAÖж¨ ÒåÁËÀàcom.sogou.MapÀ࣬ͬʱBÖÐÒ²¶¨ÒåÁËcom.sogou.MapÀ࣬µ ......
ÓÉÓÚNAND FLASH²Á³ýʱ£¬Ö»ÄÜ°´°´¿é²Á³ý£¬Òò´ËÔÚдÉÈÇøʱ£¬
Ê×ÏÈÒª²Á³ýÒ»¸ö¿é¡£ÔÚ²Á³ý¿éÇ°£¬±ØÐ뽫¿éÄÚÆäËûÊý¾Ý¸´ÖƳöÀ´£¬
ÓÉÓÚÒ»¸ö¿é±È½Ï´ó£¨128KB£©£¬ÎÞ·¨ÔÚMCUÄÚ¿ª±ÙÈç´Ë´óµÄ»º³åÇø¡£
Ö»ºÃ½èÖú¸ÃNAND FLASHÄÚµÄÒ³¸´ÖÆÃüÁ½«ÔÀ´µÄ¿éÔÝʱ¸´ÖƵ½
Ò»¸ö½»»»ÓõĽ»»»¿éÖС£µ«ÊÇÈç¹û½öÓÃÒ»¸ö¿é×÷Ϊ½»»»µÄ»°£¬Ëü
¾Í»á±»Æµ ......
×Ô¼ºÐ´µÄ³ÌÐò,Ï£Íû¶Ô´ó¼ÒÓаïÖú,ÆäʵÕâƬflashÊ®·ÖµÄ±¯¾ç,Ö»ÓÐ4¸öblock,1MBµÄ¿Õ¼ä,³¤ÆÚ·Å¿ÉÖ´ÐдúÂëÓõÄ,¶ÌÆÚ·ÅÊý¾Ý,Ê®·ÖµÄ²»ºÏÊÊ...
void DelayTime( void )
{
u8 i ;
for( i = 0 ; i < 10 ; i++ ) ;
}
void atWriteCmd( u8 cmd )
{
SSPSend( &cmd , 1) ;
}
void atWriteData(u8 * buf , u32 nBytes ......