I have searched and searched and I have found no answers to why my Flash project is doing this…
I have created a simple XML image gallery and I have noticed that when the images are being displayed by the .swf, the saturation of the image is dropping greatly. I have look at an image from the browser directly and it’s so much brighter than when it’s being displayed in the gallery.
I know it’s not the background color of the .swf, it is white. Does anyone have any ideas on what is causing this or how to fix it?
in the xml your have an address to an image right? what format is it? I’ve loaded images by downloading them, I’ve never run into that problem. Are you using someone else code, because they may be applying a filter. Once you load the image into a MC try doing a direct addChild(MC); and see if comes out saturated
I am using my own code. The XML file is loaded, then each image gets loaded by a simple Image loader package I made.
package com.utilities {
import flash.events.*;
import flash.net.URLRequest;
import flash.display.Loader;
import flash.display.Sprite;
class Image extends Sprite {
private var loader:Loader;
public function Image(P:String):void {
this.loader = new Loader();
this.loader.load(new URLRequest(P));
this.addEvent(IOErrorEvent.IO_ERROR, imageFailed);
addChild(this.loader);
}
public function addEvent(E:*, CB:Function):void {
this.loader.contentLoaderInfo.addEventListener(E, CB);
}
private function imageFailed(E:IOErrorEvent):void {
trace(E);
}
}
}
As you can see, there are no filters being applied. Just loading the image.
hmm can you show the code where you’re adding in the image to a spirte or bitmap.
Also, you should use:
http://code.google.com/p/bulk-loader/
I use it for all my external file loading, it works great.