A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Data Tracking

  1. #1
    Sonic the FlashHog geoffp08's Avatar
    Join Date
    May 2002
    Location
    Orlando
    Posts
    237

    Data Tracking

    Looking for links, advice or threads discussing ways to implement - Tracking User Info (ie: User Login, quiz scores, etc.) and being able to export data to a .txt file, and being able to call it back into the .swf later (on command).
    Thanks,
    Geoff
    Moving at the speed of Flash

  2. #2
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    You will need a serverside script to write to a textfile (asp,cgi,php depending on what your server supports). I use a cgi script called FlashDB from www.kessels.com for all these things ( even a complete Shopping Site in Flash ). It works very well.

    As for loading a textfile you use

    this.loadVariables("mytextfiel.txt");

    ...to load the contents of it, and it should be formatted like this....

    name1=John&name2=Peter&name3=Gabriel

    ....and so on.

    If you have a textfield in Flash called name1 it will display John

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  3. #3
    Sonic the FlashHog geoffp08's Avatar
    Join Date
    May 2002
    Location
    Orlando
    Posts
    237
    Thanks. Question: What if I were looking to deliver this over CD (or even locally on a/my computer) instead of over the web?
    Thanks again,
    Geoff
    Last edited by geoffp08; 02-12-2004 at 05:00 PM.
    Moving at the speed of Flash

  4. #4
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    Flash use the Shared Object to write sort of "cookies" to the harddrive. That is a possible solution to save to a textfile ( see Shared Objects ). Some problems can arise though when inserting the cd for the second time, it might not find the textfile.... see this post....

    http://www.flashkit.com/board/showth...+Shared+Object

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

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