Good Morning,

I've played around with this a bit to create pdf's from the chart 
components. I'm using a remote object to get the bit map data that 
is stored in database.  A little different than your case.

Here's how you would create a bit map object from an event result:

private function getBitMap_handler(event:ResultEvent):void{
    var newBD : BitmapData = event.result;
    targetImage.source = new Bitmap( newBD );
}

<mx:RemoteObject id="BitmapCFC" 
             destination="ColdFusion" source="testingPDF1.Bitmap">
        <mx:method name="getBitMap" 
            result="getBitMap_hanlder(event)"
            fault="getDataFault_handler(event)">
        <mx:arguments>
                <arg1>3D3C9DDD-123F-17FA-DFA5A5D93242EF5D</arg1>
        </mx:arguments>
        </mx:method>
</mx:RemoteObject> 

 <mx:Image 
  id="targetImage" 
  x="10" 
  y="30"/>


Shelley Browning



--- In [email protected], "beecee1977" <[EMAIL PROTECTED]> 
wrote:
>
> Hi,
> 
> I have what I hope is a pretty simple problem, but I'm not sure 
how to 
> do it. I want to load in an image file (png or whatever) from a 
url and 
> store it locally in a BitmapData Object.
> 
> I suspect I need to use the Loader class, but I'm not sure how to 
get 
> it out of this and into a BitmapData Object.
> 
> Any tips appreciated! 
> 
> P.S. I know I could probably load it into a UIComponent and then 
draw 
> it onto the BitmapData Object, but I'd rather avoid that if 
possible.
>


Reply via email to