Your posting is unclear. What is it that you want to copy to searchString? Your 
snippet will set searchString to "[object ContextMenu]". Is that really what 
you want?

Also, ContextMenu already has a clone() method, so I don't get why you are 
declaring one of your own.  

--- In [email protected], "btc132" <btc...@...> wrote:
>
> hello all
> i want to transmit a string to variable by when i highlight a string 
> contexmenu and click right mouse to choose "search" function which is the 
> same "copy" function. i done in the following.
> 
> public function clone():ContextMenu;
> private function search(evt:ContextMenuEvent):void
> {
> var searchString:String;;
> 
> searchString = clone();
> }
> but it didn't. can you guide for me, please.
> Thanks!
>


Reply via email to