Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-01-2005, 08:25 PM
Member
 
Join Date: May 2003
Posts: 35
Default Disable copy & paste

Can pasting text into a Flash text field can be disabled from SWFKit?

Disabling the clipboard altogether would work too.
Reply With Quote
  #2 (permalink)  
Old 09-02-2005, 10:20 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Disable copy & paste

You have to develop a hook dll to remove the "ctrl+V" key pressing messages.
Reply With Quote
  #3 (permalink)  
Old 09-02-2005, 01:21 PM
Member
 
Join Date: May 2003
Posts: 35
Default Re:Disable copy & paste

I am not a DLL developer and I don't have any VB or C development software.

Does anyone have such a DLL to share with people like me?
Reply With Quote
  #4 (permalink)  
Old 09-03-2005, 08:15 PM
Member
 
Join Date: May 2004
Posts: 78
Default Re:Disable copy & paste

Why can't you just change the textfield within Flash itself? If it is an input textfield, change it to a dynamic textfield that cannot be edited.

If you need something to change from an input textfield to a dynamic textfield you could have a movie clip that is triggered, changing the textfield from one to the other. If vital to your project, you could get SWFKit to trigger the change.
__________________
:)
Reply With Quote
  #5 (permalink)  
Old 09-06-2005, 01:50 PM
Member
 
Join Date: May 2003
Posts: 35
Default Re:Disable copy & paste

I use an input field simply because input from the user is required.

I'm just trying to minimize bad input from smart ass users.
Reply With Quote
  #6 (permalink)  
Old 09-07-2005, 12:59 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Disable copy & paste

Please try the attached dll. To define the functions exported by the dll in swfkit pro, please copy the following code into the "initialize" script

Code:
Dll.registerFunction(getAdditionalFile("DisablePaste.dll"),
"DisablePaste",
"disablePaste", "stdcall", "void", "long");

Dll.registerFunction(getAdditionalFile("DisablePaste.dll"),
"DisableCopy",
"disableCopy", "stdcall", "void", "long");

Dll.registerFunction(getAdditionalFile("DisablePaste.dll"),
"DisableCut",
"disableCut", "stdcall", "void", "long");

disablePaste(true);
disableCut(true);
disableCopy(true);
These functions will disable the cut, copy or paste operations in all text fields. If these functions take a parameter "false", the operations will be enabled.
Reply With Quote
  #7 (permalink)  
Old 09-07-2005, 01:39 PM
Member
 
Join Date: May 2003
Posts: 35
Default Re:Disable copy & paste

Super.

I'll give it a go today.

Thankx a lot SWFKit crew )
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:58 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.