# Same movie clip, different instances, getURL

**URL:** <https://forum.kirupa.com/t/same-movie-clip-different-instances-geturl/304668>\
**Category:** Uncategorized\
**Created:** [February 11, 2010, 3:29pm UTC](https://forum.kirupa.com/t/same-movie-clip-different-instances-geturl/304668 "2010-02-11T15:29:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![webguy262](https://avatars.discourse-cdn.com/v4/letter/w/b9bd4f/32.png) [@webguy262](https://forum.kirupa.com/u/webguy262)\
**Post date:** [February 11, 2010, 3:29pm UTC](https://forum.kirupa.com/t/same-movie-clip-different-instances-geturl/304668/1 "2010-02-11T15:29:19Z")

</div>

I have a movie clip named “restlink.”

I drag it to frame one on layer “link,” and give it an instance name of “link1.”

At frame 100, I create a keyframe on “link” layer, and change the instance name to “link2.”

In frame one of the “actions” layer, I enter the following:

```auto
link1.onRelease = function ():Void {
    getURL('http://www.website1.com','_blank');
};
link2.onRelease = function ():Void {
    getURL('http://www.website2.com','_blank');
};

```

The result is the link1 works, but link2 does not. After frame 100, there is no link.

If I attach the actions to the keyframes, everything is fine.

But I do not understand why the actions can not all be in frame 1 of the actions layer.

What am I missing?
