Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/GraphicChangeEvent.as
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/GraphicChangeEvent.as?rev=1619987&view=auto
==============================================================================
--- 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/GraphicChangeEvent.as 
(added)
+++ 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/GraphicChangeEvent.as 
Sat Aug 23 08:47:51 2014
@@ -0,0 +1,61 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package textEditBar
+{
+       import flash.events.Event;
+       
+       public class GraphicChangeEvent extends Event
+       {
+               private var _imageLink:String;
+               private var _imageWidth:Object;
+               private var _imageHeight:Object;
+               private var _float:String;
+               private var _replaceCurrent:Boolean;    
+               
+               public function GraphicChangeEvent(type:String, 
imageLink:String, imageWidth:Object, imageHeight:Object, float:String, 
replaceCurrent:Boolean = false, bubbles:Boolean=false, cancelable:Boolean=false)
+               {
+                       _imageLink = imageLink;
+                       _imageWidth = imageWidth;
+                       _imageHeight = imageHeight;
+                       _replaceCurrent = replaceCurrent;
+                       _float = float;
+                       super(type, bubbles, cancelable);
+               }
+               
+               override public function clone():Event
+               {
+                       return new GraphicChangeEvent(type, _imageLink, 
_imageWidth, _imageHeight, _float, _replaceCurrent, bubbles, cancelable);
+               }
+               
+               public function get imageLink():String
+               { return _imageLink; }          
+               
+               public function get imageWidth():Object
+               { return _imageWidth; }
+               
+               public function get imageHeight():Object
+               { return _imageHeight; }
+               
+               public function get float():String
+               { return _float; }
+               
+               public function get replaceCurrent():Boolean
+               { return _replaceCurrent; }
+       }
+}

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/GraphicChangeEvent.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/LinkBar.mxml
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/LinkBar.mxml?rev=1619987&view=auto
==============================================================================
--- flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/LinkBar.mxml 
(added)
+++ flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/LinkBar.mxml Sat 
Aug 23 08:47:51 2014
@@ -0,0 +1,158 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+<mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml"; 
xmlns:textEditBar="textEditBar.*"
+               addedToStage="onAddedToStage()" 
removedFromStage="onRemovedFromStage()">
+       
+       <mx:Array id="targetArray"> 
+               <mx:String>_blank</mx:String>
+               <mx:String>_self</mx:String>
+               <mx:String>_parent</mx:String>
+               <mx:String>_top</mx:String>
+       </mx:Array>     
+       
+       <mx:Script>
+               <![CDATA[
+                   import mx.controls.Alert;
+                       import flashx.textLayout.edit.ElementRange;
+                       import flashx.textLayout.edit.IEditManager;
+                       import flashx.textLayout.elements.LinkElement;
+                       import flashx.textLayout.elements.FlowElement;
+                       import flashx.textLayout.elements.ParagraphElement;
+                       import flashx.textLayout.events.FlowElementMouseEvent;
+                       import flashx.textLayout.elements.TextFlow;
+                       
+                       public var activeFlow:TextFlow;
+                       
+                       private function changeLink(urlText:String, 
targetText:String, extendToOverlappingLinks:Boolean):void
+                       {
+                               if (activeFlow && activeFlow.interactionManager 
is IEditManager)
+                               {
+                                       
IEditManager(activeFlow.interactionManager).applyLink(urlText, targetText, 
extendToOverlappingLinks);                   
+                                       
activeFlow.interactionManager.setFocus();
+                               }
+                       }
+               
+                   private var onStage:Boolean = false;
+               private var addedFrameEventListener:Boolean = false;
+               private var lastRange:ElementRange;
+               
+                       private function onAddedToStage():void
+                       {
+                               // the dataProviders aren't set up yet - delay 
to the frame
+                               onStage = true;
+                               if (!addedFrameEventListener)
+                               {
+                                       addedFrameEventListener = true;
+                                       
addEventListener("enterFrame",onEnterFrame);
+                               }
+                       }
+               
+                       private function onEnterFrame(p:Event):void
+                       {
+                               
this.removeEventListener("enterFrame",onEnterFrame);
+                               addedFrameEventListener = false;
+                       
+                               update(lastRange);
+                       }
+       
+                       private function onRemovedFromStage():void
+                       {
+                               onStage = false;
+                       }               
+
+                       protected function setTargetCombo(val:String):void
+                       {
+                               var length:uint = 
linkTargetCombo.dataProvider.length;
+               
+                               for (var i:uint = 0; i < length; i++)
+                               {
+                                       if 
(linkTargetCombo.dataProvider.getItemAt(i).toLowerCase() == val.toLowerCase())
+                                       {
+                                               linkTargetCombo.selectedIndex = 
i;
+                                               return;
+                                       }
+                               }
+                               linkTargetCombo.selectedIndex = -1;
+                               linkTargetCombo.validateNow();
+                               linkTargetCombo.text = val;
+                       }
+                                       
+                       public function update(range:ElementRange):void
+                       {
+                               if (!range)
+                               {
+                                       if (onStage)
+                                               visible = false;
+                                       lastRange = null;
+                                       return;
+                               }
+                               
+                               var linkString:String = "";
+                               var linkTarget:String = "";
+                               var linkEl:LinkElement = 
range.firstLeaf.getParentByType(LinkElement) as LinkElement;
+                               if (linkEl != null)
+                               {
+                                       var linkElStart:int = 
linkEl.getAbsoluteStart();
+                                       var linkElEnd:int = linkElStart + 
linkEl.textLength;
+                                       if (linkElEnd < linkElStart)
+                                       {
+                                               var temp:int = linkElStart;
+                                               linkElStart = linkElEnd;
+                                               linkElEnd = temp;
+                                       }
+                                       
+                                       var beginRange:int = 
range.absoluteStart;
+                                       var endRange:int = range.absoluteEnd;
+                                       
+                                       var beginPara:ParagraphElement = 
range.firstParagraph;
+                                       if (endRange == 
(beginPara.getAbsoluteStart() + beginPara.textLength))
+                                       {
+                                               endRange--;
+                                       }
+                                       
+                                       if ((beginRange == endRange) || 
(endRange <= linkElEnd))
+                                       {
+                                               linkString = 
LinkElement(linkEl).href;
+                                               linkTarget = 
LinkElement(linkEl).target;
+                                       }
+                               }
+                               
+                               if (onStage)
+                               {
+                                       if (!visible)
+                                               visible = true;
+                                       linkTextInput.text = linkString ? 
linkString : "";
+                                       setTargetCombo(linkTarget ? linkTarget 
: "");
+                               }
+                               lastRange = range;
+                       }                       
+               ]]>
+       </mx:Script>
+
+       <mx:Label text="Link Url:" fontWeight="bold"/>
+       <mx:TextInput id="linkTextInput" width="140"/>
+       <mx:Label text="Link Target:" fontWeight="bold"/>
+       <mx:ComboBox id="linkTargetCombo" editable="true"
+               selectedIndex="0" dataProvider = "{targetArray}"/>
+       <mx:CheckBox id = "linkExtendCheckBox" label="Extend"/>
+       <mx:Button label="Apply Link" 
+               click="changeLink(linkTextInput.text, linkTargetCombo.text, 
linkExtendCheckBox.selected);" />
+</mx:HBox>

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/LinkBar.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/LinkChangeEvent.as
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/LinkChangeEvent.as?rev=1619987&view=auto
==============================================================================
--- flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/LinkChangeEvent.as 
(added)
+++ flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/LinkChangeEvent.as 
Sat Aug 23 08:47:51 2014
@@ -0,0 +1,51 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package textEditBar
+{
+       import flash.events.Event;
+       
+       public class LinkChangeEvent extends Event
+       {
+               private var _linkText:String;
+               private var _targetText:String;
+               private var _extendToOverlappingLinks:Boolean;
+               
+               public function LinkChangeEvent(type:String, linkText:String, 
targetText:String, extendToOverlappingLinks:Boolean=false, 
bubbles:Boolean=false, cancelable:Boolean=false)
+               {
+                       _linkText = linkText;
+                       _targetText = targetText;
+                       _extendToOverlappingLinks = extendToOverlappingLinks;
+                       super(type, bubbles, cancelable);
+               }
+               
+               override public function clone():Event
+               {
+                       return new LinkChangeEvent(type, _linkText, 
_targetText, _extendToOverlappingLinks, bubbles, cancelable);
+               }
+               
+               public function get linkText():String
+               { return _linkText; }           
+               
+               public function get linkTarget():String
+               { return _targetText; }
+               
+               public function get extendToOverlappingLinks():Boolean
+               { return _extendToOverlappingLinks; }
+       }
+}

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/LinkChangeEvent.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/SingleContainerView.mxml
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/SingleContainerView.mxml?rev=1619987&view=auto
==============================================================================
--- 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/SingleContainerView.mxml
 (added)
