A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: New version please!!!

  1. #1
    Junior Member
    Join Date
    Nov 2008
    Posts
    21

    New version please!!!

    (i'm pt, (sory for my english) )

    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

    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

  2. #2
    3DFA hobby scripter LewxX²'s Avatar
    Join Date
    Jul 2006
    Location
    Germany, Karlsruhe
    Posts
    198
    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.
    sorry for my bad school English
    btw. visit my Page: projects.lewxx.de
    or lewxx.de (<= German)

  3. #3
    Junior Member
    Join Date
    Nov 2008
    Posts
    21
    i try, but... in really, i can't do this work...
    can you upload an example with this functions? is a big help

  4. #4
    3DFA hobby scripter LewxX²'s Avatar
    Join Date
    Jul 2006
    Location
    Germany, Karlsruhe
    Posts
    198
    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.
    sorry for my bad school English
    btw. visit my Page: projects.lewxx.de
    or lewxx.de (<= German)

  5. #5
    Junior Member
    Join Date
    Nov 2008
    Posts
    21
    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")

  6. #6
    Junior Member
    Join Date
    Nov 2008
    Posts
    21
    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")

  7. #7
    3DFA hobby scripter LewxX²'s Avatar
    Join Date
    Jul 2006
    Location
    Germany, Karlsruhe
    Posts
    198
    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.
    sorry for my bad school English
    btw. visit my Page: projects.lewxx.de
    or lewxx.de (<= German)

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