Results 1 to 3 of 3

Thread: Flash Screenshot

  1. #1
    Join Date
    Jun 2007
    Posts
    25
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Flash Screenshot

    Hey,

    Somebody have an answer to this?

    Is it possible for flash take a screenshot of a users desktop and display it from within the swf? Or does this break a few privacy laws?

    Thanks

    Hurley

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,486
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    yes, with some work

    It is a slow and painful process, but doable.
    {CWoT - Riddle } {OSTU - Psycho} {Invasion - Team}
    Follow Me on Twitter: @Negative_Chaos
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,486
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Another option would be to use BitmapData class. although this is very very slow it will do what you need to as well.

    I can tell you what it should do, but if it doesn't I can't fix it for you, I don't use it...

    Code:
    import flash.Display.BitmapData
    
    bm=new flash.Display.BitmapData(mc._width,mc._height,false);
    bm.draw(mc);
    pixelData='';
    for(x=0;x<mc._width;x++){
    for(y=0;y<mc._height;y++){
    pixelData+=bm.getPixel(x,y).toString(16)+',';
    }
    }
    It should go pixel by pixel in the mc stated and get the information, then in turn changing it to a bitmap file then you can do what you need to with it. It works but is SUPER slow. The idea being you are selecting a certain MC, if you want the whole stage make a holderMC and do the whole stage inside the blank MC. Code the BitmapData to the holderMC and viola a stage screen shot
    {CWoT - Riddle } {OSTU - Psycho} {Invasion - Team}
    Follow Me on Twitter: @Negative_Chaos
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •