# A very simple question in as3.0

**URL:** https://forum.kirupa.com/t/a-very-simple-question-in-as3-0/291119
**Category:** flash
**Created:** [June 24, 2009, 9:31pm UTC](https://forum.kirupa.com/t/a-very-simple-question-in-as3-0/291119 "2009-06-24T21:31:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![alon900](https://avatars.discourse-cdn.com/v4/letter/a/b3f665/32.png) [@alon900](https://forum.kirupa.com/u/alon900)
#### Post date: [June 24, 2009, 9:31pm UTC](https://forum.kirupa.com/t/a-very-simple-question-in-as3-0/291119/1 "2009-06-24T21:31:58Z")

</div>

Hi there,  
Im rather new in the as3 programming and i have a little problem with a simple img gallery hoping you may help me out…

i have a next and back btns and what i want is that for everytime that one of those btns is pressed, a different img will be loaded  
so what im trying to figure out is how to attatch the counter value to the imgReqX format ? and again X represent the counter

var imgReq1:URLRequest = new URLRequest(“pic/back\_stage/bs1.jpg”);  
var imgReq2:URLRequest = new URLRequest(“pic/back\_stage/bs2.jpg”);

big\_pic.load(imgReqX);

Thanks  
Alon.