+++ 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/SingleContainerView.mxml
 Sat Aug 23 08:47:51 2014
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+
+<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"; 
backgroundColor="0xffffff" resize="handleResize()">
+       
+       <mx:Script>
+               <![CDATA[
+               import flashx.textLayout.elements.TextFlow;
+               import flashx.textLayout.compose.StandardFlowComposer;
+               import flashx.textLayout.container.ContainerController;
+               import textEditBar.SpriteWithIME;
+               
+               
+               private var _activeFlow:TextFlow;
+               
+               public function 
changeContainerSetup(newActiveFlow:TextFlow):void
+               {
+                       _activeFlow = newActiveFlow;
+                       if (_activeFlow)
+                       {
+                               if (!_activeFlow.flowComposer)
+                                       _activeFlow.flowComposer = new 
StandardFlowComposer();
+                               if (_activeFlow.flowComposer.numControllers < 1)
+                                       
_activeFlow.flowComposer.addController(new ContainerController(new 
SpriteWithIME()));
+                               
rawChildren.addChild(_activeFlow.flowComposer.getControllerAt(0).container);    
+                               handleResize();
+                       }
+               }
+               
+               public function handleResize():void
+               {
+                       if (!_activeFlow)
+                               return;
+                               
+                       var newFrameWidth:Number = width;
+                       var newFrameHeight:Number = height;
+
+                       var cont:ContainerController = 
_activeFlow.flowComposer.getControllerAt(0);
+                       if (cont.container)
+                               
updateFrameDimensions(cont,0,0,newFrameWidth,newFrameHeight);
+
+                       _activeFlow.flowComposer.updateAllControllers();
+                               
+                       if (_activeFlow.interactionManager && 
_activeFlow.interactionManager.hasSelection())
+                               
_activeFlow.flowComposer.getControllerAt(0).scrollToRange(_activeFlow.interactionManager.activePosition,_activeFlow.interactionManager.anchorPosition);
 
+
+               }
+                               
+               /** helper function to update a frame's dimensions */
+               private function 
updateFrameDimensions(controller:ContainerController,x:Number,y:Number,w:Number,h:Number):void
+               {
+                       var tc:DisplayObject = controller.container;
+                       
+                       if (tc.x != x)
+                               tc.x = x;
+                       if (tc.y != y)
+                               tc.y = y;
+                       controller.setCompositionSize(w,h);
+               }
+               
+               ]]>
+       </mx:Script>
+</mx:Canvas>

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/SingleContainerView.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/SpriteWithIME.as
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/SpriteWithIME.as?rev=1619987&view=auto
==============================================================================
--- flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/SpriteWithIME.as 
(added)
+++ flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/SpriteWithIME.as 
Sat Aug 23 08:47:51 2014
@@ -0,0 +1,102 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package textEditBar
+{
+       import flash.display.Sprite;
+       
+       import mx.core.IIMESupport;
+       import mx.managers.IFocusManagerComponent;
+
+       public class SpriteWithIME extends Sprite implements IIMESupport, 
IFocusManagerComponent
+       {
+               private var _imeMode:String;
+               
+               public function SpriteWithIME()
+               {
+                       super();
+               }
+               
+               public function get enableIME():Boolean
+               {
+                       return true;
+               }
+               
+               public function get imeMode():String
+               {
+                       return _imeMode;
+               }
+               
+               public function set imeMode(value:String):void
+               {
+                       _imeMode = value;
+               }
+               
+               public function get focusEnabled():Boolean
+               {
+                       return true;
+               }
+               
+               public function set focusEnabled(value:Boolean):void
+               {
+               }
+               
+               // For now! Should be dependent on Configuration.manageTabKey
+               public function get tabFocusEnabled():Boolean
+               {
+                       return true;
+               }
+               
+               public function set tabFocusEnabled(value:Boolean):void
+               {
+               }
+               
+               public function get hasFocusableChildren():Boolean
+               {
+                       return false;
+               }
+               
+               public function set hasFocusableChildren(value:Boolean):void
+               {
+               }
+               
+               public function get mouseFocusEnabled():Boolean
+               {
+                       return false;
+               }
+               
+               /*public function get tabEnabled():Boolean
+               {
+                       return false;
+               }
+               
+               public function get tabIndex():int
+               {
+                       return 0;
+               }*/
+               
+               public function setFocus():void
+               {
+               }
+               
+               public function drawFocus(isFocused:Boolean):void
+               {
+               }
+               
+       }
+}
\ No newline at end of file

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/SpriteWithIME.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/StatusPopup.mxml
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/StatusPopup.mxml?rev=1619987&view=auto
==============================================================================
--- flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/StatusPopup.mxml 
(added)
+++ flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/StatusPopup.mxml 
Sat Aug 23 08:47:51 2014
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute" 
width="500" height="390" verticalScrollPolicy="off"
+       horizontalScrollPolicy="off">
+       <mx:Script>
+               <![CDATA[
+                       public var closeFunction:Function;
+                       public var textFormat:String;
+                       [Bindable]
+                       public var importFunction:Function;
+                       [Bindable]
+                       public var saveFunction:Function;
+               ]]>
+       </mx:Script>    
+       <mx:TextArea id="textArea" x="0" y="0" width="100%" height="100%" 
fontFamily="_sans">
+       </mx:TextArea>
+       <mx:ControlBar horizontalAlign="center">
+               <mx:Button label="Import" id="cmdImport" 
visible="{importFunction != null}" click="{if (importFunction != null) 
importFunction(this)}"/>
+               <mx:Button label="Save"   id="cmdSave"   visible="{saveFunction 
!= null}" click="{if (saveFunction != null) saveFunction(this)}"/>
+               <mx:Button label="Close"  id="cmdClose"  
click="closeFunction(this)"/>
+       </mx:ControlBar>
+</mx:Panel>

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/StatusPopup.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/StyleChangeEvent.as
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/StyleChangeEvent.as?rev=1619987&view=auto
==============================================================================
--- 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/StyleChangeEvent.as 
(added)
+++ 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/StyleChangeEvent.as 
Sat Aug 23 08:47:51 2014
@@ -0,0 +1,46 @@
+////////////////////////////////////////////////////////////////////////////////
+//
+//  Licensed to the Apache Software Foundation (ASF) under one or more
+//  contributor license agreements.  See the NOTICE file distributed with
+//  this work for additional information regarding copyright ownership.
+//  The ASF licenses this file to You under the Apache License, Version 2.0
+//  (the "License"); you may not use this file except in compliance with
+//  the License.  You may obtain a copy of the License at
+//
+//      http://www.apache.org/licenses/LICENSE-2.0
+//
+//  Unless required by applicable law or agreed to in writing, software
+//  distributed under the License is distributed on an "AS IS" BASIS,
+//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//  See the License for the specific language governing permissions and
+//  limitations under the License.
+//
+////////////////////////////////////////////////////////////////////////////////
+package textEditBar
+{
+       import flash.events.Event;
+       
+       import flashx.textLayout.formats.ITextLayoutFormat;
+
+       public class StyleChangeEvent extends Event
+       {
+               private var _attrs:Object;
+               
+               public function StyleChangeEvent(type:String, 
styleAttrs:Object, bubbles:Boolean=false, cancelable:Boolean=false)
+               {
+                       _attrs = styleAttrs;
+                       super(type, bubbles, cancelable);
+               }
+               
+               override public function clone():Event
+               {
+                       return new StyleChangeEvent(type, _attrs, bubbles, 
cancelable);
+               }
+               
+               public function get format():ITextLayoutFormat
+               { return _attrs as ITextLayoutFormat; } 
+               
+               public function get attrs():Object
+               { return _attrs; }
+       }
+}
\ No newline at end of file

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/StyleChangeEvent.as
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/%icon_tcy.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/%25icon_tcy.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/%icon_tcy.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/BreakOpportunityType.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/BreakOpportunityType.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/BreakOpportunityType.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/EmbedDeleteIcon.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/EmbedDeleteIcon.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/EmbedDeleteIcon.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/EmbedDeleteIconDisabled.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/EmbedDeleteIconDisabled.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/EmbedDeleteIconDisabled.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextAlignBottom_Sm_N.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextAlignBottom_Sm_N.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextAlignBottom_Sm_N.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextAlignJustify_Sm_N.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextAlignJustify_Sm_N.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextAlignJustify_Sm_N.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextAlignMiddle_Sm_N.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextAlignMiddle_Sm_N.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextAlignMiddle_Sm_N.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextAlignTop_Sm_N.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextAlignTop_Sm_N.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextAlignTop_Sm_N.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextBaselineShift_Md_N.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextBaselineShift_Md_N.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextBaselineShift_Md_N.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextBottomOffset_Md_N.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextBottomOffset_Md_N.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextBottomOffset_Md_N.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextFirstLineIndent_Md_N.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextFirstLineIndent_Md_N.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextFirstLineIndent_Md_N.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextLeftIndent_Md_N.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextLeftIndent_Md_N.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextLeftIndent_Md_N.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextLeftOffset_Md_N.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextLeftOffset_Md_N.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextLeftOffset_Md_N.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextRightIndent_Md_N.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextRightIndent_Md_N.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextRightIndent_Md_N.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextRightOffset_Md_N.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextRightOffset_Md_N.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextRightOffset_Md_N.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextSmallCaps_Md_N.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextSmallCaps_Md_N.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextSmallCaps_Md_N.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextSpaceAfter_Md_N.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextSpaceAfter_Md_N.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextSpaceAfter_Md_N.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextSpaceBefore_Md_N.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextSpaceBefore_Md_N.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextSpaceBefore_Md_N.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextTopOffset_Md_N.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextTopOffset_Md_N.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/P_TextTopOffset_Md_N.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/TextAutoLeadingPercent.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/TextAutoLeadingPercent.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/TextAutoLeadingPercent.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/digitCase.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/digitCase.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/digitCase.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/digitWidth.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/digitWidth.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/digitWidth.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/elementBaseline.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/elementBaseline.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/elementBaseline.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_align_all_but_last.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_align_all_but_last.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_align_all_but_last.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_align_center.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_align_center.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_align_center.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_align_justify.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_align_justify.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_align_justify.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_align_left.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_align_left.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_align_left.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_align_right.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_align_right.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_align_right.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_bullet.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_bullet.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_bullet.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_style_bold.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_style_bold.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_style_bold.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_style_italic.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_style_italic.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_style_italic.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_style_strikethrough.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_style_strikethrough.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_style_strikethrough.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_style_underline.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_style_underline.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_style_underline.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_tcy.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_tcy.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/icon_tcy.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/ligatures.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/ligatures.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/ligatures.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/lineBaseline.png
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/lineBaseline.png?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/tlf/textEditBar/assets/lineBaseline.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: 
flex/site/trunk/content/tourdeflex/spark/validators/CreditCardValidatorExample.mxml
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/validators/CreditCardValidatorExample.mxml?rev=1619987&view=auto
==============================================================================
--- 
flex/site/trunk/content/tourdeflex/spark/validators/CreditCardValidatorExample.mxml
 (added)
