ActionScript 3.0 :: SharedObject Is Not Written On The Server

Feb 20, 2009

I've been designing a SharedObject-based Cookie system for a while, everything works fine in my Flash authoring tool and my localhost (I used a dummy domain) But after I committed the swf file to server, the SharedObject stopped to working. Here is the code: The only difference is that, on the server, the SWF stored on another domain. I'm not sure whether this caused the issue.

[Code]....

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

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 - Consuming Data?

Aug 21, 2009

Is it possible to set just one property of a remote SharedObject to clear itself?  I understand that calling "clear" on an RSO will cause ALL properties to fire the "clear" event and clear out; however, what I want to do is clear out the data in a specific property so that the "clear" event/message is fired (and not the "change" one since I already have some actions in that).
 
I suppose I could just set the property to an empty string and put guard code inside my handling of the "change" event/message, but, I'd rather not do that.

View 7 Replies

Media Server :: What Is SharedObject.getRemote And Its Usage

Mar 10, 2011

what is SharedObject.getRemote() and its usage?if it work just like a SharedObject.getLocal() , saved data will be in the path called 'C:Documents and SettingsusernameApplication DataMacromediaFlash Player#SharedObjects'if i using 'SharedObject.getRemote() ' means, where the data will stored? can any one explain or tell me the stored path.

View 1 Replies

Media Server :: FMS Remote SharedObject Not Always Updated?

Apr 8, 2011

I'm somewhat new to FMS. We're creating a chat application and using s remote SharedObject to keep everyone in sync about who is in the room. But despite the fact that I use the following:

_sharedObject.setProperty("groupList", groupList);_sharedObject.setDirty("groupList"); to force the shared object to update the list of who's in the room, for some reason it does not always update correctly when someone enters the room and adds themselves to the shared object. The problem seems to be that the SyncEvent.SYNC event does not always get sent all the time.

More troubling it that if the user closes the browser window or navigates to another page, NetStatusEvent NetGroup.Neighbor.Disconnect and NetGroup.MulticastStream.UnpublishNotify are not reliable to use to remove user's from the list. My assumption is that remote shared objects are just not that reliable in some cases. Should I use server side scripts to keep track of users and what groups they are in?

View 9 Replies

Media Server :: Calculate Bandwidth For FMS SharedObject?

Aug 18, 2011

Need to know how to calculate bandwidth for fms shared object used in a text chat application..

View 1 Replies

Media Server :: Flush SharedObject In A Separate Thread?

Nov 23, 2011

How to flush SharedObject in a separate thread? FMS is blocking the program during write, and to save more than 2,000SharedObject takes about 15 seconds.

View 2 Replies

Media Server :: SharedObject - SetProperty/getProperty No Change?

Feb 15, 2012

I can't seem to get setProperty to affect any change detectable by getProperty, or any other means.
 
* Can you please help me find and fix the problems in my code? Also, it would be great if you could provide a snippet of code to both read/write to the SO from the Flash swf client, and changes required in the FMS server-side code to receive events onSync from another FMS server (also sending to another FMS server.. I know it should be very similar in theory).

[Code]...

View 2 Replies

Media Server :: Cannot View SharedObject Data In Admin Console

Mar 2, 2010

I'm attempting to view Shared Object data in my FMS Administration Console, but I consistently get the error:Object encoding error; terminating connection.I'm using Flex 3 with FMS 3.5, I'm positive that everything is using AMF3. The Shared Objects do seem to work. I can connect to the shared object through another instance of the app and pull saved data but they are not inspectable in the administration console. Also,very often when a new instance connects to the server I get a RangeError and all of my Flash Player instances crash.

View 9 Replies

ActionScript 2.0 :: Written Text Will Save On A Text Format File On Server

Nov 7, 2010

I need application with input text box and a button, user is able to write into the input text box, and when he press button, the written text will save on a text format file on server (like a notepad with .txt extension) and if this file exist before new information will over write!

View 2 Replies

Media Server :: Create A FMS Application That Is Broadcasting Some Data Across Connected Clients Using SharedObject

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

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

C# :: AMF Through A BinarySocket Written In .net

Apr 30, 2010

I have a windows service behaving as a Binary Socket sending data to flex applications. Once I try to send strings or int's or any other native data-type, everything is working great.

I even succeeded in sending JSon from the server to the client parsing it on Flex.

I want to send AMF objects to the client.

Meaning, I have a class called User, I want to fill it with data and send it to the client, there I want it to be mapped to an object on the client.

