Skip to main content
Known Participant
October 12, 2016
Answered

The scale property

  • October 12, 2016
  • 2 replies
  • 517 views

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?

This topic has been closed for replies.
Correct answer kglad

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.

2 replies

withertonAuthor
Known Participant
October 12, 2016

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.

kglad
kgladCorrect answer
Adobe Expert
October 12, 2016

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.

withertonAuthor
Known Participant
October 12, 2016

Thank you for confirming what I suspected, but doubted because of where it was hosted. 

kglad
Adobe Expert
October 12, 2016

there's no as3 native scale property.