+++ 
flex/site/trunk/content/tourdeflex/spark/validators/CreditCardValidatorExample.mxml
 Sat Aug 23 08:47:51 2014
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";  
+                          xmlns:s="library://ns.adobe.com/flex/spark" 
+                          xmlns:mx="library://ns.adobe.com/flex/mx" 
+                          skinClass="TDFGradientBackgroundSkin">
+       
+       <fx:Script>
+               import mx.controls.Alert;
+       </fx:Script>
+       
+       <s:layout>
+               <s:HorizontalLayout verticalAlign="middle" 
horizontalAlign="center" />
+       </s:layout>
+       
+       <fx:Declarations>
+               
+               <!-- Define model for the credit card data. -->
+               <fx:Model id="creditcard">
+                       <card>  
+                               
<cardType>{cardTypeCombo.selectedItem.data}</cardType>
+                               <cardNumber>{cardNumberInput.text}</cardNumber>
+                       </card>
+               </fx:Model>
+               
+               <mx:CreditCardValidator id="ccV" 
+                                                               
cardTypeSource="{creditcard}" cardTypeProperty="cardType"
+                                                               
cardNumberSource="{creditcard}" cardNumberProperty="cardNumber"
+                                                               
trigger="{myButton}" triggerEvent="click"
+                                                               
cardTypeListener="{cardTypeCombo}"
+                                                               
cardNumberListener="{cardNumberInput}"
+                                                               
valid="Alert.show('Validation Succeeded!');"/>
+               
+               <s:ArrayCollection id="dp">
+                       <fx:Object label="American Express" data="American 
Express"/>
+                       <fx:Object label="Diners Club" data="Diners Club"/>
+                       <fx:Object label="Discover" data="Discover"/>
+                       <fx:Object label="MasterCard" data="MasterCard"/>
+                       <fx:Object label="Visa" data="Visa"/>
+               </s:ArrayCollection>
+               
+       </fx:Declarations>
+       
+       <s:Panel title="CreditCardValidator Example" width="600" height="100%"
+                        color="0x000000" 
+                        borderAlpha="0.15">
+               
+               <s:layout>
+                       <s:HorizontalLayout horizontalAlign="center" 
+                                                               
paddingLeft="10" paddingRight="10" 
+                                                               paddingTop="10" 
paddingBottom="10"/>
+               </s:layout>
+               
+               <mx:Form id="creditCardForm" color="0x323232">
+                       <mx:FormItem label="Card Type">    
+                               <s:DropDownList id="cardTypeCombo" 
dataProvider="{dp}" width="160"
+                                                               prompt="Card 
Type"/>
+                       </mx:FormItem>
+                       <mx:FormItem label="Credit Card Number">
+                               <s:TextInput id="cardNumberInput"/>
+                       </mx:FormItem>
+                       <mx:FormItem>
+                               <s:Button id="myButton" label="Check Credit"/>
+                       </mx:FormItem>
+               </mx:Form>      
+               
+       </s:Panel>
+       
+</s:Application>

