ActionScript 2.0 :: SharedObject Not Working And Size Is 0?

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


Similar Posts:


Flash :: Set SharedObject Maximum Size?

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

Actionscript 3.0 :: Maximum Size Of SharedObject File?

Aug 3, 2011

what is the maximum size of SharedObject file?

View 2 Replies

ActionScript 3.0 :: Fetch The Maximum Size That The SharedObject Class Can Utilize?

Jul 28, 2009

how to fetch the maximum size that the SharedObject class can utilize?

Something like

SharedObject.getLimit()?

I am aware, that by default, its 100kb. In the event that the user has modified their settings, and increased the SharedObject quota, then I have no idea of how to fetch the info.Is there a way to find out in AS3? Or should I just stick to the possibility that 99% of users will NOT change their settings.

View 1 Replies

AS2 :: SharedObject Code Not Working?

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

Media Server :: OnSync For SharedObject Isn't Working?

Aug 7, 2009

I am searching for the syntax to call an OnSync event on the server-side. I tried this one but there is neither a compiling error nor anything that is traced.
  
application.onAppStart = function(){
trace("onAppstart");
userList_so = SharedObject.get("userList", false);

[Code].....

View 2 Replies

Media Server :: SharedObject.NoAccess Error When Trying To SharedObject.getRemote?

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

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

ActionScript 3.0 :: Font Size Not Working?

Jan 2, 2012

I don't know whats going on but my code is not changing the size of my text.I have a toggle button that works great on everything exept the text size.I have a text dynamic text field called myText and here is the code I'm using.

function maisLegendaF(e:MouseEvent):void{
var formatT:TextFormat = new TextFormat();
if(!e.currentTarget.toggle){[code].....

View 4 Replies

Professional :: Decimals In Font Size Not Working (CS4)?

Nov 23, 2011

I'm working on some banners in various sizes and I noticed that I can only enter a font size in full pixels but not in decimals. I can type them in but noting happens to the size.

View 1 Replies

ActionScript 3 :: Change Working Area Size?

Nov 29, 2010

How to change working area size? I've the following code but it doesn't work

stage.stageWidth = 200;

stage.stageHeight = 100;

View 2 Replies

ActionScript 3.0 :: Working With High Size Image File

Jun 29, 2009

I am working with high image file . I have to work for iage more than 3000x6000 dimensional. Is it possible in AS3. In some blog i came to know that AS2 could not support more than 2880x2880. Please let me know if you have any experience about working in high dimensional image .

View 1 Replies

ActionScript 2.0 :: Re-size Function On Website Im Working On For BG To Scale?

Feb 5, 2009

I have a re-size function on this website im working on for my BG to scale, my content to stay centered, and my nav bar to always stay top right. I need some sort of if statement saying if my navagation is 200px from the left it needs to stop moving. I hope that makes since.

[Code]...

View 2 Replies

ActionScript 2.0 :: Descrease The Size Of A File As Compared To Working With The Timeline?

Nov 20, 2005

Does using actionscript descrease the size of a file as compared to working with the timeline? For example, would using AS to cause a graphic to fade away be more effecient (as far as file size and performance) than using a symbol effect or even changing the alpha frame by frame? I've been using flash for a year now. I've never learned AS because I thought I could do everything from the timeline. But my files always seem so large. And most animation effects seem choppy in comparison with what I see online. Is AS the key to changing that?

View 1 Replies

ActionScript 3.0 :: Auto-size Not Working On Dynamically Added Textfield?

Jan 20, 2011

I have a masked textbox which is also dynamically added to the stage from the library, and I'd like it to resize according to the amount of text loaded into it.this isn't working:

Code:

contentBox.container_mc.contentTxt_mc.autoSize = TextFieldAutoSize.LEFT;

Unfortunately I'm getting error:1120 but I've checked and rechecked every instance name so this error doesn't make much sense...

View 4 Replies

ActionScript 3.0 :: Sharedobject To Remember For The Day?

Feb 16, 2009

i need to stop a flv from playing again until the next day ( needs to be AS3).

View 2 Replies

ActionScript 3.0 :: SharedObject And HitTestObject?

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

Flash - Use SharedObject From An External Swf?

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

ActionScript 3.0 :: SharedObject - 'Name' Parameter

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

Actionscript 3.0 :: SharedObject Over Different Domains

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

ActionScript 2.0 :: XML Menu With SharedObject?

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

ActionScript 2.0 :: SharedObject And Mc Color?

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

ActionScript 2.0 :: SharedObject Not Saving?

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

ActionScript 2.0 :: Using The Same SharedObject From Different Sites

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

ActionScript 2.0 :: XML Menu With SharedObject

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

ActionScript 2.0 :: CS3 SharedObject Just Wont Read

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

ActionScript 3.0 :: Adding Item To SharedObject?

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

ActionScript 3.0 :: Looping Entry Into SharedObject?

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

Actionscript 2.0 :: Referencing Sharedobject From Another Movie?

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

[AS2] :: Using SharedObject For Achievements System In Games

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







Copyrights 2005-15 www.BigResource.com, All rights reserved