ActionScript 3.0 :: Error #2134: Cannot Create SharedObject
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
Similar Posts:
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
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
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
Apr 22, 2010
I cant flush the shared object in my project. What can I do for that problem?
View 4 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
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
Aug 28, 2011
why I'm getting "error 1056:Error #1056: Cannot create property login on lash.net.SharedObject." when i try running this code (client-side):Username is a input text box.Password is a input text box.debug is a text area.the enlarged text is the code that is failing.
Code:
import flash.net.NetConnection;
import flash.net.SharedObject;
[code]....
View 1 Replies
Jan 28, 2009
[Code]...
I get "Error #1056: Cannot create property _ld0 on tsl." error.
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
Nov 7, 2009
I'm getting this error but not sure how to change it from a string. I can 'trace("myfilling: " + myfilling);' and this outputs the instance I want to change the X and Y position of fine but when I try to do myfilling.x = leftBaseX, it throws up the error:
ReferenceError: Error #1056: Cannot create property x on String.
function generateRandomSandwhich() {
while (numFillings < maxFillings) {
var randNum:uint = randomNumber(0, (fillings.length - 1));
[Code].....
View 2 Replies
Oct 9, 2011
So I have a button on which I create an instance of a symbol, I'd like to have a listener for the new symbol but I get a reference error because it compiles the listener before I get to create the instance. What do I do?
[Code]...
View 1 Replies
Dec 19, 2010
Message is 1024: Overriding a function that is not marked for override.
what does x and y represent for document class ? should I avoid to use x and y ?
View 2 Replies
Mar 6, 2011
I want to create custom error and notify messages, but i don't know which element should I use. In the message there should be icon and text I tried to use Label but don't know how to build custom label the one I need. Is there a resource on how to create a custom label or tip how to do it?
View 1 Replies
Sep 18, 2008
I'm creating a website and I have several flash files. I have the main flash file and then sub pages are loaded into the main flash files as external swfs.To make things clear, I have got site.swf (the main file) and news.swf (a sub section).Now in the news file, I am attaching a movieclip item from the Library. I have set the class name of the Movieclip and the base class for the movie I want to attach. Now in this movieclip I am attaching, I have got various other movieclips inside it. Everything works fine inside the news file.When I load the news file inside the main website (site.swf), it is giving me an error:
Code:
ReferenceError: Error #1056: Cannot create property test2 on com.esprit.ui.content.company.news.NewsMC.
[code]......
View 9 Replies
Mar 6, 2011
I try to load swf files to keep them and load in different frames, so i created a SWFManager Class(Singleton) to have access to all keyframes, because I want to switch between swf files like "views"(like ViewStack in Flex) I have 8 SWF files evriting is loading fine except the FLVPlayback 2.5 componet, when swf file is loaded, controls for play, pause and seek bar are gone and I get this error message.
ReferenceError: Error #1056: Cannot create property dvrFixedDuration on fl.video.FLVPlayback.
at menuIntro_en_fla::introContent_1/__setProp_myVideo_introContent_videoLayer_0()
at menuIntro_en_fla::introContent_1()
[code]....
View 2 Replies
Nov 7, 2009
I am new to As3 and I'm getting this error but not sure how to change it from a string. I can 'trace("myfilling: " + myfilling);' and this outputs the instance I want to change the X and Y position of fine but when I try to do myfilling.x = leftBaseX, it throws up the error:ReferenceError: Error #1056: Cannot create property x on String.
function generateRandomSandwhich() {
while (numFillings < maxFillings) {
var randNum:uint = randomNumber(0, (fillings.length - 1));
[code]....
View 5 Replies
Mar 9, 2010
I create a shape, and I want to move it with a ENTER_FRAME event, like this:
public function makeShape(){
var myShape=new Shape();
addChild(myShape);
[code]....
But what if I want to pass a variable with my shape to the event function. Say my shape has a no or a name or anything like a data; so I rewrite the code;
public function makeShape(){
var myShape=new Shape();
myShape.thisShapesNo=50;
[code]....
See the extra workload.. And the other way (and I've never tried) is to write your own event function where you can pass variables.. I guess something like this:
myShape.addEventListener(Event.ENTER_FRAME, moveMyShape, 50 );
So it seems like this is another extra workload for the code.And so here is my question: How can I add a you-name-it property to any thing I've created in AS3?
View 1 Replies
Jan 3, 2009
I am trying to create a reusable class. documentation says to use as package name the directory structure.
in directory C:JJGFlashSourceRF
i have a class in a package called "package
C.JJG.FlashSource.RF {"
in my test flash file I have "import C.JJG.FlashSource.RF;"
I also tried import JJG.FlashSource.RF;
View 8 Replies
Oct 29, 2009
I am trying to tween some text and keep getting the error.
ReferenceError: Error #1056: Cannot create property alpha on builtin.as$0.MethodClosure.[code].....
View 4 Replies
Mar 14, 2010
I fixed the last error message, but I still cant get the xml to load, I am getting this error message now. I am trying to load the title of a video reel onto a button and load a corresponding move, 1 of 4...getting this error now.
ReferenceError: Error #1056: Cannot create property text on String.
at main2_fla::MainTimeline/setVids()
at main2_fla::MainTimeline/xmlLoaded()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
This is the correspoding codeits referring to:
function setVids():void {
for(var i = 0; i < 3; i++) {
var name_txt:String = vidList_XML.vid[i + count].file;
var reelTitle = this["vid" + (i + 1)].name;
reelTitle.text = name_txt;
}}
View 3 Replies
Sep 5, 2010
I have an AS3 script that calls an XML but when compiling I get this error
ReferenceError: Error #1056: Cannot create property 0 on Number. at mod::ML/parseData() at mng::DM/onXMLLoaded()
Here are some snippets
[Code]...
View 7 Replies
Nov 18, 2011
Im stuck with actionscript error, the error i got:- TypeError: Error #1007:Tried to create an instance in a no constructor. at Away3dScene/initObjects()
[Code]...
View 5 Replies
Aug 7, 2010
I am having the: ReferenceError: Error #1056: Cannot create property text on String.at Function/<anonymous>()and I don't know what i did wrong I am a beginner to actionscript so it might be pretty obvious.
[Code]...
View 8 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