amf

Serializing to/from Adobe AMF in C#/Mono?

安稳与你 提交于 2020-01-01 19:03:39
问题 Using Zend_Amf it's possible to serialize php objects to/from Adobe AMF format. Is there an equivalent library for serializing/unserializing C# objects to/from AMF? I'm working in Mono 2.4. 回答1: There are several options. Here's the best. http://www.fluorinefx.com/ Fluorine provides a full client and server implementations of AMF over HTTP and at least server implementations of AMF over RTMP (I'm not sure about client for RTMP--we just haven't used it so I haven't looked into it). It also

AMF message structure?

♀尐吖头ヾ 提交于 2020-01-01 05:30:14
问题 Adobe's documentation for the AMF format does not seem to actually specify the structure of an entire AMF message. It only specifies the format of individual data types. I've read the damn thing five times and either I'm just totally missing what an actual AMF message should contain, or it's not there. Does anyone know of any documentation of the actual whole-message structure? 回答1: The specification might be described as "terse." The AMF encoding uses bytes which are called "type-markers."

How to make BlazeDS ignore properties?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-22 08:57:59
问题 I have a java class which has one field with getter and setter, and a second pair of getter and setter that access this field in another way: public class NullAbleId { private static final int NULL_ID = -1; private int internalId; getter & setter for internalId public Integer getId() { if(this.internalId == NULL_ID) { return null; } else { return Integer.valueOf(internalId); } } public void setId(Integer id) { if (id == null) { this.internalId = NULL_ID; } else { this.internalId = id.intValue

UDP real-time games in Flash/Flex available Open source RTMFP implementation

醉酒当歌 提交于 2019-12-20 10:33:18
问题 Are there any examples of using the Flash 10 beta RTMFP UDP based protocol to build real-time Flash games. The RTMFP examples so far seem to focus on P2P networking between flash clients does anyone know of any examples of traditional client/server UDP based communication over RTMFP. Does anyone know the ability of RTMFP to do NAT firewall punch-through to allow clients to "host" real-time games. Imagine being able to over the web through flash client perform XBox live-like matchmaking and

Getting Unsupported AMF version error while using AMF Connection to send flex message

心已入冬 提交于 2019-12-13 19:37:26
问题 I am trying to send AMF message using AMF Connection API but getting following error as shown below. ClientStatusException message: Unsupported AMF version I am using blazeds-core-4.0.1.21287.jar for this purpose. Following is my code. String url = "https://10.222.73.251:9443/vsphere-client/#"; try { amfConnection.connect(url); System.out.println(amfConnection.getUrl()); } catch (ClientStatusException cse) { System.out.println("Error connecting url: " + cse); return; } try { amfConnection

Mapping PHP and Flex Objects

半世苍凉 提交于 2019-12-12 13:29:53
问题 I am using ZendAMF for remoting. <?php error_reporting(E_ALL | E_STRICT); //error reporting, not needed require_once "Zend/Amf/Server.php"; //the zendAMF server require_once "process.php"; //our test class $server = new Zend_Amf_Server(); //declare the server $server->setClass("process"); //load our test-class to the server $server->setClassMap("Session", "Session"); echo($server->handle()); // needed to start the server ?> My Question is i have a ActionScript class Session and a PHP Class

ActionScript 3 AMF Zend fails silently

て烟熏妆下的殇ゞ 提交于 2019-12-12 05:49:54
问题 I'm trying to connect to a Zend-PHP service within a pure ActionScript program. I've managed to use the service successfully using Flex. (But Flex mobile apps are bloated, and typically 10x bigger than pure ActionScript apps - which is why I'm trying to write it in Pure Actionscript). I'm trying to access the PHP/Zend service that I downloaded, and used in the following tutorial:- http://www.adobe.com/devnet/flex/testdrivemobile/articles/mtd_1_1.html The PHP code that I'm connecting to is

Flex is deserializing generic objects from Zend AMF instead of strictly typed objects

眉间皱痕 提交于 2019-12-12 02:54:41
问题 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 . What am I doing wrong? Php declaration of class: <?php

BlazeDS custom serialization causes RangeError

你离开我真会死。 提交于 2019-12-12 01:27:26
问题 I am using BlazeDS to communicate between Java and Flash/Flex. And everything works fine, except that Java Null Integer becomes 0 on Flex side. To handle the problem with transferring a Java Null Integer to an Flash/Flex int, I have implement a custom serialization, which works on the Java side and uses negative values to express Null values. After implementing that I get an RangeError: Error #2006: Der angegebene Index liegt außerhalb des zulässigen Bereichs. (in english: the index is out of

How does Flex 3 datagrid paging work?

爱⌒轻易说出口 提交于 2019-12-12 01:17:12
问题 How does paging work, must Flex load in all the database records to determine how many pages to generate? Let's say I have a table with 10,000+ records and want to split it into pages of 10 records per page into a datagrid component. Does Flex load in the complete 10,000+ records, or just some of them? I would like to use PHP and AMF on the backend. 回答1: We also tried to make this a bit easier in Flash Builder 4 (and support any kind of data/server technology). 回答2: Here is a good article on