amf

RubyAMF and Rails 2.3.3

Is anyone else seeing unpredictable results using Flex 3 with Rails 2.3.3 and RubyAMF 1.6.5? I had to revert back to Rails 2.3.2. Anyone have a clue what's going on? ...

What could cause a failure in PHP serialize function?

I have some serverside PHP code that attempts persist a data object (essentially an multi-dimensional array) to a backend database. This data object originally comes in as AMF actionscript object sent from a flex application. I want persist the object in whole for later use so I have used the php serialize function and encode the object ...

Zend Framework: Does adding a class to Zend_Amf instantiate it?

Hi, I'm wondering if I can use a constructor within a class I am writing to provide a Zend_Amf gateway. When I do: $server = new Zend_Amf_Server(); $server->setClass('Foo'); $response = $server->handle(); echo $response; Does foo's constructor get run here? The reason for asking is that I need my 'Foo' class to access other objects a...

Zend_Amf and Actionscript 2

Anyone know if Zend_Amf (1.9) can talk to Actionscript 2 which uses the Amf0 specification? All the examples in the Zend docs are for Actionscript 3. ...

Zend_Amf headers

I'm using charles proxy to debug a zend amf response. The headers are coming back as: HTTP/1.1 200 OK Date: Sat, 29 Aug 2009 10:04:32 GMT Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8k DAV/2 PHP/5.3.0 X-Powered-By: PHP/5.3.0 Content-Length: 33 Content-Type: text/html; charset=utf-8 Should the content type be application/x-a...

Should I build Flash-based chat with rubyAMF?

just what the question says, but here is more info - project involves creating a Flash front-end to a RESTful Rails app that will load banner ads, twitter feed, list of movies, etc. all read-only as far as Flash is concerned (for now). There will also be a live chat window with the ability to create private rooms. Is there anything...

How does AMF communication work?

How does Flash communicate with services / scripts on servers via AMF? Regarding the AMF libraries for Python / Perl / PHP which are easier to develop than .NET / Java: do they execute script files, whenever Flash sends an Remote Procedure Call? or do they communicate via sockets, to script classes that are running as services? Rega...

What's a good way to map from service fields to Flex value objects?

I'd like a generalized approach to mapping from conventionally-named and conventionally-typed database objects, delivered using AMFPHP, to Flex/Actionscript naming conventions and types. I want to map naming conventions; SQL is case-insensitive, so our data model has column names like object_id. Convention, however, is that our flex o...

Flex 3 / Coldfusion 8 Problem with Numbers

We recently migrated from coldfusion 7 to coldfusion 8. One of our reporting flex apps takes the returned results of a cfc query and adds up a column in that ArrayCollection. It worked on coldfusion 7, but now, in coldfusion 8, it sees that column as a string instead of a number, which is causing NaN errors on negative values. Its a nume...

Flex: AMF and Enum Singletons – can they play well together?

I'm using Python+PyAMF to talk back and forth with Flex clients, but I've run into a problem with the psudo-Enum-Singletons I'm using: class Type { public static const EMPTY:Type = new Type("empty"); public static const FULL:Type = new Type("full"); ... } When I'm using locally created instances, everything is peachy: if...

Is AMF only for Flash?

I am new to AMF and I learned that AMF is supposedly very fast. I was wondering if I should use it for all my web services. Is it still fast without flash VM? ...

Switching to ColdFusion?

Hello, I am currently building an Adobe Air desktop app for a medium sized company and I truley believe that I could use this same app for many other 'like-companies'. It will greatly improve their efficiency and save them money; and hopefully make me some money too! :) I am in the process of designing the database structure and the lay...

Flex and Zend_AMF: How do I get a Flex arrayCollection from Flex into PHP?

I currently have an arrayCollection in Flex and I want to sent it to PHP (Zend_AMF). According to the Zend_AMF wiki, sending an arrayCollection over directly will force Zend_AMF to cast the arrayCollection as an object which is no good. I'd rather have an array of my models. I assume the best way would be to convert the arrayCollection...

AMF message structure?

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 document...

Django + pyamf: Strange exception when calling the gateway from actionscript application

Hi! Could you please help. I am using the django-amf-gateway application (http://bitbucket.org/wolever/django-amf-gateway). I defined the gateway this way: from django_amf_gateway import register_amf_service from goserver.models import Game class ChangeService(object): def state(self): game = Game.objects.get(id = 1) ...

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

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 firew...

AMF client in Java

Hi I am using BlazeDS java client to get info from this page. This page has a form in the middle that when you select a type, the location combo on the button gets updated. I am trying to use BlazeDS to get those values in java. I have been using Charles web proxy to debug, and this are the screenshots from the request and the response...

PHP admin screens for Flex objects

I am creating Flex application that will call PHP via Zend_Amf. It's basically CRUD operations with file uploads sometimes. This will require to create admin screens for PHP side (for editing various records on server) automatically, using scuffolding. It seems that CakePHP would do well at generating admin screens. How well does Cake...

Flex RemoteObject: Arrays with same values reference same memory

If I send remote data from Zend_Amf to Flex, if two array properties on the object have the same data values they are deserialized at the remote end with the same memory storage. Example: AS3 object: Snippet: [RemoteClass(alias="TestVO")] public class TestVO { public var test1:Array; public var test2:Array; } When this receives ...

Air / Flex / Zend Amf - How to move from localhost to web server enviroment?

Hi Everybody, I'm new to flex and Air development and have been stuck on a problem for weeks ;). Are there any Air + Zend Amf examples that use a real world web server and not localhost? Basically I cannot get an Air or Flex application connected to a remote mysql db to work once deployed. How can I successfully move a finished applic...