Simeon Says Rotating Header Image

Flash Remoting Adventure

Ok, I will be the first to admit that I am not a flash guru. I have worked on a couple projects, and one with remoting. Today, i feel like I was trying to troubleshoot with a blindfold on.

I have decided I have a gripe. I am sure there are security reasons that back the need for the details that led to my ultimate frustration. However, that helps me feel better, not at all.

On my powerbook, I run jrun, with cfmx running in an instance. I also have apache set to proxy requests to cfmx. This has worked great for me in my CF Development. However today, i decided to try to get pollster ( see DRK 5) working. Pollster is a Hybrid Application allowing you to set up polls in a cf admin and take the polls via a flash interface. You can see the pollster app in action on Ben Forta’s blog and Christian Cantrell’s blog as well.

Anyway, the trouble all boils down to this. Jrun has flash remoting built in that allows you to interface Flash with java. CFMX has flash remoting built in that allows you to interact with cfc and cfm pages. However, the Jrun version will not proccess cfc and cfm files.

All of this is very fine, with the exception of i cant find a way to figure out which one of these is answering my Remoting calls. I can use the netconnection debugger to see what the problem is, (my problem is it cant find my components) but I have no idea which server is doing the work.

This leads me to the problem that frustrated me all day long. i have no idea where to put my files to get them to process via flash remoting. I have tried having them in the docroot set up by apache, the docroot for jrun server, the docroot for cfmx server, I have tried setting up a mapping and trying to reference them via that.

I spent a good portion of the afternoon in sean corfields breeze room where Matt Woodword worked valiantly to help me get my gear running. Spike and Sean chimed in also, but as of yet, I cant get pollster running.

What a mess. Anyone have any suggestions for me?

4 Comments on “Flash Remoting Adventure”

  1. #1 Matt Woodward
    on Dec 2nd, 2004 at 5:02 am

    Hi simeon–sorry we couldn’t get that working for you yesterday. I’m planning on trying to install it on my setup (which is similar to yours, minus apache) today so I’ll let you know how it goes.

    For future reference my blog is http://www.mattwoodward.com/blog

  2. #2 Ed
    on Dec 2nd, 2004 at 8:13 am

    I can’t help with your specific configuration (we’re running IIS), but you might want to flag this long running thread dealing with other Pollster 2.0 problems:
    http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=271&threadid=763575&CFID=18198381&CFTOKEN=76a863b1ed93849b-0B9E3329-BD69-26BC-3BF72492821B4B4D&jsessionid=4830967111086821643052

    Basically, many of us found that the Pollster app works fine if you don’t change the .fla file and you follow the installation/configuration instructions. But if you recompile the .fla file (with or without making changes) then the Results tab is blank and the Archived Polls section is blank or inactive, too.

    No one has been able to show me a site using Pollster 2.0 after making minor changes to the .fla file (eg. text translations) and recompiling as a new .swf.

  3. #3 Ryan
    on Dec 2nd, 2004 at 9:17 am

    Your not going to like this, but I have yet to hear almost anything nice about Pollster 2. Everyone I have spoken with has been traumatized by their experiences with it. I just doesn’t work very well.

    I’m pretty sure at least 2 people I know have even worked with the original developer and eventually made it work. Its just not very stable when implemented in anything but its original pristine form. One of these days MM might be nice and release an updated version with more functionality and a WORKING code base…until then, expect more headaches.

    Because of the horror stories I have heard I have not chosen to use it myself.

  4. #4 simeon
    on Dec 2nd, 2004 at 9:37 am

    I appreciate the comments.

    Although Pollster started the snowball I fought with yesterday. The real question I am trying to sort out now, is……

    Drumbroll….

    When running cfmx on jrun and configuring the apache connector to serve cfm file from the apache docroot, can you also configure the Flash Gateway to server them from the apache docroot. Currently it wants them in the JRUN cfmx server root.

    When I ran cfmx standalone with apache it worked the way I want. And I want to make it work now too.