# Clipboard and getvariabl problem!

**URL:** <https://forum.kirupa.com/t/clipboard-and-getvariabl-problem/170677>\
**Category:** Uncategorized\
**Created:** [November 28, 2005, 7:54pm UTC](https://forum.kirupa.com/t/clipboard-and-getvariabl-problem/170677 "2005-11-28T19:54:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yossarian](https://avatars.discourse-cdn.com/v4/letter/y/9de0a6/32.png) [@yossarian](https://forum.kirupa.com/u/yossarian)\
**Post date:** [November 28, 2005, 7:54pm UTC](https://forum.kirupa.com/t/clipboard-and-getvariabl-problem/170677/1 "2005-11-28T19:54:21Z")

</div>

Using this code but the second part does not work as the first section cancel it out. If I swap the \*\*clipboard \*\*with the \*\*getvariable \*\*the same thing happens. Does anyone know how i can have both codes working?

```auto
Application.dragdrop.enable = true;
Application.dragdrop.onDragGetData = function ()
{
    return Application.clipboard.paste();
} 
{
    return FlashPlayer.getVariable("_root.currentSentence");
}

```

Y
