Repository: flex-utilities
Updated Branches:
  refs/heads/develop 60726c605 -> 812a8b674


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/812a8b67/TourDeFlex/TourDeFlex3/src/validators/RegExValidatorExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/validators/RegExValidatorExample.mxml 
b/TourDeFlex/TourDeFlex3/src/validators/RegExValidatorExample.mxml
index b7e64e9..0079e28 100755
--- a/TourDeFlex/TourDeFlex3/src/validators/RegExValidatorExample.mxml
+++ b/TourDeFlex/TourDeFlex3/src/validators/RegExValidatorExample.mxml
@@ -17,9 +17,9 @@
   -->
 
 <!-- Simple example to demonstrate the RegExpValidator. -->
-<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
+<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"; 
xmlns:mx="library://ns.adobe.com/flex/mx">
 
-       <mx:Script>
+       <fx:Script>
                <![CDATA[
                        import mx.events.ValidationResultEvent;
                        import mx.validators.*;
@@ -45,13 +45,15 @@
                                }               
                        }
                ]]>
-       </mx:Script>
+       </fx:Script>
 
-       <mx:RegExpValidator id="regExpV" 
-               source="{regex_text}" property="text" 
-               flags="g" expression="{regex.text}" 
-               valid="handleResult(event)" invalid="handleResult(event)"
-               trigger="{myButton}" triggerEvent="click"/>
+       <fx:Declarations>
+               <mx:RegExpValidator id="regExpV" 
+                       source="{regex_text}" property="text" 
+                       flags="g" expression="{regex.text}" 
+                       valid="handleResult(event)" 
invalid="handleResult(event)"
+                       trigger="{myButton}" triggerEvent="click"/>
+       </fx:Declarations>
        
    <mx:Panel title="RegExpValidator Example" width="95%" height="95%" 
         paddingTop="5" paddingLeft="5" paddingRight="5" paddingBottom="5">

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/812a8b67/TourDeFlex/TourDeFlex3/src/validators/SimpleValidatorExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/validators/SimpleValidatorExample.mxml 
b/TourDeFlex/TourDeFlex3/src/validators/SimpleValidatorExample.mxml
index d56f2df..e7c5210 100755
--- a/TourDeFlex/TourDeFlex3/src/validators/SimpleValidatorExample.mxml
+++ b/TourDeFlex/TourDeFlex3/src/validators/SimpleValidatorExample.mxml
@@ -17,9 +17,9 @@
   -->
 
 <!-- Simple example to demonstrate the Validator class. -->
-<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
+<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"; 
xmlns:mx="library://ns.adobe.com/flex/mx">
 
-    <mx:Script>
+    <fx:Script>
         <![CDATA[
 
                        // Import necessary classes.
@@ -41,13 +41,15 @@
                        }
 
         ]]>
-    </mx:Script>
+    </fx:Script>
 
     <!-- The Validator class defines the required property and the validator 
events
          used by all validator subclasses. -->
-    <mx:Validator id="reqValid" required="true"
-        source="{fname}" property="text" 
-        valid="handleValid(event)" invalid="handleValid(event)"/>
+       <fx:Declarations>
+           <mx:Validator id="reqValid" required="true"
+               source="{fname}" property="text" 
+               valid="handleValid(event)" invalid="handleValid(event)"/>
+       </fx:Declarations>
         
     <mx:Panel title="Validator Example" width="100%" height="100%" 
             paddingTop="5" paddingLeft="5" paddingRight="5" paddingBottom="5">

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/812a8b67/TourDeFlex/TourDeFlex3/src/validators/SocialSecurityValidatorExample.mxml
----------------------------------------------------------------------
diff --git 
a/TourDeFlex/TourDeFlex3/src/validators/SocialSecurityValidatorExample.mxml 
b/TourDeFlex/TourDeFlex3/src/validators/SocialSecurityValidatorExample.mxml
index eacd894..b9db3c9 100755
--- a/TourDeFlex/TourDeFlex3/src/validators/SocialSecurityValidatorExample.mxml
+++ b/TourDeFlex/TourDeFlex3/src/validators/SocialSecurityValidatorExample.mxml
@@ -17,15 +17,17 @@
   -->
 
 <!-- Simple example to demonstrate SocialSecurityValidator. -->
-<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
+<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"; 
xmlns:mx="library://ns.adobe.com/flex/mx">
 
-    <mx:Script>
+    <fx:Script>
         import mx.controls.Alert;
-    </mx:Script>
+    </fx:Script>
 
