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

ÿÌìѧһµãflash£¨67£© ÉÏ´«Í¼Æ¬


½ñÌì»»¸ö¿Ú棬ÖÆ×÷Ò»ÏÂÉÏ´«Í¼Æ¬£¬¹¦ÄܸöÈËÏ£Íû¾¡Á¿¼òµ¥»¯£¬·½±ãÀí½â£ºFlash cs4 ¶ÔFileReference ÀàÔö¼Ó¼¸ÏîÄÚÈÝ
Èçdata ÊôÐÔÄܹ»»ñÈ¡µ½Ò»¸ödata : ByteArray Õâ¸öÖµ£¬
Save ºÍLoad µÄ·½·¨ÊµÏÖÉÏ´«ºÍ±£´æͼƬ¡£
ÓÐÁËÕâÁ½¸ö¹¦Äܺó£¬ÎÒÃÇ¿ÉÒÔʵÏÖÉÏ´«Í¼Æ¬µÄÄ¿µÄÁË£¬ÅäºÏLoader ¼ÓÔØByteArray ÕâÑù¾ÍÄÜʵÏÖͼƬ½áºÏ¡£²»¹ýÓÐһЩͼƬÏà²á»áÉæ¼°µ½µÈ±ÈËõ·ÅµÄÎÊÌ⣬Õâ¸ö¹¦ÄÜ¿ÉÒÔÌí¼ÓÉÏÈ¥¡£»á¸ü¼ÓÍêÉÆ¡£
ͼƬ¹ýÂË£ºÓÃÓÚ˧ѡͼƬµÄÀàÐÍ£¬²ÉÓÃFileFilterÀà¾ÍÄÜʵÏÖͼƬ¹ýÂË¡£
imagesFilter:FileFilter = new FileFilter("Images", "*.jpg;*.gif;*.png");//ͼƬ¹ýÂË
ÏÂÃæÊÇ´úÂëÇåµ¥£º¿ÉÒÔʵÏÖÒ»ÕÅͼƬÉÏ´«µ½flash player µ±ÖУ¬µ«ÊÇûÓÐʵÏֺͷþÎñÆ÷½»»¥µÄ¹ý³Ì¡£Òò´ËÖ»ÊÇËã°ë³ÉÆ·£¬¿ÉÒÔ×ÔÐÐÍêÉÆ¡£
package
{
//ҪʵÏÖÉÏ´«Ò»ÕÅͼƬµÄ¹¦ÄÜ
import flash.display.Sprite;
import flash.events.*;
import flash.net.*;
import flash.display.SimpleButton;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.Loader;
public class Main extends Sprite
{
private var file:FileReference;
private var loader:Loader;
private var imagesFilter:FileFilter = new FileFilter("Images", "*.jpg;*.gif;*.png");//ͼƬ¹ýÂË
public function Main()
{
Btn_add.addEventListener(MouseEvent.CLICK,onClick);//°´Å¥Ìí¼Ó
}

private function onClick(event:MouseEvent):void
{
upLoadImage();
}
//ÉÏ´«Í¼Æ¬
private function upLoadImage():void
{
file=new FileReference();
file.addEventListener(Event.SELECT,selectHandler);
file.addEventListener(IOErrorEvent.IO_ERROR,ioErrorHandler);
file.browse([imagesFilter]);
}
private function ioErrorHandler(event:IOErrorEvent):void
{
throw new Error("ÉÏ´«Ê§°Ü");
}

private function selectHandler(event:Event):void
{
file.addEventListener(Event.COMPLETE,loadcompleteHandler);//¼ÓÔØÍê±Ï
file.load();
}

private function loadcompleteHandler(event:Event):void
{
loader=new Loader();//½øÐмÓÔØ
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,imgLoadComplete);//¼à²âͼ


Ïà¹ØÎĵµ£º

ÁúÏèÌì¿Õ£¨±±¾©£©ÕÐƸflash¿ª·¢¹¤³Ìʦ

TKgame£¨Ìì¿ÕÓÎÏ·£©³ÉÁ¢ÓÚ2004Äê1Ô£¬´Ó×î³õµÄÖйúµÚÒ»¼ÒÍøÂçÓÎÏ·ÍâΧ·þÎñÌṩÉÌ£¬Èç½ñÒѳɳ¤ÎªÖйú×îÓÅÐãµÄÍøÂçÓÎÏ·¿ª·¢¡¢ÔËÓªÉÌÖ®Ò»¡£
¹«Ë¾ÖÂÁ¦ÓÚÍøÂçÓÎÏ·µÄ¿ª·¢ÓëÔËÓª£¬²¢»ý¼«Ì½Ë÷ÍøÒ³ÓÎÏ·Óë¿Í»§¶ËÓÎÏ·µÄ½áºÏģʽ¡£2008Ä꣬TkgameÕýʽ¿ªÊ¼ÆìϵÚÒ»¿îÍøÂçÓÎÏ·¡¶ÀÖÍÁ¡·µÄÔËÓª£¬¸Ã²úÆ·Ò»¾­ÍƳö±ã»ñµÃÒµ½çºÍÍæ¼ÒµÄ¼«´óºÃÆÀ¡ ......

Flash Player 10.1ÖеÄ˽ÃÜä¯ÀÀ

ÕâÊÇһƪÀ´×ÔAdobe ¿ª·¢ÕßÖÐÐĵÄÎÄÕ£¬ÓÉRIAMeeting·­ÒëС×é³ÉÔ±ÍõºØ·­Òë¡£Ô­ÎĵØÖ·ÊÇ£ºhttp://www.adobe.com/devnet/flashplayer/articles/privacy_mode_fp10.1.html
ÓÐʱºòÄãÏ£ÍûʹÓÃ˽ÃÜä¯ÀÀ·½Ê½À´´ò¿ªÍøÕ¾£¬Adobe Flash Player 10.1 ½«ÔÚ¶à¸öä¯ÀÀÆ÷ÖÐÖ§³Ö˽ÃÜä¯ÀÀ·½Ê½¡£
˽ÃÜä¯ÀÀ½«ÈÃÄãä¯ÀÀÍøÒ³µ«²»ÔÚµçÄÔÉÏÁôÏÂÈκÎÀ ......

ÈçºÎÏÂÔØÍøÒ³ÖеÄflash SWFÎļþ

Ò»¡¢²é¿´Ô´Îļþ
  µ±ä¯ÀÀÍøÒ³¼ûµ½ÓÕÈ˵ÄFLASHʱ£¬Îҵİ®ÊóÓÒ¼ü¾ÍÊÜ¿àÁË£¬Ò»µã»÷Ëü£¬ÔÚÓÒ¼ü²Ëµ¥ÖÐÑ¡Ôñ"View source"£¨Ó¢ÎÄ°æ±¾µÄIE£©»òÕß"²é¿´Ô´Îļþ"£¨ÖÐÎÄ°æ±¾µÄIE£©£¬¼Çʱ¾¾Í´ø×ÅÃÜÃÜÂéÂéµÄÔ´´úÂëÏÔʾÔÚÃæÇ°.
°´Ï¿ì½Ý¼ü"Ctrl + F"£¬ÔÚµ¯³öµÄ¶Ô»°¿òÖÐÊäÈë".swf"£¬È·¶¨¼´¿É²éÕÒµ½FLASHµÄSWFÎļþ,COPYÏÂÁ´½ÓµØÖ·£¬× ......

flash »æͼAPI£ºÌ«¼«


Ç°¼¸ÌìÏëÆðÁËÒ»¸öͼ°¸£¬ÓÚÊÇÓÐÁËÒ»¸öÁé¸Ð£¬°Ñ±Ê¼Ç¼ÆðÀ´£¬µ«ÊÇÓöµ½Ò»Ð©ÎÊÌâ²»ÄÜʵÏÖµ½Ì«¼«Í¼µÄ»æÖÆ£¬Çë½ÌÎÒ´óѧµÄͬѧ£¬ËûÓÃc++ »æÖÆÒ»´ÎÎÒ¿´£¬ÖÕÓÚʵÏÖÁËÒ»¸öÌ«¼«Í¼µÄ»æÖÆ¡£¿ªÊ¼µÄʱºò£¬ÒÔÏÂÃæµÄͼ×÷Ϊ»æÖÆ£¬²ÉÈ¡¼¸¸öÔ²»æÖƾͿÉÒÔʵÏÖµ½£¬µ«ÊÇ·¢ÏÖÌî³äÑÕÉ«µÄʱºò³öÏÖÎÊÌ⣬²»µÃ²»µÃ¸Ä±äÒ»¸ö˼·£¬Í¬Ñ§µÄ½²½âÖ®ºó£¬Ô­À´¼¼ ......

ÍøÒ³ÖÐflash wmodeÊôÐÔ

´ó¼ÒÔÚ×öflexÓ¦ÓÃʱÓÐûÓÐÅöµ½Òƶ¯¹ö¶¯Ìõʱ£¬Ò³Ãæ¿Ø¼þÏÔʾˢгٶۣ¬µ¼ÖÂÒ³Ã涼ÊǿؼþµÄ²ÐÓ°£¬¶àÁ˾ÍÏñ»¨ÆÁ£¬ÌرðÊÇÓÃһЩ¸´ÔӵIJ¼¾Ö¡£Õâ¸öÎÊÌâÀ§ÈÅÁËÎÒ¿ì°ë¸öÔ£¬Ò»Ö±Ã»ÕÒµ½ÎÊÌâµÄ¸ùÔ´¡£½ñÌìÎÞÒâÖз¢ÏÖ£¬ÆäʵÕâÎÊÌâ³öÔÚÎÒÃÇflex Ó¦ÓõÄwrapper templateÉÏÁË
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