I'm designing a system that requires access to the end users system clipboard... namely to prevent the use of Print Screen by sending " " (space) to the clipboard once a second...
This is working fine when I run the test in flash.... however when I transfer it to the browser, and try and run it from there... for 1 it does not connect to system.Clipboard() and 2, the loop is not working (I put a coloured box on the timeline to ensure that the script is looping for now).
Can someone please take a look and tell me what I'm doing wrong please? I'm totally new to flash / AS3 as my area of expertese is PHP / Mysql..
Thanks to anyone that can help..
The broken test page:
C:\Documents and Settings\Nathan Webb\Desktop\flashtest\nocopy.html
Source:
C:\Documents and Settings\Nathan Webb\Desktop\flashtest\nocopy.fla
If anyone has a better way of doing it than I have tried, then please go ahead and tell me.. I did also try this below but got a error message...
:Actionscript in frame 1
The Code:
function ClearClipBoard(){
System.setClipboard("");
setTimeout(ClearClipBoard(), 1000);
}
setTimeout(ClearClipBoard(), 1000);
Output:
Error: Error #1023: Stack overflow occurred.
at Untitled_fla::MainTimeline/ClearClipBoar…
at Untitled_fla::MainTimeline/ClearClipBoar…
at Untitled_fla::MainTimeline/ClearClipBoar…
at Untitled_fla::MainTimeline/ClearClipBoar…
at Untitled_fla::MainTimeline/ClearClipBoar…
P.S. if anyone is concerned that I should not be connecting to a users clipboard, they will be informed that the system will be doing this before the flash document is loaded into the webpage.
This post has been edited by webbhost: 09 March 2011 - 06:13 PM
Help
















