Unable To Sync SharedObjects

Nov 18, 2009

Ive tried converting the SharedObject tutorial [url...] provided by Adobe from AS2 to AS3. When one client moves the ball, the other client should be able to see the ball moving on another swf, and vice versa.The AS2 one worked fine with my flash media server 3.5 and wampp server on.  When I tried the AS3 one, the sharedObject cannot sync, even though the connection was successful and the sharedObject "position" was created in the server.[code]...

View 9 Replies


Similar Posts:


Actionscript :: Iterate Through Each Of SharedObjects?

Aug 14, 2009

Is it possible to execute a "foreach" through each of my SharedObjects?

Something like this . . .
_so = SharedObject.getLocal("test","/");
foreach (var item:Object in _so)
{
// print key name and value
}

View 1 Replies

ActionScript 2.0 :: Log In Form With SharedObjects

Jun 22, 2009

how to make a simple log in and registration form for my game let say the user downloads the game then he craeates an acc on his local PC and then uses it to play the game that is all i want so can anone make me a sample.fla to see how this type of log in form works?

View 1 Replies

ActionScript 2.0 :: How To Use Variables With SharedObjects

May 25, 2005

[URL]. Click options, and in the resulting panel you will notice that there is a bunch of different options you can turn on/off/change. How can I use these variables with sharedObjects so that anything the user saves will get saved for the next time they come to visit my site?

View 3 Replies

ActionScript 3.0 :: Reading The Remote SharedObjects?

Aug 1, 2008

