
Untitled
By: a guest on
May 1st, 2012 | syntax:
None | size: 0.45 KB | hits: 14 | expires: Never
// its in a for loop so I have the variable i = 0.. 1.. 2.. 3..
chapterSubMenu_mc.getChildByName("subChapter" + currentChapter + "Btn_mc").addEventListener(MoueseEvent.CLICK, subBtnClick(i));
function subBtnClick(var numFromBtnClick:Number):void
{
// Here I would run the function for a btn click using numFromBtnClick as the way to target the xml.
// or I would either run a switch statement so I can do different things with each btn.
}