# Linking flash-pages

**URL:** https://forum.kirupa.com/t/linking-flash-pages/14904
**Category:** flash
**Created:** [March 4, 2003, 6:38am UTC](https://forum.kirupa.com/t/linking-flash-pages/14904 "2003-03-04T06:38:04Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![RussianBeer](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/russianbeer/32/152_2.png) [@RussianBeer](https://forum.kirupa.com/u/RussianBeer)
#### Post date: [March 4, 2003, 6:38am UTC](https://forum.kirupa.com/t/linking-flash-pages/14904/1 "2003-03-04T06:38:04Z")

</div>

Hi there!  
I am trying to link two .swf’s together … I use the

onClipEvent (load) {  
on (release) {  
\_root.contents.loadMovie(“lena.swf”);  
}  
}

…script from a button and it dosent do anything!  
Please help!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 4, 2003, 6:44am UTC](https://forum.kirupa.com/t/linking-flash-pages/14904/2 "2003-03-04T06:44:19Z")

</div>

useless answer … :sigh:

```auto
onClipEvent (load) {
	this.onRelease = function() {
		_root.contents.loadMovie("lena.swf");
	}
}

```

but there’s no need to do that :-\

why don’t you just use …

```auto
on (release) {
	_root.contents.loadMovie("lena.swf");
}

```

?? 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 4, 2003, 6:47am UTC](https://forum.kirupa.com/t/linking-flash-pages/14904/3 "2003-03-04T06:47:20Z")

</div>

mmm… okay thanks. Anything else?  
Its still not working, I have both .swf’s in the same directory!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 4, 2003, 6:52am UTC](https://forum.kirupa.com/t/linking-flash-pages/14904/4 "2003-03-04T06:52:38Z")

</div>

check that the movie clip has the instance name **contents** … ??

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 4, 2003, 6:53am UTC](https://forum.kirupa.com/t/linking-flash-pages/14904/5 "2003-03-04T06:53:20Z")

</div>

Right!  
I think thats the problem , can u explain a little more? (ex. maybe?)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 4, 2003, 7:07am UTC](https://forum.kirupa.com/t/linking-flash-pages/14904/6 "2003-03-04T07:07:10Z")

</div>

you just select your movie clip and type **contents** in the instance name field located in the properties panel 🙂

by the way …

> of course, i’m not so stupid THANKS

i was going to say:

it happens even to the best … :sigh:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 4, 2003, 7:19am UTC](https://forum.kirupa.com/t/linking-flash-pages/14904/7 "2003-03-04T07:19:27Z")

</div>

No was going to say : I am so STUPID  
But then I realized I was stupider than that!

Now here it comes again…:  
It seems I screwd up completle!  
I am trying to link to diffrenct .swf’s together! How can I do that. I tried the above method with no results(maybe I just screwd up)  
… drunk as ever  
The Drunken Koala!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 4, 2003, 7:28am UTC](https://forum.kirupa.com/t/linking-flash-pages/14904/8 "2003-03-04T07:28:17Z")

</div>

what’s the problem? the code is fine. it will load a movie named **lena.swf** into the movie clip **contents**

[**loading techniques**](http://www.kirupa.com/developer/mx/loading.htm)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 4, 2003, 9:56am UTC](https://forum.kirupa.com/t/linking-flash-pages/14904/9 "2003-03-04T09:56:16Z")

</div>

are you trying to link to .swf together, that is load a movie into another ? or simply switchin from one swf to another ?

try givin away the .fla file…
