text file search in flash

  • Started
  • Last post
  • 1 Response
  • jpea

    hey all,
    anyone know of any tutorials or fla's that allow the user to search a text file for certain info?

    a client just gave me a 2mb comma delineated text file of addresses of stores where you can buy their product. They want viewers to be able to find the store closest to them.

    sucks when clients think it's so easy.. i'm not a programmer:-(

  • unfittoprint0

    Best solution: transfer tha data to a MySQL database, use a PHP script to do the search then echo() the result to Flash using the LoadVars object.

    Worst solution: use split() on the text file using the comma as a delimiter [myDB= myText.split(";")].
    Then use a for loop to see if any of the array items match your search criteria.