# Create an instance name in AS3

**URL:** https://forum.kirupa.com/t/create-an-instance-name-in-as3/287817
**Category:** Uncategorized
**Created:** [May 6, 2009, 5:11pm UTC](https://forum.kirupa.com/t/create-an-instance-name-in-as3/287817 "2009-05-06T17:11:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nwglow](https://avatars.discourse-cdn.com/v4/letter/n/f1d935/32.png) [@nwglow](https://forum.kirupa.com/u/nwglow)
#### Post date: [May 6, 2009, 5:11pm UTC](https://forum.kirupa.com/t/create-an-instance-name-in-as3/287817/1 "2009-05-06T17:11:01Z")

</div>

I have a movieclip called bg\_mc. I don’t want bg\_mc to show up until I click the btn. When I click the btn it will perform a wipe.

Currently I have bg\_mc on stage because I need to access its instance name. I can’t remember how to create an instance name in AS3. Please HELP!

* * *

import fl.transitions._;  
import fl.transitions.easing._;

click\_btn.addEventListener(MouseEvent.CLICK, loadBg);

function loadBg(evt:MouseEvent):void {  
TransitionManager.start(bg\_mc, {type:Wipe, direction:Transition.IN, duration:1, easing:Strong.easeOut, startPoint:4});  
}
