topical media & game development

talk show tell print

animation-ch04-EmbedAsset.ax

animation-ch04-EmbedAsset.ax [swf] [flash] flex


  package
  {
   import flash.display.Sprite;
   import flash.display.Bitmap;
   
   public class @ax-animation-ch04-EmbedAsset extends Sprite
   {
    [Embed(source="@logo.jpg")]
    private var Image:Class;
    
    public function @ax-animation-ch04-EmbedAsset()
    {
     init();
    }
    
    private function init():void
    {
     var img:Bitmap = new Image();
     addChild(img);
    }
   }
  }
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.