Return to Snippet

Revision: 21411
at December 11, 2009 17:10 by edsonpavoni


Initial Code
package {

	import flash.display.Sprite;
	import flash.display.BitmapData;
	import flash.display.Bitmap;
	
	class EmbeddedImageExample extends Sprite
	{
		[Embed(source='photo.png')]
		private var photoClass:Class;
		private var photo:Bitmap;

		function EmbeddedImageExample()
		{
			photo = new MyPhoto();
			var bmp:BitmapData = photo.bitmapData;
		}
	}
}

Initial URL

                                

Initial Description

                                

Initial Title
Embedded Image in Flash

Initial Tags
image

Initial Language
ActionScript 3