Results 1 to 6 of 6
Thread: intro
-
April 7th, 2003, 01:35 PM #1136Registered User
postsintro
what is the best way to load the main page of a site after the intro is over ??
in other words, i have a preloader that loads the intro, then after it is played, the main page of the site should load.
is there a way to call that main page after the intro is over ??
or should i put both the intro and the main page in the same SWF file ??
(all site pages are done with MX)
-
April 7th, 2003, 03:02 PM #2
no you can just tell flash to go get the file.
on the last frame of your intro put this code
replace the words main.html with your file's name and change _blank to what you want your target frame to be ... and you should be in businessPHP Code:onEnterFrame = function () {
getURL ("main.html", _blank);
}
hope this helps-shuga
-
April 7th, 2003, 05:09 PM #3136Registered User
poststo shuga
hey shuga,
i forgot to say that all my pages are with chromless.
should put this code:
on (release) {
getURL("javascript:openIT4FLASH('main.html',700,50 0,null,null,'mywinname01');");
}
here is how it goes:
"start.html" has "start.swf", and includes an "enter" button. (this page is a normal HTML page).
then, this enter button, opens a normal HTML page (_self). this page is "intro.html" that has "intro.swf".
now, after "intro.swf" is done, i want it to launch "home.html" which has "home.swf" , BUT in chromless.
i hope u got the big picture, any advice now ??
thanks buddy.
-
April 7th, 2003, 05:21 PM #4
make a blank movieclip and put it in it's own layer on the last frame of your animation
attatch this code to the blank movieclip
let me know if that worksPHP Code:onClipEvent (load) {
getURL("javaScript:openIT4FLASH('main.html',700,500,null,null,'mywinname01')", _self);
}
note: for some reason the forum is editing my java code so where you see the word about ... put javascript there-shuga
-
April 7th, 2003, 05:40 PM #5136Registered User
postsyep , it worked smoothly but i had to change the code a bit and add a " for the _self.
thanks a lot man, thank u very much ...
-
April 7th, 2003, 05:44 PM #6
you're very welcome
glad i could be of assistance-shuga

Reply With Quote

Bookmarks