Flash-text-restrict

From Frontal Wiki

Jump to: navigation, search

Contents

Purpose

This style is exclusive to the 'text' tag and restricts the characters that will may be entered into a text input.


Value

The flash-text-restrict style accepts a string of text that specifies which characters are allowed to be entered into the text field.

flash-text-restrict: "A-Z^Q";

Remarks

Restricting a text field input is a Flash feature. See the Flash reference for TextField.restrict for more details including special rules for specifying acceptable and unacceptable ranges of characters.

Example

In this example, only the characters A through M and spaces may be entered in the text field.

<style><![CDATA[
    text
    {
		border-width: 1px;
		flash-text-restrict: "A-Ma-m ";
		flash-text-type: input;
		html-text: false;
		font-family: Swift LT Std;
		font-size: 14px;
		width: 200px;
		height: 200px;
		scroll: auto;
		margin: auto;
    }
]]></style> 
<include rel="assets" blocking="true" src="assets.swf" fontClasses="SwiftLTStd, SwiftLTStdBold, SwiftLTStdItalic" />
<text />

Can Be Applied To

This style can be applied to:

Personal tools
Get Adobe Flash player