Animating mask layer help

First off…Yes I am a n00b, and yes I have spent DAYS (literally :angry: ) trying to find a solution.

The process I would like to have happen is as follows:

-an object masks a background image that consists of a movie clip that has 5 separate images (one per frame). when published, a random background is generated behind the masking object each time.

-two corresponding “invisible” buttons made only of hit areas derived from the above masking object are put directly on top of the masking object so as to preserve the view of the background image.

-upon clicking either of the “invisible” buttons, the masking object jumps to frame 10 or 20 respectively and begins animating the masking object accordingly.

Below is the script I have come up with so far, but upon testing the movie, I get the following compiler error:

Scene 1 1046: Type was not found or was not a compile-time constant: infinityMask.

//Load random background image using a movie clip 
var bg_number : Number = 5;
var choice :Number = Math.ceil(Math.random()*bg_number); 

textures.gotoAndStop(choice);


//When either hit area is clicked, the aim is to jump to
//frame 10 or frame 20 respectively.
dBtn.addEventListener(MouseEvent.CLICK, goToDigital);

function goToDigital(e:MouseEvent):void{
	trace("Hell yeah, you clicked the D button!");
	gotoAndPlay(10)
}

pBtn.addEventListener(MouseEvent.CLICK, goToInfo);

function goToInfo(e:MouseEvent):void{
	trace("Hell yeah, you clicked the P button!");
	gotoAndPlay(20)
}

stop();