Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-23-2008, 10:02 AM
Junior Member
 
Join Date: Jan 2008
Posts: 6
Default Right click -> paste at the textfield

Is there any way to make sure that the context menu will have a 'Paste' option if user right click at the input textfield?
I'm using Flash CS3, AS3.0, SWFkit 3.2...
Reply With Quote
  #2 (permalink)  
Old 01-23-2008, 10:45 AM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: Right click -> paste at the textfield

as long as you dont disable this meny, it always will show paste when rightclicked on t-field
Reply With Quote
  #3 (permalink)  
Old 01-23-2008, 11:02 AM
Junior Member
 
Join Date: Jan 2008
Posts: 6
Default Re: Right click -> paste at the textfield

On 'Right Mouse Button Click', I already set it to 'Show Context Menu'..

Oh.. so, I need change it to 'Show Flash Player Menu' ? but it will show Zoom In, Show All, Play etc when I right click outside the textfield.. how can I get rid of those unwanted menu?
Reply With Quote
  #4 (permalink)  
Old 01-23-2008, 01:08 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Right click -> paste at the textfield

The context menu does not contain a "paste" item, so you will have to choose to either "show flash player menu" or ignore the right click.
Reply With Quote
  #5 (permalink)  
Old 01-23-2008, 03:39 PM
Junior Member
 
Join Date: Jan 2008
Posts: 6
Default Re: Right click -> paste at the textfield

okay, so right now i'm trying to paste clipboard using another way..

I'm creating a button, when user click it, it will insert a clipboard into a textfield with instance name vidID.

when user press that button, it will do
Code:
//AS 3.0
fscommand("FFish_Run", "pasteClip");
vidID.text = clipper
and at swfkit :
Code:
//pasteClip
var clipContent = Application.clipboard.paste()
FlashPlayer.setVariable("clipper",clipContent)
while preview, swfkit trace this :
Code:
FSCommand("FFish_Run", "pasteClip")
Warning: using undefined property "clipboard"
Warning: unknown method "paste"
Warning: using undefined variable "clipContent"
I'm really not so sure if this is a proper way to do what I want :-[.. can somebody explain to me about that warning? and how can I use Application.clipboard.paste() ??
Reply With Quote
  #6 (permalink)  
Old 01-24-2008, 05:45 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Right click -> paste at the textfield

The clipboard feature is only available in swfkit pro. And the way that you call it will not work, as fscommands are asynchronous. Please try the following AS3 code
Code:
import SWFKit.*;
import SWFKit.application;

var clipbd = new clipboard;
vidID = clipbd.paste();
clipbd.Release();
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 04:54 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.