Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

FlashÓëÊýѧ£ºÐÄÐÎÏß


  µ±³õ¿´µ½ÕâЩÏßµÄʱºò ÊÇÔÚÒ»¸öÊýѧµÄÍøÉÏ£¬½ñÌìÒ²¶¯ÊÖŪÁËÒ»¸öÐÄÐÎÏß¡£ÄÚÈÝÆäʵºÜ¼òµ¥£¬Ã»ÓÐʲô»¨ÇεĶ«Î÷£¬µ«ÊÇÀûÓü«×ø±ê·½³Ì¿ÉÒÔ½áºÏflash µ±ÖУ¬Í¬ÑùÒ²»áʹÓü«×ø±êµÄ·½³Ì»æÖÆÃµ¹åÏß¡£ÓÉÓÚÄÜÁ¦ÓÐÏÞ£¬»¹ÊÇÒ»²½²½À´°É¡£
½ñÌìѧÁËÕâ¸ö¶«Î÷¡£ÎÒÃǰѹ«Ê½Õ³ÌùÉÏ£¬¶¼¿ÉÒÔÍøÉÏËÑË÷µ½
//ËÄÖÖ·½ÏòÐÄÐÎÏß
 r=a*(1+cos(angle))
 r=a*(1-cos(angle))
 r=a*(1+sin(angle))
 r=a*(1-sin(angle))
