Menu

[r11]: / trunk / SWFInvestigator / src / hexEditor / HexValidator.mxml  Maximize  Restore  History

Download this file

29 lines (24 with data), 1.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="utf-8"?>
<s:GridItemEditor xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" width="400" height="300">
<fx:Script>
<![CDATA[
/****************************************************************************
* ADOBE SYSTEMS INCORPORATED
* Copyright 2012 Adobe Systems Incorporated and it’s licensors
* All Rights Reserved.
*
* NOTICE: Adobe permits you to use, modify, and distribute this file
* in accordance with the terms of the license agreement accompanying it.
* ****************************************************************************/
override protected function validate():Boolean {
var re:RegExp = /^[A-Fa-f0-9]{2}$/g;
if (re.test(value.toString()) == false) {
return (false);
}
return (true);
}
]]>
</fx:Script>
<s:TextInput id="textInput" text="@{value}" top="0" left="0" bottom="0" right="0" />
</s:GridItemEditor>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.