Propchange: 
flex/site/trunk/content/tourdeflex/spark/validators/CreditCardValidatorExample.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
flex/site/trunk/content/tourdeflex/spark/validators/CreditCardValidatorExample.swf
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/validators/CreditCardValidatorExample.swf?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/validators/CreditCardValidatorExample.swf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: 
flex/site/trunk/content/tourdeflex/spark/validators/CurrencyValidatorExample.mxml
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/validators/CurrencyValidatorExample.mxml?rev=1619987&view=auto
==============================================================================
--- 
flex/site/trunk/content/tourdeflex/spark/validators/CurrencyValidatorExample.mxml
 (added)
+++ 
flex/site/trunk/content/tourdeflex/spark/validators/CurrencyValidatorExample.mxml
 Sat Aug 23 08:47:51 2014
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";  
+                          xmlns:s="library://ns.adobe.com/flex/spark" 
+                          xmlns:mx="library://ns.adobe.com/flex/mx" 
+                          skinClass="TDFGradientBackgroundSkin">
+       
+       <fx:Script>
+        import mx.controls.Alert;
+    </fx:Script>
+       
+       <s:layout>
+               <s:HorizontalLayout verticalAlign="middle" 
horizontalAlign="center" />
+       </s:layout>
+
+       <fx:Declarations>
+               <mx:CurrencyValidator source="{priceUS}" property="text" 
precision="2" 
+        trigger="{myButton}" triggerEvent="click" 
+        valid="Alert.show('Validation Succeeded!');"/>
+       </fx:Declarations>
+        
+       <s:Panel title="CurrencyValidator Example" width="600" height="100%"
+                        color="0x000000" 
+                        borderAlpha="0.15">
+               
+               <s:layout>
+                       <s:HorizontalLayout horizontalAlign="center" 
+                                                               
paddingLeft="10" paddingRight="10" 
+                                                               paddingTop="10" 
paddingBottom="10"/>
+               </s:layout>
+         
+         <mx:Form color="0x323232">
+            <mx:FormItem label="Enter a U.S. dollar amount: ">
+                 <s:TextInput id="priceUS" width="100%"/>
+            </mx:FormItem>
+
+            <mx:FormItem >
+                <s:Button id="myButton" label="Validate"/>
+            </mx:FormItem>
+        </mx:Form>
+         
+       </s:Panel>
+       
+</s:Application>

Propchange: 
flex/site/trunk/content/tourdeflex/spark/validators/CurrencyValidatorExample.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
flex/site/trunk/content/tourdeflex/spark/validators/CurrencyValidatorExample.swf
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/validators/CurrencyValidatorExample.swf?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/validators/CurrencyValidatorExample.swf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: 
flex/site/trunk/content/tourdeflex/spark/validators/DateValidatorExample.mxml
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/validators/DateValidatorExample.mxml?rev=1619987&view=auto
==============================================================================
--- 
flex/site/trunk/content/tourdeflex/spark/validators/DateValidatorExample.mxml 
(added)
+++ 
flex/site/trunk/content/tourdeflex/spark/validators/DateValidatorExample.mxml 
Sat Aug 23 08:47:51 2014
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";  
+                          xmlns:s="library://ns.adobe.com/flex/spark" 
+                          xmlns:mx="library://ns.adobe.com/flex/mx" 
+                          skinClass="TDFGradientBackgroundSkin">
+       
+       <fx:Script>
+               <![CDATA[
+                       import mx.controls.Alert;
+               ]]>
+       </fx:Script>
+       
+       <s:layout>
+               <s:HorizontalLayout verticalAlign="middle" 
horizontalAlign="center" />
+       </s:layout>
+       
+       <fx:Declarations>
+               <fx:Model id="CheckModel">
+                       <dateInfo>
+                               <DOB>{dob.text}</DOB>
+                       </dateInfo>
+               </fx:Model>
+               
+               <mx:DateValidator source="{dob}" property="text" 
allowedFormatChars="/" 
+                                                 trigger="{myButton}" 
triggerEvent="click" 
+                                                 valid="Alert.show('Validation 
Succeeded!');"/>
+       </fx:Declarations>
+       
+       <s:Panel title="DateValidator Example" width="600" height="100%"
+                        color="0x000000" 
+                        borderAlpha="0.15">
+               
+               <s:layout>
+                       <s:HorizontalLayout horizontalAlign="center" 
+                                                               
paddingLeft="10" paddingRight="10" 
+                                                               paddingTop="10" 
paddingBottom="10"/>
+               </s:layout>
+               
+               <mx:Form color="0x323232">
+                       <mx:FormItem label="Enter date of birth (mm/dd/yyyy): ">
+                               <s:TextInput id="dob" width="100%"/>
+                       </mx:FormItem>
+                       
+                       <mx:FormItem >
+                               <s:Button id="myButton" label="Validate" />
+                       </mx:FormItem>
+               </mx:Form>
+               
+       </s:Panel>
+       
+</s:Application>

Propchange: 
flex/site/trunk/content/tourdeflex/spark/validators/DateValidatorExample.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
flex/site/trunk/content/tourdeflex/spark/validators/DateValidatorExample.swf
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/validators/DateValidatorExample.swf?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/validators/DateValidatorExample.swf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: 
flex/site/trunk/content/tourdeflex/spark/validators/EmailValidatorExample.mxml
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/validators/EmailValidatorExample.mxml?rev=1619987&view=auto
==============================================================================
--- 
flex/site/trunk/content/tourdeflex/spark/validators/EmailValidatorExample.mxml 
(added)
+++ 
flex/site/trunk/content/tourdeflex/spark/validators/EmailValidatorExample.mxml 
Sat Aug 23 08:47:51 2014
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";  
+                          xmlns:s="library://ns.adobe.com/flex/spark" 
+                          xmlns:mx="library://ns.adobe.com/flex/mx" 
+                          skinClass="TDFGradientBackgroundSkin">
+       
+       <fx:Script>
+               <![CDATA[
+                       import mx.controls.Alert;
+               ]]>
+       </fx:Script>
+       
+       <s:layout>
+               <s:HorizontalLayout verticalAlign="middle" 
horizontalAlign="center" />
+       </s:layout>
+       
+       <fx:Declarations>
+               <mx:EmailValidator source="{email}" property="text" 
+                                          trigger="{myButton}" 
triggerEvent="click"
+                                          valid="Alert.show('Validation 
Succeeded!');"/>
+       </fx:Declarations>
+       
+       
+       <s:Panel title="EmailValidator Example" width="600" height="100%"
+                        color="0x000000" 
+                        borderAlpha="0.15">
+               
+               <s:layout>
+                       <s:HorizontalLayout horizontalAlign="center" 
+                                                               
paddingLeft="10" paddingRight="10" 
+                                                               paddingTop="10" 
paddingBottom="10"/>
+               </s:layout>
+               
+               <mx:Form color="0x323232">
+                       <mx:FormItem label="Enter an e-mail address: ">
+                               <s:TextInput id="email" width="100%"/>
+                       </mx:FormItem>
+                       
+                       <mx:FormItem >
+                               <s:Button id="myButton" label="Validate" />
+                       </mx:FormItem>
+               </mx:Form>
+               
+       </s:Panel>
+       
+</s:Application>

Propchange: 
flex/site/trunk/content/tourdeflex/spark/validators/EmailValidatorExample.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
flex/site/trunk/content/tourdeflex/spark/validators/EmailValidatorExample.swf
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/validators/EmailValidatorExample.swf?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/validators/EmailValidatorExample.swf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: 
flex/site/trunk/content/tourdeflex/spark/validators/FormValidatorExample.mxml
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/validators/FormValidatorExample.mxml?rev=1619987&view=auto
==============================================================================
--- 
flex/site/trunk/content/tourdeflex/spark/validators/FormValidatorExample.mxml 
(added)
+++ 
flex/site/trunk/content/tourdeflex/spark/validators/FormValidatorExample.mxml 
Sat Aug 23 08:47:51 2014
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";  
+                          xmlns:s="library://ns.adobe.com/flex/spark" 
+                          xmlns:mx="library://ns.adobe.com/flex/mx" 
+                          skinClass="TDFGradientBackgroundSkin">
+       
+       <fx:Script>
+        <![CDATA[
+
+                       // Import necessary classes.
+            import mx.controls.Alert;
+                       import mx.events.ValidationResultEvent;
+                       
+                       // Event listener for the valid and invalid events.
+                       private function 
handleValid(eventObj:ValidationResultEvent):void {
+                               if(eventObj.type==ValidationResultEvent.VALID)  
+                                   // Enable Submit button.
+                                       submitButton.enabled = true;
+                               else
+                                       submitButton.enabled = false;
+                       }
+
+                       // Submit form is everything is valid. 
+                       private function submitForm():void {
+                               Alert.show("Form Submitted!");
+                       }
+
+        ]]>
+    </fx:Script>
+       
+       <s:layout>
+               <s:HorizontalLayout verticalAlign="middle" 
horizontalAlign="center" />
+       </s:layout>
+
+       <fx:Declarations>
+               <!-- 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>
+        
+       <s:Panel title="Validator Example" width="620" height="100%"
+                        color="0x000000" 
+                        borderAlpha="0.15">
+               
+               <s:layout>
+                       <s:VerticalLayout horizontalAlign="center" 
+                                                         paddingLeft="10" 
paddingRight="10" 
+                                                         paddingTop="10" 
paddingBottom="10"/>
+               </s:layout>
+         
+         <mx:Form color="0x323232">
+            <s:Label width="100%"
+                text="Enter a value in the Name field before you can submit. 
The E-mail field is optional."/>
+
+            <mx:FormItem label="Name: " required="true">
+                <s:TextInput id="fname" width="100%"/>
+            </mx:FormItem>
+
+            <mx:FormItem label="E-mail address: " required="false">
+                <s:TextInput id="email" width="100%"/>
+            </mx:FormItem>
+            
+            <mx:FormItem>
+                <s:Button id="submitButton" enabled="false" 
+                    label="Submit" click="submitForm();"/>
+            </mx:FormItem>
+        </mx:Form>
+        
+       </s:Panel>
+       
+</s:Application>

