Professional Web Applications Themes

remote shared object doesn't want to load! - Macromedia Flash Flashcom

Hiya, I have created my persistent remote shared object, I can see the fso file created in my the server, and my string is on it. But for some reason it just doesn't like loading up... If I use getLocal if works fine... Maybe one of you have a fresh pair of eyes!? If you can, please give us a hand. Cheers // 1 - connecting, and storing one string in my remote shared object ---- var my_nc:NetConnection = new NetConnection(); my_nc.connect("rtmp://myDomain"); var my_so:Object = new Object(); my_so = SharedObject.getRemote("testSo", my_nc.uri, true); my_so.connect(my_nc); my_so.data.aString = "a testing string"; /// making ...

  1. #1

    Default remote shared object doesn't want to load!

    Hiya, I have created my persistent remote shared object, I can see the fso file
    created in my the server, and my string is on it. But for some reason it just
    doesn't like loading up...

    If I use getLocal if works fine... Maybe one of you have a fresh pair of
    eyes!?
    If you can, please give us a hand. Cheers

    // 1 - connecting, and storing one string in my remote shared object ----

    var my_nc:NetConnection = new NetConnection();

    my_nc.connect("rtmp://myDomain");
    var my_so:Object = new Object();
    my_so = SharedObject.getRemote("testSo", my_nc.uri, true);

    my_so.connect(my_nc);

    my_so.data.aString = "a testing string";

    /// making sure it's saved.
    my_so.data.aString.flush();
    // or: my_so.data.flush(); - both gave the same result

    //I can see it fine now
    trace(my_so.data.aString);

    // 2 - connecting, and TRYING to load my string from my_so ----

    var my_nc:NetConnection = new NetConnection();

    my_nc.connect("rtmp://myDomain");
    var my_so:Object = new Object();
    my_so = SharedObject.getRemote("testSo", my_nc.uri, true);

    my_so.connect(my_nc);

    // I can see nothing (undefined)! but aString is stored in testSo.fso in my
    server...
    trace(my_so.data.aString);

    Mario Vieira Guest

  2. #2

    Default Re: remote shared object doesn't want to load!

    I made it use localhost as the path to the .swf so you might want to change the
    net connection uri property to the application directory if you are testing on
    a webhosts domain.


    [/code]
    var my_nc:NetConnection = new NetConnection();

    my_nc.connect("rtmp:/myDomain/mySwf");

    my_so = SharedObject.getRemote("testSo", my_nc.uri, true);

    my_so.connect(my_nc);

    my_so.data.aString = "a testing string";

    /// making sure it's saved.


    //I can see it fine now
    trace(my_so.data.aString);



    var my_nc:NetConnection = new NetConnection();

    my_nc.connect("rtmp:/myDomain/mySWF");
    my_so = SharedObject.getRemote("testSo", my_nc.uri, true);

    my_so.connect(my_nc);

    trace(my_so.data.astring);

    [/code]



    calmchess333 Guest

Similar Threads

  1. remote shared object array
    By calmchess333 in forum Macromedia Flash Flashcom
    Replies: 0
    Last Post: August 26th, 01:59 PM
  2. Remote Shared Object size limit?
    By abeall in forum Macromedia Flash Flashcom
    Replies: 0
    Last Post: August 22nd, 06:41 PM
  3. remote shared object problem
    By calmchess333 in forum Macromedia Flash Flashcom
    Replies: 2
    Last Post: March 9th, 02:17 AM
  4. Remote Shared Object
    By Chester Copperpot in forum Macromedia Flash Flashcom
    Replies: 3
    Last Post: September 11th, 11:40 AM
  5. remote shared object?
    By Toad in forum Macromedia Flash
    Replies: 0
    Last Post: June 3rd, 12:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139