4 Replies Latest reply on Jul 5, 2007 9:37 PM by kglad

    Upload movie clip

    Craig Grummitt Level 3
      i have uploading a local file to a server working fine using the FileReference class, but this class seems to require a local file to upload. is it possible to say, take a capture of a movieClip using BitmapData and then to upload this data?

      Cheers
      Craig
        • 1. Re: Upload movie clip
          Craig Grummitt Level 3
          apologies, a little more googling and i think i've found some answers to this question:

          it appears as though in as2, there are no standard classes available with a good solution to this problem other than looping through every pixel in bitmapdata. there appear to be folks out there who have set up compression algorithms - gskinner, for example but i haven't found any sample code out there - anyone else had success in this area want to share?

          oh and in as3 BitmapData.getPixels() does the looping through the pixels for you, and a compression algorithm comes standard - ByteArray.compress.

          (though i am trying to avoid as3 for this particular project)

          Thanks
          Craig
          • 2. Re: Upload movie clip
            kglad Adobe Community Professional & MVP
            yes, i used mario klingemann's (quasimondo.com) bitmapexporter class to take save and email an image to users.

            http://www.quasimondo.com/archives/000572.php
            • 3. Re: Upload movie clip
              Craig Grummitt Level 3
              many thanks for that kglad. i researched quasimondo's bitmapexporter class. (great site by the way - some very interesting projects there) afraid we can't use the php page example and developing a cold fusion page to work with it was too much time investment(especially for a deprecated as2 strategy).

              at this stage we may have to move up to as3 and flash9 player using the zlib compression. in which case it looks as though it may still require some serverside time investment with java coding...

              anyway, thanks again for your help.
              craig
              • 4. Re: Upload movie clip
                kglad Adobe Community Professional & MVP
                you're welcome.