Women in Technology

Hear us Roar



Article:
  Ten Tips for Building a Flash Remoting Application
Subject:   Images? Movies?
Date:   2003-10-03 07:29:44
From:   anonymous2
From my own experiments with Flash Remoting (using Player v.6) you can transmit only primitive types or user defined objects.
I was searching a lot for any info on how an image (basically a movie object) can be transmitted (upld/dld) using Flash Remoting, but I couldn't find anything pertinent. AMF being a binary format it should be no problem in sending a movie over the wire. Of course if Flash knows how to encode/decode it.
When the documentation says that you can send Flash objects from the Player and receive ASObjects on the server (and vice versa) does this also implies movies?!
If not, then it seems like a serious architectural limitation.
Could anybody comment a bit on this topic, please. The MM newsgroups look almost dead.
Full Threads Oldest First

Showing messages 1 through 8 of 8.

  • Images? Movies?
    2003-10-04 07:02:32  anonymous2 [View]

    What would be the advantage of passing a movie through Flash Remoting rather than simply loading it via loadMovie?
    • Images? Movies?
      2003-10-05 23:29:16  anonymous2 [View]

      We have a DB of tens of thousands (and the project is yet to be in full blown, so eventually we expect several hundreds of thousands) of images. They are NOT stored as files on disc for various reasons so we want to stream them to Rich Web Clients (Flash being the main target), let the users apply all kind of changes on a image and then stream it back to server.
      The whole point is if Flash can actually do these things via Remoting.
      • Images? Movies?
        2003-10-07 04:23:37  anonymous2 [View]

        Well, what I realized from my own experiments it was finally confirmed by "an insider". You CANNOT send images/movies/sound via Flash Remoting!
        What is weird, technically speaking the Flash Player and the AMF format allow us to do it. But what MM did (and it seems that all big companies become greedy sooner or later), was to not expose these methods via Remoting, but only via Flash Communication Server.
        So in order to use something that there you already have inside the Player, you have to BUY yet another product.... which by the way is not even useful for my problem because I do NOT want live video, real-time communications blah, blah, blah. I just wanted to transfer some images back and forth from the player to the server. And it's even not possible, even too expensive to do it!
        • Images? Movies?
          2003-10-25 10:16:20  anonymous2 [View]

          Just use LoadMovie. That works with images. If your images are stored in a database, use a server-side page to pass the image:

          this.createEmptyMovieClip("myImage",4);
          myImage.loadMovie("myImagePage.cfm?id=" + someId);

          In CF:

          <cfparam name="url.id" default="0" type="number">
          <CFTRY>
          <CFQUERY NAME="rs" DATASOURCE="myimages">
          SELECT imagename FROM mytable WHERE imageid = #url.id#
          </CFQUERY>
          <!--- ///////////////////////////////////////////////////// --->
          <!--- // Force the browser to download the image file. //--->
          <!--- ///////////////////////////////////////////////////// --->
          <CFCONTENT TYPE="image/gif" FILE="d:\webroot\images\#rs.imagename#"><cfabort>
          <CFCATCH>
          <CFCONTENT TYPE="image/gif" FILE="d:\webroot\images\blank.gif"><cfabort>
          </CFCATCH>
          </CFTRY>
          • Images? Movies?
            2003-10-30 01:11:28  xeal [View]

            OMG... before replying why don't you READ what is written above... I will repeat only one sentence:
            "You CANNOT send images/movies/sound via Flash Remoting!"

            So your loadMovie thing does NOT make any sense!

            Xeal

            P.S. I didn't think there can be something worse than VB ... until I saw the first piece of CF "code" :)))
            • Images? Movies?
              2003-11-08 13:28:29  anonymous2 [View]

              Yes you can do what you are planning within flash however it would require a bit of CF. How do I know? I have already built what you have described above. Cheers-
            • Images? Movies?
              2003-10-30 06:01:51  anonymous2 [View]

              >P.S. I didn't think there can be something worse than VB ... until I saw the first piece of CF "code" :)))

              There's nothing wrong with CF or VB. Try them sometime. You'll be surprised when you get things written faster.

              No, Flash Remoting does not do everything. Used in conjunction with loadMovie it does exactly what you want it to do. What exactly are you looking for?
              • Images? Movies?
                2003-12-14 23:50:52  xeal [View]

                Well, Basic was my first language on the old ZX Spectrum... some years ago :)
                Then, I also used VB for Win16 then Win32, until Delphi was out then C++ Builder.
                I highly prefer C/C++/Java/C# syntax and for example now I'm using .NET and C# for web dev. And C++ for non-Windows things. And I do not have any reason to buy CF ... to get what? A fancy HTML-looking syntax? :)
                Some time ago, while I was still a "greenhorn" in Flash Remoting, I wanted TO SEND images from Flash to server. Then I realized it's simply not possible. The Flash Player does NOT send the MovieClip object (among many others) via AMF. As simple as that.
                So I changed the strategy and I'm sending back to server the list of "changes" applied to the image, then the server does the real processing and the Flash Player is reloading the image via loadMovie.
                And, btw, even if I would like "to donate" some money to MM and buy the CF server... it would be useless... it does not run on my target platform... and it will never do it ;)

                .x.