dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: sharedObject Not Working

  1. #1
    Flash or die
    Join Date
    May 2004
    Location
    San Francisco, California
    Posts
    127

    sharedObject Not Working

    I am trying to use the sharedObject class in a comment submit form on my site. However, it is not working. I have tried many things and got it to the basics:

    Code:
    //create the local Shared Object
    var infoObject:SharedObject = sharedobject.getLocal("saved_info");
    
    infoObject.data.userName = username_txt.text;
    infoObject.data.email = email_txt.text;
    
    username_txt.text = infoObject.data.userName;
    email_txt.text = infoObject.data.email;
    
    submit_btn.onRelease = function() {
    	infoObject.flush();
    }
    Last edited by exuk; 06-09-2005 at 02:47 PM.
    // rocking flash cs4,as3

  2. #2
    Senior Member
    Join Date
    Sep 2000
    Location
    Pittsburgh
    Posts
    252
    Hi,

    might be the casing on your getLocal call to the so?

    sharedobject.getLocal("saved_info");

    should be:

    SharedObject.getLocal("saved_info");

    Dunc

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