ÕâËÄÖֵļ«×ø±ê·½³Ì£¬ÓÐÁËÕâ¸ö·½³ÌÖ®ºó£¬ÎÒÃÇ¿ÉÒÔ½èÖúÕâÖÖ·½³ÌÀ´ÊµÏÖ»æÖÆÒ»¸öÐÄÐΡ£ÎÒÀÁµÃÒ»µãûÓÐÌî³äÑÕÉ«£¬ÓÐÐËȤ¿ÉÒÔ²¹³ä¡£
Õâ´ÎÎÒÃÇʹÓõÄPointÀ൱ÖÐÒ»¸ö¼«×ø±êת»»µÄ·½·¨À´Ãèµã¡£
var point:Point=Point.polar(r,angle);//¼«×ø±êת»»µÑ¿¨¶û×ø±ê
Õâ¸ö·½·¨¿ÉÒÔ½«¼«×ø±êת»»ÎÒÃdz£ÓõÄ×ø±êϵ¡£ÕâÑùÎÒÃÇ¿ÉÒÔÀûÓûæÍ¼api Ãè»æÃ¿Ò»¸öµã¡£
ÎÒÃÇÀûÓÃÕâ¸ö·½·¨£¬½«Ëû×öÒ»¸ö¼òµ¥Ãèµã¶¯»­¡£ÈçÏ´úÂë
ÆäÖÐÿһ¸ö¹«Ê½ÀïÃæÐÄÐεķ½ÏòÒ²²»»áÏàͬµÄ¡£
²»·Á×Ô¼º¿ÉÒÔ²âÊÔһϡ£ºÃ£¬ÀÛÁË ÂíÉÏ˯¾õ¡£µÚ¶þÌìÔÙ²¹³ä¡£
package
{
//ËÄÖÖ·½ÏòÐÄÐÎÏß
//r=a*(1+cos(angle))
//r=a*(1-cos(angle))
//r=a*(1+sin(angle))
//r=a*(1-sin(angle))
import flash.display.Sprite;
import flash.events.*;
import flash.geom.Point;
import flash.display.Graphics;
import flash.display.Bitmap;
import flash.display.BitmapData;
public class Main extends Sprite
{
private var pen:Sprite=new Sprite();
private var bmp:BitmapData;
private var n:int=0;//ÊýÁ¿
private var maxStep:int=100;

public function Main()
{
addChild(pen);
addEventListener(Event.ENTER_FRAME,Run);
}
//»æÖÆÐÄÐÎÏß
private function Run(event:Event):void
{

(n<=maxStep) ? drawHeart(n,100,new Point(250,200)) : stopDraw();
n++;
}

//Í£Ö¹»æÖÆ
private function stopDraw():void
{
removeEventListener(Event.ENTER_FRAME,Run);
trace("Í£Ö¹");
}

//»æÖÆÐÄÐÎ
private function drawHeart(num:int,radius:Number,p:Point):void
{
var angle:Number =2*Math.PI /maxStep * num;
var r:Number = radius*(1+Math.sin(angle));//¹«Ê½
var point:Point=Point.polar(r,angle);//¼«×ø±êת»»µÑ¿¨¶û×ø±ê


Ïà¹ØÎĵµ£º

flash cs3µ¼Èë³ö´íÎÊÌâ


À§ÈŶàʱµÄflash cs3µ¼ÈëÎÊÌâÖÕÓÚÔÚ¸ßÈËÖ¸µãϽâ¾öÁË¡£ºÃ¸ßÐ˰¡£¡
ÎÊÌ⣺´ò¿ªflash cs3 µã»÷“µ¼Èë-¡·µ¼Èëµ½¿â”Èç¹û³öÏÖ
ÄÚ´æ²»ÄÜ“read“µÄÎÊÌâ¡£¿ÉÒÔ³¢ÊÔÒ»ÏÂÏÂÃæµÄ·½·¨¡£
½â¾ö·½·¨£º
1.ÍøÉÏÓÐÖÖ˵·¨ÊÇÄãÏÂÔØµÄflash cs3Ì«¹ýÍêÃÀ£¨ÍêÕû°æµÄ£©£¬¿ÉÄÜ»á³öÏÖÕâÖÖÎÊÌ⣬ËùÒÔ½¨ÒéÄã¿ÉÒÔ»»Ò»¸ö¾«¼ò° ......

flash Ö® URLLoader


var loader:URLLoader = new URLLoader();
loader.addEventListener(ProgressEvent.PROGRESS, handleProgress );
event:ProgressEvent     event.bytesLoaded/event.bytesTotal
var streamer:URLStream = new URLStream( );
streamer.addEventListener( ProgressEvent.PROGRESS, handleProgress ......

Flash¹¤×÷Ô­Àí

£ÛÔ­Àí£Ý
        ¾­µäÎïÀíѧÈÏΪ£¬ÎïÌåÔ½¹ýÊÆÀÝ£¬ÓÐÒ»ãÐÖµÄÜÁ¿£»Á£×ÓÄÜÁ¿Ð¡ÓÚ´ËÄÜÁ¿Ôò²»ÄÜÔ½¹ý£¬´óÓÚ´ËÄÜÁ¿Ôò¿ÉÒÔÔ½¹ý¡£ÀýÈçÆï×ÔÐгµ¹ýСÆÂ£¬ÏÈÓÃÁ¦Æï£¬Èç¹ûÆÂºÜµÍ£¬²»µÅ×ÔÐгµÒ²ÄÜ¿¿¹ßÐÔ¹ýÈ¥¡£Èç¹ûÆÂºÜ¸ß£¬²»µÅ×ÔÐгµ£¬³µµ½Ò»°ë¾Íͣס£¬È»ºóÍË»ØÈ¥¡£
      ......

È¥³ýFirefox 3.6ÖÐflashÓëjava applet¶ÔÏóµÄÐéÏß¿ò

ÔÚFirefox 3.6ÖУ¬µ±½¹µãÔÚflash»òÕßjava applet¶ÔÏóÉÏʱ£¬»á³öÏÖÒ»¸ö»·ÈƶÔÏóµÄÐéÏß¿ò£¬µ±½«flashÓëjava applet¶ÔÏóµÄ´óСÉè³É100%ʱ£¬µã»÷¶ÔÏóºóÒ³Ãæ»á³öÏÖ¹ö¶¯Ìõ£¬Ó°ÏìÏÔʾЧ¹û£¬½â¾öµÄ·½·¨ÊÇʹÓÃÈçϵÄcss¶¨Ò壺
:focus {
outline: 0;
}
ÕâÑùÔÚ¸÷¸ö²»Í¬µÄä¯ÀÀÆ÷ÖÐÏÔʾµÄЧ¹û¶¼Äܱ£³ÖÒ»Ö¡£ ......

C# winformÓë flash as µÄ½»»¥Í¨Ñ¶

Ò»¡¢»ù±¾Ô­Àí¼°¹ý³Ì
Flashͨ¹ýExternalInterfaceÀàÓëÈÝÆ÷Ó¦ÓóÌÐò½øÐÐͨÐÅ¡£Îª´Ë£¬ExternalInterfaceÀàÌṩÁ½¸ö¾²Ì¬ÊôÐÔºÍÁ½¸ö¾²Ì¬·½·¨¡£
ExternalInterface.call(“º¯ÊýÃû”£¬[²ÎÊý…])·½·¨Ö´ÐÐÈÝÆ÷Ó¦ÓóÌÐòµÄ´úÂ룬¸Ã·½·¨ÖÁÉÙÐèÒªÒ»¸ö×Ö·û´®²ÎÊýÀ´Ö¸¶¨Òªµ÷Óõĺ¯ÊýÃû£¬ÆäËüÈκβÎÊý½«×÷Ϊ²ÎÊý±»´«µÝ¸ø± ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