Flash as3.0 screen shot with php

hello, i'm so close to actually getting this to work and i'm
breaking down and asking for some help. here is my actionscript and
php codes, why doesn't this work?
the link for a preview and the error:
Link
here

I think the JPEGEncoder class originally came from the other
source (I'm not 100% sure but the code is basically identical -
there are comments to the effect that a few tweaks have been made).
No issue with that though.
What the bytearray implementation does is implement the
uploading/saving support .
The implementation at bytearray was done using amfphp (flash
remoting with php) with amf3 encoding format.
I presumed you were trying to avoid using amfphp remoting and
just transfer the jpeg data in a binary format in your POST method
upload. I presume that might work given that you can do binary
transfers using as3... although I've never tried it.
But the issue earlier appeared to be that your php script
wasn't accessible which is (I believe) an issue unrelated to any of
the code and something to do with how your server is set up. (I
didn't delve too much into the code yet, because I can't see how it
can work at all unless this is addressed first).
Do you have PHP set up on your server? I assumed earlier that
you had and that there was some other problem. If you don't have
php set up then no php code will run. If you do have it set up then
the problem is (I believe) something to do with how things are set
up on your server (as long as the create.php file is in the same
directory as the html).
Coldfusion has (or used to have when I used it some years
back) flash remoting support built in.
But I guess if you can send the jpeg binary data directly via
POST you don't need remoting.
If I get time over the weekend I'll see if I can get it
working the way you're trying to do it. (My first inclination would
be to try to use amfphp and just replicate the bytearray example,
but I'm also interested to see if it can work your way). Unless
someone beats me to it. ;)
GWD

