# AS3 Global function silly questions

**URL:** <https://forum.kirupa.com/t/as3-global-function-silly-questions/288316>\
**Category:** flash\
**Created:** [May 14, 2009, 4:31am UTC](https://forum.kirupa.com/t/as3-global-function-silly-questions/288316 "2009-05-14T04:31:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixeldude](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@pixeldude](https://forum.kirupa.com/u/pixeldude)\
**Post date:** [May 14, 2009, 4:31am UTC](https://forum.kirupa.com/t/as3-global-function-silly-questions/288316/1 "2009-05-14T04:31:07Z")

</div>

Hi everyone…

I’m try to calling my sloppy global function by calling my global function class as u can see below

```auto

package{
    
    public class GlobalFunc{
        
        public static function someFunc():void{
            trace("some global function");
        }
        
    }
    
}

```

My problem is why it’s thrown undefined underneath the trace statement…

//some testing

trace(GlobalFunc.someFunc());

//output  
some global function  
undefined–\>why???

Hope someone can lighting me up on this…tq in advanced…

Tq