Propchange: 
flex/site/trunk/content/tourdeflex/spark/validators/FormValidatorExample.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
flex/site/trunk/content/tourdeflex/spark/validators/FormValidatorExample.swf
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/validators/FormValidatorExample.swf?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/validators/FormValidatorExample.swf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: 
flex/site/trunk/content/tourdeflex/spark/validators/NumberValidatorExample.mxml
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/validators/NumberValidatorExample.mxml?rev=1619987&view=auto
==============================================================================
--- 
flex/site/trunk/content/tourdeflex/spark/validators/NumberValidatorExample.mxml 
(added)
+++ 
flex/site/trunk/content/tourdeflex/spark/validators/NumberValidatorExample.mxml 
Sat Aug 23 08:47:51 2014
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";  
+                          xmlns:s="library://ns.adobe.com/flex/spark" 
+                          xmlns:mx="library://ns.adobe.com/flex/mx" 
+                          skinClass="TDFGradientBackgroundSkin">
+       
+       <fx:Script>
+        <![CDATA[
+
+          import mx.events.ValidationResultEvent;                      
+          private var vResult:ValidationResultEvent;
+
+          // Event handler to validate and format input.            
+          private function Format():void
+          {
+             vResult = numVal.validate();
+                        if (vResult.type==ValidationResultEvent.VALID) {
+                        
+                formattedNumber.text= numberFormatter.format(inputVal.text);
+             }
+             
+             else {
+                formattedNumber.text= "";
+             }
+          }
+      ]]>      
+    </fx:Script>
+       
+       <s:layout>
+               <s:HorizontalLayout verticalAlign="middle" 
horizontalAlign="center" />
+       </s:layout>
+       
+       <fx:Declarations>
+               <mx:NumberFormatter id="numberFormatter" precision="4" 
useThousandsSeparator="true" useNegativeSign="true"/>
+               
+               <mx:NumberValidator id="numVal" source="{inputVal}" 
property="text" allowNegative="true" domain="real"/>
+       </fx:Declarations>
+        
+       <s:Panel title="NumberValidator Example" width="600" height="100%"
+                        color="0x000000" 
+                        borderAlpha="0.15">
+               
+               <s:layout>
+                       <s:HorizontalLayout horizontalAlign="center" 
+                                                               
paddingLeft="10" paddingRight="10" 
+                                                               paddingTop="10" 
paddingBottom="10"/>
+               </s:layout>
+         
+         <mx:Form color="0x323232">
+            <mx:FormItem label="Enter number:">
+                <s:TextInput id="inputVal" text="" width="50%"/>
+            </mx:FormItem>
+
+            <mx:FormItem label="Formatted number (precision=4): ">
+                <s:Label id="formattedNumber" />
+            </mx:FormItem>
+
+            <mx:FormItem>
+                <s:Button label="Validate and Format" click="Format();"/>
+            </mx:FormItem>
+        </mx:Form>
+        
+       </s:Panel>
+       
+</s:Application>

Propchange: 
flex/site/trunk/content/tourdeflex/spark/validators/NumberValidatorExample.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
flex/site/trunk/content/tourdeflex/spark/validators/NumberValidatorExample.swf
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/validators/NumberValidatorExample.swf?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/validators/NumberValidatorExample.swf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: 
flex/site/trunk/content/tourdeflex/spark/validators/RegExpValidatorExample.mxml
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/validators/RegExpValidatorExample.mxml?rev=1619987&view=auto
==============================================================================
--- 
flex/site/trunk/content/tourdeflex/spark/validators/RegExpValidatorExample.mxml 
(added)
+++ 
flex/site/trunk/content/tourdeflex/spark/validators/RegExpValidatorExample.mxml 
Sat Aug 23 08:47:51 2014
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";  
+                          xmlns:s="library://ns.adobe.com/flex/spark" 
+                          xmlns:mx="library://ns.adobe.com/flex/mx" 
+                          skinClass="TDFGradientBackgroundSkin">
+       
+       <fx:Script>
+               <![CDATA[
+                       import mx.events.ValidationResultEvent;
+                       import mx.validators.*;
+                       
+                       // Write the results to the 
+                       private function 
handleResult(eventObj:ValidationResultEvent):void {
+                               if (eventObj.type == 
ValidationResultEvent.VALID)
+                               {
+                                       // For valid events, the results Array 
contains
+                                       // RegExpValidationResult objects.
+                                       var xResult:RegExpValidationResult;
+                                       reResults.text="x";
+                                       for (var i:uint = 0; i < 
eventObj.results.length; i++)
+                                       {
+                                               xResult = eventObj.results[i];
+                                               reResults.text=reResults.text + 
xResult.matchedIndex + " " + xResult.matchedString;
+                                       }
+                               }
+                               else
+                               {
+                                       reResults.text="";                      
+                               }               
+                       }
+               ]]>
+       </fx:Script>
+       
+       <s:layout>
+               <s:HorizontalLayout verticalAlign="middle" 
horizontalAlign="center" />
+       </s:layout>
+       
+       <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>
+       
+       <s:Panel title="RegExpValidator Example" width="620" height="100%"
+                        color="0x000000" 
+                        borderAlpha="0.15">
+               
+               <s:layout>
+                       <s:VerticalLayout horizontalAlign="center" 
+                                                         paddingLeft="10" 
paddingRight="10" 
+                                                         paddingTop="10" 
paddingBottom="10"/>
+               </s:layout>
+               
+               <s:Label width="100%" color="0x323232" text="Instructions:"/>
+               <s:Label width="100%" color="0x323232" text="1. Enter text to 
search. By default, enter  a string containing the letters ABC in sequence 
followed by any digit."/>
+               <s:Label width="100%" color="0x323232" text="2. Enter the 
regular expression. By default, enter ABC\d."/>
+               <s:Label width="100%" color="0x323232" text="3. Click the 
Button control to trigger the validation."/>
+               <s:Label width="100%" color="0x323232" text="4. The results 
show the index in the text where the matching pattern begins, and the matching 
pattern. "/>
+               
+               <mx:Form color="0x323232">
+                       <mx:FormItem label="Enter text: ">
+                               <s:TextInput id="regex_text" text="xxxxABC4xxx" 
width="100%"/>
+                       </mx:FormItem>
+                       
+                       <mx:FormItem label="Enter regular expression: ">
+                               <s:TextInput id="regex" text="ABC\d" 
width="100%"/>
+                       </mx:FormItem>
+                       
+                       <mx:FormItem label="Results: ">
+                               <s:TextInput id="reResults" width="100%"/>
+                       </mx:FormItem>
+                       
+                       <mx:FormItem >
+                               <s:Button id="myButton" label="Validate"/>
+                       </mx:FormItem>
+               </mx:Form>
+               
+       </s:Panel>
+       
+</s:Application>

