# Brackets

**URL:** <https://forum.kirupa.com/t/brackets/153647>\
**Category:** flash\
**Created:** [July 3, 2005, 11:12am UTC](https://forum.kirupa.com/t/brackets/153647 "2005-07-03T11:12:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![drose429](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/drose429/32/202_2.png) [@drose429](https://forum.kirupa.com/u/drose429)\
**Post date:** [July 3, 2005, 11:12am UTC](https://forum.kirupa.com/t/brackets/153647/1 "2005-07-03T11:12:10Z")

</div>

Hi  
I have been using action script at a very basic level for years. However I am trying to improve my knowlege. One of the things that confuses me is when to use what type of bracket. When ever you read a tutorial or book, however basic is just tells you what brackect to use without any explaination.

Here is an example of my confusion

var p = random(ivar);  
var t = this[ivar];

why the 2 types of brakects and whats the difference

Dose any one know of any good links or stuff to help expaline brackets

Cheers
