-
-
3DFA hobby scripter
1) You can save it (local) via cookie:
Code:
//Def:
Cookie = SharedObject.getLocal("football");
// Load:
int score = Cookie.data.score;
// Save:
Cookie.data.score = score;
or via php (Loadvars)
Last edited by LewxX²; 01-27-2009 at 02:56 PM.
-
i try, but... in really, i can't do this work...
can you upload an example with this functions? is a big help
-
3DFA hobby scripter
got my own webspace :P ^^
here is your example:
movie
swf
(if using cookie save n load in browser, you sometimes have to reload page twice to load the correct cookie)
(don't know why)
Last edited by LewxX²; 02-02-2009 at 04:38 PM.
-
Really tank's... but...
Doesn´t exist a code (like this) for executables?
(i just have the trial version at...... 3 years.. i sink :/)
(Ps: I try to buy up to 3 times but in the finish show's an error message")
-
Really tank's... but...
Doesn´t exist a code (like this) for executables?
(i just have the trial version at...... 3 years.. i sink :/)
(Ps: I try to buy up to 3 times but in the finish show's an error message")
-
3DFA hobby scripter
You cant save local vars in file with Flash!
Flash don't have such privileges.
but you can save unlimited vars via cookie.
You also can save arrays
Load and save Variables
Code:
local_cookie_name = SharedObject.getLocal("extern_cookie_name");
function load_c(){ // click on load button
txt_box_var = local_cookie_name.data.variable1;
an_other_var = local_cookie_name.data.variable2;
}
function save_c(){ // click on save button
local_cookie_name.data.variable1 = txt_box_var;
local_cookie_name.data.variable2 = an_other_var;
}
save and load Array:
Code:
local_cookie_name = SharedObject.getLocal("extern_cookie_name");
an_array = new Array();
function load_c(){ // click on load button
tmp = local_cookie_name.data.array1;
an_array = tmp.split (";");
}
function save_c(){ // click on save button
local_cookie_name.data.array1 = an_array.join (";");
}
Last edited by LewxX²; 02-02-2009 at 05:33 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|