Page transition

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

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

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:

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

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

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…

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

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

bump

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

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.

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

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

Try using _parent or “this” (no quotes)

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

did you try _parent ?

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

Electrongeek, check your e-mail