A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: In need of a App. which can examine .....

  1. #1
    Senior Member
    Join Date
    Apr 2008
    Location
    Rotorua / New Zealand
    Posts
    117

    In need of a App. which can examine .....

    Hi there,

    I'm in need of creating a Application in Flex AIR (mx) which could examine the text of one (1) textInputBox checking against a hard coded list or Xml list of any of the previous data, and therefor 'Preventing Duplicate Records' to be included! I'm talking here of a list with around 1200+ entries at the moment but growing! I only need the App. to check the existing list against the new text line and if it is a duplicated record to show an Alert - No need of text length or any other Validation at all just to examine and verification if or if not.

    Any ideas or help would be appreciated regards aktell
    Last edited by aktell; 09-16-2012 at 03:25 AM.

  2. #2
    Junior Member
    Join Date
    Aug 2012
    Posts
    6
    I would use the "contains" command to check for existante records, not sure how fast it is though.
    Hope this helps

    var xmlt : XML = new XML()
    xmlt =
    <xml>
    <test val="a1">a</test>
    <test val="a2">b</test>
    <test val="a3">c</test>
    <test val="a4">d</test>
    <test val="a5">e</test>
    <test val="a6">f</test>
    </xml>

    //returns the node where attribute val == "a3"
    trace(xmlt.test.(@val=="a3"))
    //returns true
    trace( xmlt.test.contains(<test val="a2">b</test>) )
    //return true
    trace( xmlt.test.contains("f") )

  3. #3
    Senior Member
    Join Date
    Apr 2008
    Location
    Rotorua / New Zealand
    Posts
    117
    Hi there,

    Thanks a lot I will look into this and try to make it work! regards aktell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center