# Testing regions

**URL:** <https://forum.kirupa.com/t/testing-regions/246015>\
**Category:** Uncategorized\
**Created:** [December 6, 2007, 10:58am UTC](https://forum.kirupa.com/t/testing-regions/246015 "2007-12-06T10:58:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![le\_shal](https://avatars.discourse-cdn.com/v4/letter/l/bb73d2/32.png) [@le\_shal](https://forum.kirupa.com/u/le_shal)\
**Post date:** [December 6, 2007, 10:58am UTC](https://forum.kirupa.com/t/testing-regions/246015/1 "2007-12-06T10:58:29Z")

</div>

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:
