0 Replies Latest reply on Jan 30, 2010 3:28 AM by flx23

    Unable to load image to image control dynamically

    flx23

      Hi all

       

      i am uploading an image of size 2 mb using the following code ..my problem is that the image doesnt load in the image control...can any body tell me where i am wrong..if i upload 500 kb of image it loads..big size image doesnt...

       

       

      private function SelectImage(event:Event):void
                   {
                       if(!Status)
                       {
                          fileSelected.browseForOpen("Select Image",[txtFilter]);
                         fileSelected.addEventListener(Event.SELECT,fileSelectedHandler);
                       }
                   }

       

       

      private function fileSelectedHandler(event:Event):void
                   {

      imgSelected.load(fileSelected.nativePath);

      }

       

       

      <mx:Image id="imgSelected" height="81" width="104" maintainAspectRatio="true"  toolTip="click here to browse"  click="SelectImage(event);" x="134" y="98"/>

       

       

      Thanks