package { import flash.display.*; import flash.events.*; import flash.net.*; public class Main extends Sprite { private var loader:Loader = new Loader( ); public function Main() { loader.contentLoaderInfo.addEventListener(Event.INIT,initListener); loader.load(new URLRequest("photo.jpg")); } private function initListener (e:Event):void { addChild(loader.content); trace(Bitmap(loader.content).bitmapData.getPixel(0, 0)); } }}
Name (required)
email (will not be published) (required)
Website