View Full Version : dynamically load an image to a bitmapdata
gring
10-22-2005, 12:04 AM
Hi, is there a way to create a bitmapdata from a dynamically loaded jpg or png? I'm searching the documentation and the web and I can't find anything related to this. It seems we can only import images from the library with the BitmapData.loadBitmap method.
1. load a JPG as usuall to a movieclip
2. as fare it's loaded use the bitmapdata.draw methode
senocular
10-22-2005, 12:52 AM
see an example here:
http://www.senocular.com/pub/flash/8/index.php?f=duplicateloadedimage
gring
10-22-2005, 01:16 AM
Alright, thanks,
looks like I misunderstood the purpose of the draw method...:o
I was already thinking about creating an xml file containing the image from the server and rebuilding it with setPixel within flash... This would have been horrible.
senocular
10-22-2005, 01:35 AM
draw is misleading. I mistook its purpose originally too. However, Im more upset over "loadBitmap" which does no loading of the sort. Its more of an attachBitmap.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.