Testing regions

hello,

this place is a great resource! thanks in advance.

i need help with testing regions.

i have 3 points on my stage and i need the user to rollover all 3 to go to the next page. here is the code i have so far…

var region1=false
var region2=false
var region3=false

onRollOver = function(){
region1=true
testRegions();
trace(“r1”);

region2=true
testRegions();
trace("r2");

regions3=true
testRegions();
trace("r3");

}

function testRegions(){
if(region1 = true && region2 = true && region3 = true)
trace(“yes!!!”)
)

appreciate the help!:cons: