Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Shared Objects File Location



just a quickie, ive been using shared objects which are working fine but im curious as to where the SO files (*.sol) are stored. i read they are by default kept in the same dir as the flash player but i cant see them.

in fact ive done a search for all *.sol files on my pc, nothing. they should be somewhere though, doing their job in flash fine.

any ideas?



FlashKit > Flash Help > Flash ActionScript
Posted on: 10-21-2004, 01:30 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Location Of Shared Objects With Associated .exe File
Currently I have a .swf file located on my desktop and the location is:

c:Documents and Settings imDesktopjournaljournal.exe

the location of its associated shared object is:

c:Documents and Settings imApplication DataMacromediaFlash PlayerLocalhostDocuments and Settings imDesktopjournaljournal.sol



2 QUESTIONS:

1) Is it possible to have the shared object travel with (Attached to) the executable so that information stays with the .exe no matter where it sits?

2) Is it possible to have the shared object in the same folder as the .exe file so the the path to the .sol file looks the same.

Shared Object:
c:Documents and Settings imDesktopjournaljournal.sol

Executable:
c:Documents and Settings imDesktopjournaljournal.exe


Thanks for your help!

Shared Objects Location On A Hard Drive
I am developing an interesting site and would like to store user information for repeat customers. I stumbled across shared objects and understand the concept quite well with the exception of where the files will be stored on a users hard drive. If I create a shared object does the clients computer automatically store it in some default directory?

I read somewhere that it is WindowsApplication DataMacromediaFlash Player

But when I searched my computer there was no such folder to be found. It must have been for earlier versions of Windows. Could someone elaborate on where a shared object will be stored, and if the clients computer just knows where to store the object when it is playing a flash movie? Or do I have to manually specify the directory on the clients machine?

Thanks,
Sam

[F8] Shared Object Location And Write File
Hello,
I'm developing applications with Flash 8 and ActionScript 2 and I would like to know if it is possible:
1 - to change a shared object file(.sol) path to the swfs path for example?

I want to do this because when I use the swf in an other computer I want to have the .sol together. I've investigated and it looks like it isn't possible but maybe someone has a solution

2 - But if this doesn't work does someone know any alternative?

Because, I have 2 swfs, 1 "activates" the other. So I want the swf that activates only to work once. But in my actual solution it works only once if on the same computer if I change computer it works again.

3 - Writing to files is only possible with third-party solutions isn't it?

Thanks in advance,
M.Anturio

Shared Objects - .txt File
I just want to clarify information that I have gathered from other threads.

I want to build a projector for distribution on CD-ROM. It will contain a library of photos that the viewer can browse through. The
viewer bookmarks particular images, and can save and name collections of bookmarked images. Then the viewer can open up any of the collections of bookmarked images within or across different sessions. I know Director would accomplish this by saving .txt files for each collection of bookmarks. If all this is possible in Flash, it looks like shared ojects are the way to accomplish it,right? However, I have heard that Flash MX can't write .txt files. If not a .txt file, what does Flash write so it can pick up information in subsequent sessions?

I'm also trying to determine whether I, as a fairly new Flash user with no action script experience, should be able to pick up enough in a few weeks to do this. Any thoughts are welcome.

Shared Objects - Can I Create A .sol File Outside Of Flash ?
Hi all,

is it possible for a .sol file to be created by another application lets say a text editor, notepad , and then placed in a relevant folder structure to be accessed by an swf file?

so if i had an swf file with the line

localObject = SharedObject.getLocal("myFile");

could "myFile.sol" have been created with a text editor?

OR

does a .sol file have to be created by an swf in the flash player?


many thanks in advance

gilesb

Shared Objects. How To Undo Shared Object
Hi guys,

