is it possible to change the contentPath property of a Loader component, once it has loaded an external image file?
I have a movie clip which contains a Loader component.
At runtime the Loader component loads the external image and a filter is applied to desaturate the image.
What I want to happen, is on the movie clip's onRollOver event, the loader changes out the image for an image of static, then replaces the image with the first image only in full color.
For the onRollOut event, I want the reverse to happen: full color image->load and display static image -> load and display desaturated image.
I am starting to think it is not possible to load a different image into a single Loader component??? Can someone enlighten me? Code below:
Code:
imageLoader_1_MC.onRollOver = function() {
this.imageLoader_1.autoLoad = true;
this.imageLoader_1.contentPath = "images/static/static1.jpg";
}
imageLoader_1_MC.onRollOut = function() {
this.imageLoader_1.autoLoad = true;
this.imageLoader_1.contentPath = "gallery/demo reel/1a.jpg";
}
where imageLoader_1_MC is the container movie clip and imageLoader_1 is the Loader component.
The above code is on Frame 1 of the timeline.
Thx in advance!