ThomasJSmart
Programmer
- Sep 16, 2002
- 634
Im having problems with flash refreshing.
i have an object called editdata
im loading vars in from an external file called vars.txt
with the vars: var1=foo&var2=bar etc.
editdata = new loadvars();
editdata.Load("vars.txt"
;
editdata.onload = function() {
gotoAndPlay(2);
};
on frame 2 a movieclip is duplicated with a the loaded var inside as text and a delete button.
[foo][d]
[bar][d]
etc.
if the delete button is pressed the following happens:
the duplicated new movie clips are all removed
the editdata object is deleted
vars.txt is changed, the variable is removed
the movie is sent back to frame 1
Then it goes wrong
somehow i end up on frame 2 with all the vars still ther!!! even tho they are not in vars.txt and the editobject was created anew on frame 1
any idea's whats going wrong?
I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
i have an object called editdata
im loading vars in from an external file called vars.txt
with the vars: var1=foo&var2=bar etc.
editdata = new loadvars();
editdata.Load("vars.txt"
editdata.onload = function() {
gotoAndPlay(2);
};
on frame 2 a movieclip is duplicated with a the loaded var inside as text and a delete button.
[foo][d]
[bar][d]
etc.
if the delete button is pressed the following happens:
the duplicated new movie clips are all removed
the editdata object is deleted
vars.txt is changed, the variable is removed
the movie is sent back to frame 1
Then it goes wrong
somehow i end up on frame 2 with all the vars still ther!!! even tho they are not in vars.txt and the editobject was created anew on frame 1
any idea's whats going wrong?
I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!