Projector: Shared Object Path On PC
Hi,
I am a Mac guy and have created a projector file containing a shred object. I know where it is on Mac. I have searched threads here to see if I can get information how it is stored on a PC. However, that did not help, since the folders indicated like C:WINDOWSApplication Data.... did not exist. The shared object is definitely stored but I did searches for names of files etc and I can't find it. PCs are like black boxes for me.
Thanks for any help.
FlashKit > Flash Help > Flash General Help
Posted on: 08-08-2005, 04:02 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Shared Object Path
Hi,
I am having trouble controlling the placement of my shared object files and was hoping that someone could point out where I going wrong!?
The location that my files are ending up at is:
C:Documents and Settings<user>Application DataMacromediaFlash Player#SharedObjectsBMCK8GF8localhost#SmartLea rning
And the code I am using is:
// Set name of file to be saved
User = "LiteracyKS3Users";
// Set path where file to be stored
var my_so = SharedObject.getLocal("SmartLearning/LiteracyKS3/Users/"+User, "/");
// List data to be stored
my_so.data.savedNameArray = userNameArray;
my_so.data.savedIDArray = userIDArray;
my_so.data.savedIDcnt = userIDcnt;
// Save data and remove local info
my_so.flush();
delete my_so;
I have a few questions:
1. How do I get my SmartLearning folder to be located in the FlashPlayer folder?
2. Why does my SmartLearning folder have a # added?
3. Why is '#SharedObjectsBMCK8GF8localhost' added when I don't specify it?
I hope someone can help?!
Many thanks in advance
Ol
Projector And Shared Object
hi,
Im doing a simple deal or no deal type game where the user has to enter variables into a projector file and save them for use at a later time. Are shared objects the only way to accomplish this without buying 3rd party software. Does this work well on a local disk from a projector?
thanks
Getting Local Shared Object Path?
Is there any way to actually retrieve the shared object local path. For Example if you had a variable such as var mySO:SharedObject = SharedObject.getLocal("XMLData", "/"); would there be a way to do something like mySO.getPath where it would return something like "C:Documents and Settings[userName]Application DataMacromediaFlash Player#SharedObjectsWKBNWUMElocalhostXMlData.s ol" ??
Projector Shared Object Floppy
I am making a CD(flash projector)
I need users be able to save their comment written to a text field be saved on floppy provided to them.
Thanks
Projector Movie Won't Save Shared Object Onto PC?
I've written a flash app that runs as a projector, and saves edited XML data out to a shared object on the local disk. It works great, except on one PC I have it installed on (the most important one...), where it seems to work fine, but doesn't actually save the Shared Object to disk. I have made sure that the flash projector settings are set to accept a file of any size.
I'm not a big Windows user, so I'm wondering if there may be something I'm missing. It saves the file on other machines. Is there a reason a Shared Object file might be deleted when the machine restarts or something?
Thanks in advance!!!
Local Shared Object Storage :: Path On Win98 ?
What is the path to the local shared objects folder on Win98? Don't have a 98 box handy and I can't find the technote on MM's site.
On 2K it's C:Documents and SettingsuserApplication DataMacromediaFlash Player .
But there's no user directory on 98.
Could A MovieClip Be Stored And Shared In A Remote Shared Object?
Let's say there are two clients connected via FMS,
and have a remote shared object SO.
When one client has a movieclip mc and sets,
SO.data["movie"] = mc;
is it possible for the other client to render
the content of mc, after SO synchronization,
by simply doing:
mc = SO.data["movie"]:
???
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?
Shared Objects & Projector - Yes Or No?
I've seen conflicting info. Some say Shared Objects work in a standalone projector. Some say they don't. I just tried one and it seems to work.
Can anyone confirm this?
Projector Path Problems
I am trying to launch an executable from within my projector. I can't seem to resolve the relative path to the file. I'm developing on the mac, but it will deliver on MAC/PC. My books tell me to use a /, but it will only launch the executable if it's in the same directory as the projector. This is not desireable. I've tried /, : , and to get to an executable in a sub folder. creating an apple script works on the mac, and I'm assuming a .bat file will also work. Can anyone tell me if there is a path structure format for my fscommand that will work relative to the projector.
[CS3] Mac Projector File Path (help)
Hello,
Im having a small problem with burning my application I built, and I think I may know why...
playing the projector on my computer works fine however when burning it on a CD and playing it off the CD, the movies trying to load will not load.
I am thinking it has something to do with the file paths. The Movies and Projector are being exported to the same folder. To access the movies I have used this path "../CD/Data/FLV/001.flv" Which is working.
When I goto burn onto a CD, the movie can not be found (by the looks of it)
The flv player is showing up and is using this path "file:///Macintosh HD:Applications:Adobe Flash CS3:Configuration:FLVPlayback Skins:ActionScript 2.0:ClearExternalAll.swf"
Should I be using ":" in my path locations? And if so how would I target "../CD/Data/FLV/001.flv"
Thanks many!
-Cody
How Do I Specify The Path To A Shared Library Relative To The Main Swf, Not The Html?
I'd really really appreciate help with this. I want to have an object that's imported for runtime sharing, but specify the path in the linkage dialogue box, or through AS if possible/necessary, as being relative to the main swf and not the html page the swf is in.
Up until now I thought all links were handled that way, obviously not. So now i'm going to need to use the .url property to load certain objects (audio, some other swfs), which is fair enough. But how do you do that with a library object that's imported for runtime sharing? Clearly I can't use the .url property in the dialogue box. I need the main movie to be able to look in whatever folder it is in, at runtime, and use the approriate swf there for runtime sharing. That way I can have all my main flash movies in one directory, all loading the same shared swf, and have the html files across the site embed the appropriate main movie at that location.
please please please help me with this one. I've conquered a number of problems with this project recently but inevitabley it just goes on, so currently i look like this ->
thanks to all you lovely people.
Projector In MAC Shows Full Path
Hi
I created a Projector in flash and when run on MAC, it shows full path in title area (Top of the window).
Can we fix it??
Thankz.
Change Path On MAC Projector File With PC?
Hiya,
I'm wondering if there is any way to change the path of a Mac projector file to direct it to a file within another folder in my directory. I have put all of my swf's into a folder and want the hqx file to point to the main exe in the folder.
I am using a PC... Any insight would be great!
Thanks
Playing A FLV-File In A Projector.exe From A Network Shared Folder Failes
We want to load and play FLV-Files while our project files (Projector.exe) and FLV-files are sitting on a network shared folder with UNC-Path access (\FILESERVERsharename). The problem is, that the flv-files do not play. If the same application runs on a local system it works fine. The System.security.sandboxType is "localTrusted" because it runs in a projector.
We do not want to map the shared folder to a drive letter!
Thank you
Example: download
Edited: 11/11/2008 at 08:13:13 AM by matthias13
Playing Ext. FLV When Projector Path Has Special Chars (win)
i have problems with a movie that is published as flash8-projector under windows xp.
it shall play a local FLV-file using NetStream.play().
it works ONLY, when the path of the projector doesn't contain a special char like "ΓΆ" wich is inacceptable here in germany.
an example can be downloaded at www.dinkler.de/test.zip
this occurs ONLY with the flash8-projector under windows. mac works fine, playing the swf-file using browser-plugin, movie-test or SAFlashPlayer works also.
Edited: 06/13/2007 at 04:31:17 AM by timuckel
How To Amend Root Path From Projector To Movie In Subdirectory?
Please help! I'm in a bind and running out of time...
I have a projector that is calling an swf in a subdirectory (just loading it). The problem I have is that the movies in the subdirectories where not built with the idea that they would be located in a directory rather than at root. Is there a way I can amend the root path once at the start of each of this movies in the subdirectories so that I don't have to go through them and change every single "loadVarsNum" (there's hundreds of them)?
The main projector is really just to choose which movie to load based on language preference, then the real presentation is sitting in an appropriate directory based upon the user's choice. Those subsequent movies now have to be amended because they weren't originally set up within a directory but rather at root. All the calls they make for text files and other swfs will break so I need some way to set it once. Is there some global environment variable that I can change somewhere within Flash (everything is running from a CD, not online)???
Am I making sense? Will flash simply use the loaded movie's location as it's root folder once loaded or will it maintain the root location from the original projector file? If it maintains the original, can I change it when the new file loads?
Any help or insight is greatly appreciated.
How To Amend Root Path From Projector To Movie In Subdirectory?
Please help! I'm in a bind and running out of time...
I have a projector that is calling an swf in a subdirectory (just loading it). The problem I have is that the movies in the subdirectories where not built with the idea that they would be located in a directory rather than at root. Is there a way I can amend the root path once at the start of each of this movies in the subdirectories so that I don't have to go through them and change every single "loadVarsNum" (there's hundreds of them)?
The main projector is really just to choose which movie to load based on language preference, then the real presentation is sitting in an appropriate directory based upon the user's choice. Those subsequent movies now have to be amended because they weren't originally set up within a directory but rather at root. All the calls they make for text files and other swfs will break so I need some way to set it once. Is there some global environment variable that I can change somewhere within Flash (everything is running from a CD, not online)???
Am I making sense? Will flash simply use the loaded movie's location as it's root folder once loaded or will it maintain the root location from the original projector file? If it maintains the original, can I change it when the new file loads?
Any help or insight is greatly appreciated.
Shared Object
Hi,
Has anyone used the Shared Object in Falsh MX. I tried it but nothing seems to be saved when I restart the movie. Shared Object should store information on the users local computer like a cookie. I'm using it to store text entries in an address book application, but when I go back to the app all my entries are gone. Is there any way to see if the Shared Oblect is working fine?
Shared Object
Could some one please tell me where a good tutorial is for shared objects i want to be able to specify the location not use a cookie! or just send me the script.
Many Thanks
Michael
$ Will Pay For Shared Object Help $
I've created a standalone quiz that tallies and scores performance. I need to create a shared object element that tracks the users scores in a list box. So I can review the perfmance data. This quiz will go on a laptop and will taken between 100 and 300 times I suspect. The quiz can be viewed <a href="http://38.181.236.4/~chimes/quiz/quiz.html" >here</a> and I created a page where the list box would reside, which can be reached by pressing a hidden button in the top right corner of the quiz frame.
I'm on a 48 hour deadline and have other things to work on, and will try to complete it on my own, but would pay for help at this point, as I'm not familiar with .so stuff yet. If you're interested: chimes@subsystem.com
Thanks
Has Anybody Used The Shared Object?
Has anybody out there used the shared object yet?
We are using XML to track every activity carried out by the user in our movies and storing that in a database, but it all comes to nothing if the user refreshes the movie before we track!
I was thinking of creating the tracking XML inside the shared object so that it cannot get wiped and [potentially] the user could restart from the same place the next time they use the movie.
Anyone any thoughts on this? Anyone done anything similar and come across any problems?
Much appreciated,
Gaius
[BTW, what is that cow icon there for?]
MX Shared Object
Hi guys,
I'm looking at the new feature in MX, shared Objects..
previously I had been using fscommand"save" in an .exe mov.
so now I've converted to MX I gota change it to SObjects!
and I would like to know if anyone knows if I can assign a path to write the file..! .sol file! if you could help me with the syntax I would be very grateful.!
Nate!
Shared.object Or Something...
Hi I hope someone can help with this first step I am taking with the shared.object or something like that...
If I had a mc that could be dragged...
How could I enable the next time the flash movie is opened or accessed for the mc to still be in the position in which it was left.
There are no server technologies involved.
Thanx in advance
Shared Object
i posted this yesterday, and i am more confused about it today.
I have a drawing program. I want to save the drawings as their own swf files. in the simplest explination possible, how can i assign a button to save the drawing.
Shared Object
what is shared object?
How can i use single shared objects for two or more different swfs.
Var Name In Shared Object
Hi, I'm using MX.
I constantly have this problem:
The thing I need to refer to has a variable in it.
I want to save the items of an list so that it goes like sharedobject.data.item1.name = whatever, sharedobject.data.item2.name=another name.... saving all of the items in a list.
I read another thread in FlashKit where another user had the same problem and was answered: use something like _root[mcname]._x = #. This is my code so far:
for (i=0;i<=_parent.imagelist;i++)
{
so.data["pic"+i].name = _parent.imagelist.getItemAt([i].label)
trace(so.data["pic"+i].name)
}
I've also tried doing a simpler version of the above:
for (i=0;i<=5;i++)
{
so.data["pic"+i] = i
trace(so.data["pic"+i])
}
, but it keeps saying "undefined."
I'd appreciate any help, thanx.
Shared Object - Where Are They?
I'm using a shared object as a cookie on my site. But I cannot figure out where it is..... It's not in my browsers temp internet files.
Is there a way to make them go away after a time period or when the user clears their temp internet files?
Shared Object
I need to save the text you type in, in 20 text boxes.
Ok i have read through the tutorials and looked through the posts, but i didnt get how to do this. I did go through the tutorial on macromedia.com on shared objects and i managed to get it to work. But the problem is, i have 20 text boxes and i need it to remember the text from every one, not just one of the text boxes. I did make it work but it took 549 lines of coding. I was wondering, is there a way to use shared objects to make flash remember what the user typed it 20 different text boxes withought having to use 549 lines of code?
Shared Object
Hi all ,
Came accross this problem.
Seems , when I create a shared object in a movie , I can only recall that object in that same move.
What I want to do is , create a shared object in one move and retrieve it's data in another movie.
Is this possible , or am I missing something here?
Thank you for reading this
Regards ,
Frank Schrauwn
Shared Object HELP
Hi there, I can't seem to retreive the variable that stored in the data from another SWF by using SharedObject. Below is what I've been trying to do.
I got an A.swf and B.swf and each of them has 3 navigation buttons (button A, B and C). when I click on let say A button in A.swf, it will store the A button's variable to "buttonStatus" by using SharedObject so that this button will be hilighted as visited link.
When I close the A.swf and relaunch it again, I can see the A button is highlited (visited) but when i open B.swf, the A button is not hilighted there. I'm wondering whether it is possible to retrieve the variable that stored in "buttonStatus" from A.swf so that whatever that is highligted in A.swf will be highlited in B.swf as well.
Below is part of the script that I placed in the first frame of A.swf and B.swf
---------------------------------------------------------------------
buttonStatus_so = SharedObject.getLocal("buttonStatus");
button1_txt = buttonStatus_so.data.buttonNumber1;
//tell the buttons to go to the particular frame based on the retrieved data.
if (button1_txt==1){
hilite1_mc.gotoAndStop(2);
}else{
hilite1_mc.gotoAndStop(1);
}
---------------------------------------------------------------------anyone can help will be very much appreciated.
thanks!
Shared Object ?
hi,
I am trying to use the shared object to save the _x and _y positions of several attached MC's. The attached MC's have all been given a variable name and attached to a dynamically created MC called "world".
I need to loop through all of the MC's in _root.world to save their postions to the shared object. Here is what I have tried,.... when I trace so.flush.. it traces to true but the object postions are not saved.......
Code:
_global.initSo = function() {
_global.so = SharedObject.getLocal("marinaSave");
// if the SharedObject object created a new shared object
// then some values need to be initialized and the flush()
// method is called to make sure the object can be saved.
if (so.data.wab == undefined) {
_global.newSo = true;
for (wab in _root.world) {
so.data.wab = {x:wab._x,y:wab._y};
}
for (waw in world) {
so.data.waw = {x:waw._x,y:waw._y};
}
for (wad in world) {
so.data.wad = {x:wad._x,y:wad._y};
}
so.flush();
trace(so.flush());
}
};
// call the function
initSo();
Am I using the for... in method correctly to loop through the MC's in _root.world and save their values?
Thx
NTD
Shared Object Help
Hi,
I have a dynamically created "world" mc that I am attaching campsite MC's to. I am trying to save thier positions in the "world" MC with the shared object. I am new to useing the Shared Object but I understand how it works for one MC's properties. I am trying save multiple MC data to a Shared Object array. I am close but I cant seem to get it quite right. Right now,... the data is saved when you press a campsite.... I cant seem to get it to work if I pull that code out and place it elsewhere. I am using a var "newCS" to refer to each campsite and declaring it as a local variable. If I try to use it as a global variable,... I get SO = undefined. Here is a look at the code I have now......
Code:
// load shared object
_global.current = null;
_global.initSo = function() {
_global.so = SharedObject.getLocal("campgroundSave");
// if the SharedObject object created a new shared object
// then some values need to be initialized and the flush()
// method is called to make sure the object can be saved.
if (so.data.x == undefined) {
_global.newSo = true;
so.data.x = new Array();
so.data.y = new Array();
so.flush();
}
};
c = 0;
remove = false;
// set remove variable true or false
_root.selectremove.onPress = function() {
_root.checkbox.Play();
};
// start new code
// create campworld
createEmptyMovieClip("campWorld", 0);
_root.campsite.onPress = function() {
c = c+1;
campWorld.attachMovie("campsiteMC", "newCampsite"+c, 5000+c, {_x:_root.campWorld._xmouse, _y:_root.campWorld._ymouse});
var newCS = _root.campWorld["newCampsite"+c];
if (!newSo) {
newCS._x = so.data.x[c];
newCS._y = so.data.y[c];
_global.current = newCS;
} else {
so.data.x[c] = newCS._x;
so.data.y[c] = newCS._y;
}
newCS.index = c;
startDrag(newCS);
newCS._alpha = 50;
newCS.onPress = function() {
newCS.fire.Play();
if (_root.remove == true) {
newCS.removeMovieClip(this);
c = c-1;
} else {
startDrag(newCS);
newCS._alpha = 50;
}
newCS.onRelease = function() {
stopDrag();
newCS._alpha = 100;
_global.current = this;
so.data.x[this.index] = this._x;
so.data.y[this.index] = this._y;
so.flush();
trace(_global.newSo);
trace(SharedObject.getLocal("campgroundSave"));
trace("c count = "+c);
trace(newCS);
trace("newCS index "+newCS.index);
trace("newCS.x = "+newCS._x+" "+"newCS.y = "+newCS._y);
};
};
};
// move world
_root.onEnterFrame = function() {
if (Key.isDown(Key.LEFT)) {
_root.campWorld._x += 5;
} else if (Key.isDown(Key.RIGHT)) {
_root.campWorld._x -= 5;
} else if (Key.isDown(Key.UP)) {
_root.campWorld._y += 5;
} else if (Key.isDown(Key.DOWN)) {
_root.campWorld._y -= 5;
}
};
initSo();
trace outputs...
Code:
newSo = undefined
[object Object]
c count = 7
_level0.campWorld.newCampsite1
newCS index 1
newCS.x = 236 newCS.y = 188
How can I use data from the Shared Object to load when the "campWorld" is created? Any suggestions?
Thanks
NTD
Shared Object Help
Hi,
I have a dynamically created "world" mc that I am attaching campsite MC's to. I am trying to save thier positions in the "world" MC with the shared object. I am new to useing the Shared Object but I understand how it works for one MC's properties. I am trying save multiple MC data to a Shared Object array. I am close but I cant seem to get it quite right. Right now,... the data is saved when you press a campsite.... I cant seem to get it to work if I pull that code out and place it elsewhere. I am using a var "newCS" to refer to each campsite and declaring it as a local variable. If I try to use it as a global variable,... I get SO = undefined. Here is a look at the code I have now......
Code:
// load shared object
_global.current = null;
_global.initSo = function() {
_global.so = SharedObject.getLocal("campgroundSave");
// if the SharedObject object created a new shared object
// then some values need to be initialized and the flush()
// method is called to make sure the object can be saved.
if (so.data.x == undefined) {
_global.newSo = true;
so.data.x = new Array();
so.data.y = new Array();
so.flush();
}
};
c = 0;
remove = false;
// set remove variable true or false
_root.selectremove.onPress = function() {
_root.checkbox.Play();
};
// start new code
// create campworld
createEmptyMovieClip("campWorld", 0);
_root.campsite.onPress = function() {
c = c+1;
campWorld.attachMovie("campsiteMC", "newCampsite"+c, 5000+c, {_x:_root.campWorld._xmouse, _y:_root.campWorld._ymouse});
var newCS = _root.campWorld["newCampsite"+c];
if (!newSo) {
newCS._x = so.data.x[c];
newCS._y = so.data.y[c];
_global.current = newCS;
} else {
so.data.x[c] = newCS._x;
so.data.y[c] = newCS._y;
}
newCS.index = c;
startDrag(newCS);
newCS._alpha = 50;
newCS.onPress = function() {
newCS.fire.Play();
if (_root.remove == true) {
newCS.removeMovieClip(this);
c = c-1;
} else {
startDrag(newCS);
newCS._alpha = 50;
}
newCS.onRelease = function() {
stopDrag();
newCS._alpha = 100;
_global.current = this;
so.data.x[this.index] = this._x;
so.data.y[this.index] = this._y;
so.flush();
trace(_global.newSo);
trace(SharedObject.getLocal("campgroundSave"));
trace("c count = "+c);
trace(newCS);
trace("newCS index "+newCS.index);
trace("newCS.x = "+newCS._x+" "+"newCS.y = "+newCS._y);
};
};
};
// move world
_root.onEnterFrame = function() {
if (Key.isDown(Key.LEFT)) {
_root.campWorld._x += 5;
} else if (Key.isDown(Key.RIGHT)) {
_root.campWorld._x -= 5;
} else if (Key.isDown(Key.UP)) {
_root.campWorld._y += 5;
} else if (Key.isDown(Key.DOWN)) {
_root.campWorld._y -= 5;
}
};
initSo();
trace outputs...
Code:
newSo = undefined
[object Object]
c count = 7
_level0.campWorld.newCampsite1
newCS index 1
newCS.x = 236 newCS.y = 188
How can I use data from the Shared Object to load when the "campWorld" is created? Any suggestions?
Thanks
NTD
Shared Object
I learned that Flash can not write vaiables to a txt file for example.
Can a shared object do this function? and can anyone show me an example on how to load simple variables to a file using a shared object--thanks--Charl
Shared Object Help.
Does anyone know of any good websites for help on Shared Objects? OR if anyone would be able to explain to me basics of saving shared object files and reading them later.
Thanks,
~Bill
Shared Object Help
Basically I have a startup screen which will be displayed the first time user comes to site (in seperate html page on top off main html) or if they don't disabled show on startup checkbox.
I use shared local connection to save startup = "true" or "false" depending on the option they have chosen.
My main movie then reads this token and displays the startup screen if this is true.
So bascially I have two screens one which launches startup screen if token == undefined (user never been to site) or if they have selected true if they select false it doesnt show.
This works fine however when I open startup screen html by itself and set checkbox then open the main screen (indivually). My problem comes when the user opens it for first time the startup screen shows and they select don't show. The shared object seems not to be set with new value. There's like a problem with scope when they open todether both using the shared object.
I have used the localpath parameter which allows multiple swfs to gain access to a shared object.
Does anyone know why this would happen?
Shared Object
Hi,
how do i store the current size of a movie clip into a shared object?
cheers,
G
Help With Shared Object ...
hi !
Ok, I'm trying to make a php page which has a flash menu that loads others pages with an includes function.
the problem is the page is kind of "reloaded" each time a link is cliked and the flash menu bar restart from frame 1, so it doesn't remember the tag (see here )
I know I have to use the shared object thing, and I've check macromedia for that, and used that code
but it doesn't work...is what I'm trying to do the right thing ?
thanks.
PS.I've attached my fla.
Shared Object Help
I'm completly new to the shared object concept of flash..
I am looking for a way to save a shared object (flash cookie) under a user specified name..
as well as a number of user specified variables..
And to be able to save multiple shared objects with different names and different variables... and then to be able to call up any one of those shared objects to retrieve the stored variables...
how do I go about something like that?
Shared Object?
I have no idea how to do shared objects here is what i have. Any ideas/ suggestions??
code:
dev = SharedObject.getLocal("deviations", "/");
if(dev.data.devList == undefined){
dev.data.devList = "";
}
function saveData(){
dev = SharedObject.getLocal("deviations", "/");
dev.data.devList = calc; //calc is a var in diff function
dev.flush();
_root.feedback.text = "Data saved!";
getData();
}
function getData(){
dev = SharedObject.getLocal("deviations", "/");
if(dev.data.devList != undefined){
calc = dev.data.devList;
trace(calc);
}
_root.display = calculated;
}
Shared Object
hi guys,
making a movie type thing, its got an input text box and i want what is typed into the box by the user to be stored when the application is closed and opened back up.
ive tried using SharedObject but im a bit of a beginner and really struggling - could anyone help with the code?
please note that its not a web based application, it will be opened from a cd, and also that any help would be much appreciated!
many thanks
Sarah
Need Shared-Object Help.
I want to be able to let users choose a theme on my top banner and save it so they can see the same one everytime they return to my site.
Check out www.stangette.com . You will see a yellow car and girl. I want to let people change the car and girl.
Changing it is no problem. I can easily do that. But once its one that "frame" I would like to be able to let the viewer click "SAVE" in which a local shared object would be stored on their PC and next time they visit. The flash movie will first look to see what the shared-object says and place the correct "frame" for the viewer
Can someone help or at least direct me to a page that explains how?
Thank You
Shared Object Help
ok i need help !
i have made up a program where the user can save lotto results for up to the last 40 weeks i would like it so that they can compare the results for from 1 to the entire 40 weeks how would i do this
for example the can go to the frame and select wateva weeks they want to compare and the information will show up ! PLEASE HELP ME
Can Anyone Help Me Out - Shared Object
hi all,
i have built up a code, in which i can store the current animation loaded in a presentation in a list component, just similar to add to favorite one .
I am using the Local Shared Object one with the list component.
This is the code so far i developed
var so:SharedObject;
var fname:String;
addFav.onRelease = function()
{
so = SharedObject.getLocal("myMovie","/");
so.data.filePath = loader._url;
_root.myList.addItem(so.data.filePath);
_root.so.flush();
trace(so.flush());
}
var listListener:Object = new Object();
listListener.change = function(evt_obj:Object) {
fname = evt_obj.target.value;
loadMovie(fname,"loader");
}
myList.addEventListener("change", listListener);
everything works fine with this code.While clicking the add to fav button, the current animation running (url of the swf) is stored in the list component, and when i click it back it is playing.
But, when i close and re-open the file, i am not getting the stored names in the list component.
Even though i am using the flush method, why it is not showing.
Can anyone put up their knowledge in this code, so that i will complete this.
thanks in advance
cheers
saikiran
saisen76@hotmail.com
Shared Object
I have created this code so that it searchs a shared object or adds them
if the user is found and they have completed tasks in other swf files stars (MC) will be added to the screen.
how can i do this so that it stores the info to the correct user from other swf files and load in the stars to the correct area?
thanks once again to the folk in flashkit!!
Code:
var currentUserName:String = "";
var bExists:Boolean = false;
var myUsers:SharedObject = SharedObject.getLocal("myUsersNames", "/");
// We check if the shared object exists, if not we create the arrays that will store the data
if (myUsers.data.created == undefined) {
myUsers.data.firstnameSO = new Array();
myUsers.data.created = 1;
myUsers.flush();
}
// when the NEW button is pressed we create a new entry or find entry
newButton.onRelease = function()
{
// This is going to get set eitherway
this.firstnameField = firstnameField.text;
// Do this so later we I can say, ok we didnt find it so lets add it
var found:Boolean = false;
// No point trying to loop through it if it doesnt exist
if(myUsers.data.firstnameSO != undefined)
{
for(var i:Number = 0; i < myUsers.data.firstnameSO.length; i++)
{
if(myUsers.data.firstnameSO[i] == firstnameField.text)
{
found = true;
break;
}
}
}
else
{
// The array doesnt exist so create it
myUsers.data.firstnameSO = [];
}
if(!found)
{
myUsers.data.firstnameSO.push(firstnameField.text);
myUsers.flush();
}
_root.mountains.cave1.invisibleborder.enabled = true;
_root.mountains.cave2.invisibleborder.enabled = true;
_root.mountains.cave3.invisibleborder.enabled = true;
this.gotoAndStop(so.data.frame);
};
stop();
// the function below empty the fields on the right each time an item is removed from the list
function emptyFields(){
firstnameField.text = "";
}
for(item in myUsers.data){
bExists = true;
break;
}
if(bExists) {
trace("loaded shared object");
}
for (var prop in myUsers.data) {
trace(prop+": "+myUsers.data[prop]);
}
Shared Object Help
I'm creating a simple video rental program which needs data stored locally.
I wanted to know if anyone could put me on the right path to coding 3 input boxes which save the text/numeric data to a single shared object in a simple formatted manner.
Is this at all possible? To in the end be able to open the .swf file and have the shared object file be displayed in a scrolling window with all the entries?
Thank you in advance
[F8] Shared Object Between 2 Mc's
Hi Guys,
I am pretty new to shared objects and need some help.
I have two mc's, one is the login (php/flash) and the other is secured area. Basically when a customer accesses the secure area I want it to create a Shared Object for the login page to read.
Example:When the customer logs into the secure area and then goes back to the login page it will read the SharedObject telling it they already visited the secure area and go to frame 3 on the login page... bacially bypassing the login process again.
Below is the code I current have but it is not working... any help would be appreciated.
Secure area fram 1 fla:
Code:
var sos:SharedObject = new SharedObject();
sos.data.Play = "AA";
sos.flush();
Log in page:
Code:
var sos:SharedObject = new SharedObject();
if (sos.data.Play != "undefined") {
this.authmain.gotoAndStop(3);
sos.flush();
}
|