# Loading images and assigning instance name or variable name

**URL:** <https://forum.kirupa.com/t/loading-images-and-assigning-instance-name-or-variable-name/205787>\
**Category:** flash\
**Created:** [November 1, 2006, 11:41pm UTC](https://forum.kirupa.com/t/loading-images-and-assigning-instance-name-or-variable-name/205787 "2006-11-01T23:41:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lorren\_biffin](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/lorren_biffin/32/2726_2.png) [@lorren\_biffin](https://forum.kirupa.com/u/lorren_biffin)\
**Post date:** [November 1, 2006, 11:41pm UTC](https://forum.kirupa.com/t/loading-images-and-assigning-instance-name-or-variable-name/205787/1 "2006-11-01T23:41:38Z")

</div>

How would you do it?

I need to be able to load a new image, place it in a new MC on \_root and give the MC an instance name or variable name to be referenced in AS.

i know the code to load an image is

```auto
mc_image.loadMovie(PATH TO IMAGE);

```

but how would i alter that to give mc\_image an instance name?
