Flex :: Send Typed Object From FMS To Client

Jan 2, 2010

I have following object in the FMS

User = function(userName,userId)
{
this.userName = userName;
this.userId = userId;
}

I need to send the list of user to the client swf. Once I initialized the User object collection to an array, array element is undefined when I read it from the client.

[Code]...

View 2 Replies


Similar Posts:


Flex :: Send Info Using USLStream From Flash Client To JAVA Server?

Jul 18, 2010

I am trying to send info using USLStream from flash client to JAVA server.Some of the info is Chinese so i have to use Unicode.

View 1 Replies

Flex :: Access Data Field Of A JSON Request Send By Client In JAX-RS?

Feb 2, 2012

I have the following JAX-RS service.[code]...

The JAX-RS service receives the request and respond successfully with some dummy response, but I have no access to the request.data field.

How do I access the data of the request message (which is {"type":"get_configuration","data":"some data"} in this particular example)? I think that I'm supposed to add some parameters to the handleMessage method like

public SomeResponse handleMessage(Object message) {...

but this does not work at all. The request got 415 response.

View 1 Replies

Flex :: Get Property Values From Shared Object In Client's Load Event?

Mar 5, 2010

I am using shared object to share data between two users. First user connect to shared object and set some value in shared object. Please consider that second user has not connected with the shared object yet.Now when second user connects to the server and try to get that property set by first user, he could get shared object but could not get properties of Shared object set by first user. I observed few times that Second user can get these properties within "Sync" event between two users. But I would like to get these values for Second user in any stage (i.e. in load event etc.). Whenever Second user tries to get the property of Shared object, the object will reset the actual property value and then return reset value.

1) Is there any way to get all the properties of shared object before sync event called, as I want to get it immediately when second user connect to the application and perform next task based on the values stored in shared object.

2) Is it possible for second user to check whether any property has been set by first user? So that second user can use the property instead of reset it.

View 1 Replies

Professional :: Can't Change Inspectable Variable Typed As Object

Jun 21, 2010

im currently working on a flash component (first time). I have an instance of my component dragged onto the stage. Played around with changing the different properties i made inspectable -  so here it comes: The property (typed object) i would like to change can not be edited in  the IDE. I have no plus icon to add a new name-value pair to the list

[Code]....
 
and a screenshot of my empty panel where i would like to add some  data:

View 2 Replies

ActionScript 3.0 :: Loop Through A Strongly Typed Object Attribute

Nov 20, 2009

Is there a way i can Loop through the attributes of a strongly typed Object or just convert a strongly typed Object into a generic Object.I tried typecasting a Strongly typed object created using LCDS into a Object.But it just returned me a typed Object.

View 1 Replies

ActionScript 3.0 :: Running Function On Non-typed Non-movie Clip Object

Aug 11, 2010

I am loading various swf library component/classes during run time. All of these components have the function 'remove()' in them. Not all of these components are MovieClips, many extend Sprite instead. I have them in an array that I loop through and call remove() on each of them.

I would like to keep strict mode on if at all possible:

Usually I can just do this

Code:
for(i=0;i<a.length;i++)
{
MovieClip(i).remove();
}

but I am wondering what happens if I type a class that extends Sprite as a MovieClip to avoid the compile time error in order to call the remove function on it?

remove() does things like remove all listeners, stop sounds playing etc and finally parent.removeChild(this);

View 6 Replies

ActionScript 3.0 :: Send Main File To The Client?

Jul 27, 2010

when we create a flash file with xml loaded  data, do we need to supply that xml file all the time with the main  file? Cant we just send main file to the client?

View 2 Replies

Actionscript 3 :: Send Complex Object FROM Flex To PHP

Apr 11, 2012

I want to be able to send complex data from Flex to PHP and be able to parse that data via PHP script. I'm able to send a basic key value pair object but anything more complex than that doesn't translate accordingly. This works...

[Code]...

View 2 Replies

Flash :: Passing Strongly Typed Object To Method Expecting An Interface

Jul 26, 2011

I'm running into difficulty passing a strongly typed object, AttractView, to another method, addView() which expects an IWizardView interface that AttractView does implement. When I pass it as-is (as shown below), I get the compile error CaptureApplication.as, Line 120 1067: Implicit coercion of a value of type AttractView to an unrelated type IWizardView. Casting to either IWizardView or BaseView before passing yields a similar error at run time.

[Code]...

View 2 Replies

Actionscript 3 :: Send An Image Between Two Client/server In Adobe AIR?

Feb 20, 2012

I want to send an image between two client/server in Adobe AIR, is there a way to do that, and if there is then how?

View 2 Replies

Sockets :: Write A Client In Order To Send Data To The Server?

Jun 19, 2011

I have written an ActionScript 3 class that is a Server Socket and accepts connections.I want to write a client in order to send data to the server. The client will be a mobile browser. I think that i will use javascript. Is it possible to connect to the server from mobile environment?

