Okay, so I have this: _global.so=SharedObject.getLocal("blocks"); so.data.x=new Array(10); so.data.y=new Array(10: so.flush(10); What I'd like to know is where "blocks" is stored? I couldn't find it in my cookies folders. I'm just curious to see what the file looks like.
a typical path for the .sol extension is - Drive:\Documents and Settings\<name>\Application Data\Macromedia\Flash Player\ so.flush(10); /*this is equivalent to - so.flush([ minimumDiskSpace ]) minimumDiskSpace - An optional integer specifying the minimum number of bytes that must be allotted for this object. */ hth
[quoted text, click to view] "elemental .std" <webforumsuser@macromedia.com> wrote in message news:c7ld07$i90$1@forums.macromedia.com... > Hi this is a prototype function that will give you the oportunity to set the > location of your SharedObject files:
Do you know what a SharedObject file is? It isn't a text file. That code won't do it. tralfaz
Hi this is a prototype function that will give you the oportunity to set the location of your SharedObject files: MMSave.getDirectory = function() { var d = ASnative(302, 0)(); var i = d.lastIndexOf("/"); d = d.substr(0, i); i = d.lastIndexOf("/")+1; var chemin = new String(d.substr(0, i)); var barre; for (i=0; i<chemin.length; i++) { if (chemin.charAt(i) == "/") { barre++; } } barre -= 3; var MyRoot = ""; for (i=1; i<=barre; i++) { MyRoot += "..\\"; } return MyRoot; }; // now you've got the root. If you want to save on ie c:\myflash\test\ do MyPath = MMSave.getDirectory(); trace(MyPath); MyPath += "myflash\\desktop\\yourfilename.txt"; // with this you can save your object into your MyPath path.. SharedObject.getLocal(objectName , MyPath]) Best Regards I
Don't see what you're looking for? Try a search.
|