# loadClip error

**URL:** <https://forum.kirupa.com/t/loadclip-error/219770>\
**Category:** Uncategorized\
**Created:** [March 20, 2007, 1:36am UTC](https://forum.kirupa.com/t/loadclip-error/219770 "2007-03-20T01:36:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomyknoker](https://avatars.discourse-cdn.com/v4/letter/t/50afbb/32.png) [@tomyknoker](https://forum.kirupa.com/u/tomyknoker)\
**Post date:** [March 20, 2007, 1:36am UTC](https://forum.kirupa.com/t/loadclip-error/219770/1 "2007-03-20T01:36:28Z")

</div>

Hi all,

When I run this on my timeline it works fine

```auto
mcl.loadClip(Math.floor(Math.random() * 6) + ".jpg", this);

```

I changed the code so that it will load a specific image but when I run this it gives me an error! Any ideas?

```auto
mcl.loadClip(Math.floor("1.jpg", this);

```

This is the fucntion at the beginning of my movie, but don’t need to change that just need to edit the above line…

```auto

var mcl:MovieClipLoader = new MovieClipLoader();

function onLoadInit(targ:MovieClip):Void
   {
      // Fade to 100 in 3 seconds using the easeoutquad tween
      targ.alphaTo(100, 3, "easeoutquad");
   }

// Start the MCL working
mcl.addListener(this);

```