-    <mx:SocialSecurityValidator source="{ssn}" property="text" 
-        trigger="{myButton}" triggerEvent="click"
-        valid="Alert.show('Validation Succeeded!');"/>
+       <fx:Declarations>
+           <mx:SocialSecurityValidator source="{ssn}" property="text" 
+               trigger="{myButton}" triggerEvent="click"
+               valid="Alert.show('Validation Succeeded!');"/>
+       </fx:Declarations>
 
     <mx:Panel title="Social Security Validator Panel" width="75%" height="75%" 
         paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10">

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/812a8b67/TourDeFlex/TourDeFlex3/src/validators/StringValidatorExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/validators/StringValidatorExample.mxml 
b/TourDeFlex/TourDeFlex3/src/validators/StringValidatorExample.mxml
index 4fb5344..982a141 100755
--- a/TourDeFlex/TourDeFlex3/src/validators/StringValidatorExample.mxml
+++ b/TourDeFlex/TourDeFlex3/src/validators/StringValidatorExample.mxml
@@ -17,18 +17,20 @@
   -->
 
 <!-- Simple example to demonstrate StringValidator. -->
-<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
+<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"; 
xmlns:mx="library://ns.adobe.com/flex/mx">
 
-    <mx:Script>
+    <fx:Script>
         import mx.controls.Alert;
-    </mx:Script>
-
-    <mx:StringValidator source="{fname}" property="text" 
-       tooShortError="This string is shorter than the minimum allowed length 
of 4. " 
-       tooLongError="This string is longer than the maximum allowed length of 
20." 
-       minLength="4" maxLength="20"  
-       trigger="{myButton}" triggerEvent="click" 
-       valid="Alert.show('Validation Succeeded!');"/>
+    </fx:Script>
+
+       <fx:Declarations>
+           <mx:StringValidator source="{fname}" property="text" 
+               tooShortError="This string is shorter than the minimum allowed 
length of 4. " 
+               tooLongError="This string is longer than the maximum allowed 
length of 20." 
+               minLength="4" maxLength="20"  
+               trigger="{myButton}" triggerEvent="click" 
+               valid="Alert.show('Validation Succeeded!');"/>
+       <fx:Declarations>
 
     <mx:Panel title="StringValidator Example" width="75%" height="75%" 
         paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10">

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/812a8b67/TourDeFlex/TourDeFlex3/src/validators/ZipCodeValidatorExample.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/validators/ZipCodeValidatorExample.mxml 
b/TourDeFlex/TourDeFlex3/src/validators/ZipCodeValidatorExample.mxml
index db2e2a8..5d874af 100755
--- a/TourDeFlex/TourDeFlex3/src/validators/ZipCodeValidatorExample.mxml
+++ b/TourDeFlex/TourDeFlex3/src/validators/ZipCodeValidatorExample.mxml
@@ -17,15 +17,17 @@
   -->
 
 <!-- Simple example to demonstrate the ZipCodeValidator. -->
-<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
+<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"; 
xmlns:mx="library://ns.adobe.com/flex/mx">
 
-    <mx:Script>
+    <fx:Script>
         import mx.controls.Alert;
-    </mx:Script>
+    </fx:Script>
 
-    <mx:ZipCodeValidator source="{zip}" property="text" 
-        trigger="{myButton}" triggerEvent="click"  
-        valid="Alert.show('Validation Succeeded!');"/>
+       <fx:Declarations>
+           <mx:ZipCodeValidator source="{zip}" property="text" 
+               trigger="{myButton}" triggerEvent="click"  
+               valid="Alert.show('Validation Succeeded!');"/>
+       </fx:Declarations>
 
     <mx:Panel title="ZipcodeValidator Example" width="75%" height="75%" 
         paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10">

http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/812a8b67/TourDeFlex/TourDeFlex3/src/viewsource.mxml
----------------------------------------------------------------------
diff --git a/TourDeFlex/TourDeFlex3/src/viewsource.mxml 
b/TourDeFlex/TourDeFlex3/src/viewsource.mxml
index 77951b6..dbf83bf 100755
--- a/TourDeFlex/TourDeFlex3/src/viewsource.mxml
+++ b/TourDeFlex/TourDeFlex3/src/viewsource.mxml
@@ -16,10 +16,10 @@
       limitations under the License.
   -->
 
-<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"; backgroundColor="#CCCCCC" 
usePreloader="false"
-                paddingTop="0" paddingBottom="0" paddingLeft="0" 
paddingRight="0">
+<mx:VBox xmlns:fx="http://ns.adobe.com/mxml/2009"; 
xmlns:mx="library://ns.adobe.com/flex/mx"
+                backgroundColor="#CCCCCC" usePreloader="false" paddingTop="0" 
paddingBottom="0" paddingLeft="0" paddingRight="0">
 
-       <mx:Script>
+       <fx:Script>
                <![CDATA[               
                        
                        public function loadSource(appUrl:String, 
srcUrl:String):void
@@ -50,7 +50,7 @@
                                }
                        }
                ]]>
-       </mx:Script>
+       </fx:Script>
 
        <mx:TabNavigator id="tn" width="100%" height="100%" paddingTop="0"/>
 

Reply via email to