ActionScript 2.0 :: SharedObject Remembering Last Frame?

Dec 16, 2010

I used a code to have so when someone clicks on a button, it takes them to a frame, and next time they visit, the flash file remembers where they were last using SharedObject. The problem its buggy. Sometimes it works and sometimes other objects like text disappearHeres the code.1st frame looks for the Shared Object, then goes to either 2 or 3 and 3 by default if no Shared Object is found

Code:
var Frame:SharedObject = SharedObject.getLocal("MSCurrentFrame")
function StoreData() {

[code].......

View 2 Replies


Similar Posts:


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

Professional :: SharedObject Class - Movie Start At A  Particular Frame After The Initial Visit To It?

Jul 27, 2010

I don't have quite a good enough grasp on AS3 just yet, but I'm getting there.I have a movie that has an intro to it. It also has buttons that take them to subsequent pages.Once they go back, I'd like the intro portion of the movie to not play. In other words, I'd like it to start at a  particular frame after the initial visit to it.I think this can be done with Local Shared Objects,

View 2 Replies

ActionScript 1/2 :: Remembering The Rotation Value?

Feb 14, 2012

I have a movieclip that rotates 180 degrees in one frame of a flash game using the following code:

my_mc.onRelease=function(){
my_mc._rotation=my_mc._rotation+180;
if(my_mc._rotation==360){

[code].....

View 6 Replies

ActionScript 3.0 :: Remembering The Path With Arrays?

May 2, 2010

I don't wanna force you to reading a long, boring text, so I'll simply show you my algorithm.

1.Place an object on the stage at a random position.

2. Move it randomly around the stage.

3. When the button is clicked, make the object stop moving.

4. Make the object repeat the path it had gone so far right to the starting point.

5. Do it by using two arrays. One to keep all the x positions of the object, and the second one to keep all the y positions.

6. Then, loop through these arrays and set the object's x and y to what the arrays hold.However, my object isn't moving when I click the button.

View 5 Replies

ActionScript 2.0 :: Remembering Selected Boxes?

Nov 1, 2005

I need a flash program which can remember all the boxes that have been clicked on.

Imagine i have 5 boxes. They are all white, then I click on and it turns red. I want the program to remember that and store the data in a small file.

View 1 Replies

ActionScript 2.0 :: Remembering Last Movieclip When Drag?

Dec 6, 2006

i have like more than 5 movieclips on the stage .. and it is draggable and when you drag it and hit the target movieclip this movieclip set to _visible = false; i want to know how i can remember this movieclip so when a new movieclip is drag to the target the last movieclip that was set to _visible = false now can be true and the new movieclip is the one that would be set to false

View 3 Replies

ActionScript 2.0 :: Remembering The Last Step And Going Back?

Jun 4, 2003

Basically say I have 4 areas in my website. There are 4 buttons that correspond to the four areas.

On the main screen are outlines of boxes. Each section will have a different sized rectangle so I want the boxes to transform to the new sized box.

So say you click on number 2 and you are on section 1. The main box will change size to the shape in number 2 from number 1. Then say you click on button 4. The box will then change to the shape of the box for section 4 from the size of the previous box.

How do you get it to remember where you are in order to transform to the area where you click the button?

View 3 Replies

ActionScript 2.0 :: Tween - Remembering Last Position?

Nov 26, 2009

I've got a movieclip which I am tweening around the stage to various positions, depending on what buttons the user presses.My problem is, that currently each time the user presses a button, the movie clip shoots back to it's original position (placed on the time line), then tweens to the new position dictated by the button.

This is not what I want..I actually want the movie clip to tween from position to postition (not shoot back to it's original position each time).. I guess I need it to remember where the movie clip currently is, and then move to the new position..

here is my code for the tween..

Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
ButtonOne.onRelease = function() {

[code]....

View 5 Replies

ActionScript 2.0 :: Remembering Variables After The Application Is Closed?

Sep 7, 2009

I have attached the .fla that I am working on. I understand that it is very basic and does not use class files and so on.... but I am just applying the finishing touches so that it actually works.Inside the quiz movieclip is some code that makes people's names and scores be entered onto the leaderboard. This works perfectly fine, however when I close the SWF and take the quiz again, the people that were previously on the leaderboard have disapeared!Is there anyway to make the best people stay on the leaderboard for future uses?but the code that is in question is:From frame 65 of quiz:

Code:
Mouse.show();
finishTime = minutes+":"+seconds+":"+hundredths;

[code].....

View 1 Replies

ActionScript 2.0 :: Remembering Last State Of A Nested Movie Clip?

Nov 3, 2010

i created a functionality for minimizing and maximizing it (on the stage only)by keeping the whole application in a movie clipand then animating that movie clip on press of a buttonnow the issue is thatwhen i reverse the playback of timeline(to expand the application)it expands in its initial statebut i want it to remember the last state of my nested movie clip(10 lvls of nestin ) and expand in in that state.

View 4 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 :: Load Variables, Remembering Variables

Nov 19, 2008

I am trying to load variables from a text file, and have them available from then onwards in the movie, globally so to speak.

While I can read the variable values in a loader function which executes when the text file is loaded, I don't seem to be able to keep those variables available afterwards.

View 10 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

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

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 :: 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

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