ActionScript 2.0 :: Cannot Access The Shared Object Which Is Created By A.swf From B.swf
Jan 14, 2006
i have two swf: a and b, I cannot access the shared object which is created by a.swf from b.swf. I only catch it from a.swf. Is there any way to get it from b.swf.
View 9 Replies
Similar Posts:
Oct 31, 2011
I am trying to access a flash shared object using sharedObject.getLocal("sharedObjectName"); But, it always creates a new object and doesn't locate the existing object, then I searched the location where it saves the object and I got this location from the internet c:/Documents and Settings/username/Application Data/Macromedia/Flash Player/#SharedObjects But, I could not get this directory in my windows XP. access my shared object which is residing in my flash media serverapplication folder..
View 1 Replies
Jun 21, 2004
I've read and tried every post concerning shared objects on this and other boards but it's not working: Trying to access shared object for 2 or more swfs Code: This is what I have on the swf that will flush the object:
[Code]...
View 9 Replies
Jun 21, 2004
Trying to access shared object for 2 or more swfs
Code:
This is what I have on the swf that will flush the object:
swf 1:
user = SharedObject.getLocal("orange3", "/");
if (user.data.firstname == undefined){
_root.loadMovie("LOGIN.swf");
[code].....
I am running it from a shared hosting server I also tried to do a absolute path but it's still not working.
Code:
user = SharedObject.getLocal("http://www.mydomain.com/orange3", "/");
message = "Welcome " + firstname +" "+ name;
_root.loadMovie("Home.swf");
View 9 Replies
Jan 20, 2011
I am trying to access a shared object declared in a certain function, from another function. I am having
difficulty doing so. My code are as follows:
Code:
//Constructor code
public function EventTest()
{
[Code].....
View 1 Replies
Feb 23, 2003
Is it possible to access the same shared object from different flash movies. I am trying this, and I put the exact same code to access the shared object in the first frame of both movies, but when I update the SO in one of the movies, the other one does not reflect the change. Both movies are in the same folder. Any ideas?
Since it is called a "shared object, I would think that more than one movie could access it, but what do I know. I don't know if it matters, but here is the code:
[Code]...
View 3 Replies
Jun 14, 2010
since updating my Flash Player plugin from 10 to 10.1, I'm seeing a weird crash when accessing shared objects. Flex Builder's debugger pops up and prints a stack trace like this:
undefined
at flash.net::SharedObject$/getLocal()
at my.code::MyClass$/load()[/my/path/to/my/MyClass.as:27]
(...)
This happens when calling SharedObject.getLocal("someString") for the second time for the same string, though it doesn't always crash. When using another browser on the same machine (not configured as the preferred debugging browser in Flex Builder), Flash Player remains silent. The code is wrapped in a try/catch(Error) block which does not catch this error. I'm using Flex SDK 3.5 and Flex Builder 3 on Mac OS X 10.6.3.
View 4 Replies
Apr 5, 2005
Here's some background: I am working on a project in which we have one main Flash file that loads other Flash swfs into an empty movie clip within the main file.The main file instantiates a class I've made (stateManager) into a _global variable.This object keeps track of the most recent states of the other individual files so users can navigate between them all and come back to the same status they left it.Here's the issue:In the sub files, I need to access the _global object, which was created in the main file, many times so I would like to use the 'with' construct to reduce typing. However, because the 'with' statement needs an object to reference, I am unable to publish my files .I've tried adding an if-statement at the top of each file (if(_global. stateManager == undefined){ ), but this doesn't work either.I've included a portion of my code for you.
Code:
import classes.stateManager;
if (_global.stateManager==null) {
_global.stateManager = new classes.stateManager("./InitFiles/global.xml");[code]....
View 1 Replies
Mar 13, 2009
I created a very simple experiment to attempt to access the same shared object in Flash Player and AIR.
A Flash SWF creates a local shared object.
A AIR application (being tested from CS3 or installed) opens the same shared object.
The data does not persist. Is this theoretically possible?
View 1 Replies
Dec 20, 2010
Is there any way to enumerate the shared objects created by an application? I'd like to create a number of individual shared objects and then enumerate them when the application starts again so it knows what's been stored. I want to store them individually because there could be a large number of them and I only need to use a few in any one application session and I don't want to read them all as one big shared object
I know I could put their names in a "master" shared object, enumerate that list of names, and manage it that way, but being able to enumerate the shared objects directly seems much cleaner.
View 0 Replies
Jul 7, 2009
So i have a register and a log in form with shared objects but iahve a problem. I have two input text fields named: textfield textfield2 The One is for username and the other one is for password. So when you tpye some text in it for saving it as SO i use this code: P.S The button is an MC
[Code]....
so untill this point it works fine but then when you go to log in i want when you press the log in button the text that you wrote for username and password to be checked trough the created shared objects this means mySO and mySO1 and if there is a match the movie to proceed to a designated frame if there is not to go again to a designated frame whare it will be the ACCESS DENIDE text.
View 1 Replies
Oct 22, 2010
So, you have a sprite, you draw some graphics, you set cacheasbitmap=true... I can't seem to access the newly created bitmap data, to access the dispose() method.
[Code]...
View 6 Replies
Jan 22, 2011
I'm using a loader for people to use to upload their own images for a background, and I want it to remember the image the next time they come to the page, so is there any way to save the loader data in a shared object? I haven't tried just using something like
Code:
sharedObject.data.dataName=loader
because I assume it doesn't work that way.
View 9 Replies
Mar 10, 2012
Can we use or access shared object stored in another system? I'm storing some data in shared object in one system can I access that shared object data from another system? I think Shared objects are stored in local machine. Can we give the path to (specified system i.e., server) where the shared objects will store, and can we access that object through same path?
View 2 Replies
May 20, 2008
Just wondering if you can use more than one shared object, as my AS code doesn't act as i would think
Code:
---this one works
var submenu_so:SharedObject;
submenu_so = SharedObject.getLocal("menu");
[Code].....
View 1 Replies
Jun 24, 2009
Can I use Flash Shared Object to pass information between two different SWF files on two different pages within the same website?I know it can if the SWF files are the same. But what if they are different Flash object with different SWF files?
View 7 Replies
Jan 28, 2010
Does anyone know if it's possible to save and access a LSO from an EXE projector on a CD?
Obviously the LSO couldn't be saved on the CD itself - would it be able to save the LSO somewhere on the users hard drive?
View 4 Replies
Jan 24, 2011
I'm trying to dynamically addChild a Sprite to an already tweened MovieClip (tweened on the Flash timeline).
Let's say ObjectA is the tweened object, I published it in my swc and linked it to my Actionscript project in Flash Builder. I make an instance of ObjectA in my class, and then try to do the following:
var objectA:ObjectA = new ObjectA();
var objectB:ObjectB = new ObjectB();
objectA.addChild(objectB);
addChild(objectA);
Now, the problem is, objectB doesn't tween along with objectA. Is there any logical solution to this?
View 1 Replies
May 28, 2009
I made a shared object whiteboard but I have a stupid problem with removing objects. This is function to clear shared object :
public function clearShape (so:SharedObject):void {
trace('clear:', this.name);
delete so.data[this.name];
[code].....
View 2 Replies
Aug 7, 2011
I was thinking if there was a way to remove the shared object pop up from popping up lol?Its because Im making a game where when the player saves the pop up comes up over a 100 times and it's really frustrating, so I was thinking if you could remove the pop up entirely by using actionscript?I've found a script that shows the popup:System.showSettings(1);So is there a way to reverse this script? like System.hideSettings(1); ?
View 1 Replies
Jun 9, 2009
I have a client who has a video that is to only play once when a user visits. So I created a shared object to create a param that the video has been played. It works perfect locally and on my live test site. However when the client posts it on his ning website in the header it doesn't work. The strange thing is that live and locally on my server you can see the shared object and it's size through the advanced tab in Flash's privacy settings.
View 7 Replies
Aug 23, 2009
I have a gane that uses shared object and keeps note of highscores and users names. So - if that is possible then I can set up teaching courses on standalone pcs can't I? ie: Databses I have in access can go in XML and the recording of position in course and results of tests can also be recorded using Shared object.Is that a good way of going about things OR should the whole thing go over to AIR and its sqlite system?
View 3 Replies
Sep 21, 2009
I have 2 ways of accessing info in my course files (SWFs): text-only and audio playback. I'd like to use shared object to store the user preference so it remembers the setting when navigating between screens. It stores info file but each file creates its own shared object.
for example:
<path to the swf>page1.swfcoursename.sol
<path to the swf>page2.swfcoursename.sol
<path to the swf>page3.swfcoursename.sol
Since it writes and reads the SOL file of its own folder, the user setting isn't remembered when switching pages.
View 3 Replies
Nov 1, 2006
I am running a chat program which displays a list of users along with their status (online or offline). I wish to remove the list and display their status in their respective biographies, which are separate swfs. The usernames and status are stored in a remote shared object as an array.My question is, what is the most efficent way of extracting an individual user's current status from the SO array?[code]
View 2 Replies
May 5, 2005
Does anyone knows why the output is "undefined"?:
mySo = SharedObject.getLocal("kookie");
myButton.onPress = function(){
mySo.data.nome = "dados de utilizador";
[code]....
View 2 Replies
Nov 21, 2006
how to rewrite the Shared Object? Is it possible?
View 7 Replies
Apr 10, 2010
Is there a way in which xml can be saved as shared object?
View 1 Replies
Oct 30, 2009
I was trying to obtain data I wrote using a sharedobject location from one application on another, but it didn't seem to work(used same machine). So I take it local stored data is only allowed to be accessed/manipulated from the application that initially wrote data to it?
Is this is for security reasons? Is there anyway around this, I want to have one application read variables from another...
View 1 Replies
Oct 13, 2010
I am building an application that uses a Shared Object that is shared (ironically) between 3 separate applications. 1 application listens for updates, and the others update the app. The problem I am having is that I need the main application to be able to detect changes to the Shared Object. Unfortunately there seems to be no events to listen for that are not for 'remote objects'. Because of this I created a timer that gets a new local instance of the shared object every X seconds.I just call the following before I read or write to the sharedObject:[code]This is causing a CPU Hiccup every 3 seconds and bogging down the system. so all this being said, does anyone know of a clean way to refresh a copy of the sharedobject without creating a brand new instance of it
View 2 Replies
Mar 31, 2010
I'm having trouble storing a dataprovider in a shared object. Writing the dataprovider object to my local shared object seems to work fine, but when I try to read this out of the shared object, it appears to have been transformed into a generic object. When I try to assign a local dataprovider variable to the dataprovider I've read out of the shared object, I get the following error:
"cannot convert Object@3721e6c9 to fl.data.DataProvider"
View 7 Replies