Propchange: 
flex/site/trunk/content/tourdeflex/spark/validators/RegExpValidatorExample.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
flex/site/trunk/content/tourdeflex/spark/validators/RegExpValidatorExample.swf
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/validators/RegExpValidatorExample.swf?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/validators/RegExpValidatorExample.swf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: 
flex/site/trunk/content/tourdeflex/spark/validators/SocialSecurityValidatorExample.mxml
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/validators/SocialSecurityValidatorExample.mxml?rev=1619987&view=auto
==============================================================================
--- 
flex/site/trunk/content/tourdeflex/spark/validators/SocialSecurityValidatorExample.mxml
 (added)
+++ 
flex/site/trunk/content/tourdeflex/spark/validators/SocialSecurityValidatorExample.mxml
 Sat Aug 23 08:47:51 2014
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";  
+                          xmlns:s="library://ns.adobe.com/flex/spark" 
+                          xmlns:mx="library://ns.adobe.com/flex/mx" 
+                          skinClass="TDFGradientBackgroundSkin">
+       
+       <fx:Script>
+               <![CDATA[
+                       import mx.controls.Alert;
+               ]]>
+       </fx:Script>
+       
+       <s:layout>
+               <s:HorizontalLayout verticalAlign="middle" 
horizontalAlign="center" />
+       </s:layout>
+       
+       <fx:Declarations>
+               <mx:SocialSecurityValidator source="{ssn}" property="text" 
+                                                                       
trigger="{myButton}" triggerEvent="click"
+                                                                       
valid="Alert.show('Validation Succeeded!');"/>
+       </fx:Declarations>
+       
+       <s:Panel title="SocialSecurityValidator Example" width="620" 
height="100%"
+                        color="0x000000" 
+                        borderAlpha="0.15">
+               
+               <s:layout>
+                       <s:VerticalLayout horizontalAlign="center" 
+                                                         paddingLeft="10" 
paddingRight="10" 
+                                                         paddingTop="10" 
paddingBottom="10"/>
+               </s:layout>
+               
+               <mx:Form color="0x323232">
+                       <mx:FormItem label="Enter Social Security number: ">
+                               <s:TextInput id="ssn" width="100%"/>
+                       </mx:FormItem>
+                       
+                       <mx:FormItem >
+                               <s:Button id="myButton" label="Validate" />
+                       </mx:FormItem>
+               </mx:Form>
+               
+       </s:Panel>
+       
+</s:Application>

Propchange: 
flex/site/trunk/content/tourdeflex/spark/validators/SocialSecurityValidatorExample.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
flex/site/trunk/content/tourdeflex/spark/validators/SocialSecurityValidatorExample.swf
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/validators/SocialSecurityValidatorExample.swf?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/validators/SocialSecurityValidatorExample.swf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: 
flex/site/trunk/content/tourdeflex/spark/validators/StringValidatorExample.mxml
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/validators/StringValidatorExample.mxml?rev=1619987&view=auto
==============================================================================
--- 
flex/site/trunk/content/tourdeflex/spark/validators/StringValidatorExample.mxml 
(added)
+++ 
flex/site/trunk/content/tourdeflex/spark/validators/StringValidatorExample.mxml 
Sat Aug 23 08:47:51 2014
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";  
+                          xmlns:s="library://ns.adobe.com/flex/spark" 
+                          xmlns:mx="library://ns.adobe.com/flex/mx" 
+                          skinClass="TDFGradientBackgroundSkin">
+       
+       <fx:Script>
+               <![CDATA[
+                       import mx.controls.Alert;
+               ]]>
+       </fx:Script>
+       
+       <s:layout>
+               <s:HorizontalLayout verticalAlign="middle" 
horizontalAlign="center" />
+       </s:layout>
+       
+       <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>
+       
+       <s:Panel title="StringValidator Example" width="620" height="100%"
+                        color="0x000000" 
+                        borderAlpha="0.15">
+               
+               <s:layout>
+                       <s:VerticalLayout horizontalAlign="center" 
+                                                         paddingLeft="10" 
paddingRight="10" 
+                                                         paddingTop="10" 
paddingBottom="10"/>
+               </s:layout>
+               
+               <mx:Form color="0x323232">               
+                       <mx:FormItem label="Enter a name between 4 and 20 
characters: ">
+                               <s:TextInput id="fname" width="100%"/>
+                       </mx:FormItem>
+                       
+                       <mx:FormItem >
+                               <s:Button id="myButton" label="Validate" />
+                       </mx:FormItem>
+               </mx:Form>
+               
+       </s:Panel>
+       
+</s:Application>

Propchange: 
flex/site/trunk/content/tourdeflex/spark/validators/StringValidatorExample.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
flex/site/trunk/content/tourdeflex/spark/validators/StringValidatorExample.swf
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/validators/StringValidatorExample.swf?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/validators/StringValidatorExample.swf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: 
flex/site/trunk/content/tourdeflex/spark/validators/TDFGradientBackgroundSkin.mxml
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/validators/TDFGradientBackgroundSkin.mxml?rev=1619987&view=auto
==============================================================================
--- 
flex/site/trunk/content/tourdeflex/spark/validators/TDFGradientBackgroundSkin.mxml
 (added)
