# Why doesn't this function call work?

**URL:** <https://forum.kirupa.com/t/why-doesnt-this-function-call-work/220202>\
**Category:** Uncategorized\
**Created:** [March 23, 2007, 4:12pm UTC](https://forum.kirupa.com/t/why-doesnt-this-function-call-work/220202 "2007-03-23T16:12:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![galmen](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@galmen](https://forum.kirupa.com/u/galmen)\
**Post date:** [March 23, 2007, 4:12pm UTC](https://forum.kirupa.com/t/why-doesnt-this-function-call-work/220202/1 "2007-03-23T16:12:33Z")

</div>

a = true;  
if (a) {  
trace(“a is true”);

function ab () {  
trace(“fun ab()”);  
};

};

ab();

//  
I really want to learn why ab() does not trace “fun ab()”.  
Even when you call ab from a button click, it does not trace.  
Simply Why ?
