A Flash Developer Resource Site

Results 1 to 17 of 17

Thread: [security] key code for "Print Scrn" key?

  1. #1
    Member
    Join Date
    Jan 2002
    Posts
    85

    [security] key code for "Print Scrn" key?

    Hey Everyone,

    I recently found someone illegally taking screen caps of one of my flash pieces. Does anyone know of a way to get the key code for the "Print Scrn" button on a PC keyboard? The idea is to have images' visibility set to false if that key is pressed. Or if anyone knows another way, let me know. Thanks,

    _eck

  2. #2
    Senior Member mbenney's Avatar
    Join Date
    Mar 2001
    Posts
    2,744
    all they have to do is take the focus off your movie...

  3. #3
    Member
    Join Date
    Jan 2002
    Posts
    85
    mbenney,

    Oh...I see. There's nothing I can do then.....?

    _eck

  4. #4
    SaphuA SaphuA's Avatar
    Join Date
    Oct 2002
    Location
    The Netherlands
    Posts
    2,180
    I'm realy not sure about this...

    But there might be a coding language that can detect if the printscreen button has been pressed. If you can somehow make this code start a function in Flash to whipe out the screen, then there could be a chance you're saved. But then again, there are a lot of programm's that capture your screen, so you images can always be stolen.

    Edit: I know that Flash can't detect if the printscreen button has been pressed.
    Last edited by SaphuA; 06-09-2004 at 01:35 PM.

  5. #5
    Member
    Join Date
    Jan 2002
    Posts
    85
    SaphuA,

    That's an excellent idea. It's definitely something I'll have to work on and likely it will take more work than the actual amount of money I lose because of these pilferers, but as a matter of principle, I'll look into it.

    Thanks again.

    _eck
    Last edited by dreckleburg; 06-09-2004 at 01:03 PM.

  6. #6
    Untitled-1.fla strille's Avatar
    Join Date
    Mar 2001
    Location
    Sweden
    Posts
    1,626
    There's nothing you can do to stop someone from taking a screen shot of you flash movie. You cannot detect the print screen button being pressed to my knowledge (fscommand("trapallkeys", true); will make some special keys like Esc and F1-F12 detectable, some only works in the stand alone player).

  7. #7
    Feeling adventurous? T1ger's Avatar
    Join Date
    Mar 2004
    Posts
    850
    It is possible to protect your flash movie from being screenshotted in some ways!

    In javascript, you can make a function that clears the clipboard data every, lets say one or two seconds, and that protects against the print screen thingie...

    "But what if I open the swf file directly?"

    Have some URL checking in it, letting things show only if the URL is e.g. "http://www.yourdomain.com/*", can't remember the code right now... If it's not, then _root._visible = false;

    There are other programs that can capture the screen and save the image instantly, which the javascript mentioned above will not protect against. These I dont know how to protect against, but if you have a pause screen or something that covers most of your flash movie if the user unfocuses the movie, or presses any other button than the ones required to play your game (those buttons that can be checked).

    I can't think of any other methods right now...

  8. #8
    Senior Member
    Join Date
    Aug 2003
    Posts
    438
    One word.
    Decompliers.

    Even if you have a function that kills anybody who presses "Print Screen", decompliers can easily steal the images.

  9. #9
    Senior Member
    Join Date
    Mar 2002
    Posts
    249
    Originally posted by T1ger
    In javascript, you can make a function that clears the clipboard data every, lets say one or two seconds, and that protects against the print screen thingie...
    I'd STRONGLY recommend against doing this. You might save your SWF from being image captured by one or two people but in doing non-standard things like clearing the clipboard you'll be pissing off all your legitimate visitors.

  10. #10
    for the win Asclepeos's Avatar
    Join Date
    Dec 2000
    Posts
    388
    anyone that paranoid about protecting their work deserves to have it stolen.

  11. #11
    Member
    Join Date
    Jan 2002
    Posts
    85
    Excellent ideas, everyone! I'll have to come to grips with the idea that anyone who really wants an image can get it eventually. But these ideas should be enough to make it too difficult for the casual image harvester. Again, thanks.

    Cheers,

    _eck

  12. #12
    Feeling adventurous? T1ger's Avatar
    Join Date
    Mar 2004
    Posts
    850
    Asclepeos: Even though your join date is older than mine, I have a higher PPD than you! :P

    (Posts per day)

  13. #13
    Ihoss
    Guest
    We have had a million threads like this and the final conclusion in all of them is that we can make it harder for those who want to steal our work, but we cant stop them. And sometimes the making harder part is not worth it.

  14. #14
    Senior Member mbenney's Avatar
    Join Date
    Mar 2001
    Posts
    2,744
    Originally posted by T1ger
    Asclepeos: Even though your join date is older than mine, I have a higher PPD than you! :P

    (Posts per day)
    haha, no one cares

  15. #15
    Feeling adventurous? T1ger's Avatar
    Join Date
    Mar 2004
    Posts
    850
    Originally posted by mbenney
    haha, no one cares
    Yeah I know

  16. #16
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,223
    Originally posted by T1ger
    In javascript, you can make a function that clears the clipboard data every, lets say one or two seconds, and that protects against the print screen thingie...
    All they need then is to turn off javascript.

  17. #17
    Feeling adventurous? T1ger's Avatar
    Join Date
    Mar 2004
    Posts
    850
    There's always a way to pass all kinds of security... My suggestions makes it harder to get the art, but there's always a way around. If you make a game, and it gets somewhat popular, and then someone steals your art, it's not a big loss.. Most people will know that it's yours, and it will most likely be mentioned in a thread here at this board.

    [offtopic]
    Ironicly, I think the vast majority of people playing flash games is game-developers like us.. hehe..
    [/offtopic]

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center