# Variable to mc

**URL:** <https://forum.kirupa.com/t/variable-to-mc/165470>\
**Category:** Uncategorized\
**Created:** [October 11, 2005, 11:18am UTC](https://forum.kirupa.com/t/variable-to-mc/165470 "2005-10-11T11:18:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vintage](https://avatars.discourse-cdn.com/v4/letter/v/e68b1a/32.png) [@vintage](https://forum.kirupa.com/u/vintage)\
**Post date:** [October 11, 2005, 11:18am UTC](https://forum.kirupa.com/t/variable-to-mc/165470/1 "2005-10-11T11:18:20Z")

</div>

```auto

if (tijdstip != datum) {
            "sound"+favoSound.play();
            trace("sound"+favoSound);
        }

```

The trace gives me the right name, but the sound wont play :s

the “favoSound” is a word that I get from a shared object. (there are 2 options for favoSound, it is “blip”, or “beepbeep”.

on the scene I have 2 mc’s one has “soundblip” as an instancename, and the other is called “soundbeepbeep”.

anyone understand why they wont play ?  
thx in advance !
