# Anyone real good with ActionScript ? Variable Question

**URL:** <https://forum.kirupa.com/t/anyone-real-good-with-actionscript-variable-question/307992>\
**Category:** Uncategorized\
**Created:** [April 14, 2010, 5:07pm UTC](https://forum.kirupa.com/t/anyone-real-good-with-actionscript-variable-question/307992 "2010-04-14T17:07:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnnyBones](https://avatars.discourse-cdn.com/v4/letter/j/6a8cbe/32.png) [@JohnnyBones](https://forum.kirupa.com/u/JohnnyBones)\
**Post date:** [April 14, 2010, 5:07pm UTC](https://forum.kirupa.com/t/anyone-real-good-with-actionscript-variable-question/307992/1 "2010-04-14T17:07:23Z")

</div>

I have three variables named:

var pic **1** , pic **2** , pic **3** ;

// I want to set i=2 and be able to reference the second variable mentioned above  
i=2

// something to the effect of this idea, but this isn’t the correct syntax  
pic+i = “whatever”;

can anyone help?
