# Calling a Function

**URL:** <https://forum.kirupa.com/t/calling-a-function/146559>\
**Category:** Uncategorized\
**Created:** [May 2, 2005, 3:23pm UTC](https://forum.kirupa.com/t/calling-a-function/146559 "2005-05-02T15:23:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhais](https://avatars.discourse-cdn.com/v4/letter/z/ad7895/32.png) [@zhais](https://forum.kirupa.com/u/zhais)\
**Post date:** [May 2, 2005, 3:23pm UTC](https://forum.kirupa.com/t/calling-a-function/146559/1 "2005-05-02T15:23:43Z")

</div>

I’m having problems calling a function within my program. The code is:

> find\_New();  
> trace(sequence\_Array[array\_Marker]);

find\_New = function() {  
trace(“ **Find\_New Marker** ”);  
sequence\_Array[array\_Marker] = random(4)+1;  
currentNum+=1;  
}

The output I’m receiving is “Undefined”, telling me that find\_New is never called upon, so the array never receives a value. ((trace(“ **Find\_New marker** ”) never shows up))

any ideas as to what I’m doing wrong? array\_Marker is set at 0 before the call statement.
