# Page transition

**URL:** https://forum.kirupa.com/t/page-transition/14490
**Category:** flash
**Created:** [February 26, 2003, 11:04pm UTC](https://forum.kirupa.com/t/page-transition/14490 "2003-02-26T23:04:26Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![buddylee](https://avatars.discourse-cdn.com/v4/letter/b/e5b9ba/32.png) [@buddylee](https://forum.kirupa.com/u/buddylee)
#### Post date: [February 26, 2003, 11:04pm UTC](https://forum.kirupa.com/t/page-transition/14490/1 "2003-02-26T23:04:26Z")

</div>

Ok, I have my intro page (index.swf) and I have my main page (index2.swf). What is the best way to go from the intro to the main page? Should I…

1. Click on the “Enter” button and load a new .html?  
or
2. Load a .swf file? If this is the way, how do I do that?  
is it something like…  
on(release){  
load(index2.swf)  
}

Thanks fellas

---

<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: [February 26, 2003, 11:18pm UTC](https://forum.kirupa.com/t/page-transition/14490/2 "2003-02-26T23:18:41Z")

</div>

Well it all depends on whether you want your site to be full flash or part flash/part html. Most people that build full flash sites will use the loadmovie method to load in a external swf movie into the main swf movie. If you’re going to use flash and have it link to an html page then you would use getURL to bring up a new browser window with your html page or have it load the html page over the current page.

To learn more about the loadmovie method for full flash sites, take a look at this link:

[http://www.kirupa.com/developer/mx/full\_site.htm](http://www.kirupa.com/developer/mx/full_site.htm)

If you’re doing a flash/HTML site and would like to use the getURL method then apply a script like this to your link:

```php
on (release){
	getURL("http://www.yoursite.com", "_blank");
}

```

I hope that will give you a better idea, good luck. =)

---

<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: [February 27, 2003, 12:10am UTC](https://forum.kirupa.com/t/page-transition/14490/3 "2003-02-27T00:10:41Z")

</div>

Yes, this should help, except I have one more question. When I am loading a new swf file, what do I put in the spot labeled contents in the code below…

```php
on (release) {
	_root.contents.loadMovie("locations.swf");
}

```

How do I know what to put in the “contents” part?

---

<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: [February 27, 2003, 9:28pm UTC](https://forum.kirupa.com/t/page-transition/14490/4 "2003-02-27T21:28:48Z")

</div>

_bump_

Still dont know what to put in the “contents” place. Someone out there has to know

---

<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: [February 27, 2003, 9:31pm UTC](https://forum.kirupa.com/t/page-transition/14490/5 "2003-02-27T21:31:47Z")

</div>

Contents is the empty movieclip on your main timeline that the external movie loads into.

So make sure you have a empty movieclip on your timeline with an instance name of “contents” and it should work.

---

<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: [February 27, 2003, 10:21pm UTC](https://forum.kirupa.com/t/page-transition/14490/6 "2003-02-27T22:21:22Z")

</div>

Thanks geek, once again you have come through for me. But of course, whenever I solve one problem, another one arises. Here is my new problem:

I have 2 pages right now. 1st page is intro, second page is index2. I have an empty MC called “site”. When you open up my intro page, you see my stuff. Then you click on “enter site” and it loads index2 into “site”. Now once index2 is loaded, one of my rollover effects does not work. When you rollover my links, I have an empy text box that describes what that page you rolled over is about. That does not work.  
Weird thing is, if I open index2 from Flash, it all works perfectly. Could this have something to do with the empty MC?

I will understand if you get lost in reading this.  
Thanks a lot

---

<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: [February 27, 2003, 10:25pm UTC](https://forum.kirupa.com/t/page-transition/14490/7 "2003-02-27T22:25:26Z")

</div>

Its your targeting. If you use \_root it will not work.

Try using \_parent or “this” (no quotes)

---

<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: [February 27, 2003, 11:21pm UTC](https://forum.kirupa.com/t/page-transition/14490/8 "2003-02-27T23:21:33Z")

</div>

Both \_root and “this” will make the page change, but my rollover effect does not work with either.

---

<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: [February 27, 2003, 11:24pm UTC](https://forum.kirupa.com/t/page-transition/14490/9 "2003-02-27T23:24:19Z")

</div>

did you try \_parent ?

---

<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: [February 27, 2003, 11:25pm UTC](https://forum.kirupa.com/t/page-transition/14490/10 "2003-02-27T23:25:01Z")

</div>

yes I tried parent, but it will not work at all. This is so strange.

Electrongeek, check your e-mail
