-
New version please!!!
(i'm pt, (sory for my english):confused: )
I really love 3dfa.
I have some questions and some sugestions:
1) i'm creating a football manager game (1024*768 - fullscreen), but... can i add save option? i don´t know:confused:
2) If i have an element named "db"(editbox), what's i need do to, when clicking in a button, print this?
3) I'm searhing for people to integrate a "3dfa samplers team". I can host the website. The team create the samples and post in website. An another 3dfa community:)
Cumpx
-
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)
-
i try, but... in really, i can't do this work...
can you upload an example with this functions? is a big help
-
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)
-
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")
-
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 (";");
}