Figured you would assume I did what the examples showed.   Thats why I just
said I tried various loaders and how they say to get the data on the
complete events.  But I guess I have to say that too.

If you google about loading an image, you get all kinds of examples about
using Loaders.  URLLoaders, and then on the complete, you see all kinds of
examples on how to get the supposedly loaded data.  Which I tried em all.  

Yes, When I set up the loaders, I also added a complete event.  And it isnt
until the complete event that I tell my 3D app to read the data.  But even
then, it still gives me a null reference error.  Its as if it really doesnt
load the data until its about to display it.   Which is contrary to what you
would think a load event would do.  If I use the Embed in the code rather
than the loader, I dont get an error.  Like I said, the Embed seems to load
the information about the image at compile time hence when I run my app, the
data is there.  But for some reason when I use the loader, I get a null
reference error.  The only code change is from the embed to the loader.   I
even set up an eventlistener if there was an error but it does fire.  So it
does complete but there isnt any data.  Which is why I think it does not
load bitmapData until its about to display the image.  Not after it loads
the image.   Hence why I am asking if there is something I am doing wrong.  



--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/Loading-JPG-bitmapdata-Something-like-Embed-but-at-runtime-tp13402p13411.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to