View 2 Replies

How To Know That A Swf Was Written Using Flash Or Flex

Oct 19, 2009

How can you know that a swf was written using flash or flex?and is there a way to compile back to flex?

View 2 Replies

Professional :: Where Does Buffered Data Get Written To

Mar 12, 2010

When recording a video to FMIS if the stream is buffered, does this get buffered in memory or does it use up local storage?
 
I am developing an application that will use a web cam to record videos which will then be submitted to the server. Ideally I would have liked to write the video to disk first and then upload later however, I understand that I can't do this with flash (my solution has to be in browser AIR apps aren't an option). I am ultimately concerned about video quality so in order to ensure that I loose as few frames as possible I'm planning on setting NetStream.bufferTime to a large value. I am concerned however that someone with a poor internet connection and a good webcam will quickly use up local storage assuming that it is set to the default of 100K.
 
If this is the case then I potentially need to think again about my approach - maybe even look into Silverlight 4, or at the very least try and explain to my users how to go into flash settings and set local storage to be unlimited.

View 1 Replies

Professional :: Profiling An IOS App Written In Flash?

Jun 5, 2011

I have a fairly simple app that is running slower than expected on an iPhone. Even without animations I takes too long to respond to user actions.
 
What tools do you recommend for funding performance bottlenecks in an iOS app written in Flash?

View 1 Replies

Flash :: Download A Dynamic SWF Written In ASP.net?

Nov 15, 2011

I'm trying to download SWF files from a site the traditional way, but a few of the SWF files have been created dynamically through what I believe to be ASP.net 2.0.

Every attempt to D/Load results in the correct dimensions, height and width, but it just gives me empty white space.

View 1 Replies

ActionScript 2.0 :: Use Once Written Function From Some Other Keyframe?

Mar 12, 2010

I have got a function that do something "on.Resize", and my question is: how can i do exactly same thing from some keyframe on timeline? I mean... do the same effect but without need of resizing the swf that would trigger the function?

View 2 Replies

ActionScript 3.0 :: Data Written To Socket Getting Lost?

Jun 8, 2010

asically what is happening is that my Flash client claims that it is calling functions that don't arrive at the server -- or they arrive, but the socket data is out of order and therefore is garbled.  I've stared at the source code for hours and tried a lot of trial-and-error type stuff and added trace statements to see if I can find the problem and I'm not having any luck.
 
In particular, there's class I have called RPCSocket that extends the AS3 Socket class so I can serialize data structures before sending them across a socket.  At one point, this RPCSocket class calls super.writeBytes and super.Flush.  It is the point at which I send all data out of my client. The data is binary data in AMF3 format.

