Copy link to clipboard
Copied
I was reading the below linked tutorial about targeting multiple screens for Adobe Air and noticed that the code contained the following line:
Supporting the multiple screen sizes of multiple devices in Adobe AIR | Adobe Developer Connection
base.scale = appScale;
The ".scale" part highlights in AS3, but it doesn't seem to affect anything onstage. I copied&pasted almost directly from the tutorial for a test run. Typically when I am scaling something, I use the ".scaleX" or ".scaleY". I have been googling for a few hours and haven't been able to find any documentation about ".scale", even though it clearly has to be an AS# supported property. What does it do, how is it different from scaleX/Y and why might it not be visibly doing anything in my application?
It must be a keyword of some sort, but I can't recall what that could be. In fact, that tutorial you referenced didn't make sense to me, even granting it's a few years old.
Copy link to clipboard
Copied
there's no as3 native scale property.
Copy link to clipboard
Copied
Thanks for reply. Any thoughts on why it highlights? Or possibly what that tutorial is getting at? I only ask because it was published on the Adobe site.
Copy link to clipboard
Copied
It must be a keyword of some sort, but I can't recall what that could be. In fact, that tutorial you referenced didn't make sense to me, even granting it's a few years old.
Copy link to clipboard
Copied
Thank you for confirming what I suspected, but doubted because of where it was hosted.
Copy link to clipboard
Copied
after doing more cheking, it looks like scale() is a flex method.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now