# Targeting mp3s dynamically

**URL:** <https://forum.kirupa.com/t/targeting-mp3s-dynamically/192993>\
**Category:** flash\
**Created:** [July 3, 2006, 1:51pm UTC](https://forum.kirupa.com/t/targeting-mp3s-dynamically/192993 "2006-07-03T13:51:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![schmichael](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@schmichael](https://forum.kirupa.com/u/schmichael)\
**Post date:** [July 3, 2006, 1:51pm UTC](https://forum.kirupa.com/t/targeting-mp3s-dynamically/192993/1 "2006-07-03T13:51:19Z")

</div>

Hello there, I am trying to target mp3s dynamically but am having a syntax problem. If someone could point out how i can do this I would be very grateful. The name of the mp3 is held in the fileStr variable and the mp3s are in a folder called “mp3”.  
Here’s my current code:

```auto
mySound.loadSound(["mp3/"+fileStr+".mp3"], true);

```

Thanks 🙂