I'm having trouble reading a sharedObject. I know it's written to the server because I can open it with wordpad and read it and the proper values are there. However, mySO.data.visitDate is always null or the size is 0.

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" initialize="initApp()">
<mx:Script><![CDATA[
[Bindable]
public var welcomeMessage:String;

[code]...

View 3 Replies

Professional :: Deleteing All Local SharedObjects

Sep 15, 2010

is there any way to delete all shared object data for a domain?  We used generated names for our swfs and over time it has created enough to reach the 100kb limit for our domain, creating the user prompt.  AFAIK, I cannot access the path above catOrgan_3342.swf to clear the other dirs catOrgan_3341.swf catOrgan_3340.swf etc, nor is there a global clear, or a way of enumerating the subdirectories.
  
Application DataMacromediaFlash Player#SharedObjectsQBX3423www.fluffycats.comcatOrgan_3342.swf<m y files>

View 2 Replies

ActionScript 3 :: SharedObjects Don't Persist Across Different Swfs?

Oct 20, 2010

I am serving two different swfs that read and write to the same SharedObject variable. The SharedObject variable is a number, and each swf checks that number to make sure it isn't using the same number twice. It then stores the last number it selects. In this way both swfs should never use the same number twice, no matter which order they're loaded.

If I repeatedly load one of the swfs, the never-twice rotation works. However, when switching back and forth between swfs, sometimes the number is repeated. SharedObjects are supposed to be global to the Flash Player, so why would this happen?

View 2 Replies

ActionScript 2.0 :: Flash Cookies And SharedObjects?

May 6, 2003

So I did the tutorial about SharedObjects, and I created a login movie which works fine.

My questions are as follows: Can i use a shared object I created in one movie (call it "mycookie") in a separate movie on another page, similar to an HTML cookie? If so, what is the syntax?

I tried reusing the mycookie = SharedObject.getLocal("user_profile")and it didn't seem to work. =(

Also, I know that alternatively I can pass flash variables to the URL with the POST method, but I forget the syntax. Time is of the essence here (project due tomorrow) so I'd really like some help if somebody knows the answer..

View 2 Replies

ActionScript 2.0 :: Everything Dealing With SharedObjects In The First Frame ?

Jul 1, 2009

Everything dealing with sharedObjects in the first frame is this:

[AS]
var PlannerData:SharedObject = SharedObject.getLocal("PlannerData");
SubjectChoices = PlannerData.data.subjectChoices;
if (SubjectChoices == undefined) {[code]....

Going to the second frame from the first frame, the data is perfect. Going back to the first frame from the second, I'll trace the data many times throughout the code without an onEnterFrame, and it'll tell me that the Array is good...But when I trace the onEnterFrame, it shows the Array is [undefined, undefined, ...] like..undefined 17 times.

View 1 Replies

ActionScript 3.0 :: Store The Items In SharedObjects?

Oct 9, 2009

I am trying to make a little picture store for my website.I want to store the items in sharedObjects, so the next time people come to my site the selected pictures are there for them.I learned a little bit of sharedObjects and make it work for me with Strings but I can't make it work with and Array.

View 3 Replies

ActionScript 3.0 :: Can SharedObjects Store Custom Classes?

Jun 13, 2009

I have a an array of a custom class that I'm trying to store in a SharedObject.Storing is working fine, but when I recall the SO next compile it only returns an array of generic Objects instead of my custom class. This only happens with custom classes.Code excerpt below, this may be way too cut out, but it seems it's what I've narrowed the problem down too.[code]

View 2 Replies

ActionScript 3.0 :: Sharing SharedObjects Between Multiple .swfs?

Jun 2, 2011

I have a project that I think may be more manageable if I break it up into multiple small .swf files rather than having a gargantuan mega .swf.Now, I know that I could use a root .swf and load data from the others, but I think that it'll be a lot easier to debug and update if I'm using separate self-contained .swfs, so this is the direction I'm currently investigating.

However, the .swfs won't really work unless I can have user-data persist between them, so I'm wondering if I can load a SharedObject saved by another .swf file? Are there any important caveats that I need to be aware of?In particular, can anyone give me sample code that would allow me to do this with both an online and offline copy of the files; i.e - if I run the same set of .swfs from haravikk.com, and locally, I want them to still be able to share data with one-another. In this case though I won't need to worry about sharing data between a local copy and [url]..., just so long as the files themselves can pass data within whatever domain they're loaded it should be fine.

View 4 Replies

ActionScript 2.0 :: Use SharedObjects In Detecting FLV Movie In Flash?

Jan 27, 2011

There are 3 flv movie in my flash page. Is there a way to indicate in my flash page if the flv movie is already viewed on user's browser? I need to put a mark on the movie if one of them is already viewed? Am I to use Shared Object?

View 1 Replies

ActionScript 3.0 :: Using SharedObjects To Save Resume Data?

Sep 11, 2011

So, I'm creating a quiz, and I'm using shared objects to save their resume data. So far so good. MOST of the various things I put into myso.data work fine. But oddly, two bits of information, specifically a String and an Array of Strings come out as [object][Object] when they are reloaded later. Now, at first I thought that maybe they just weren't getting written correctly, so I thought to trace them out before and after I put them in the SO.

When I do trace(myso.data.sectionName) or even trace(myso.data.sectionNamesArray) the first time (i.e. immediately after they get written, but before closing the window) everything works as expected. But if I trace those same things out upon the reopening of the swf, those things become [object][Object] for the String, and an array of [object][Object]s for the Array. So I thought maybe it was Strings in general, but other pieces of information, also Strings or Arrays of Strings trace out fine before and after. It's just these two pieces.

View 2 Replies

ActionScript 3 :: Not Receiving OnSync Delete Events For SharedObjects In SWF

Feb 27, 2011

I have an application that uses Remote SharedObjects and I am seeing some strange behaviour. I am writing an ActionScript application in AS3 using Flash Builder and connecting to Wowza Media Server 2. My application is working just fine but I am now trying to write unit tests for it using FlexUnit. My unit tests involve creating multiple connections to the same remote SharedObject and making sure that I am getting updates correctly. Everything seems to be working well except that I am not getting any of the SyncEvent.SYNC events with an info.code of "delete".

When I run my applications independently in separate tabs or even separate swfs embedded in the same page it works fine. For some reason though it does not work when inside a unit test. I have also found that if I load the swfs using a Loader inside the same SWF then I get the same behaviour. It seems to me to be something strange about the way multiples of the same SharedObject behave within the same SWF. I have had to work around other strange behaviour in the unit tests such as oldValues not being set properly in the onSync events too.

View 1 Replies

ActionScript 2.0 :: Creating Class That Switch SharedObjects In Game?

Nov 27, 2010

I have been working on a game (Pokemon haha) since around the beginning of June. I just started experimenting with Classes today and I've run into some big problems (as expected). I have many SharedObjects in my game and I started the game when I barely understood any code. But I've worked on it a lot and learned so much. Right now, I'm trying to create Classes so that I can save time and be more efficient with my code. But... With my first major attempt, I failed.

This is what I want to do:
Create a Class that will switch a bunch of SharedObjects in my game. I don't need the switching part (because that worked before when the code wasn't in a class), just the creating the class part that involves SharedObjects.

This is basically what I have:
ActionScript Code:
import flash.net.SharedObject;
class GrassLife {
so = SharedObject.getLocal("so_file");
function Life() {
so.data.variable7 = so.data.variable2;
so.data.variable2 = so.data.variable1;
so.data.variable1 = so.data.variable7;
//The variables switch at this part
}}

View 1 Replies

ActionScript 2.0 :: Are SharedObjects Flushed Or Deleted When The Browser Is Closed

Oct 26, 2008

I've been working on something of late that will display text the first time the user views it, and the second time, say something different. I've accomplished this using haredObjects. However, it seems that the information (the shared object) isn't removed when the user leaves of closes the browser. I there a workaround for this?

View 2 Replies

Actionscript 3 :: Flex Using Sharedobjects To Store Information On Server - Crash

Aug 26, 2011

I am working on a flex project using sharedobjects to store information on my server. I am not 100% sure how to do this, so I was looking up tutorials and came across this bit of code:

[Code]...

But when it gets to the 3rd line, it crashes. I don't know how to use the debugger for flex sadly enough

View 1 Replies

Professional :: Warning Unable To Load SWC And Unable To Test Movie Afterwards (CS5.5 Also In CS5)

Oct 13, 2011

I work with Flash Pro allmost 11 hours per day and every while i get a error  which messes up everything. Approximetly i get this after about 2-3 hours withevery project.After i get this error there is no chance to test movies afterwards.I see a fast flash of the loader window but it dissapears so fast i cant even really see if it is loader.

View 1 Replies

Media Server :: Use SharedObjects To Manage Some State Between My Server And Clients?

Mar 29, 2010

I'm trying to use SharedObjects to manage some state between my server and clients, and am having a lot of trouble understanding the documentation and can't find any examples that work. Here is what I'm trying to do:

1. Create a shared object on my server in an application instance running on my FMS.

2. Allow clients to receive updates to the state of this shared objects.

1. Create a shared object on my server instance.

2. Set up the proper calbacks so that a client can receive updates to this object.

I suspect that the number of lines involved to accomplis this is < 10, but the examples I've found in the documentation produce compilation errors.

View 7 Replies

How To Sync Swf And External Flv

Jan 27, 2010

I'm a total novice and I think I can't find an answer to this question because it is so basic. There are all kinds of tutorials on FLVPlayback, streaming video from a URL, etc.,but nothing I can find on how to make it play nice with the rest of the flash animation in my .swf. I assume this is a matter of simple actionscript (AS3), but my ignorance is profound.

So . . . I've got a flash animation that leads into a gotoAndPlay button, which references the frame where my video starts. The video, streaming from my url, plays fine, but if it takes a moment to buffer, the main timeline in my .swf just continues on through the frames I've created for the length of the video. Since my intention is to have the video finish and loop back to the intro. animation, ending with the play button displaying again, what happens is that it loops before the video is done playing, leaving the audio still streaming but the viewer staring at the play button. In other words, if there is no lag time for buffering, the number of frames before it loops is enough for the whole video. If it lags for buffering, it cuts off part of my video, prematurely looping to the intro.

View 3 Replies

IDE :: Sound Going Out Of Sync?

Jul 13, 2009

I have an animation and sound running along the timeline. And step forward and step back buttons. The sound is set to stream to keep the animation and sound in sync with each other. This works fine when played from the start all the way to the end. But if the step forward or step back button is pressed, the animation will fall around 5-10 fames out of sync with the sound. And will remain like this until the end.

How can this be fixed so the sound and aniamtion won't fall out of sync.

View 1 Replies

Audio And Video Out Of Sync

Dec 7, 2009

When I use the webcam and microsoft to record a video, my audio and video are out of sync.This does not happens when I use the built-in Microphone on the webcam.

View 2 Replies

Professional :: IK MovieClips And Lip Sync?

Oct 25, 2010

I've got my head around bones now, which isn't too bad once you get used to it.  I have ten minutes of dialog which I have created mouth movements for in Lipsync MX, these are imported as a swf and then placed within my character's Head MovieClip.
 
Problem is, IK insists on using MovieClips instead of graphics.  This means that the lip sync doesn't stay in touch with the main timeline - it only stays in sync until the main timeline is paused or jumps to a different point.
 
Is there an established method which allows you to embed a lip sync symbol within part of an armature and ensure it keeps pace with the main timeline, or am I going to have to code it somehow?

View 3 Replies

Professional :: Sound Out Of Sync (CS4)?

Mar 17, 2011

I have made an animation. I have a layer where I put sounds that execute on certain frames. No script are involved. When I play the movie inside Flash, everything looks good and sounds are syncing. When I make a preview of the movie, some of the sounds are out of sync. I have no idea why, it's the first time I get this kind of problem. All sounds are set to event, but I have tried with stream as well and get the same result.

View 1 Replies

ActionScript 3.0 :: Playing Flv And Mp3 In Sync?

Jul 8, 2010

improve the synchronized playback of NetStream video (flv) with a seperate Sound object (mp3)? Basically I am making a music video mashup tool and this is just a small part of it.I need to have one single mp3 playing continuously (the main song) and a NetStream object to play various videos at intervals set by a timer. This all works fine, except that the video gets out of sync after a while.This could be a delay caused by the NetStream.seek method that starts playback of the video a bit too late but I'm not sure.My current code...

Code:
package
{
import flash.display.MovieClip;
import flash.events.Event;[code].........

View 5 Replies

Lip Sync To Sound In Flash Movie

Jan 29, 2010

I have a sound in my flash movie and I'm trying to lip sync to it but for some reason when I try to move that red thing across the frames to play the sound across it so I can go to each syllable so I can work the lips to it. But when I run the red thing across the frames there is no sound going through the speakers. When I ctrl-enter and play the swf I hear the sound what should I do?

View 2 Replies

CS3 Two Banners Sync To Start At Same Time

Jun 29, 2011

I have been trying to synch two different banners on a HTML page.

I have checked this link :: [URL]

But I am not sure if the localconnection is needed for what I am trying to achieve.

View 1 Replies

ActionScript 1/2 :: Objects In Slideshow Out Of Sync?

Apr 15, 2009

I noticed after a few repetitions the images that disappear on one side and reappear on the other start to get out of sync with each other, eventually overlapping. I'm figuring that has something to do with the minute timing differences between the lines of code being read, and was wondering if there is some way to get the images to stop losing their relative positions to one another?

[Code]...

View 2 Replies

Sync A Netstream Flv To The Main Timeline?

Oct 13, 2009

Is there a way to sync a netstream flv to the main timeline? I want the animation on layer 1 to play in sync with the netstream object on layer 2, that's why. netstream.time only provides seconds so I would lose a lot of frames of the animation. And adding a cue point for every frame would be a bit too much.

View 1 Replies







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