# Controlling a MC with in a MC

**URL:** https://forum.kirupa.com/t/controlling-a-mc-with-in-a-mc/212384
**Category:** flash
**Created:** [January 10, 2007, 6:06pm UTC](https://forum.kirupa.com/t/controlling-a-mc-with-in-a-mc/212384 "2007-01-10T18:06:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Mike\_Dachuk](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@Mike\_Dachuk](https://forum.kirupa.com/u/Mike_Dachuk)
#### Post date: [January 10, 2007, 6:06pm UTC](https://forum.kirupa.com/t/controlling-a-mc-with-in-a-mc/212384/1 "2007-01-10T18:06:11Z")

</div>

Hello all,  
Novice Flash user here. I’m having a bit of a problem that I’m hoping someone can help me with.

I have a movie clip (Candle1) that contains a button(CandleButton) and another movie clip(Flame).

Candle1 has the following code attached to it.

```auto
onClipEvent(data)
{
 strFirstName = FirstName;
 strLastName = LastName;
 strDate = CreatedOn;
 
  }
onClipEvent(load)
{
 loadVariables ("getdetails.aspx?Record=1", this);
  
}

```

I was wondering if anyone could tell me how I could hide the movieclip (Flame) if there are no variables passed to the clip.

I have attached my fla file as well if that helps. Any suggestions?

Mike
