Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

The scale property

Community Beginner ,
Oct 12, 2016 Oct 12, 2016

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?

TOPICS
ActionScript
455
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 12, 2016 Oct 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.

Translate
Community Expert ,
Oct 12, 2016 Oct 12, 2016

there's no as3 native scale property.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 12, 2016 Oct 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 12, 2016 Oct 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 12, 2016 Oct 12, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 12, 2016 Oct 12, 2016
LATEST

after doing more cheking, it looks like scale() is a flex method.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines