I'm just starting out with Flash, I'm using ActionScript 2.0, and trying to acomplish something seemingly simple but it is not happening like I would think it should, any help would be appreciated.
I'm trying to load a large image about 3000x2000 pixels and then mask it with a small square, so that later I can scroll through the image to view it.
Here is the code I have so far, it produces a blank white screen.
createEmptyMovieClip("container", getNextHighestDepth());
container.createEmptyMovieClip("fullImage", container.getNextHighestDepth());
//When I replace the above line of code with the line of code bellow the image is displayed but it still not masked.
//createEmptyMovieClip("fullImage", getNextHighestDepth());
var fullClipLoader = new MovieClipLoader();
fullClipLoader.loadClip("fountain.jpg", fullImage);
// Funtion for scrolling through the image
fullClipLoader.onLoadComplete = function() {
createEmptyMovieClip("mask", getNextHighestDepth());
mask._x = 50;
mask._y = 50;
mask.beginFill(0xFF0000,50);
mask.lineStyle(5,0xFF00FF,100);
mask.lineTo(100,0);
mask.lineTo(100,100);
mask.lineTo(0,100);
mask.lineTo(0,0);
container.setMask(mask);
/*
fullImage._x += _level0._xmouse;
if (fullImage._x>_level0._x) {
fullImage._x = _level0._x;
}
if (fullImage._x<(_level0._x-(fullImage._width-_level0._width))) {
fullImage._x = _level0._x-(fullImage._width-_level0._width);
}
*/
};