+++ 
flex/site/trunk/content/tourdeflex/spark/validators/TDFGradientBackgroundSkin.mxml
 Sat Aug 23 08:47:51 2014
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009"; 
+                        xmlns:mx="library://ns.adobe.com/flex/mx" 
+                        xmlns:s="library://ns.adobe.com/flex/spark">
+       
+       <fx:Metadata>
+               [HostComponent("spark.components.Application")]
+       </fx:Metadata> 
+       
+       <s:states>
+               <s:State name="normal" />
+               <s:State name="disabled" />
+       </s:states>
+       
+       <s:layout>
+               <s:BasicLayout />
+       </s:layout>
+       
+       <s:Rect id="bg" width="100%" height="100%">
+               <s:fill>
+                       <s:LinearGradient rotation="90">
+                               <s:entries>
+                                       <s:GradientEntry color="0x000000" 
ratio="0.00" />
+                                       <s:GradientEntry color="0x323232" 
ratio="1.0" />
+                               </s:entries>
+                       </s:LinearGradient>    
+               </s:fill>
+       </s:Rect>
+       
+       <s:Group id="contentGroup" left="0" right="0" top="0" bottom="0" />
+</s:SparkSkin>
\ No newline at end of file

Propchange: 
flex/site/trunk/content/tourdeflex/spark/validators/TDFGradientBackgroundSkin.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
flex/site/trunk/content/tourdeflex/spark/validators/ZipCodeValidatorExample.mxml
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/validators/ZipCodeValidatorExample.mxml?rev=1619987&view=auto
==============================================================================
--- 
flex/site/trunk/content/tourdeflex/spark/validators/ZipCodeValidatorExample.mxml
 (added)
+++ 
flex/site/trunk/content/tourdeflex/spark/validators/ZipCodeValidatorExample.mxml
 Sat Aug 23 08:47:51 2014
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+
+-->
+<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009";  
+                          xmlns:s="library://ns.adobe.com/flex/spark" 
+                          xmlns:mx="library://ns.adobe.com/flex/mx" 
+                          skinClass="TDFGradientBackgroundSkin">
+       
+       <fx:Script>
+               <![CDATA[
+                       import mx.controls.Alert;
+               ]]>
+       </fx:Script>
+       
+       <s:layout>
+               <s:HorizontalLayout verticalAlign="middle" 
horizontalAlign="center" />
+       </s:layout>
+       
+       <fx:Declarations>
+               <mx:ZipCodeValidator source="{zip}" property="text" 
+                                                        trigger="{myButton}" 
triggerEvent="click"  
+                                                        
valid="Alert.show('Validation Succeeded!');"/>
+       </fx:Declarations>
+       
+       <s:Panel title="ZipCodeValidator Example" width="620" height="100%"
+                        color="0x000000" 
+                        borderAlpha="0.15">
+               
+               <s:layout>
+                       <s:VerticalLayout horizontalAlign="center" 
+                                                         paddingLeft="10" 
paddingRight="10" 
+                                                         paddingTop="10" 
paddingBottom="10"/>
+               </s:layout>
+               
+               <mx:Form color="0x323232">
+                       <mx:FormItem label="Enter a 5 or 9 digit U.S. Zip code: 
">
+                               <s:TextInput id="zip" width="100%"/>
+                       </mx:FormItem>
+                       
+                       <mx:FormItem >
+                               <s:Button id="myButton" label="Validate" />
+                       </mx:FormItem>
+               </mx:Form>
+               
+       </s:Panel>
+       
+</s:Application>

Propchange: 
flex/site/trunk/content/tourdeflex/spark/validators/ZipCodeValidatorExample.mxml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: 
flex/site/trunk/content/tourdeflex/spark/validators/ZipCodeValidatorExample.swf
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/spark/validators/ZipCodeValidatorExample.swf?rev=1619987&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
flex/site/trunk/content/tourdeflex/spark/validators/ZipCodeValidatorExample.swf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: flex/site/trunk/content/tourdeflex/viewsource.mxml
URL: 
http://svn.apache.org/viewvc/flex/site/trunk/content/tourdeflex/viewsource.mxml?rev=1619987&view=auto
==============================================================================
--- flex/site/trunk/content/tourdeflex/viewsource.mxml (added)
+++ flex/site/trunk/content/tourdeflex/viewsource.mxml Sat Aug 23 08:47:51 2014
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+      contributor license agreements.  See the NOTICE file distributed with
+      this work for additional information regarding copyright ownership.
+      The ASF licenses this file to You under the Apache License, Version 2.0
+      (the "License"); you may not use this file except in compliance with
+      the License.  You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+      Unless required by applicable law or agreed to in writing, software
+      distributed under the License is distributed on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+      See the License for the specific language governing permissions and
+      limitations under the License.
+  -->
+
+<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">
+
+       <fx:Script>
+               <![CDATA[               
+                       
+                       public function loadSource(appUrl:String, 
srcUrl:String):void
+                       {
+                               // delete all previously loaded source
+                               tn.removeAllChildren();
+                               
+                               var tabs:Array = new Array();
+                               if (appUrl != null && appUrl != "")
+                               {
+                                       var files:Array = new Array();
+                                       // the first file shown will be the 
mxml source
+                                       files[0] = appUrl + ".mxml";
+                                       
+                                       if (srcUrl != null && srcUrl != "")
+                                       {
+                                               // other source files are shown 
in the subsequence tabs
+                                               var otherSrc:Array = 
srcUrl.split("&");
+                                               files = files.concat(otherSrc);
+                                       }
+
+                               for (var i:int ; i < files.length ; i++)
+                       {
+                                               tabs[i] = new SourceTab();
+                                               tn.addChild(tabs[i]);
+                                               tabs[i].source = files[i];
+                       }
+                               }
+                       }
+               ]]>
+       </fx:Script>
+
+       <mx:TabNavigator id="tn" width="100%" height="100%" paddingTop="0"/>
+
+</mx:VBox>
\ No newline at end of file

Propchange: flex/site/trunk/content/tourdeflex/viewsource.mxml
------------------------------------------------------------------------------
    svn:eol-style = native


Reply via email to