Answered
Scale the stage, but not the text
Not sure it's possible, but I'm trying to keep my text from scaling when resizing the stage in the browser window. Anyone know if it's somehow possible?
Not sure it's possible, but I'm trying to keep my text from scaling when resizing the stage in the browser window. Anyone know if it's somehow possible?
Hi.
Perhaps making the scale of the text inversely proportional to the scale of the stage. Like that:
var root = this;
root.resizeHandler = function(e)
{
root.targetText.scaleX = root.targetText.scaleY = 1 / stage.scaleX;
};
root.resizeHandler();
window.addEventListener("resize", root.resizeHandler);
Please tell us if this is what you want.
Regards,
JC
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.