Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
hi ASWC, thanks. Do you have any code that shows what you mean that I could see?
Copy link to clipboard
Copied
all good ive found a simple example