# Quick question about Variables

**URL:** <https://forum.kirupa.com/t/quick-question-about-variables/314747>\
**Category:** Uncategorized\
**Created:** [October 7, 2010, 2:42pm UTC](https://forum.kirupa.com/t/quick-question-about-variables/314747 "2010-10-07T14:42:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![somdow](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@somdow](https://forum.kirupa.com/u/somdow)\
**Post date:** [October 7, 2010, 2:42pm UTC](https://forum.kirupa.com/t/quick-question-about-variables/314747/1 "2010-10-07T14:42:51Z")

</div>

what is the difference between these

var

public var

private var

im trying to do something for a scroller im working on (got it from somewhere) (trying to adjust to fit my project.

the one thing thats killing me is that…a variable is set on runtime of the script,

its set to receive any data

```auto
public var scrollMask :*;

```

i then define what i want in there…

and it doesn work…im at my wits end…and im wondering what the diff between all these vars are.
