dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: LoadVars Question

Hybrid View

  1. #1
    swfBB Developer
    Join Date
    Oct 2000
    Posts
    239

    LoadVars Question

    Hi Peeps. Couple of quick questions to do with LoadVars. Say I create a LoadVars object called myData and load some variables into it. Then later in the movie I create another myData loadvars object. First question: Does this new one with the same name overwrite the old one or does it keep the same one open?

    Secondly is it possible to clear all the varaibles in a LoadVars Object?

    Thanks

  2. #2
    muted.
    Join Date
    Jun 2002
    Location
    ... from a boring place.
    Posts
    52
    one.
    it will overwrite the old object.

    two.
    yes. use the following.
    Code:
    myData.varName = "";
    That will clear the value of the variable within the data object.
    M2 //.. mutemuse // .. baseboard // .. lavertue // .. specs

  3. #3
    swfBB Developer
    Join Date
    Oct 2000
    Posts
    239
    Thanks for the reply. I was hoping there was something you could use to clear all the variables at once. Just thought there may have been a function with loadvars to do it.

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