A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: function help

  1. #1
    Senior Member
    Join Date
    Sep 2000
    Location
    POA, Brazil
    Posts
    323

    function help

    I have this function, which works fine:
    Code:
    function hideMenu() {
      editCity.menuMD._visible = false;
    }
    setInterval(hideMenu, 3000);
    Now, I want to pass the movie clip's name to it as a parameter. I have now:
    Code:
    menu="editCity.menuMD";
    function hideMenu(menu) {
      menu._visible = false;
    }
    setInterval(hideMenu(men), 3000);
    But it doesn't work.
    What am I doing wrong?
    tnxinadvance

  2. #2
    Junior Member
    Join Date
    Jul 2005
    Posts
    17

    :)

    Quote Originally Posted by gabi_poa
    I have this function, which works fine:
    Code:
    function hideMenu() {
      editCity.menuMD._visible = false;
    }
    setInterval(hideMenu, 3000);
    Now, I want to pass the movie clip's name to it as a parameter. I have now:
    Code:
    menu="editCity.menuMD";
    function hideMenu(menu) {
      menu._visible = false;
    }
    setInterval(hideMenu(men), 3000);
    But it doesn't work.
    What am I doing wrong?
    tnxinadvance
    good thought
    but you can't do that kind of amazing things

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