# Expected 1

**URL:** <https://forum.kirupa.com/t/expected-1/317120>\
**Category:** Uncategorized\
**Created:** [December 10, 2010, 10:35pm UTC](https://forum.kirupa.com/t/expected-1/317120 "2010-12-10T22:35:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![radi](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@radi](https://forum.kirupa.com/u/radi)\
**Post date:** [December 10, 2010, 10:35pm UTC](https://forum.kirupa.com/t/expected-1/317120/1 "2010-12-10T22:35:36Z")

</div>

how do i get around the  
1136: Incorrect number of arguments. Expected 1.

i have a function that is called by a button,  
but i also want to use that function without pressing that button,  
as kind of a way of refreshing what is being done threw another function

in the other function im using  
Function x()  
and this is what is giving me the error the original function when called from the button is  
function x(event:Event):void  
and the button executes that function via  
xxx.addEventListener(MouseEvent.CLICK, x);
