call inline function and pass in current item as the argument - Flex 3
Posted
by wcpro
on Stack Overflow
See other posts from Stack Overflow
or by wcpro
Published on 2010-06-08T17:31:37Z
Indexed on
2010/06/08
17:32 UTC
Read the original article
Hit count: 237
flex
|actionscript-3
Im trying to create a loop of items like this...
for each (var btn:Object in ViewButtonData)
{
// build element
var box:HBox = new HBox();
box.styleName = "lefttab";
box.width = "100%";
box.addEventListener("rollOver", HoverTab(btn.id, 1));
box.addEventListener("rollOut", HoverTab(btn.id, 0));
// add element to list
}
I would like to pass in current HBox to the 'HoverTab' function. Is there a way to do that?
© Stack Overflow or respective owner