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

Do stage text always have to be layered on the top?

Community Beginner ,
Apr 21, 2015 Apr 21, 2015

Copy link to clipboard

Copied

Hi all,

im in an Air project and i need to uses graphics, movieclips etc  to be layered over the actual stage text so it will  partly cover the stage text. I have not succeded  yet, as  stage text always are on top.

Is it a way to code special graphic elements to so they will cover stage text?

TOPICS
Air beta

Views

612

Translate

Translate

Report

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
Adobe Employee ,
Apr 21, 2015 Apr 21, 2015

Copy link to clipboard

Copied

According to Stage Text documentation :

StageText - Adobe ActionScript® 3 (AS3 ) API Reference

When native inputs are used, StageText objects are not display objects and you cannot add them to the Flash display list. Instead, you display a StageText object by attaching it directly to a stage using the stage property. The StageText instance attached to a stage is displayed on top of any Flash display objects. You control the size and position of the rendering area with the viewPort property. There is no way to control depth ordering of different StageText objects. Overlapping two instances is not recommended.

So, according to current implementation, it will not be possible to overlay other Flash Display Objects over Stage text. Will update you if I come to know about some way or workaround.

Votes

Translate

Translate

Report

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
Engaged ,
Apr 22, 2015 Apr 22, 2015

Copy link to clipboard

Copied

LATEST

If you are willing to have it be on top only during editing, you could use bitmap caching techniques to allow its rendered version to live within the display list, like the NativeText solution documented and provided here:

Native Text Input with StageText

Votes

Translate

Translate

Report

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