# ASDoc and package function

**URL:** <https://forum.kirupa.com/t/asdoc-and-package-function/270238>\
**Category:** flash\
**Created:** [September 7, 2008, 11:53am UTC](https://forum.kirupa.com/t/asdoc-and-package-function/270238 "2008-09-07T11:53:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felixz](https://avatars.discourse-cdn.com/v4/letter/f/ecb155/32.png) [@Felixz](https://forum.kirupa.com/u/Felixz)\
**Post date:** [September 7, 2008, 11:53am UTC](https://forum.kirupa.com/t/asdoc-and-package-function/270238/1 "2008-09-07T11:53:09Z")

</div>

How to use ASDoc with a package function without switching StrictMode off?  
I have such error: [SIZE=1][COLOR=#ff0000][SIZE=1][COLOR=#ff0000]  
Error: definition not found net.imonair.core.utils:convertSpaces.  
[/COLOR][/SIZE][/COLOR][/SIZE]

```auto
package net.imonair.core.utils { 
 public function convertSpaces(value:String, toWebFormat:Boolean = false):String {
  return toWebFormat ? value.replace(" ", "%20") : value.replace("%20", " ");
 }
}

```