Basicaly I created a simple login function by following the shared objects tutorial (http://www.kirupa.com/developer/mx/sharedobjects.htm).

I wanted a button placed on my wlecome screen allowing the user to go back to the creating screen of the shared objects.

So basically another shared object can be made.


Any Ideas?

Store And Retrieve Array Of Custom Class Objects From Shared Objects.
Hi,

I am stuck up with a problem in ActionScript 2. I am using Flash MX 2004 on windows XP.

I have created 3 custom classes say Parent, Child, and GrandChild. Parent class contains in it an array of its Child objects. Similarly each Child object contains in it an array of GrandChild objects. Also I do have one global array of all the Parent objects.

I want to store this array to the shared objects on specific events(say exiting the session) and then reload them from the shared object(on next session startup). I am able to store the global array to the shared object but when I try to retrieve the same array from shared object, I could not do it. The retrieved array is not of my custom class type [Parent].

Help needed to solve this problem urgently. Does anybody have idea how to do it??

Thanks in advance.



Cheers,
Naishadh Sevalia

Set Shared Object Location?
Is it possible to make flash create shared objects in the local directory where the swf/exe resides?

Tea

Shared Object Location
Hello all, Does anyone know of a way to save a Shared Object to a specific folder? Or even if this is possible?... Just trying to find an alternative to writing to .txt files, because I've learned that you can't with strictly flash...

Thanks in advance for anyones help!

Peace,
~Bill

[F8] Shared Object Location
can anybody tell me if you can save a shared object to USB memory key or an external hardrive, and then read it from that location. i no you can set the local path but it wont work, it will only let me save it in the flash player folder.

Local Shared Object Location?
in flash mx, why doesn't this work?

myLocalSO = sharedobject.getLocal("flashcookie","//NetworkPC/shared/test" );

in other words, how can i get the shared object to be saved in the "test" folder on my network drive. the .swf that's saving the shared object is also in the "test" folder.

thanks!

Different Shared Object Question, Can You Change Their Location?
Can the location of shared objects be changed (say to My documents?)

I need it for a network, I would like every machine to access the sol file , as my user may pic any machine in the room (when they log on).

At the moment my app is working fin, and reading the sol, providing they use that specific machine. Every machine has its own sol file, where I would like1 file that covers the entire network (such as my documents)


I have the shared object working fine, and have used the tutorials and search facility (so i dont need help with that side of things)

Please help

How Do I Specify A Location For Objects?
I am trying to create a flash with a header text with an effect. Then after the effect is ran, I want the text to remain while a second line of text runs its effect. Then I want the first two pieces of text to remain while a third piece of text runs its effect, and so on.

I did this by putting the first text with effect in key frame 1. Then in key frame two, I put the same text without an effect PLUS the second piece of text with an effect, and so on. The problem is I can not quite get the text to line up exactly with the text in the previous key frame so it is a little choppy. I can see what appears to be the location of the text on the bottom tool bar, but I can not find out how to change it.

BOTTOM LINE - Is there a way to specify a piece of text, object, or whatever else to be a set number of pixels from the edge and top?

Moving Different Objects To One Location
Howdy, i have the following problem

First Object: x100 y100
Second Object: x400 y400
Thrid Object: x200 y200

when a counter reaches a certain number they all have to move to
x300 y300

how can i do this via AS??

any help

thanx in advance

How To Make Objects 'snap' To A Location
I was wondering how to make an object snap to a specific location when dragged to an approximate area. For example, when dragging a solid circle to an outline of itself, the circle would snap perfectly in place when user releases the button. Is there a built-in mechanism that allows for this. I already know how to drag and drop. Any help is appeciated.

Moving An Object To Another Objects Location
hi, i am creating a vertical shooter adaptation.

i am trying to create the enemy units to fire in a direction at the main unit.

The problem is that the bullet follows the main unit instead of moving in a straight direction where the unit used to stand.

I am using timers for creating the animation and i have tried changing the rotation of the bullets. I have got it to rotate in the direction i want it to but it doesnt move there.

i am also trying out this temp object thing where an object is left at the main units last location and the bullet travels to that location. its not working yet but i am going to give it another try.

Shared Objects
Hi there,

Question:

Is it possible to use SharedObjects to examine, if a user is online?

If so, I maybe could use this function.

Please help!

Manuel

Shared Objects
I've seen many tutorials on how to store text field info in "shared objects" and I was wondering if anyone knows if you can store other things in "shared objects?"

What I'm specifically looking to do is have the user select the background colour of the movie using the setRGB and then have this info stored in a shared object so when the user returns, the background will stay the same colour that they selected on their previous visit.

Any possible solutions would be greatly appreciated!

Shared Objects
I've seen many tutorials on how to store text field info in "shared objects" and I was wondering if anyone knows if you can store other things in "shared objects?"

What I'm specifically looking to do is have the user select the background colour of the movie using the setRGB and then have this info stored in a shared object so when the user returns, the background will stay the same colour that they selected on their previous visit.

Any possible solutions would be greatly appreciated!

Shared Objects
I am trying to assign the 'scheme' variable to 'grey' using a shared object.

This code loads on the first frame

mySO = SharedObject.getLocal("colors");
scheme = mySO.data.scheme;


and this should give the 'scheme' variable a value of 'grey'

on (release) {
mySO.data.scheme = grey;
}

I don't think it is, because if I look at the .sol file no value is set to 'scheme'
¿ #TCSO  colors scheme

Any idea why?

Seeing Shared Objects On My Box
First:
Does anyone know where I can find my shared objects on my PC. I'm running windows 2000?

Second:
Does anyone know how I can retrieve the local path of a shared object in my code. By default the shared object is supposed to be stored under the "full path". I would like need to see what the full path is to troubleshoot a problem I'm having.

John

Shared Objects
I've searched the board on shared objects and found a lot of reference to the Macromedia site. Most all of the reference refers to using the shared object as a cookie to keep a name.

I want to use it so that it sees if they alread visited and if so it goes to the end of the .swf file.

I've found the code below but I can not seem to make it work. Has anyone successfully completed what I'm tring to do and if so could you help me out

------------------------

// setting up the shared object.
var mySO = SharedObject.getLocal("cookie");

// if we have something in stored we skip the animation.
if(mySO.data.stored)
{
// Frame is = the first frame after the anim.
gotoAndPlay(216)
} else
{
// if stored weren't found we store true
// in it to mark that the user has been here.
mySO.data.stored = true;
}

Shared Objects
Hi. I am currently building an MP3 player using Flash MX and ice Projector. The functionality of the playlist is based around a set of arrays. There is one array, called Artists, and another called Tracks, and a third called Files. Artists stores the artist names, Tracks stores the title, and files stores the streaming location. Each individual track is identified by it's loaction in the array. I am almost done except for the playlist. The problem I am running into is that I can't get it to save the arrays to Shared Objects.
I have the following function to display the array values in the playlist: (This works)

Code:
function loadList(Tracks,Artists) {
PlayList.removeAll();
for (i in Tracks) {
Song = Artists[i]+" -- "+Tracks[i];
PlayList.addItem(Song,i);
}
PlayList.sortItemsBy("data",asc);
}
Then I have this function to save the playlist, which is called when the user clicks the save button: (This doesn't work...)

Code:
function MasterSave(Tracks,Artists,Files) {
PL = SharedObject.getLocal("Cialnet_Playlist");
for (i in Tracks) {
PL.data.Tracks[i] = Tracks[i];
PL.data.Artists[i] = Artists[i];
PL.data.Files[i] = Files[i];
trace(PL.data.Tracks[0]);
}
PL.flush;
}
When the MP3 player is first evoked, the following function is run:

Code:
function LoadPL(){
PL = SharedObject.getLocal("Cialnet_Playlist");
if (PL.data.Tracks==undefined) {
trace("No Playlist");
}
Tracks = new Array();
Lengths = new Array();
Artists = new Array();
Files = new Array();
curTrack = 0;
pos = 0;
playing = "False";
// Defines track names shown in playlist and playing window
for (i in PL.data.Tracks) {
Tracks[i] = PL.data.Tracks[i];
Artists[i] = PL.data.Artists[i];
Files[i] = PL.data.Files[i];
}
_level0.LoadList(Tracks,Artists);
}
And obviously, the load function doesn't work either because the save function doesn't write anything to the SO...

Is there anything I have overlooked? From what I have heard, it is possible to save arrays into SOs, but this method isn't working. Much thanks for any help.

--Andrew
---Trmbne2000@hotmail.com

Shared Objects
Is there any way that I can save the .sol file along with my swf

Regards
Dabz

================================================== ====================
"Life is a mirror, what you do is reflected back to you, Be nice to
everyone"
================================================== ====================

HELP With Shared Objects
is it possible to record the top 10 highest scores sorted i order by using shared objects?? if so, then how is it done?

i badly need to know how to make a high score record for a game that is intended to be played on a standalone computer and NOT on the internet...

Please please help me....

thanks!!!

HELP W/ Shared Objects
is it possible to record the top 10 highest scores sorted in order by using shared objects?? if so, then how is it done?

i badly need to know how to make a high score record for a game that is intended to be played on a standalone computer and NOT on the internet...

Please please help me....

thanks!!!

Can I Do This With Shared Objects ?
ok i am trying to get the hang of this command and so far i got it to work. But now i want to go to the next step but dunno if thats possible and how.

I'm trying to make some sort of database in flash. what i was wondering is if it is possible that i can use a add another person option... so i can add new persons at any time and then when i alter the info and numbers of the person it will save it and i can see/edit those numbers again when i choose the person from a list ?!?

can i save all these persons in just one file ? or do i need to create multiple files, and if so how can i let it auto make a new file with info with persons name ?!?!

I hope i explained myself good enough
thanx in advange

assenoost

Shared Objects
How can we use Shared Objects (Flash Cookies) created by one swf file but called by another one. Please help.

Shared Objects Help
Hi,

I'm trying to set up 'placeholder' of sorts, so that when a user clicks a "set bookmark" button, the _currentframe is recorded in a sharedobject. The next time the movie is run, the movie will automatically gotoAndStop to where the _currentframe was recorded (the frame the user was on when the "set bookmark" button was pressed)

I am attempting to do this with shared objects, rather than cookies.

My first frame is a blank key frame, with actionscript:
-----------------------------------------------------------
//create the local Shared Object
so = SharedObject.getLocal("bookmarker");

//if shared object has data already in it
if( so.data.placeHolder != null )
{
_root.gotoAndPlay( so.data.placeHolder );
}
------------------------------------------------------------

then, in subsequent frames, the user can click a button. This button has actionscript:
------------------------------------------------------------

on(release)
{
so.data.placeHolder = _root._currentframe;
}
------------------------------------------------------------

this method works perfectly when testing a movie, so if i set a bookmark, close the swf, and testmovie again, it will automatically jump to where i set the bookmark

the problem is when I export/publish, neither running the swf nor the html file works in whatever dir i publish to; the sharedobject data isnt remembered so the movie will always start at the beginning rather than the bookmarked frame.

I am guessing it is a problem associated with the path of the shared object and where it is stored. Is there a way to always store it in a user's IE cache?

Thanks for any suggestions

Oh Where Oh Where Have My Shared Objects Gone?
Just discovered SOs, and have replaced all my cookie scripts with them. Love them, and they are working just grand, but . . . I want to touch and feel them the way I can cookies. Where the heck ARE they on my hard drive? And can I expire them using the clock? Any tips on expiring appreciated. The MM documentation on them is a little weak. Okay, nonexistent in the help menu.

amy o'd

Shared Objects
Hi,
I am trying to make a drawing application in MX. I want the user to save his stuff file wise, and open them whenever he wants to and see the contents. I know how to use the shared object thingie in MX, but what I want is that the user can save the content(Ideally the frame of the movie) with a proper file name. And he can go on saving as many files as possible. He can then later open them and see the content.

Is it possible? Pl help

Thx

Shared Objects
I know I have been using the FlashKit Forum a lot lately. I have a major project and I am stepping out in new teritory with this one. I am a veteran viedo guy with lots of experience in animation with Flash and After Effects but when it comes to "True" interactivty and the more complex Action Scripting I have trouble. I need to know how to use Shared Objects in a stand-alone projector so that the first time the client runs the application they are using the default settings I have set for some of the options in the various panels. After they run the application for the first time, if they do not change any of the settings (defaults) I want those to stay in place, but once they do make changes I want to keep their settings for the next run. Please help.

Thanks!!

Shared Objects
Please help me with this one… I’m well and truly stuck.

I pray that there is a simple solution to my problem that does not involve databases, coldfusion, flash remoting …. Just flash, javascript or xml please !!!!

Step 1. A Pocket PC 2002 runs a flash 6 swf that creates and populates a shared object.

Step 2. The Pocket PC is connected to a Desktop PC.

Step 3. On the PC the user goes to a html page and needs to upload data.

Question. How can a swf or html running on a PC locate and read the contents of the Pocket PC shared object?


__________________
Here's hoping,
Regards,
Yvonne.
)

Shared Objects
Does anyone know how to store variables in the Shared Objects folder, like in the game Balloon Duel on newgrounds? I know how the folder works and everything, but I just need to know how to store the variables. Thanks.

Set Shared Objects Using PHP?
Is there a way to set shared objects using PHP?

My Flash site tries to remember the last page visited, regardless of using the Flash version or the html. When the flash website loads, it gets the SHaredObject data and redirects the user to the relevant page based on the last page it visited. If the user was browsing my site using the Flash version, it's all good. But if the user was browsing via the HTML version, then I would need to set the sharedObjects accodingly via PHP.

Another solution to this is using a cookie.. and im sure it's gona work for both Flash and HTML.. but i would like to know the sharedObject solution, if there ever is one.

Tea

Shared-objects
How do I go about to make a cookie in flash with shared objects? I want to play a diffrent swf depending on what kind of conection the visitor has. broadband or dial up.

/thanks

Shared Objects
Hey Everyone,

Does anyone know if it's possible to set an expiry on a shared object? (eg 10 days after it has been set?)

Thanks,
Chris

Shared Objects
I'm trying to make a really simple program so that I can come to grips with shared objects.

1 input text box
1 dynamic text box
1 save button
1 load button

Thats all I want to use.
I want to save data from the input text box when the save button is clicked.
I want to display the saved data in the dynamic text box when the load button is clicked.

Could someone please run through the code i'd need, I can't follow the information found at
http://livedocs.macromedia.com/flash...=00001664.html
properly. I don't know how to program well enough.

Thanks heaps.

Shared Objects
The way I see it shared objects is a replacement for cookies when a flash is run outside a browser. Is this correct? If so, is there any pros and cons for using shared object or cookies when a flash is run in a browser?

Thanks
/Per-Henrik

Shared Objects
trying to use several different shared objects to save some input text, but all the boxes keep saving the same piece of text. can u sgow me which bit of the code i need to change to have differnet shared objects?

myobject = SharedObject.getLocal("myData");
{mytext1 = myobject.data.user

}

Shared Objects
Hi all,

I have a Flash animation on my frontpage (the header), but I don't want the whole animation to replay on all other pages, how do I do it?

The site has HTML and the Flash header as well as a Flash menu.

I used this in Actionscript but my header animation and menu animation still replay from the beginning on all pages . . .

Thanks,

Kevin

function checkSO()
{
// If a shared object called siteSO already exists this will retrieve it otherwise it
// creates a new shared object called siteSO
var SO = SharedObject.getLocal("siteSO");
if(SO.data.visitedAlready)
{
gotoAndPlay("end");
}
else
{
SO.data.visitedAlready = true;
SO.flush();
}
}
// Put that and this in the first keyframe of your movie, before the intro
checkSO();

Shared Objects
Hi all ,
I am new to Flash. I am unable to find a tutorial on how to save data using shared objects in Flash CS. Can someone help me please. All i want it to do is to save a name from a textbox and the current time so that its there to be used next time i start the flash movie.

Many many thanks.

Q

Shared Objects
Hello there...I have 2 swfs and i'm working localy. In one I need to save some data and in the other I need to load it. So i'm using shared objects...my code is the following:

the saver:

Code:
user = SharedObject.getLocal("user_profile");

var name = "Jorge";
user.data.name = name;
//user.data.firstname = firstname;
user.flush();
the loader:

Code:
user = SharedObject.getLocal("user_profile");
trace(user.data.name);
i think the code is right...BUT NOTHING HAPPENS...
ANY HELP?? WHAT IS WRONG WITH IT??

THANKS A LOT!!

Shared Objects - Help
Hi All...
Does anyone know if your able to put a classes into shared objects and keep calling their methods.
Eg.
i have a class Dog where dog has a bark method (dog.bark()


Code:

var goodDog:SharedObject = SharedObject.getLocal("mydog");

if (goodDog.data.myDogObject==undefined)
goodDog.data.myDogObject= new dog();

goodDog.data.myDogObject.bark();
i'm able to call the goodDog.data.myDogObject.bark() and have it work whenever Flash either first makes the SharedObject or i clear the shared object...

any help would be much appreciated

Thanks
Zirus

Shared Objects
hi there.
as the topic suggests im after some help with sharedobjects.
i have 2 main swfs that i wat them to to beable to read a set of global variable in an independently loaded swf.

the 2 main swfs are loaded with key commands within each other but the other i with the global variables i want them to detect is loaded on its own independently.

I was told theres a way to do this via shared objects but im unable to figure out how and before u ask it is impossible for me to upload a fla. but heres a diagram i drew up in paint to show u how i want the global variables to be sent via shared objects.
url = http://www.actionscript.org/forums/a...1&d=1161642207


and another thing i was wonder is it possible to load an external swf via loadmovienum but then not unload it but have it set behind everythin else so its still running in the back ground and then when the user wants to bring it forwad they just press the same command they use to load it.

thanks in advanced ur help is most appreciated.

Shared Objects
I have written a c++ program that reads in a sharedObject and begins parsing the data, so far I can extract all the header info, the name of the first variable and the type it is. The first type of variable I am trying to get the value for is a Number, but I am having trouble with getting the value of it. It seems that the value is incrypted in some way. I've tried searching for more information on this but all the stuff I find on the file format of a SharedObject does not talk about anything being encrypted.

Another question, is it legal to talk about dissecting the SharedObject file format?

Shared Objects Help
hi guys im making a game atm and i have a shared objects highscore, its working fine, the scores pass through, problem is i have first, second, and third. obviously i want the the highest score at the top, for some reason its just putting the last played score on the top, over and over. dunno whats going on his my code can anyone help me???



stop();
scorefin = SharedObject.getLocal("highscores");

var thescore = _global.finalScoreShiftAsNumber
var thetimer = _global.finaltimeasnumber

if (timer1 == undefined) {
score.data.timer1 = 0;
timer1 = 0;
}
if (timer2 == undefined) {
score.data.timer2 = 0;
timer2 = 0;
}
if (timer3 == undefined) {
score.data.timer3 = 0;
timer3 = 0;
}
score.flush();



if (thetimer > timer1) {
scorefin.data.timer3 = scorefin.data.timer2;
scorefin.data.timer2 = scorefin.data.timer1;
scorefin.data.timer1 = thetimer;

scorefin.data.score3 = scorefin.data.score2;
scorefin.data.score2 = scorefin.data.score1;
scorefin.data.score1 = thescore;


} else if (thetimer==timer1 || thetimer>timer2){
scorefin.data.timer3 = scorefin.data.timer2;
scorefin.data.timer2 = thetimer;

scorefin.data.score2 = thescore;


} else if (thetimer == timer3 || thetimer>timer3) {

scorefin.data.timer3 = thetimer;

scorefin.data.score3 = thescore;

} else {
trace("nothing");
}

timer1_txt.text = scorefin.data.timer1;
timer2_txt.text = scorefin.data.timer2;
timer3_txt.text = scorefin.data.timer3;

score1_txt.text = scorefin.data.score1;
score2_txt.text = scorefin.data.score2;
score3_txt.text = scorefin.data.score3;

cheers

Shared Objects
Hi people,

I know that you've probably seen hundreds of these threads and i apologise for that, but i've just read http://www.actionscript.org/resource...ects/Page2.htm and i'm afraid i'm still pretty confused.
I am trying to use SharedObjects to save progress in a game.

Example Scenario:
When you enter a frame (say Level 2) it uses SharedObjects to store a bit of information (e.g. the word "lvl2") that you have entered this frame.

Therefore, when you change scenes to a "level select," the "level 2" button would remain locked (e.g. frame 1) unless it sees that the SharedObject for level 2 (the word "lvl2") has been saved and therefore it would be unlocked (e.g. frame 2)

I had thought that in frame one of "Level 2" it would have something like:

ActionScript Code:
lvl2 = SharedObject.getLocal("lvl2");

Then on the level select button it would have code saying

ActionScript Code:
if (lvl2 = exists) {
this.nextFrame(); }
however i do not understand what actionscript i need for this as "exists" is clearly not AS!

Have i got completely the wrong idea!?
Please correct me.

Thanks in advance.

Shared Objects
anyone know a good tutorial or site for Shared objects???

Copyright © 2005-08 www.BigResource.com, All rights reserved