I have a flash file I want to programatically find the dimensions of in my code. Right at the beginning of the code I have the string:
[SWF(width='700', height='500')]
And several subclasses later I want to pull these "700" and "500" values up as variables.
Is there a way to find this?
I've tried referencing this.width and this.height but they always end up zero for the parent canvas.
Referencing the Stage does not work as it returns the current stage size, not the desired size. For example, if I load the SWF directly and not through a browser, I can scale the viewport to be as big or small as I like.