title: Calling a function in lua passing a parameter
body: <p>I have the following function</p>
  
  <p><strong>DOESN'T WORK:</strong></p>
  
  <pre><code>local function onPlayBtnRelease(level)
      storyboard.gotoScene( level, "fade", 500 )
      return true 
  end
  </code></pre>
  
  <p>I want to pass a parameter so the appropriate level to be loaded, so I have the following button:</p>
  
  <pre><code>planet1 = widget.newButton{
      label="1",
          labelColor = { default={255}, over={128} },
          fontSize=25,
          defaultFile="levelplanet.png",
          overFile="levelplanet-over.png",
          width=62, height=62,
          onRelease = onPlayBtnRelease("loadscene1")  -- event listener function
      }
  </code></pre>
  
  <p>but the above doesn't work.</p>
  
  <p><strong>THAT IS OK:</strong></p>
  
  <p>If I do</p>
  
  <pre><code>local function onPlayBtnRelease
      storyboard.gotoScene( "loadscene1", "fade", 500 )
      return true 
  end
  
  
  planet1 = widget.newButton{
          label="1",
              labelColor = { default={255}, over={128} },
              fontSize=25,
              defaultFile="levelplanet.png",
              overFile="levelplanet-over.png",
              width=62, height=62,
              onRelease = onPlayBtnRelease    
          }
  </code></pre>
  
  <p>It compiles. How can I pass a parameter to <code>onPlayBtnRelease</code> ? Any idea why this causes a compilation error?</p>
  
  <p><strong>The error:</strong></p>
  
  <pre><code>Runtime error
  bad argument #1 to 'find' (string expected, got table)
  stack traceback:
          [C]: ?
          [C]: in function 'error'
          ?: in function 'gotoScene'
  </code></pre>