Skip to main content
Participating Frequently
April 21, 2015
Question

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

  • April 21, 2015
  • 2 replies
  • 677 views

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?

This topic has been closed for replies.

2 replies

jadams602
Inspiring
April 22, 2015

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

tdwivedi
Adobe Employee
Adobe Employee
April 22, 2015

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.