¡¤Äúµ±Ç°µÄλÖãºÊ×Ò³ > ¼¼Êõ½Ì³Ì > AS2ÓëAS3¼¼Êõ >

[AS3]as3µ¼ÈëGIF²»ÏÔʾ¶¯»­µÄ½â¾ö·½Ê½

ʱ¼ä:2012-12-22 22:36cnblogs.com
ÔÚas3ÖÐloadÒ»¸ögifµÄͼƬ£¬½á¹û·¢ÏÖÖ»ÄÜÏÔʾµÚÒ»Ö¡¡£Èç¹ûÖ±½Ó½«GIFµ¼Èë¿â£¬ÄÇÊÇ¿ÉÒÔÐγɶ¯»­µÄ£¬µ«ÊÇÕâÑùÉú³ÉµÄswfÌå»ý´ó²»Ëµ£¬»¹²»Ò×ÓÚ¸ü¸Ä¡£

ÔÚas3ÖÐloadÒ»¸ögifµÄͼƬ£¬½á¹û·¢ÏÖÖ»ÄÜÏÔʾµÚÒ»Ö¡¡£Èç¹ûÖ±½Ó½«GIFµ¼Èë¿â£¬ÄÇÊÇ¿ÉÒÔÐγɶ¯»­µÄ£¬µ«ÊÇÕâÑùÉú³ÉµÄswfÌå»ý´ó²»Ëµ£¬»¹²»Ò×ÓÚ¸ü¸Ä¡£

ÏÖÔÚÓÐÒ»¸öÀ࣬GIFPlayer£¬Ö±½Óload¾Í¿ÉÒÔÁË£¬´úÂëÈçÏ£º

var myGIFPlayer:GIFPlayer = new GIFPlayer();
addChild( myGIFPlayer );
myGIFPlayer.load ( new URLRequest ("Lunar.gif") );

GIFPlayerÀà¿ÉÒÔÔÚhttp://code.google.com/p/as3gif/downloads/listÖÐÏÂÔؼ´¿É¡£

ÈÈÃÅÎÄÕÂÍƼö

ÇëÉÔºò...

±£ÀûÍþÊÓÔÆƽ̨-ÇáËÉʵÏֵ㲥ֱ²¥ÊÓƵӦÓÃ

¿á²¥ÔÆÊý¾Ýͳ¼Æ·ÖÎö¿çƽ̨²¥·ÅÆ÷