Skip navigation
Home/Support/

Forums

4699 Views 14 Replies Latest reply: May 14, 2009 1:10 AM by Stefan Richter RSS
Stefan Richter Community Professional 119 posts since
Feb 12, 2002
Currently Being Moderated

May 12, 2009 1:27 PM

Connecting via AS2 - Any chance at all?

I'm currently planning a project which requires a mobile client in addition to a desktop client. The mobile client uses Flash Lite which is still AS2 based. Is there any chance at all that a connection to AFCS can be made via AS2?

I really want to use AFCS for this project, and my browser based prototype built in Flex works. However if the mobile client cannot be connected to AFCS then we will have to fall back on FMS which would allow for the collaboration of a browser based app with a mobile Flash Lite client (and that will be pretty neat).

 

All we need is to receive audio (we know this works with FMS), share one data property and maybe hook up a text chat. That's all. Do we stand any chance with AFCS or should we wait for Player 10 on devices before AFCS will extend to that platform?

 

Cheers

 

Stefan

  • Nigel Pegg Adobe Employee 915 posts since
    Nov 6, 2008
    Currently Being Moderated
    1. May 12, 2009 1:39 PM (in response to Stefan Richter)
    Re: Connecting via AS2 - Any chance at all?

    Hi Stefan,

     

    I'm pretty sure there's no reason connecting via AS2 couldn't work - what would be necessary is to take the existing AS3 source and back-port it. We've thought about this in the past, but don't really want to take the step of officially supporting another codebase. The most important thing is making sure the Lite Player can do netconnection.call as well as receive calls from FMS (I know it doesn't support SharedObjects, for example, but I think NetConnection is ok).

     

    If you're up for that sort of challenge, we'd certainly be happy to help guide you through any issues you hit, and could help determine the least number of classes it would take to get the features you need.

     

      hope that helps

       nigel

  • Nigel Pegg Adobe Employee 915 posts since
    Nov 6, 2008
    Currently Being Moderated
    3. May 12, 2009 2:25 PM (in response to Stefan Richter)
    Re: Connecting via AS2 - Any chance at all?

    Hi Stefan,

     

    Yeah, it was my impression (caveat, I might be wrong) that RSOs weren't supported in Flash Lite, even on FMS.

     

      In theory, all of AFCS session/sharedModel/sharedManagers should be doable with Flash Lite, since we only use nc.call for all communications. There shouldn't be any compatibility issue.

     

      nigel

  • Raff. Adobe Employee 755 posts since
    Nov 6, 2008
    Currently Being Moderated
    4. May 13, 2009 10:27 AM (in response to Nigel Pegg)
    Re: Connecting via AS2 - Any chance at all?

    Well, for the life of me I cannot find a straight answer about NetConnection.call being supported in FlashLite

     

    I know for sure that up to FlashLite 2 NetConnection was only usable to initiate a streaming session, and no data messaging was supported.

    With FlashLite 3 I was promised that some form of messaging was added, and we assumed it was NetConnection.call (while remote shared objects are still unsupported) but I can't find anything written about that.

     

    Maybe I'll see if I can give it a try, at least with the simulator, but again, if this is supported at all is going to be only for devices with FlashLite 3.

  • Nigel Pegg Adobe Employee 915 posts since
    Nov 6, 2008
    Currently Being Moderated
    7. May 13, 2009 1:29 PM (in response to Stefan Richter)
    Re: Connecting via AS2 - Any chance at all?

    Sure - now, I'll warn you that this list will look intimidating, but in reality a lot of these classes should be able to port with little to no work involved.

     

    All of this is under /com/adobe/rtc

     

    /authentication : Abstract and AdobeHSAuthenticator

    /messaging : All of it

    /session : All of it, except SessionManagerLocalConnection, ConnectSessionContainer, and SessionContainerProxy

    /sharedManagers : All of it

    /sharedModel : CollectionNode and UserQueue (if you want to support RoomManager knocking, if not, comment out of RoomManager).

    /util : RootCollectionNode, likely URLParser

     

    You might find more dependencies, but this is about it. For now I'd change any namespaces (session_internal, message_internal) to public and be done with it.

     

      If you have any questions, let us know!

       nigel

  • Nigel Pegg Adobe Employee 915 posts since
    Nov 6, 2008
    Currently Being Moderated
    10. May 13, 2009 1:48 PM (in response to Stefan Richter)
    Re: Connecting via AS2 - Any chance at all?

    I think you're asking the wrong people =). I haven't tried, and in fact for the longest time we stuck to AMF1 just to be safe - so for sure AFCS works fine with old AMF or new. Don't know what FL3 supports though.

     

      nigel

  • Raff. Adobe Employee 755 posts since
    Nov 6, 2008
    Currently Being Moderated
    12. May 13, 2009 4:19 PM (in response to Stefan Richter)
    Re: Connecting via AS2 - Any chance at all?

    So, I did give this a try with the FlashLite simulator and calls do seem to go through. Don't have a phone with me (having moved to "the Phone" ) so I can't try on the real device until Friday (unless I can run my test on a Chumby )

     

    But I did found a couple of problems:

    - XML.load doesn't seem to follow redirects. I am sure it should work, but I'll need to do more investigations

    - RTMPS doesn't seem to work, but RTMP does work. This may be were you will have to give up AFCS (we only support RTMPS) and use your own server

    - I get onStatus messages for a connection success, but not for connection close

     

    Again, all this is on the simulator, so on a real device it may be completely different, but if it works...

  • Raff. Adobe Employee 755 posts since
    Nov 6, 2008
    Currently Being Moderated
    14. May 14, 2009 1:24 AM (in response to Stefan Richter)
    Re: Connecting via AS2 - Any chance at all?

    The Nokia smartphones should come with FlashLite preinstalled (but I lost track of which version is on which phones), otherwise you can download FlashLite 3.1 from Adobe labs. Once installed you just drop your SWF on the phone (I used to send it via Bluetooth) and it should appear as a regular application (or you can run it via the Flash player)

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points