Highlighted

Stagetext "hello world" example

Explorer ,
Jan 22, 2018

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

TOPICS
Development

Views

172

Likes

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

Stagetext "hello world" example

Explorer ,
Jan 22, 2018

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

TOPICS
Development

Views

173

Likes

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
Jan 22, 2018 0
Advocate ,
Jan 22, 2018

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.

Likes

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
Reply
Loading...
Jan 22, 2018 0
Explorer ,
Feb 01, 2018

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
Feb 01, 2018 0
Explorer ,
Feb 01, 2018

Copy link to clipboard

Copied

all good ive found a simple example

Likes

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
Reply
Loading...
Feb 01, 2018 0