I have a button object that I need to scale to align with the variable width of an array of images.
However, when I set the width in code, the button does not actually become that width. Tracing out the width gives me the correct value, but on screen… it’s off.
I’ve proved it to myself by scaling the same button object manually in the properties pane and visually comparing. Both of the buttons below have a width of 410.
navigatorDown_btn.width = 410;
navigatorDown_btn.x = (stage.stageWidth/2)-(navigatorDown_btn.width/2);
trace(navigatorDown_btn.width); // output: 410
Ever seen anything like this?