# Package cannot be nested

**URL:** <https://forum.kirupa.com/t/package-cannot-be-nested/254507>\
**Category:** Uncategorized\
**Created:** [March 12, 2008, 7:52pm UTC](https://forum.kirupa.com/t/package-cannot-be-nested/254507 "2008-03-12T19:52:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![uaintgotthisid](https://avatars.discourse-cdn.com/v4/letter/u/3da27b/32.png) [@uaintgotthisid](https://forum.kirupa.com/u/uaintgotthisid)\
**Post date:** [March 12, 2008, 7:52pm UTC](https://forum.kirupa.com/t/package-cannot-be-nested/254507/1 "2008-03-12T19:52:27Z")

</div>

What does package cannot be nested mean? I got the error with this code

package {

```
import flash.external.ExternalInterface;

public class URLUtil {

    protected static const WINDOW_OPEN_FUNCTION : String = "window.open";

    public static function openWindow(url : String, window : String = "_blank", features : String = "") : void {
        ExternalInterface.call(WINDOW_OPEN_FUNCTION, url, window, features);
    }

}

```

}

function GoHome(event:MouseEvent):void  
{  
URLUtil.openWindow(“[http://www.mywebsitename.com/](http://www.mywebsitename.com/)”);  
}
