开发者

targetting the next container child in flex

开发者 https://www.devze.com 2023-04-08 03:55 出处:网络
i have created a couple of buttons at run time in flex. when i click on one button using event.currentTarget property i can change its properties like x,y,label etc , also i can get its index. Now i c

i have created a couple of buttons at run time in flex. when i click on one button using event.currentTarget property i can change its properties like x,y,label etc , also i can get its index. Now i can found the next child index too but how can i change the properties of next child using its index.

开发者_如何学运维Currently i am using getElementIndex(Button(event.currentTarget)).x for changing its x coordinates. Need to change the coordinates of the button next to it.


You can use getChildAt(index + 1) on the button's parent.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号