This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Flash Site Design > November 2007 > How to make site intro, lead to another flashpage?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to make site intro, lead to another flashpage?
|
|
| redzero 2007-11-22, 6:14 pm |
| Hi all, i have made my intro, and it's all good now, but how do i have something at the end that, when clicked on, will lead to another flash page?
| |
| Sketchsta 2007-11-23, 6:15 pm |
| Hi redzero,
Why not try a "enter" button. just make it appear at the end of your intro
(or anywhere you want really), then use 1 of two options...depending on what
you want to do..
1) -- If you already have the "another flash page" done, complete with the
HTML file, you would want this...
enterBtn.onRelease = function(){
getURL("your_html_page_name.html");
}
2) -- if you want to load your "another Flash page" into your intro.swf,
(into a emptyMovieClip inside your intro) you could use this...
enterBtn.onRelease = function(){
var my_loader:MovieClipLoader = new MovieClipLoader();
my_loader.loadClip("another_flash_page.swf", holder);
}
NOTE:
you must create a empty MovieClip on stage, and give it an instance name of
"holder" without the quotes " ".
This empty movieClip will hold your "another Flash Page".
the first line creates a MovieClipLoader instance, and calls it my_loader.
this is what loads your files.
Also, this also allows you to have a pre-loader with only afew more lines of
code.
Let me know if you get stuck, and i'll help in any way i can.
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|