A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: latitude/longitude From Excel?

  1. #1
    Junior Member
    Join Date
    Nov 2007
    Posts
    17

    latitude/longitude From Excel?

    In another post by Somar in http://board.flashkit.com/board/showthread.php?t=666832 he posted a file called map.fla.
    That file explaned how to move an object usinig latitudes and longitudes. It does this by using the following code

    // Change these to whatever you want to see.
    Desired_Latitude = 51.5;
    Desired_Longitude = 30.5;


    That works fine but the problem is that i have about 100 or more latitudes and longitudes position for that same object so it is very time consuimg if i entered them all manually using that method. IS there anyway i can read the longitudes and latitdues from the excel file instead of manually inserting one by one?

  2. #2
    AKA [ Paul Bainbridge] webdreamer's Avatar
    Join Date
    Aug 2001
    Location
    Glasgow, Scotland, UK
    Posts
    3,317
    Dont think you can from an excel file but you can from a text file or an xml file.

    Hope it help
    .: To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Twitter - Linkedin
    bringmadeleinehome.com

  3. #3
    Junior Member
    Join Date
    Nov 2007
    Posts
    17
    Would u happen to know how by anychance?

  4. #4
    AKA [ Paul Bainbridge] webdreamer's Avatar
    Join Date
    Aug 2001
    Location
    Glasgow, Scotland, UK
    Posts
    3,317
    check the flash doc for working with external data

    hope it helps
    .: To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Twitter - Linkedin
    bringmadeleinehome.com

  5. #5
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    you can save you excel sheet to a delimited character file and import it that way separating your data (lat/lon) by that character..

    you could then dump all the values into an array & just loop through it.. plotting your markers (moving your object)

  6. #6
    Flashmatics silentweed's Avatar
    Join Date
    Mar 2005
    Location
    London, UK
    Posts
    4,875
    or as an xml file from excel as well... excel xml is really messy though.. so u will need to create a mapping in excel ..which maps to that data
    this may help get you started:

    http://msdn.microsoft.com/en-us/libr...gscenarios_map
    Flashmatics | Flashmatics Library (free downloads)
    -----------------------------------------------------
    Latest Projects:
    The Dead Room | Are You Smarter | Prison Break (Frame A Friend) | Beck's Fusions | The 24 Experience

    -----------------------------------------------------
    Flash Certified Developer

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