5 Replies Latest reply on Aug 6, 2009 7:02 PM by eugene83

    Errors in the Flex 4 Help documents?


      I new to Flex and have just downloaded the Flash Builder. While learning Flex from the Help manual in the Flash Builder I like to point out that the codes in the section of "Using Flex 4/Getting Started/Developing application in MXML/Developing application/Validating data" of the help manual have some error:


      <?xml version="1.0"?>  <!-- mxml/ValidatingExample.mxml -->

      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"





                         <!-- Validator components validate data entered into the TextInput controls. -->

                         <mx:PhoneNumberValidator id="pnV"             

                                    source="{homePhoneInput}" property="text"/>

                         <mx:EmailValidator id="emV"

                                    source="{emailInput}" property="text" />



                <s:Panel title="My Application">

                         <s:VGroup left="10" right="10" top="10" bottom="10">

                                  <s:SimpleText text="Enter phone number:"/>

                                  <s:TextInput id="homePhoneInput"/>

                                  <s:SimpleText text="Enter email address:"/>

                                  <s:TextInput id="emailInput"/>





      When i run the code, it didn't do the validation. And after playing around with it, I changed the 2 <s:TextInput> tags to the <mx:TextInput> and it works. Therefore if I am using the the mx:Validator then my source will be from the halo components and not the spark components or is it a bug?