How to define the type of content when loading an image into an as3 flex project?

advertisements

in flashCS3.app i think all you have to do is:

var thumb_url = my_images[i][email protected];
var thumb_loader = new Loader();
thumb_loader.load(new URLRequest(thumb_url));

but i am using flex + as3project.

how can i translate? do i need some sort of bitmapdata class or is there a more transparent translation? the error i get is something along the lines of "content type undefined".

thanks,
jml


I guess, it'd help a lot, if you could provide a URL where it doesn't work ...

you cannot define the content type ... the content type should be defined by the server, in a HTTP response header ... however flash player usually ignores it and looks at the starting sequence to determine the loaded content type ...

as just_a_dude mentioned, the error you get, appears, when the file type is not supported ... what kind of image are you loading?