You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by engorila <en...@hotmail.com> on 2017/01/17 15:43:24 UTC

The StageText clear button is now optional on iOS

How can we use it in Flex? Thanks

stageText.clearButtonMode  

For getting access to the optional clear button support, AS developers can
now use a clearButtonMode property to set different modes.
 
There are four modes associated with this property:

       To show clearButton while editing:
StageTextClearButtonMode.WHILE_EDITING
       To never show clearButton: StageTextClearButtonMode.NEVER
       To always show clearButton: StageTextClearButtonMode.ALWAYS
       To show clearButton unless editing:
StageTextClearButtonMode.UNLESS_EDITING

By default,  clearButtonMode property is set as
StageTextClearButtonMode.WHILE_EDITING.

Requirements

    The application must be packaged with latest AIR SDK (version 23).
    SWF version must be 34 or later.

Sample snippet

You can use this example code snippet for your reference.

public function ClearButtonMode()
{
label = new StageText();
label.clearButtonMode = StageTextClearButtonMode.NEVER;
label.textAlign = "right";
label.stage = stage;
label.viewPort = new Rectangle(20, 20, 90, 90);
}

Limitations for using stageText.clearButtonMode property     

    This property is not available in StageText with multi-line    
    This property is a No-Op for Android          


More info at:

https://forums.adobe.com/thread/2193554




--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/The-StageText-clear-button-is-now-optional-on-iOS-tp14507.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.