public function executeRPC(serviceName:String, methodName:String, methodParams:Array):void {               if (!this.connected) {                    log.write('RPCSocket.executeRPC failed. ' + methodName + ' attempted on service ' + serviceName + ' while not connected', Log.HIGH);                    throw new Error('RPCSocket.executeRPC failed. ' + methodName + ' attempted on service ' +

[code]....

Can someone recommend a way for me to store without corruption, conversion, or filtering or translation of any kind *all* of the information sent across this socket? I'd like to write it to a file.  I'm guessing that keep a global ByteArray var and storing the info there might work, but I'm wondering how I might get the contents of that ByteArray into a file so I can inspect it.
 
Also, I'm wondering if I might be able to inspect what flash actually sends out on the socket?  I have a sneaking suspicion that data I supply to super.writeBytes may be sent out of order or may not actually get sent across the socket.  This bug I'm talking about only seems to happen under high-stress situations when I'm sending dozens of messages per second across this one socket.

View 2 Replies

Flash :: Compile A Swc With A Class Written In Flex

Jun 17, 2009

I want to use some assets ( buttons, etc. ) I'm creating in flash in a flex actionscript project. Since all my assets are bellow 10K, I'm not planning to load a swf ,wait until it's loaded and create the interface. I want to use a swc and just instance the clips I need. Also, I want my Button class to have some extra properties, and this is where the problem occurs.

If in the Linkage Properties in the Flash IDE I add a reference to a custom Button Class and trace a child of the Button MovieClip, I get the right trace. If then I create a Button, in the Main class in Flex, using the generated swc file and trace the same child of the Button MovieClip, I get null. Why is that ? Is there anyway to get around this ? I've considered using the Flex Component Kit, but since I'm working on a simple actionscript project and I'm not using the Flex framework, I see no point in using the Component Kit at this point.

View 2 Replies

Why Are (almost) All On-line Games Written In (Flash) Not Java

Mar 16, 2010

I absolutely love good defender games (e.g. Gemcraft, Protector: reclaiming the throne) as they can be intellectually quite challenging; it's like playing chess but a little less thinking and a bit more action. Sadly, there are not that many good ones out there and I thought I would create one myself and share it with the rest of the world by making it available on-line.I have never worked with ActionScript but when it comes to on-line games, this is the main choice. I have tried to find a decent 2D game in the form of a Java applet but to no avail. Why is this so? I could write the game, most comfortably, in Delphi for Win32 but then people would need to download the executable, which could deter some form downloading it, and also it would only work on Windows. I am also familiar with Java, having worked with Java for the last four years or so; although, I don't have much experience with games programming.

Should I not be deterred by the fact that all on-line games are written for in Flash and create my defender game as a Java applet, or should I consider learning ActionScript and games development for the ActionScript Virtual Machine (AS3 looks very much like Java... but still, it's an entirely new technology to me and I might never use it professionally.)

View 8 Replies

ActionScript 3.0 :: Cannot Pass Parameter To Already Written Class

Feb 5, 2009

I have written a class that works fine, but as soon as I try make it re-usable and pass a parameter. It gives me this error "1120: Access of undefined property xmlList_0."

Here is ActionScript Code:
package Classes{
import flash.display.*;
import flash.events.*;
import flash.net.*;
public class Carousel extends MovieClip {
[Code] .....

This is the code in my fla.file to run this class:
ActionScript Code:
import Classes.Carousel;
var carousel:Carousel = new Carousel(xmlList_0);
addChild(carousel);

View 3 Replies

ActionScript 3.0 :: Recording Sound Then Processed By Dll's Written In C++

Mar 23, 2011

1) I don't understand the difference between flex and actionscript. I understand AS is used to write flash apps but what is flex?

2) I am going to create a flash app for recording sound which is then processed by dll's written in c++. Can this be done in flash? I don't want the flash app to communicate with dll's on a web server, I basically want to load the dll's for direct use into the flash app.

View 8 Replies

ActionScript 3.0 :: HitTestPoint Written In Wrong Order?

Mar 25, 2011

i have a function that works fine but is obviously the wrong way round. how do i write it so that the event happens if it is true. at the moment it happens when it isnt true in the 'else' statement.

[Code]...

View 1 Replies

ActionScript 2.0 :: Convert Code Written In Java?

Jul 19, 2005

I need some help with this issue. I want to convert code written in Java to Actionscript code.

Or to find the way to call Java applets with actionscript.

View 4 Replies

ActionScript 3.0 :: Create 20 Boxes With Different Text Written Over Them?

Apr 17, 2011

I want to create 20 boxes with different text written over them.

How to do it with array. Should I create it as movieclip or button??

View 1 Replies

ActionScript 3.0 :: Update A Demo That Uses A Windows Console App Written In C++?

Apr 26, 2011

i'm trying to update a demo that uses a windows console app written in c++ to send chars to another windows console app using sockets.

is there any way to have flash talk to a local windows socket?

so far i've tried using localhost and the computer's ip.

View 1 Replies

ActionScript 1/2 :: Value Not Written To Variable Until Button Pressed 2nd Time?

Feb 28, 2012

When the button is first pressed, I can see in my debugger the data LocalID has a value, but why doesn't it write to the _root.PrimaryID until I press the button a second time?
submit1.onPress = function(){
getDatax.UniqID=UID;//Long string version of ID
getDatax.sendAndLoad("GetID.cfm", getDatax, "POST") ;
getDatax = new LoadVars()
getDatax.onLoad = function(){
if(this.writing=="Acquired") {
_root.PrimaryID=this.LocalID;
}}}

View 1 Replies

Flash :: Check Web Application Status Written In Flex?

Jan 18, 2010

I have a typical web application that communicates in the following way: SWF file makes service calls to Java services (Remote object, over BlazeDS on Tomcat), which in turn communicates to database.

How do I implement a status check service (hosted on another domain) that will check if the ENTIRE app is up and running? Ideally, I'd make checker SWF that would load App SWF and called its function that would return something from the database (a naive service would count rows in table and hash it with MD5), but security constrains won't let me call loaded SWF's function.

Checking the java services only is not enough, as I am not checking the status of the SWF.

View 1 Replies







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