Skip to main content
Known Participant
January 22, 2018
Question

Stagetext "hello world" example

  • January 22, 2018
  • 3 replies
  • 340 views

Does anyone have a stagetext hello world example.

I'm struggling to find one thats just really simple - creates and removes a stagetext object over a normal text field that loads it when the focus is tapped onto the text field

This topic has been closed for replies.

3 replies

Known Participant
February 1, 2018

all good ive found a simple example

Known Participant
February 1, 2018

hi ASWC, thanks. Do you have any code that shows what you mean that I could see?

Inspiring
January 22, 2018

There's really not much to it which might be why you can't find many useful examples out there. Once you create that StageText in the simplest example you just assign it's dimension by passing a rectangle to its viewPort property and then you pass the stage to its stage property to show it or set the stage property to null to hide it, really straight forward. This is not a displayobject so no addChild/removeChild is involved with a StageText, you show it/hide it by using its stage property and passing the stage or null.