ActionScript 3.0 :: SharedObject Error: Error #2134: Cannot Create SharedObject?
May 9, 2011
Gives me this error:
Error: Error #2134: Cannot create SharedObject.
at flash.net::SharedObject$/getLocal()
at as3_shared_objects/showVar()
[code]....
View 2 Replies
Similar Posts:
Oct 7, 2011
I'm making a game. The game will have a save file. There are no compiler errors but when I run it, it throws the title error. I've isoalted the error to be from this line:
ActionScript Code:
var savegame:SharedObject = SharedObject.getLocal("New Atlantis: Project Phoenix");
When I export the SWF from Flash CS5, all I get is dots and this error message. Why can't I create a SharedObject on my own computer? I've tried on two different machines and ran it on Flash Pro, Flash Player and IE9. Nothing works.
View 3 Replies
Feb 18, 2012
I've installed developer version of Flash Media Server 4.5 and trying to get remote object, but no matter how I call my object all i get is this error .I've rad configuration guide and it told me that I should set StorageDir for shared objects, enable RPC (<RPC enabled="true">) and allow shared object (<Allow>users</Allow> in <RPC> - <SharedObject> tags)
View 1 Replies
Apr 8, 2009
On this website [URL] you will find a big flash applet at the top of the page. It has a sharedobject built in. Every time the applet goes to a new slide/scene (which it automatically does after x seconds), it updates the SharedObject so that once you refresh the page you end up at the same slide/scene again. Now the thing is that it does this only correctly in Internet Explorer.
Code:
var so=SharedObject.getLocal("pagehit");
if(so.data.pagehit != undefined){
/* Er bestaat al een cookie */
if(so.data.pagehit == "Scene 1"){
gotoAndPlay("Scene 1", 1);
};
[Code] .....
This is the code of Scene 1. Where you get forwarded to another scene if the cookie exist.
Code:
so.clear();
var so=SharedObject.getLocal("pagehit");
so.data.pagehit="Scene 2";
so.flush();
This is the code of the other scenes, ofcourse with a different scene number for each. It doesn't depend on the browser but on flash alone.
View 3 Replies
Apr 22, 2010
I cant flush the shared object in my project. What can I do for that problem?
View 4 Replies
Mar 5, 2012
The player buys engines these are added to an array called _model.purchasedEngines. During save i'm trying:
[Code]...
View 14 Replies
Mar 10, 2010
I have a question regarding the use of variable identifiers when using SharedObjects, I will explain. I want to have the identifiers of a SharedObject as variable names, so: I create a variable: var destinationLoc = ["destination"+mySharedObject.data.numRuns]; I write to SharedObject: mySharedObject.data.destinationLoc=destination;
Unfortunately the above script does not see the variable, destinationLoc as a variable and instead views destinationLoc as a "hard-coded" identifier Is there a way to create a variable sharedObject identifier?
View 2 Replies
Oct 8, 2010
I'm trying to create a persistent MP3 player using SharedObject. Initially I tried using frames and while it worked, frames suck so I continued looking into it.
I came to find out about Flash's SharedObject. It seems easy enough but I can't nail down the logic correctly. I've attached a sample .fla for anyone interested to look at. I need the song progress to be stored and retrieved when necessary to keep the same song playing whenever links are clicked within the HTML page.
View 3 Replies
Feb 8, 2011
I'm trying to create a FMS application that is broadcasting some data across connected clients using SharedObject. I want only the Application to be granted to set SharedObject properties.
[Code]...
View 4 Replies
Oct 7, 2010
hey im trying to make a mp3 player and when u click on a play btn it plays that song. but i keep getting this output error "Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
at slide_fla::MainTimeline/frame1()"
this is my code
ActionScript Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
var slidebind:Rectangle = new Rectangle(3, 3, 159, 0);
var loadsnd:URLRequest = new URLRequest ("s1.mp3");
var thissnd:Sound = new Sound();
[Code]...
View 1 Replies
Feb 16, 2009
i need to stop a flv from playing again until the next day ( needs to be AS3).
View 2 Replies
May 12, 2011
Im trying to get Flash to rember if the logo_mc has been hitTested with the holder, and if it has when the movie is played again it appears in the box and not the original spot
var mySO:SharedObject = SharedObject.getLocal("ObjectPlace");
var logo_mc:Sticker = new Sticker ;
addChild(logo_mc);
[code]....
View 1 Replies
Nov 27, 2009
I have searched all of the engines to find out why my SharedObject code is not working. It works when I publish from flash but not when live? I have this code in the first frame and the movie starts on the second. I only want the user to have to view the swf every other time they land on the page containing the movie. I am using AS2.
var replay = SharedObject.getLocal("save");
if (replay.data.name == undefined){
gotoAndPlay(2);
[code]....
View 1 Replies
Feb 4, 2011
I have a slideshow that everytime you press a button show a new slide. Every slide is an external swf's that is being loaded in to the main swf. Inside every external swf there is a button that redirects you to another web page.What i would like to do is use SharedObject (or something like it) to remember wich external swf that was last shown when the user pressed the button redirecting them to an other page.How do i set the SharedObject in the external swf and then read it from the main swf?
View 1 Replies
Jan 25, 2011
According to the AS3 API the 'name' parameter in the 'getlocal' method is actually the name of the object. I have a bit of diffculty understanding this. Have alook at the following code:
[Code]...
If I were to access the attributes or methods of the shared object, can I use the 'name' instead of the variable, since the name is the 'name of the shared object'?
If the following code were used:
[Code]...
Why am I getting this error, if 'UserName' is the name of the shared object, than why can't I use it to refer to it's methods and other attributes? What is the meaning of it being a 'name' than?
View 1 Replies
Jun 22, 2009
I am working on a project that uses SharedObject and I have a question. I've made a button that downloads a flash screensaver and at the same time also creates a SharedObject which stores a specific id for each screensaver being downloaded. When later the screensaver is installed and run, it should get the SharedObject and read the id from it. When tested locally it works perfect since both the buttons´ and the screensavers´Sharedobject are stored in the same localPath. But when the button is online and the screensaver is local the SharedObject paths don't match.
Is there a way to solve this and make the local screensaver swf read the SharedObject from the same path as the online download button has stored it's SharedObject in?
This is the relevant code in both my swfs:
var _mySo:SharedObject = SharedObject.getLocal("name", "/");
If this won't work, does anybody have another solution to my remote to local screensaver thingy??
View 1 Replies
Jan 12, 2005
I have a normal XML menu, when I click in an item open the sub-item, my problem is the following one, when I click in an item DVD he goes to open an sub-item, and later I click en adventure, when I click in adventure I go for the next page, my problem is this, in this new page that I will be, my menu come back to normal the sub-item adventure is not selected in the screen, and I need that be selected, I already I tried to read the SharedObject in the F1, already I tried to find some tutorial to try to understand, but nothing,
View 2 Replies
May 27, 2005
with the code below, I can change the colour of the movie clip.I need the colour of that movie clip to stay the same also afternext time visiting the page. I think it's made by the action SharedObject.
function changeColor(code, obj) {
var ColorSet = new Color(obj);
ColorSet.setRGB(parseInt(code, 16));
[code]....
View 10 Replies
Jan 21, 2007
got my code working, and all information i enter in to my sharedObjects is working correctly as it should but isn't saving so when I close and then re-open the flash file the data isn't there? Admittedly I'm new to sharedObjects I'm using the [.data.] when entering info and then [.flush()] at the end of the function - is there anything I've missed?
View 5 Replies
Dec 21, 2007
this is just a simple question. Is it possible to set a sharedObject in a swf (say from www.A.com) , and then read that sharedObject from www.B.com , or even through the desktop (if the swf is playing directly on the desktop) ?
View 3 Replies
Jan 12, 2005
I have a normal XML menu, when I click in an item open the sub-item, my problem is the following one, when I click in an item DVD he goes to open an sub-item, and later I click en adventure, when I click in adventure I go for the next page, my problem is this, in this new page that I will be, my menu come back to normal the sub-item adventure is not selected in the screen, and I need that be selected, I already I tried to read the SharedObject in the F1, already I tried to find some tutorial to try to understand, but nothing, I need some help, this menu is for work.I am put the files.
View 2 Replies
Feb 22, 2009
I didn't think using sharedObject was complicated, but no matter what, my variables aren't saving. I also checked the size attribute and it returns 0 (zero) even though I have my Flash Player settings set to 1 mb.
Code:
var localSaved:SharedObject = SharedObject.getLocal("widget");
if(localSaved.data.firstRun == undefined){
firstRun = true;
[Code]...
PS: I'm testing this in Flash CS3, and in FireFox 3 with same results.
View 3 Replies
May 12, 2009
Im trying to setup a scoreboard type deal.I'm using SharedObjects.(CS3)I can make it WRITE to the .sol without any problems but I cant seem to make it READ from the .sol to re-display the data once the user opens the swf again.[code]
View 4 Replies
Jul 3, 2009
I am actually trying to add user's input name into a sharedobject.
for example: This is code from frame44 and the movie loops back to frame 1 after students input other minor data.
var newstudent:String = NewFishInput.text;
var so:SharedObject = SharedObject.getLocal("studentlist");
so.data.name = newstudent;
so.flush();
The code that i have is there. However, i can't figure out how do i add additional instance of newstudent after the movie loops back to frame 1 and play til frame 44, prompting another student to add in his name....
View 4 Replies
Jul 4, 2009
This is my flow chart for the project:
Frame 1;
1. User enter in a textinput named "studentname"
2. username is stored in a sharedobject (studentlist)
3. Show data of what previous students entered by evoking studentlist
Frame 2:
3. Current user enter other details, then movie loops back to Frame 1..
How do i store the a list of all students who entered their names in studentlist?
View 2 Replies
Aug 18, 2009
I created a movie, which is some form of a a code generator. In that movie i save a a generated code using sharedobject.
(code in code generator movie)
var myaccess:SharedObject = SharedObject.getLocal("Lesson1");
myaccess.data.mycode = pass.text;
myaccess.flush();
Here is my problem, i want to use this created sharedobject on another, separate movie clip, is that possible?Or are sharedobjects just work on their original movie clips?
(code in separate movie)
var myaccess2:SharedObject = SharedObject.getLocal("Lesson1"); // declared a variable for holding the data from
sharedobject to see if it will load the data
txt.text = myaccess2.data.mycode // Load failed, txt.text displays undefined
View 3 Replies
Oct 23, 2010
i tried to learn about SharedObjects from here: [URL] ...=00001504.html but i dont really get it In a code like this:
var so:SharedObject = SharedObject.getLocal("userHighScore");
so.data.highScore = new Number();
so.flush();
which variable is actually flushed, the userHighScore or highScore? and how to use the shared objects on boolean variables?
View 1 Replies
Aug 29, 2009
I'm working with AS3 with timeline code. I would like to save date and time a user took a quiz. This information will help check when a user took a quiz. I can see the date and time as I want, but it isn't saved. SharedObject is not saving date and time. Here is my code. How can I do this?
var mySharedObject:SharedObject = SharedObject.getLocal("sampleCode", "/");
var today_date:Date = new Date();var thismonth:uint = today_date.getMonth();var thishour:uint = today_date.getHours();var thisminute:uint =
[Code].....
View 1 Replies
Mar 8, 2011
Is there a way to set a (large) maximum size for SharedObject on my domain so that I can ask the user to allocate a size greater than 100k one time and not need to ask again, even if data is added?
View 1 Replies
Mar 21, 2011
in my code i get SharedObject instance:
_so=SharedObject.getRemote("streamSO",_soConnection.uri,true);
is it possible to enumerate everything under _so.data without prior knowledge of property names?
View 1 Replies