ziriguidum
July 30th, 2009, 01:04 AM
Hi!
Is it possible to alter the width or height of a sprite dynamically without altering the width and height of its children ?
Even when I add children to a Sprite that had its dimensions altered dynamically, these children have their dimensions changed.
Could I do something like "sprite.resetScaleXandY" ?
menuArray[i].tab.width = subMenu.width;
menuArray[i].tab.height = 45 + subMenu.height;
menuArray[i].tab.addChild(subMenu);Here the subMenu gets resized and it shouldn't.
What do you suggest in this kind of situation?
Thanks in advance!
Is it possible to alter the width or height of a sprite dynamically without altering the width and height of its children ?
Even when I add children to a Sprite that had its dimensions altered dynamically, these children have their dimensions changed.
Could I do something like "sprite.resetScaleXandY" ?
menuArray[i].tab.width = subMenu.width;
menuArray[i].tab.height = 45 + subMenu.height;
menuArray[i].tab.addChild(subMenu);Here the subMenu gets resized and it shouldn't.
What do you suggest in this kind of situation?
Thanks in advance!