Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Flash General Questions > Flash 8 General Questions

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-22-2005, 12:04 AM   #1
gring
Registered User
 
Join Date: Apr 2004
Location: France
Posts: 52
Default dynamically load an image to a bitmapdata

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.
gring is offline   Reply With Quote
Old 10-22-2005, 12:44 AM   #2
Xeef
Off-Line
 
Xeef's Avatar
 
Join Date: Aug 2004
Location: Ibiza/Spain language :Hungarian/German/ abit English
Posts: 6,539
Default

1. load a JPG as usuall to a movieclip
2. as fare it's loaded use the bitmapdata.draw methode
Xeef is offline   Reply With Quote
Old 10-22-2005, 12:52 AM   #3
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,758
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular
Default

see an example here:
http://www.senocular.com/pub/flash/8...ateloadedimage
__________________
(6)
senocular is offline   Reply With Quote
Old 10-22-2005, 01:16 AM   #4
gring
Registered User
 
Join Date: Apr 2004
Location: France
Posts: 52
Default

Alright, thanks,

looks like I misunderstood the purpose of the draw method...
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.
gring is offline   Reply With Quote
Old 10-22-2005, 01:35 AM   #5
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,758
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular
Default

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.
__________________
(6)
senocular is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:40 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.