A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: function parameters

  1. #1
    Member
    Join Date
    Jan 2003
    Location
    portugal
    Posts
    40

    function parameters

    hi .. again with functions.... :s

    I've this:

    cursos[c].addEventListener(MouseEvent.CLICK, mostraHorario(c);

    cursos is an array, that read values from XML.. that creates a list (text fields that allows to click)..

    when clicked i want to invoke the function mostraHorario... and parse the value from var 'c'....

    so next to it, i have this too:

    function mostraHorario(Event:MouseEvent, i:int) {
    ....
    }

    but it don't works....

    question: how can i parse the value c into the function??

    i tried very solutions and all of them retrive errors (syntax, or mismatch number of arguments,...)

    help me again...
    thanks.
    caugusto

  2. #2
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    Check this thread, which is at this moment 2 spots below yours on the forum page.

    http://board.flashkit.com/board/showthread.php?t=772931

  3. #3
    Member
    Join Date
    Jan 2003
    Location
    portugal
    Posts
    40
    yeh... i notice that after my post...
    caugusto

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center