Pass an argument to a custom function

  • Hi all,
    I have a problem when I want to pass an argument to a custom function:

    In textfield plugin I add a custom tag "state"

    Problem:
    When I pass the name of textfield as hidewindow(plugin[get(i)].name); it does not work,
    while if I use hidewindow(htmltext); it work fine.
    htmltext,htmltext2, htmltext3 are the name of textfieldin the scene...
    Because if I pass the argument as plugin[get(i)].name it does not work; there are some limitation.
    If I show log in my custom function the name is correct

    To test the function click "OPEN HTML"
    http://www.marcostucchi.com/temp/TestoModi…/textfield.html

    Thenks to all,
    Marco

    Edited once, last by mastucc (July 29, 2012 at 3:19 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!