A Flash Developer Resource Site

Results 1 to 14 of 14

Thread: [RESOLVED] SharedObject..can it refresh faster?

Threaded View

  1. #1
    Senior Member
    Join Date
    Dec 2005
    Posts
    142

    [Kinda...RESOLVED] [Kinda] SharedObject..can it refresh faster?

    Ok i have a site im working on, and everything works fine, in fact, this script kinda works fine, if you refresh the page that the site is on, when it gets back to that frame, it knows you have checked your e-mail, but the fact is, i dont want you to have to refresh, heres my code

    on the main site i have this
    Code:
    onClipEvent(enterFrame) {
    	var info:SharedObject = SharedObject.getLocal("mainsite", "/");
    	if (info.data.email == undefined) {
    		gotoAndStop(1);
    	} else {
    		gotoAndStop(2);
    	}
    }
    it then has a button that loads another page in a window with the e-mail inpute and flash file on it with this script

    Code:
    onClipEvent(enterFrame) {
    	var info:SharedObject = SharedObject.getLocal("mainsite", "/");
      info.data.email = 1;
      info.flush();
    }
    now the fact is, if i refresh the main page, it knows that e-mail = 1, but why cant it refresh the SharedObject without Refreshing the page!?
    Last edited by molster; 11-27-2006 at 02:39 AM.

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