Skip to main content
Known Participant
Jan 22, 2018 3:34 PM UTC
Question

Stagetext "hello world" example

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

Known Participant
Feb 1, 2018 2:30 PM UTC

all good ive found a simple example

Translate
Known Participant
Feb 1, 2018 1:20 PM UTC

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

Translate
Inspiring
Jan 22, 2018 8:00 PM UTC

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.

Translate