# How to duplicate a variable?

**URL:** <https://forum.kirupa.com/t/how-to-duplicate-a-variable/266438>\
**Category:** flash\
**Created:** [July 20, 2008, 4:28pm UTC](https://forum.kirupa.com/t/how-to-duplicate-a-variable/266438 "2008-07-20T16:28:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![charmander](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@charmander](https://forum.kirupa.com/u/charmander)\
**Post date:** [July 20, 2008, 4:28pm UTC](https://forum.kirupa.com/t/how-to-duplicate-a-variable/266438/1 "2008-07-20T16:28:47Z")

</div>

Hi there, I want to ask how to duplicate a variable?  
I have 10 buttons (b1, b2, b3, …), and I put this action to load a jpg image within it (b1 only):

> \_root.importImage = “1.jpg”;  
> b1.lload.loadMovie(“images/”+\_root.importImage);

And I want to use this action lines for the 10 buttons, what must I do?  
Thank you guys
