GithubHelp home page GithubHelp logo

j3k0 / feathers-foveatextinput Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 172 KB

Feathers TextInput replacement to get rid of StageText Crashes on Android

License: MIT License

ActionScript 100.00%

feathers-foveatextinput's Introduction

Feathers-FoveaTextInput

Feathers TextInput replacement to get rid of StageText Crashes on Android

Documentation

Import FoveaTextInput:

import feathers.controls.FoveaTextInput;

Use it as a any TextInput:

var input:FoveaTextInput = new FoveaTextInput();
addChild(input);
input.prompt = "Enter your name";
input.x = 100;
input.y = 100;
input.width  = 300;
input.height = 60;

Behaviour

FoveaTextInput will be a regular feathers TextInput on all platform except Android.

On Android, an invisible flash.text.TextField is added over the TextInput to prevent the StageText crash that occurs on some devices. It provides less features, but more stability.

Known Issue

On Android, if some feathers elements are drawn over the FoveaTextInput, the invisible flash.text.TextInput will still be there (not visible, but still active). You may have to remove the text input from the stage to prevent weird behaviours.

feathers-foveatextinput's People

Contributors

j3k0 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.