Suggestions

Flash StageText "The missing functionalities" (specially important in TextInput)

Flash StageText has a few problems which are specially important when using the TextInput in starling. This could be resolved with an ANE, 1-The positioning, 2-The stageText does't resize when in multiline the text grows, 3- It does't return any measurements of the textSize inside the StageText. 4-It's impossible to skin the clear button (Even just to colorize it would be great!), 5- Resizing the clear button is also difficult

More details about the positioning, point 1: Flash StageText finds difficult the positioning of itself when using Starling. When StageText is implemented as part of a Starling object its coordinates are defined with the nativeStage and not the starling stage. Due to this position it’s necessary to use starling method localToGlobal and unfortunately does not work as expected, forcing to hardcode values for positioning. This solution is not optimal when the application is going to be used in different kind of devices such as iPhones, iPads, android phones or android tablets. In addition, flash stageText does not work in the same way in iOS and android, making it difficult to have the same code for both implementations.
Also missing feature is placeholder text of StageText. One solution is that we are just adding text into StageText when it’s empty, but that is causing problems on Android because system recognize that text as part of StageText and it thinks that is full, other solution is that we can add textfield over StageText and on focusing in or out put visible true/false. But some option as part of StageText like parameter just to add String for placeholder would be really nice.

29 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Gustavo Vilera shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    9 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base