# createEmptyMovieClip + geturl problem

**URL:** <https://forum.kirupa.com/t/createemptymovieclip-geturl-problem/98297>\
**Category:** Uncategorized\
**Created:** [January 5, 2004, 8:12pm UTC](https://forum.kirupa.com/t/createemptymovieclip-geturl-problem/98297 "2004-01-05T20:12:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdulberg](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@jdulberg](https://forum.kirupa.com/u/jdulberg)\
**Post date:** [January 5, 2004, 8:12pm UTC](https://forum.kirupa.com/t/createemptymovieclip-geturl-problem/98297/1 "2004-01-05T20:12:01Z")

</div>

I am using createEmptyMovieClip to create MC’s based on values from an array. The MC’s are placed into the FScrollPaneSymbol component. They load ok however the getURL that should be loaded from the array doesn’t work. I’ve only been able to get it working if I put in an onEnterFrame function but that makes it assign the last url from the array to all the MC’s.

```auto

foo.onEnterFrame = function() {
  for (q in portfolio.sections[0].items) {
    //loader[thumbX] is a dynamically created MC
    loader["thumb"+q].onRelease = function() {
    geturl(portfolio.sections[0].items[q].mpg);
  }
}

```

If the array values are 1,2,3 it assigns the geturl for each of the MC’s to “3”;

Any ideas how I can fix this problem? Do I even have to use the onEnterFrame for the ScrollPane/MC’s?

THanks!

Jason
