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

flex gifloader

×î½üÏîÄ¿ÐèÒªÔËÓõ½FLEX£¬µ«GOOGLEһϷ¢ÏÖ¿ÉÓõÄ×ÊÁÏʵÔÚÌ«ÉÙÁË¡£
ÕÒÁ˺þ÷¢ÏÖgoogle codeÉÏÔÚÕâ¸ö»¹²»´í£¬»¹ÓкܶණÎ÷¿ÉÒԺúÃÑо¿Ñо¿
 http://code.google.com/p/as3gif/
ÏÂÃæµÄÀý×ÓÊǽ«¶¯Ì¬GIF°ó¶¨µ½SPRITEÉÏ
package com.render
{
 import flash.display.Sprite;
 import flash.events.IOErrorEvent;
 import flash.net.URLRequest;
 
 import mx.core.Application;
 
 import org.bytearray.gif.player.GIFPlayer;
 public class SpriteWithBitmap extends Sprite
 {
  //Pass the source path or url here.
  private static const defaultUrl:String = "/consoleweb/console/images/treewait.gif";
 
  public function SpriteWithBitmap(url:String = defaultUrl)
  {
   loadImg(url);
  }
  private function loadImg(url:String):void
  {
   var gifPlayer:GIFPlayer = new GIFPlayer();
   var request:URLRequest = new URLRequest(url);
   gifPlayer.load(request);
   gifPlayer.addEventListener(IOErrorEvent.IO_ERROR,loadFailure);
   
   this.addChild(gifPlayer);
   
   //ÉèÖÃͼƬ¾ÓÖÐÏÔʾ
   gifPlayer.x = Application.application.checkTree.width * 0.5 - 32;
   gifPlayer.y = Application.application.checkTree.height * 0.5 -32;
  }
 
  private function loadFailure(event:IOErrorEvent):void
  {
   
  }
 }
}
µ«Òª¶¯Ì¬È¡µ½GIFµÄ¿í¶È»¹ÊÇûÓÐÍ·Ð÷£¬ÔÚÍøÉÏ¿´µ½¹ýÕâ¸ö
Hi, Thibault Imbert. The width/height property return 0, event after COMPLETE event dispatch. The GIFPlayerEvent has the ‘rect’, but it’s useless.
I’ve edited your GIFPlayer class (you should have done that).
All u needed 2 do is just to create a public var
public var rect:Rectangle;
And after in the readStream method to do so:
rect = aFrames[0].bitma


Ïà¹ØÎĵµ£º

Flex ±à³Ì¹æ·¶

http://www.adobe.com/cn/devnet/flex/articles/best_practices_pt2_07.html
Flex ×î¼Ñ×ö·¨ - µÚ 2 ²¿·Ö: ¿ª·¢×ö·¨
Flex ¿ª·¢×î¼Ñ×ö·¨»Ø¹Ë
ÕâЩ×ö·¨¿ÉÒÔÓ¦Óõ½ËùÓÐ Flex Ó¦ÓóÌÐò¡£Çë²é¿´ÕâЩ×ö·¨:
 ´´½¨ºÍʹÓà assets Ŀ¼
 Ê¹Óà assets Ŀ¼ÖеÄ×ÓĿ¼
 Ê¹Óà SWF Ŀ¼
 Ê¹Óà images Ŀ¼
&n ......

ActionScript 3 ºÍ Flex¿ò¼ÜµÄÐÔÄÜÓÅ»¯

¼¸ÈÕǰ±»ÀÏ×ÜÍÆ¼öÎÄÕÂһƪ£¬À´×Ô7yueÐÖµÄblog,×÷ÕßÊÇSean Moore ,
Ô­ÎĵØÖ·£ºhttp://www.insideria.com/2009/04/51-actionscript-30-and-flex-op.html
ÓëÆäÔÚ³ÌÐòдÍêÁËÖ®ºóÓ·Ö×µÃÅܲ»¶¯£¬²»ÈçÆ½Ê±×¢ÒâÕâЩ¹Ø¼üµã£¬Ê±Ê±ÌáÐÑ×Ô¼º¡£·­Òë³öÀ´£¬ÒÔ±ãÒÔºóʱʱ²éÔÄ¡£
1 ´´½¨ÐÂÊý×éʱ±ÜÃâʹÓÃËüµÄ¹¹Ô캯Êý¡£
   ......

flex myeclipse°²×°.

Flex Builder 3.0 For Eclipse plugin×¼±¸°²×°.
2009-11-11 15:38
ÕâÁ½Ìì×¼±¸Ñ§Ï°Flex,ÓÚÊÇÏÂÔØÁËFlex Builder 3.0 For Eclipse plugin×¼±¸°²×°.
µ«Êǰ²×°ºóÆô¶¯Eclipse,ÕÒÁ˰ëÌìҲûÕÒµ½Flex.¶øÇÒFlex Builder»á°ÑJREÒ²°²×°.¾õµÃÕâÑùºÜ²»Ë¬.
ËùÒÔÎÒÏëµ½Äܲ»ÄÜÀ´¸öFlex BuilderÂÌÉ«°²×°·½·¨ÄØ.
Ïëµ½¾Í×ö.ÏÂÃæÊÇÎÒµÄ ......

¸öÈË×ܽáflex¸÷ÖÖÓ÷¨

//»ñµÃÆÁÄ»µÄ·Ö±æÂÊ
var
 x:Number=Capabilities.screenResolutionX;
var
 y:Number=Capabilities.screenResolutionY;
Alert.show(
"x="
+x+
"y="
+y);
µÚ¶þÖÖ·½·¨
Alert.show(stage.fullScreenWidth+
"=="
+stage.fullScreenHeight);
 
//»ñµÃstage£¨¹¤×÷Çø£ ......

FlexʵÏÖDataGridµÄÐòºÅÁÐ

ÒªÔÚFlexµÄDataGridÀïÌí¼ÓÐòºÅÁУ¬´óÌåÉÏÓÐÁ½ÖÖ·½·¨£º
ÉèÖÃDataGridColumnµÄlabelFunction¡£
Æä´óÖµÄ˼·ÊÇ£¬»ñÈ¡µ½µ±Ç°DataGridµÄdataProvider¼°µ±Ç°ÐеÄdata£¬µ÷ÓÃgetItemIndex·½·¨»ñÈ¡µ½µ±Ç°µÄÐеÄÐòºÅ¡£
¾ßÌå¿É²Î¿¼ http://wmcai.blog.163.com/blog/static/480242008111115724283/¡£ÕâÖÖ·½·¨±È½ÏÖ±¹Û£¬Ò²ºÜÈÝÒ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