View 1 Replies

Actionscript 3 :: Send Push Notifications From AIR Desktop Client Without Middleware?

Jan 19, 2012

With this PHP code:

<?php
$apnsHost = 'gateway.sandbox.push.apple.com';
$apnsCert = 'apns-dev.pem';

[code].....

View 2 Replies

Flex :: Collection Of Typed Objects?

Apr 13, 2011

For example in Java you can do:List<Person> where Person is the object type.In AS3/FlexArrayCollection which takes any object type. Is there any way to create a list/collection of declared objects in AS3/Flex (or is it impossible due to weakly typed language)?

View 2 Replies

Flex :: Initialize Two-dimentional Typed Vector?

Aug 15, 2010

How can I initialise two-dimentional typed Vector is AS3? Now I can get working only this:

private var _mainArray : Array = new Array( MyConst.DIMENTION );
public function MyArray()
{[code].....

View 1 Replies

Flex :: Sending AMF Typed Objects Back To PHP?

Oct 29, 2011

I succeeded in sending typed objects from a PHP application to a flex front-end using Zend_AMF as per this question. The problem I am facing now is that I would like to send a typed object from flex to PHP and on the PHP side, be able to receive it as a typed object instead of stdClass.

Here is the class in flex:
package com.mysite{
[Bindable]
[RemoteClass(alias="CTest")]
public class CTest {
public var stuff1:String;
[Code] .....

After some testing, I removed the namespace from the PHP object and moved it into the global namespace. This seems to have resolved the issue. I have tried setting RemoteClass to modules estingCTest and also modules.testing.CTest. $_eplicitType was then set to the same value for both tests. The result is that when I use modules.testing.CTest, this is the classname that Zend_AMF sees. If I use namespace notation, Zend_AMF sees modulestestingCTest, as all the slashes get stripped out. But how can I get this working with php namespaces?

View 1 Replies

Flex :: What Is Faster - Plain Or Strongly Typed Objects

Feb 15, 2010

So is
public var user:Object = {};
user["firstName"] = "Bill";
user["lastName"] = "Cosby";

Slower than if I have a value object like User?
var user:User = new User();
user.firstName = "Bill";
user.lastName = "Cosby";

View 2 Replies

.net :: Receiving Generic Typed Custom Objects Through AMF In Flex

Apr 27, 2010

Is it possible to receive custom generic typed objects through AMF? I'm trying to integrate a flex app with an existing C# service but flex is choking on custom generic typed objects. As far as I can tell Flex doesn't even support generics, but I'd like to be able to even just read in the object and cast its members as necessary. I basically just want flex to ignore the <T>. I'm hopeful that there's a way to do this, since flex doesn't complain about typed collections (a server call returning List works fine and flex converts it to an ArrayCollection just like an un-typed List).

The custom C# typed class
public class TypeTest<T> {
public T value {
get; set; }
public TypeTest () {
}}

The server method returning the typeTest
public TypeTest<String> doTypeTest() {
TypeTest<String> theTester = new TypeTest<String>("grrrr");
return theTester;
[Code] .....

Irritatingly if I change the result handler to take parameter of type Object it works fine. How to make this work with the value object?

View 2 Replies

Flex :: Coldfusion Returning Typed Objects / AMF Remoting

May 26, 2010

Is the same possible in ColdFusion? Currently I am using .Net/Fluorine to return objects to the client. Whilst in testing I like to pass strings representing the select statement and the custom object I wish to have returned from my service. Fluorine has a class ASObject to which you can set the var 'typeName'; which works great.

I am hoping that this is possible in Coldfusion. Does anyone know whether you can set the type of the returned object in a similar way. This is especially helpful with large collections as the flash player will convert them to a local object of the same name thus saving interating over the collection to convert the objects to a particular custom object.

[Code]...

View 2 Replies

Actionscript 3 :: Displaying Content From BulkLoader Which Is Typed As MovieClip In Flex App?

Dec 24, 2009

I am using bulkLoader to load dozens of SWFs into my Flex app, and all of SWFs are static (1 frame only). 'Everything' works fine, however, I'm not sure how to handle data from bulkLoader... I am getting MovieClip types for all of my SWFs, and I am not sure how to tell to Image or SWFLoader classes to use some of those MovieClips as source.

View 1 Replies

Way To Interact With A Flash Object From The Client Side?

Sep 5, 2011

My goal is to build a program trader for the upcoming CNBC porfolio challenge. I need a way to collect quotes, current positions and place orders in the flash object.

View 1 Replies

ActionScript 3.0 :: NetConnection / Client Object And FLV Files

Jan 12, 2011

I'm been impressed by just how terrible the NetConnection docs are. The NetConnection API:
[URL]. It has a client object that "Indicates the object on which callback methods are invoked" but no where can I find a list of the functions that are actually called?

That seems pretty obscene. I can find people mentioning onBWCheck and other functions that were throwing me errors, and I've seen someone mention onMetaData.. but this is hardly a complete list. Just casual mentions across various websites. I don't understand why this fundamental class is so obscure.

View 9 Replies

Php - Flex Is Deserializing Generic Objects From Zend AMF Instead Of Strictly Typed Objects

Mar 4, 2012

I'm using Zend AMF to send my remote objects to Flex. I've defined a Constant class and created getASClassName() method. Then I've created Action script class in flex.

Objects are send successfully, but they are deserialized to generic Objects in Flex instead of specific ones. EDIT: On network monitor in Flex I can see that AMF value is set to com.my.project.valueobjects.Constant. Although array from event.result contains Objects.

[Code]...

View 1 Replies

Flex - "Double Typing" - With OSX Lion And Flash 10.3.. Every Character Typed To It, Appears Twice?

Jul 21, 2011

We have a small flash application that has an text box.

under OSX Lion, with flash < 10.3.. it works fine

with OSX Lion and Flash 10.3.. every character typed to it, appears twice.

View 3 Replies

Media Server :: Exactly To Work With A ByteArray Object Received By FMS From A Client?

Jun 8, 2010

It's a bit vague - the whole thing with AMF. On one hand we have a client capable of serializing and sending everything from integers to XML documents and ByteArray streams, but on the other hand we have the FMS with a JavaScript host. Where is the bridge? :-) I mean how does one work with the objects, in particular, a ByteArray, received through the [generic] wire? It's easy with numbers and strings, but no word on more complex objects.

View 2 Replies

Flex :: Debugging - Running A Webapp Base Flex Client In IntelliJ?

May 10, 2011

Is it possible to run a Flex client in IntelliJ internally and have it talk to a separately deployed server instance? The server's a java webapp. This will make developing, especially debugging, much easier. What I'm trying to avoid is having to rebuild and redeploy the webapp to get the updated Flex code in it. I want to just build flex and run it against the server.

The flex client is embedded in an HTML page on the server, so in production the users access the client by going to a web page. We're using GraniteDS if that's important.

Update

I'm managed to cobble something together, but it's ugly.I made a copy of our wrapper HTML page and fixed the links to refer to the SWF in target.I setup the IntelliJ run config to point to that HTML page.I set the 'Place SWF file in a local-trusted sandbox' to true

Hardcoded the {server.name}, {server.port}, and {context.root} values in the service-config.xml GraniteDS config file to localhost, etc.

I can mavenize #1, but #3's isn't really a permanent solution. That part is still a problem because I can't check this in.

View 1 Replies

Media Server :: Find Client Disconnected When Client Lost Net Connection?

Oct 27, 2010

how can I find on fms server that client disconnected if if client disconnected due to power cut off. I client manually close the application then onDisconnect on server is called but if due to power cut off it does not called.

View 1 Replies

Flex :: Adobe Flex - Doing Group By At Client End (DataGrid To Pie Chart)?

Dec 23, 2010

I am in a situation where user gets the cars data from the database based on the selection and displays it in datagrid like below ( for example)

Company Model Year No
GM Chevy 2010 10
GM Chevy 2009 5
GM Pontiac 2010 12
Honda Civic 2009 12

and there will be a link next to datagrid to get Pie chart based on the data displays in the data grid . The pie graph should display grouping by company and the count . I mean for the above example that should give with two pie items , one for GM showing the number of vehicles ( in this case 3 ) and Honda showing the number of vehicles ( in this case 1 ).

I thought of getting it from the database by querying and grouping it .But here the problem is after getting the data above in the datagrid user can able to filter at client end ( By year or model ) and can say get graph . This time that should only display the graph for the data visible in Datagrid .Grouping on database for every operation is becoming expensive. Since we have already data available at client end , is there any way to group it at client ..?

View 2 Replies

Flex :: Recover The HttpHeader Information From A Flex Client?

Aug 11, 2009

Is it possible to recover the HttpHeader information from a flex Client? I want to do the following:

User download the flex client from a web site

In each communication flex client catch the HttpHeader information in order to change (If it is necessary) the host information to be connected (For example in a HA configuration)

View 2 Replies

Flex :: Generate Flex SOAP Client Using Maven?

Aug 9, 2011

I have a java server side project which contains JAX-WS web-services (using JavaEE 6 and the @WebService annotation).

Is there some kind of plugin that would allow me to generate Flex client stubs during my maven build ?

I have taken a look at enunciate, but it seems to generate only AMF client.

I've also tried to look at GraniteDS, but their doc seems a little opaque to me.

Notice my Flex project is compiled using flexmojos, which contains a flexmojos:generate mojo that should be able to generate domain object (however I don't understand how to say it to use domain classes from ANOTHER project, and not from a different folder).

So, is there any maven plugin that would allow the kind of feature described in this Adobe page ?

View 1 Replies







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