# Strange function \[Help solved\]

**URL:** <https://forum.kirupa.com/t/strange-function-help-solved/305343>\
**Category:** Uncategorized\
**Created:** [February 23, 2010, 8:26pm UTC](https://forum.kirupa.com/t/strange-function-help-solved/305343 "2010-02-23T20:26:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![walerka](https://avatars.discourse-cdn.com/v4/letter/w/ea5d25/32.png) [@walerka](https://forum.kirupa.com/u/walerka)\
**Post date:** [February 23, 2010, 8:26pm UTC](https://forum.kirupa.com/t/strange-function-help-solved/305343/1 "2010-02-23T20:26:07Z")

</div>

Help me solved problem, i found in internet sources files, in code i see strange function:

```auto
public function free(flash.display:InteractiveObject:int, flash.display:InteractiveObject:int) : Boolean
        {
            if (Cells[flash.display:InteractiveObject * w + flash.display:InteractiveObject] == false)
            {
                return true;
            }
            if (flash.display:InteractiveObject < 0 || flash.display:InteractiveObject >= w || flash.display:InteractiveObject < 0 || flash.display:InteractiveObject >= h)
            {
                return true;
            }
            return false;
        }

```

function does not work, in window error write error:  
1084: Syntax error: expecting rightparen before colon.

Please help me solve the problem

and another function

```auto
 public function inside(flash.display:InteractiveObject:int, flash.display:InteractiveObject:int) : Boolean
        {
            if (flash.display:InteractiveObject >= mv.x && flash.display:InteractiveObject < mv.x + mv.width && flash.display:InteractiveObject >= mv.y && flash.display:InteractiveObject < mv.y + mv.height)
            {
                return true;
            }
            return false;
        }

```

Thanks
