Women in Technology

Hear us Roar



Article:
  Ten Tips for Building a Flash Remoting Application
Subject:   Images? Movies?
Date:   2003-10-07 04:23:37
From:   anonymous2
Response to: Images? Movies?

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!
Full Threads Newest First

Showing messages 1 through 5 of 5.

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