# Function and var problem!

**URL:** <https://forum.kirupa.com/t/function-and-var-problem/171609>\
**Category:** Uncategorized\
**Created:** [December 6, 2005, 9:04pm UTC](https://forum.kirupa.com/t/function-and-var-problem/171609 "2005-12-06T21:04:22Z")\
**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:** [December 6, 2005, 9:04pm UTC](https://forum.kirupa.com/t/function-and-var-problem/171609/1 "2005-12-06T21:04:22Z")

</div>

I used a function as below but only one of either clipboard or getVariable work at a time…

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

```

Can anyone tell me how I could rewrite it using the variable below? Is it even possible?

```auto

var something = Application.clipboard.paste();
trace(something);
return FlashPlayer.getVariable("_root.currentSentence");

```

Or is it possible to use both somehow?

Y :azn:
