ActionScript 3.0 :: Acces Remote Shared Object From Other Class

Oct 29, 2009

How to acces remote shared object from other class?

I have

package {
import flash.net.*;
import flash.display.*;
public class Main extends Sprite {

[Code].....

I would like to add some data or modify shared object. How can I acces _sharedBoardObject from another class? Or maybe I need to connect to "sharedBoard02" directly?

View 0 Replies


Similar Posts:


Media Server :: Does FMS Enable Remote Shared Object Functionality?

Sep 28, 2011

I need the Remote Shared Object functionality and wonder if Flash Media Streaming Server incorporates this functionality?

View 1 Replies

Media Server :: Move Two Figures On The Stage With Remote Shared Object?

Nov 10, 2009

I need to move two figures on the stage with shared object like the "Tutorial shared Object ball" on the adobe website but with more than one figure. All the client must see the figures moving. The figure are a circle (Cerchio) and a square (Quadrato). This is the script:
 
package{  import flash.display.Sprite;  import flash.net.SharedObject;  import flash.events.NetStatusEvent;  import flash.events.SyncEvent;  import flash.net.NetConnection;  import flash.events.MouseEvent;  import

[Code].....

View 1 Replies

Media Server :: Write Remote Shared Object Sequentially When Multiple Users Are Connected?

Mar 31, 2010

I am using FMS3 and Flash CS3 (actionscript2) in a Flash based whiteboard application. Multiple users can join this whiteboard. I want to save chat text and drawing in same sequence as live time. I am using persistant remote shared object to save these data. But when i try to replay these data its not showing in same squence as live . I am generating unique slot for chat and drawing but still same error occuring.

View 8 Replies

Media Server :: Connect And Sync To Remote Shared Object Works In Authoring But Not In Browser?

Dec 19, 2011

I'm having trouble connecting to a remote persistent shared object. When I run from the Flash authoring environment it works. But when I run it from a browser it doesn't. The code attaches an event listener to the sync event, and then calls so.connect(nc).
 
As mentioned - it works inside Flash authoring only. In both cases the connection to the server is successful. I also tried setting client.readAccess to "/" in the application.onConnect function of the server-side code - but it doesn't help. (Everything was written by me including the server-side application code. I have full control and access to the server).
 
Also, I can see the remote object exists on the server in the admin console.And as mentioned, when running inside Flash CS5 - the onsync gets triggered after connecting to the shared object.But, the same code under a browser - doesn't trigger the onsync.The SharedObject.getRemote method on the client side returns an object on both occasions.

View 1 Replies

Actionscript 3 :: Developing Chatroom In Flex / Red5 / Remote Shared Object Based UserList / Serverside?

Mar 29, 2010

We are going to develop a simple chatroom in flex using Red5.Should we store UserList in a Remote Shared Object or Server Side List?Are there any example exit on Red5 or FMS , which uses Server Side programming and Remote Shared Objects? Red5 examples are not documented at all.

View 2 Replies

Java :: How To Call Method On Remote Class Returned By Object

Nov 5, 2009

I have a RemoteObject returning a 'Schedule' class. I've created a client side RemoteClass to map to it. All properties of the class instance are coming in fine. I just not clear on how I go about calling methods on the class. How would I call a setter on startdate?

package classes.remote {
[Bindable]
[RemoteClass(alias="com.site.data.schedule.Schedule")]
public class Schedule {
public var id:int;
public var modifydate:Date;
public var startdate:Date;
public var enddate:Date;
}}

View 2 Replies

Actionscript :: Shared Object Doesn't Work In Separate .as Class?

Aug 28, 2009

bit of an odd problem, I have the following piece of code

Code:
var myCookie:SharedObject = SharedObject.getLocal("mySavedData","/")
if(myCookie.data.mySavedText != undefined)
{
var gallerypath:String = myCookie.data.mySavedText;
}
which retrieves a shared data.

If I put this actionscript on the first frame of a new document, it works fine, however I want to use it in something I already have, which uses an external Document class.

[Code]...

View 1 Replies

ActionScript 2.0 :: Save Instance Of Custom Class With Local Shared Object?

Mar 26, 2008

I am programming a web based application with Actionscript 2.0 classes for flash 8, and I want to save user data using the local shared object.As the data is potentially rather complex I would prefer to store it in an instance of a custom class that I then stick in an array property of the local shared object data property.However, when I try to do this, if I retrieve the stored object it seems to have lost all its instance methods. If I do a for in on it, I can see the private properties to which I have assigned my data, but as they are private I cannot retrieve them.how I can store an instance of a custom class in a local shared object without it being corrupted in this way?

View 4 Replies

Actionscript 3 :: Acces Properties Of Created Instance From 2nd Class?

Jun 7, 2011

I'm building a small game. On my document class i create a instances of the class Character and Level with the following code:

//add the Level
level = new TileGrid();
level.y = 100;

[code].....

View 2 Replies

Flex :: Understanding Remote Shared Objects?

Oct 20, 2009

I have 2 questions about remote shared objects in Flex/ActionScript3:1) If I connect to a remote shared objects, but do not handle the SYNC event, will the shared object still receive data from the server? ie. will the server still broadcast data to this client ? This is what I expect

View 2 Replies

Flex :: What AMF Servers Support Remote Shared Objects

Mar 29, 2010

I'm planning on building a Flex based multiplayer game, and I'm researching what will be required for the server end. I have PHP experience, so I started looking at ZendAMF.

Now in this game, I'll need the concept of rooms, and real time updates to clients in those rooms, so it looks like I'll be using remote shared objects (correct, yes?). I'm not seeing where ZendAMF can support this.It seems to indicate that ZendAMF isn't going to do what I want. WebORB for PHP seems to be the only PHP based solution that does messaging, but on that page it doesn't mention "real-time" next to it like the Java based ones below it do.

View 3 Replies

ActionScript 3.0 :: Error 1009 Cannot Acces A Property Or Method Of A Null Object Reference?

Oct 26, 2011

I have no clue why I'm getting this error with my preloader:

[SWF] PRELOADER.swf - 1639 bytes after decompression
[SWF] LeagueOfLolsApp.swf - 19769801 bytes after decompression
TypeError: Error #1009: Cannot access a property or method of a null object reference.

[code].....

View 1 Replies

ActionScript 3.0 :: AIR Shared Object Shared Between Flash & AIR?

Mar 13, 2009

I created a very simple experiment to attempt to access the same shared object in Flash Player and AIR.

A Flash SWF creates a local shared object.

A AIR application (being tested from CS3 or installed) opens the same shared object.

The data does not persist. Is this theoretically possible?

View 1 Replies

Php :: Make Xampp Environment Behave The Same As Remote Shared Hosting Environment?

Jul 11, 2011

i don't know how to say that in technical terms. and i think this is the reason to why i cant get good answer from Google.i have xampp on my local winxp machine. i use it for developing websites locally then upload these files to my clients shared hosting accounts.

the problem that in 2 years i have always found differences between how xampp works and how the web server work.some code work locally but dont remotely and the opposite. also flash behave differently on xampp than the remote web server.is there is a way i can get the server configuration and use it with xampp like get the server php.ini and use it with xampp?

View 1 Replies

ActionScript 3.0 :: A Super Class That's Runtime Shared Independent From The Class That Extends

Nov 4, 2010

I'm not really asking how. What I'm asking is, is it possible? And I ask because I thought it was not - certainly it didn't work in AS2 - and yet that's what I appear to have done. Am I going crazy? Structure: A SWF (#1) with a class NewActivity that extends class AActivity. Another SWF (#2) with a shared library of code in it, including AActivity. A third SWF (#3) which loads the library followed by SWF#1. Here's what happened: I didn't expect AActivity to be able to be shared. I mean, it should be compiled no matter what in SWF#1, as SWF#1 includes a class that extends AActivity. I had added some properties to the AActivity class, ran the project, and when SWF#3 tried to set those properties I was told they couldn't be applied. "Of course", I said, "I need to recompile SWF#1, because the code is now out of date. The version of the class there doesn't include these new properties.".

However, that didn't work. I got the same problem. Maybe, I thought, there's a definition conflict between SWF#1 and the library, so I removed the AActivity class from the shared library in SWF#2 for the time being. Only SWF#1 uses it, and it should already be compiled into SWF#1 as, like I said, it is extended by another class there. But when I ran the project, I was then told that the AActivity class could not be found at all! Looking at SWF#1 in a decompiler, there is in fact no mention of AActivity (I had up to this point assumed it was implied). So this left just one option: I needed to recompile the library in the first place, not SWF#1. I added AActivity back to the library, recompiled, and it worked.

To check I wasn't going crazy: I added a test property to the AActivity class and recompiled the library. The containing project - SWF#3 - then set this property on SWF#1, which had NOT been recompiled, and then read it back out. No errors. I should point out that the getting/setting of this property is done through an IActivity interface - AActivity is not being accidentally compiled into the main project (SWF#3), and the decompiler indicates this also. Am I going nuts? I really didn't think having a runtime shared super class was possible in any way. If it is, that opens up a whole new world of awesome, even though I've created this project on the basis of that being impossible.

View 4 Replies

ActionScript 3.0 :: Save Visual Object Data In Shared Object?

Jan 22, 2011

I'm using a loader for people to use to upload their own images for a background, and I want it to remember the image the next time they come to the page, so is there any way to save the loader data in a shared object? I haven't tried just using something like

Code:
sharedObject.data.dataName=loader

because I assume it doesn't work that way.

View 9 Replies

Flex :: Remote Class Alias In Air?

May 8, 2010

in Flex one can easily define the remote class alias like the following:

package samples.portfolio
{
[RemoteClass(alias="flex.samples.marketdata.Stock")][code].....

But my question is how do you do it in AIR since the client app does not know about the server file structure.

View 1 Replies

ActionScript 2.0 :: Use More Than One Shared Object?

May 20, 2008

Just wondering if you can use more than one shared object, as my AS code doesn't act as i would think

Code:
---this one works
var submenu_so:SharedObject;
submenu_so = SharedObject.getLocal("menu");

[Code].....

View 1 Replies

IDE :: How To Flash Shared Object

Jun 24, 2009

Can I use Flash Shared Object to pass information between two different SWF files on two different pages within the same website?I know it can if the SWF files are the same. But what if they are different Flash object with different SWF files?

View 7 Replies

IDE :: Local Shared Object (LSO) On A CD-ROM?

Jan 28, 2010

Does anyone know if it's possible to save and access a LSO from an EXE projector on a CD?

Obviously the LSO couldn't be saved on the CD itself - would it be able to save the LSO somewhere on the users hard drive?

View 4 Replies

Flex :: Remote Object Source Not Found

Aug 26, 2009

Our flex project, which works fine in its current environment with coldfusion 7 single server. We moved this project to Coldfusion 8 multi server, and updated the remoteobject paths relative to the web root.

The error we now receive is
faultCode:Server.Processing faultString:'Unable to invoke CFC - Could not find the ColdFusion Component or Interface myProject.cf.main.' faultDetail:'For details, turn on Robust Exception Information in the ColdFusion Administrator'
The path to the cfc's from the webroot is is myProject/cf/main.cfc ...

View 1 Replies

Flex :: WebOrb - Finding URL In Remote Object

Oct 19, 2010

Since Flashbuilder does not support WCF over https, I am considering to use weborb remoting as alternative, but not really sure how flash is going to know weborb location, if they are sitting on different servers. Looked at destination, source fields, but not really find a field called url in remoteObject in Flex.

View 1 Replies

Flex :: Custom Validator Against Remote Object?

Oct 20, 2010

I have a need to validate a field against our database to verify unique-ness. The problem I seem to be having is that the validators doValidation() exits before we've heard back from database.

How can I have the validator wait to return its payload until after we've heard from the DB?

Or perhaps a better question might be (since I think the first question is impossible), how can I set this up differently, so that I don't need to wait, or so that the wait doesn't cause the validation to automaticallly return valid?

View 3 Replies

Flex :: Using One Remote Object And Multiple Destinations?

Feb 2, 2011

In my Flex app, I use one remote object and multiple destinations. Is that a bad idea? It seems to be working just fine except for the one or two fringe cases:It's bad design, but we use the same method name on two different destinations and they seem to conflict when they're called at the same time. Logging errors show a method assigned to one destination as being associated with another.

View 1 Replies

Java :: Remote Object Flex Not Working?

Feb 8, 2011

I'm building an application using Flex 4 + Spring Blazeds Integration 1.5 + Spring 3.0.5 + Hibernate running on jboss-5.1.0.GA. I create a simple login form, and when a submit a string via remote object it works fine. But when a try to use an Object its simple doesn't work. Funny is that it even don't shows the Alert that a put! Also, if I remove the tag "RemoteClass" it sends to java but an error occur. Bellow is the code and configs.

My java class:

package com.controlefinanceiro.entities;
// imports
@Entity

[Code]....

View 1 Replies

Flex :: Populate ComboBox Using Remote Object?

Mar 8, 2011

I have a remote object returned and I am trying to populate it into combobox.

<s:RemoteObject id="ro" result="result(event)" destination="echoServiceDestination">
private var statesData:ArrayCollection;

[Code]....

View 1 Replies

Flex :: Remoting - Extend Remote Object?

Feb 13, 2012

My current coding for remote object declaration is messed up I wanna separate the remote object and the interface

Current Code :
<s:RemoteObject id="ro"
destination="customerService"

[code].....

View 1 Replies

ActionScript 3.0 :: Remote Object Service Wrappers

Jan 22, 2010

I'd like to create a remote object service class such that I can encapsulate multiple service operations. These service calls get executed in many places and it would be nice to encapsulate their functionality. For example, something like

[Code]....

View 0 Replies

ActionScript 3.0 :: How To Clear Shared Object

May 28, 2009

I made a shared object whiteboard but I have a stupid problem with removing objects. This is function to clear shared object :

public function clearShape (so:SharedObject):void {
trace('clear:', this.name);
delete so.data[this.name];

[code].....

View 2 Replies







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