• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Stagetext "hello world" example

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

264

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
community guidelines
Advocate ,
Jan 22, 2018 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.

Votes

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
community guidelines
Explorer ,
Feb 01, 2018 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?

Votes

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
community guidelines
Explorer ,
Feb 01, 2018 Feb 01, 2018

Copy link to clipboard

Copied

LATEST

all good ive found a simple example

Votes

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
community guidelines