Google


   


You are here: CodeIdol.com > Flash > Flash and XML: A Developer's Guide > HTTP > Data File

SAVE
Digg
Shown on del.icio.us del.icio.us
See Whos Talking About This on Technorati Technorati
I've Reddit reddit

Data File

The highscore object we just built requires a file called highscore.txt. We make a file by that name in the same directory as our swf file. In it is a single line:

ActionScript
highscore=122

Loading this file will create the variable highscore at the specified scope and set the value to 122. Flash will treat it as the assignment of a string literal, equivalent to this line of ActionScript code:

ActionScript
var highscore = "122";

If a variable already exists with that name, Flash sets that highscore to "122". If not, it first creates the variable, then sets its value.

    SAVE
    Digg
    Shown on del.icio.us del.icio.us
    See Whos Talking About This on Technorati Technorati
    I've Reddit reddit

    You are here: CodeIdol.com > Flash > Flash and XML: A Developer's Guide > HTTP > Data File


    ADBRITE ads links
       
    Related tags







    Popular Categories
    Unix books and guides

    AJAX popular information
    C# language guides
    Windows books and cookbooks

    .......








    Business Key Top Sites

    be number one
    rate your site





    © CodeIdol Labs, 2007 - 2009