Flex2 custom RemoteObjectAMF0 (updated for release)

June 30th, 2006 中文

Since the release of Flex2 I have gone back and updated my code examples.

http://renaun.com/flex2/

In particular is the Flex 2 custom RemoteObjectAMF0 class to allow an easy way to connect Flex2 to AMF0 gateways.

You can find the example and source code here.

Entry Filed under: Adobe Flex, Flex,AMF,PHP, Rich Internet Applications

7 Comments Add your own

  • 1. Street  |  2006-07-03 at 11.30 pm

    You are extending NetConnection class which is sealed now. Adobe says we should not do it anymore. I have faced the following problem. The callback functions (AppendToGatewayUrl) are not working correctly anymore. The are not fired. Did you notice that? Do you have any ideas how to fix it?

  • 2. Renaun Erickson  |  2006-07-04 at 1.55 am

    Here is the note in the Adobe Flex 2 documentation.

    Note: This class was dynamic in ActionScript 2.0 but is now sealed. To write callback methods for this class, you can either extend the class and define the callback methods in your subclass, or you can use the client property to refer to an object and define the callback methods on that object.

    I do not have an example of using AppendToGatewayUrl, it seems you have to implement its functionaliy yourself. If you have an example I can use to test it with I’ll take a look.

  • 3. lobo  |  2006-07-04 at 3.43 pm

    I’m having the following error:

    ArgumentError: Error #2004

    On this line:
    gateway_conn.call.apply(gateway_conn,parameters);
    on the file: RemoteObjectAMF0.as

  • 4. Renaun Erickson  |  2006-07-05 at 12.32 am

    What gateway are you connecting to AMFPHP, ColdFusion, etc…
    And what version of the gateway are you using?

    The actually remote call you are trying to make, what is the exact call and what type are the parameters?

  • 5. lobo  |  2006-07-09 at 4.54 am

    AMFPHP 1.2

    It seems it’s an intermittent problem. One of the parameters are an objetct. Sometimes it works, sometimes it don’t. Aparently with the same data, from the same place on the App. Still investigating, tough.

  • 6. Renaun Erickson&hellip  |  2006-07-25 at 2.37 am

    Flex AMFPHP and VO’s (RemoteObjectAMF0 update)

    Thanks to the help of some people on the Flex coders list, I have been able to update the RemoteObjectAMF0 class with some examples of how to use AMFPHP and PHP/AS VO’s. I got this to work with PHP 5.1.1 and PHP 4.3.11.

  • 7. derstepp  |  2006-08-27 at 6.45 am

    hi.. thanks for your code!!!
    In this moment I am doing some research in using flex 2 with openamf, hibernate and spring.

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Disclaimer: I work as a Flash/Flex Developer for Adobe Systems Incorporated. The opinions expressed here represent my own and not those of my employer.

My Amazon.com Wish List

Calendar

June 2006
S M T W T F S
« May   Jul »
 123
45678910
11121314151617
18192021222324
252627282930  

Most Recent Posts


Flex.org - The Directory for Flex