Similar Messages

  • How do I take a screen shot with my iphone 5S?

    How do I take a screen shot with my iphone 5S?

    Press the "Home" button and the sleep/wake button at the same time to take a screen shot.

  • How do I take screen shots with the new update iOS 5 on my iPad and iPhone?

    When I try to take screen shots on both my iPad and iPhone they both come up with the screen to shut down the devices. I've updated both with iOS 5. Any clues on how to take a screen shot with iOS 5?

    As with the previous iOS versions.
    Press and hold the Home button and use the on/off or sleep/wake button as a camera shutter button for the screen shot.
    Or while pressing and holding the on/off or sleep/wake button before the slide to power of appears, use the Home button as a camera shutter button - this must be done before the slide to power off appears.

  • How do I take a screen shot with MacBook Pro?

    Thought I could take a screen shot with my MacBook Pro but can't find any instructions.  Help

    Press the Shift, Command, and 3 keys to capture the entire screen.
    Press the Shift, Command, and 4 keys to capture a draggable part of the screen.
    Press the Shift, Command, and 4 keys followed by the spacebar to capture a window.
    Open the png on the desktop.
    (82116)

  • How do you do a screen shot with a MacBook Pro?

    How do you do a screen shot with a MacBook Pro?

    Use this keyboard key combination:
    Shift + Command + 3 [⇧⌘3]. The file will appear on your desktop as a JPG file (default).

  • In power mac g5, how to take Automatic Screen Shot with Date

    in power mac g5, how to take Automatic Screen Shot with Date ?
    please help me

    If you are standing by, and activating the process by keyboard
    you could be sure to include the open Date Time menu bar
    image in a complete screenshot, using cmd shift 3. Or outline
    the area you want if not full-screen, by using cmd shift 4.
    The command button may also have an apple icon on it.
    So that's the three key shortcuts for full & partial screen.
    For a more automated method, perhaps try using software to
    run an AppleScript, like Automator. Then write a script or find
    one that you can modify to do tasks and test it.
    There may be other methods, however identifying your intent
    would be higher on the list at this time; to narrow the method.
    Good luck & happy computing!

  • How do I take screen shot with preview if when I click preview iCloud comes up?

    I recently updated iCloud.  Now when I open preview to take a screen shot of a page that I am working on iclid comes up and obstructs the page.  How do I get back to the screen that I want a scene shot of?

    As with the previous iOS versions.
    Press and hold the Home button and use the on/off or sleep/wake button as a camera shutter button for the screen shot.
    Or while pressing and holding the on/off or sleep/wake button before the slide to power of appears, use the Home button as a camera shutter button - this must be done before the slide to power off appears.

  • Screen Shot with Final Cut Pro???

    does final cut have like a screen shot deal. what i am trying to do is take a screen shot or freeze a frame of video and make it a JPG. and i havent figured it out. am i calling it a different name than what it is. i have just started with Final cut. so i am a newbie

    If you want a shot of your screen or even just a section of it, you can use Grab.
    If you want to export a still frame of a video clip from FCP that you can use in other programs (Photoshop, etc), park the FCP playhead on the frame you want and then go to File->Export->Using QuickTime Conversion. Choose "Still Image" from the Format menu and then choose the file type from the Options menu.
    -DH

  • Take screen shot with AIR application

    Hi,
    Anybody know about how to capture screen shot of our screen with an desktop AIR application? I need to create an desktop app with screenshot taking feature.
    Thanks

    Yes,
    I think you can use the ImageSnapShot class, and thern use the bitmap data from it as you desire.
    You can use the snapshot to take a grab of any element/child in your application or presumably you can take a snapshot of the main application if you want the whole lot.
    I used this method recently to print a screen state.
    var imgWidth:Number = 400;
    var img:SWFLoader = new SWFLoader();
    img.id = "appSnapShot";
    var imageSnap:ImageSnapshot = ImageSnapshot.captureImage(myScreenInstance as IBitmapDrawable);
    var imageByteArray:ByteArray = imageSnap.data as ByteArray;
    img.load(imageByteArray);
    img.scaleContent = true;
    img.width = imgWidth;
    img.maintainAspectRatio = true;
    application.addElement(img);
    Maybe that will help.

  • Screen shots with ipad air

    Hi, how do I take screen shots on the ipad air? I seem to be shutting my ipad down when I try holding the off switch and the home key.

    Tap the On/Off button, then quickly tap the home button. You don't need to hold the buttons for longer than ~1 second. The captured photo will be in your camera roll.

  • Screen shots with ipad camera

    how do I take a screen shot using my ipad camera?  I read in the WSJ that you hold down the home and on/off keys, but when I do that  I just get the hard shut down screen.  Am i doing something wrong?  thanks!

    No, same process works on all iOS devices. You must be doing something not quite right.
    Whilst holding the Home button (the one on the front of the device below the screen) just tap the on/off switch. That's all there is to it. You must make sure you are holding the Home button before tapping the on/off switch.

  • Using SSL in flash builder 4 data service with PHP

    I am converting a program I wrote with Flex 3 into Flash builder 4, and I wanted to try to use the built-in data services instead of using the httpservice as I was doing before. The one thing I cannot figure out is how to make it use a secure connection (https) when connecting to that data service. I have looked everywhere I can think of and cannot find where I can set this. Anyone know where and how to set this? The server I am connecting to only allows secure connections, so doing it any other way is not an option.
    Thanks.

    Having the same problem with a Java REST service using HTTPS requests, Adobe Air appears to ask to verify the certificate with every single request on windows ???  and on mac after accepting the certificate  we do not get a result?

  • TS4044 HOW DO  I GET A SCREEN SHOT, WITH MACBOOK PRO

    can you tell me how i get a screenshot with mac book pro?

    Press the Shift, Command, and 3 keys to capture the whole screen.
    Press the Shift, Command, and 4 keys to capture a draggable part of the screen, or follow it with the spacebar to capture a window.
    Open the PNG on the desktop. Alternatively, combine either of the above with the Control key to put the screenshot onto the clipboard instead of the desktop.
    (104898)

  • You can take screen shots with your ipod touch!

    I found this by accident.press the power button and home button at once but dont hold and the screen will flash.Now go look in your pictures or photos. It will be in there.=)
    p.s sorry if this has been posted already just wanted to share it.

    I noe!!! It's cool right?...I didn't know u can do that until a class mate showed me...It's so fun and if u have a pic tht u dn't like how it's positioned u can fix it by taking a pic of it and fix it how want it

  • Screen Shot with Ipad

    For some reason I am unable to "screenshot" from Ipad, when I hold down home and on/off key, it shuts off my IPad, is there a setting I have to change??? Also have the same issue on my IPhone.
    thanks any advice or tricks would be greatly appreicated.

    You may need to calibrate Home Button
    1. Open a stock application like Calendar, Weather or Youtube
    2. Hold down the power button until the "slide to power off" control appears
    3. As soon as you see it, press the Home button and keep it pressed until the red slider disappears and the app is forced quit to the Home menu

Maybe you are looking for

  • Hyperlink to a later page/text in a pages document

    how do i hyperlink a piece of text, say on page one of a 66 pages document, to another pece of text on page 53 of the same document?

  • Interactive slideshows

    Hi, I'm looking to make an interactive slideshow for my website. As a photographer, I would like to be able to have each categorical page of photos be easy to scroll through without clicking a large number of thumbnails. An example of what I would li

  • Help need with dire problem please.

    Hi all, my 24 inch iMac has spat the dummy! I installed a trial version of Photo Shop and somehow while attempting to install the program I got a weird series of screen images with the prohibition sign......never seen this one before. Tried to do a r

  • How do I get Garageband on Macbook with OS X 10.7.5 please?

    Hi, I just bought a refurbished Macbook Pro with OS X 10.7.5.    I tried to buy Garageband on the Appstore but that version needs a more recent OS. Is it possible to buy an older version that would work on my Macbook, please?  If so, where can I buy

  • File | Preferences | General Option Missing

    I upgraded from FrameMaker v7.1 to v8 a week ago. Today Adobe auto-installed v8p277. My OS is WinXP Prof with SP2. I just notice the Preferences option is no longer in the File menu. Is this a bug? If not, how do I set the preferences? Thanks, Debbie