# as3 calling a function via 2 different way

**URL:** <https://forum.kirupa.com/t/as3-calling-a-function-via-2-different-way/281015>\
**Category:** flash\
**Created:** [February 3, 2009, 10:09pm UTC](https://forum.kirupa.com/t/as3-calling-a-function-via-2-different-way/281015 "2009-02-03T22:09:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ventoline](https://avatars.discourse-cdn.com/v4/letter/v/dec6dc/32.png) [@ventoline](https://forum.kirupa.com/u/ventoline)\
**Post date:** [February 3, 2009, 10:09pm UTC](https://forum.kirupa.com/t/as3-calling-a-function-via-2-different-way/281015/1 "2009-02-03T22:09:49Z")

</div>

I have some verysimple question, but i’m clueless!  
How could i call the same function within a function AND when  
listening for an event?  
would something likt this:

myFunction1(){  
functionCalled(mylocalvar);  
}  
myList.addEventListener(Event.CHANGE ,functionCalled)

functionCalled(mylocalvar / e:Event) { // ??  
}

Thx for your patience!
