# How to simply call a function?

**URL:** <https://forum.kirupa.com/t/how-to-simply-call-a-function/224672>\
**Category:** flash\
**Created:** [May 4, 2007, 10:55am UTC](https://forum.kirupa.com/t/how-to-simply-call-a-function/224672 "2007-05-04T10:55:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pete66](https://avatars.discourse-cdn.com/v4/letter/p/8c91f0/32.png) [@pete66](https://forum.kirupa.com/u/pete66)\
**Post date:** [May 4, 2007, 10:55am UTC](https://forum.kirupa.com/t/how-to-simply-call-a-function/224672/1 "2007-05-04T10:55:26Z")

</div>

// OK, I write my function:

function CoordinatesArray(event:Event):void {  
var xCoordinatesArray:Array = loader.data.xCoordinate.split(",");  
var yCoordinatesArray:Array = loader.data.yCoordinate.split(",");  
trace("The first number in the xCoordinates array is: " + xCoordinatesArray[0]);  
trace("The first number in the yCoordinates array is: " + yCoordinatesArray[0]);  
}

// Now, I want to run it (once)…

CoordinatesArray();

// Cheers!
