Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 1st, 2012  |  syntax: None  |  size: 0.45 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. //  its in a for loop so I have the variable i =  0.. 1.. 2.. 3..
  2. chapterSubMenu_mc.getChildByName("subChapter" + currentChapter + "Btn_mc").addEventListener(MoueseEvent.CLICK, subBtnClick(i));
  3.  
  4. function subBtnClick(var numFromBtnClick:Number):void
  5. {
  6.    //  Here I would run the function for a btn click using numFromBtnClick as the way to target the xml.
  7.    //  or I would either run a switch statement so I can do different things with each btn.
  8. }