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

Stagescalemode ShowAll Help!

Explorer ,
Aug 01, 2016 Aug 01, 2016

Hello users, I'm trying to use the "showall" in Flash, but says that can only use a public within a package / class, do not know what you mean, someone could help me?

public static const SHOW_ALL:String = "showAll"

Someone may be to come tell me how I can use the structure of this function in a frame?

Taking advantage, I wonder if this really is the function for defining scale, to adjust the implementation of the resolution according to the user's device. I'm already grateful!

TOPICS
ActionScript
478
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
LEGEND ,
Aug 01, 2016 Aug 01, 2016

If you are coding in the timeline then you need to avoid using class nomenclatures.

var SHOW_ALL:String = "showAll";

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
Explorer ,
Aug 01, 2016 Aug 01, 2016

Hello Ned, this will cause the scale of the stage and its attributes fit with the resolution of the user? For I am facing a big problem to try to do something to adjust, avoid this "failure."

See the picture below the gray margin that keeps the application running on a mobile.

marge.png

Could you guide me in any way, please?

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
Explorer ,
Aug 02, 2016 Aug 02, 2016

up?

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 ,
Aug 02, 2016 Aug 02, 2016

use:

stage.scaleMode='showAll';  // if that's the scale mode you want.

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
Explorer ,
Aug 02, 2016 Aug 02, 2016

If I add the line in the first frame, the application startup, is enough? Kglad?

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 ,
Aug 03, 2016 Aug 03, 2016
LATEST

yes.

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