A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: HELP: Howto Flush an array?

  1. #1
    Junior Member
    Join Date
    Oct 2002
    Location
    Germany
    Posts
    23

    HELP: Howto Flush an array?

    Hello folks,

    I´m trying to save some data of my aplication with the Flush(). I´ve created the new Arrays and the interaction is doing the changes that they should. The problem is simple: Why is not saving the data? Follows the code:

    Time Line:
    editor = sharedObject.getLocal ("texteditor");
    editor.data.field1 = new Array ();
    editor.data.field2 = new Array ();
    number = 0;
    num.text = editor.data.field2 [number];
    _root.action.text = "Rename File";


    The Save Button:
    on (release){
    editor.data.field1.push (_root.textfield.text);
    editor.data.field2.push (_root.num.text);
    //(until now...everything is working)
    editor.data.flush();


    TKS....

  2. #2
    Junior Member
    Join Date
    Oct 2002
    Location
    Germany
    Posts
    23
    If i´m doing this rong please tell me....

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