PDA

View Full Version : How do I launch a new window from a splash page with specific mc's loaded into it?


ooptard
06-21-2005, 06:06 PM
Hello all

I've tried to search this forum for a solution but I couldn't find one.
My situation is this...

I need to create href links on the splash page to launch a new browser window, load a main movieclip "mcShell.swf", and load a specific external movie clip "mcWeb.swf".

Is this possible? If so any help or guidance on the matter would be greatly appreciated.

Thanks

Ruben
06-21-2005, 06:07 PM
Could you give a bit more detailed info on where you want to load the swf's, etc?

:confused: - Ruben

ooptard
06-21-2005, 06:15 PM
Hey Ruben, thanks for the speedy response.

here goes...

I've got a splashpage with no flash in it. I want to create multiple <a href> tags to:

launch a new window that holds "mcShell.swf"
load a movieclip "mcWeb.swf" into "mcHeadContainer"(this movieclip resides within mcShell on the _root level)

mcWeb.swf would be changed with each a href button
Thanks again monsieur Ruben

Ruben
06-21-2005, 06:34 PM
So mcShell.swf always has to load mcWeb.swf? No matter what?

If so then this is the only line of code you'll have to put on the main timeline of mcShell.swf:mcHeadContainer.loadMovie("mcWeb.swf");

Note that you'll have to adjust the "mcWeb.swf"-part if mcWeb.swf isn't in the same webspace-folder as mcShell.swf.

:) - Ruben


PS. As for the popup-part (in case you didn't have the javascript for that yet), just search google for javascript's function window.open.

ooptard
06-21-2005, 06:44 PM
Hey Ruben,

No, mcWeb.swf would be switched with each a href from the splash page.

so after clicking on a href,
a new browser window would load "mcShell.html" containing "mcShell.swf"
now I need to get different external mc's into the mcHeadContainer movieclip(inside mcShell.swf)...
so 1st- mcWeb.swf
2nd- mcPrint.swf
etc...

Is this possible?

ooptard
06-21-2005, 07:18 PM
hey ruben, I'm familiar with the window.open function and have used it to open other windows from flash but I am not aware of it having extra parameters to load a movie into another in the resulting window...

Would flash vars be a better option for this?

Ruben
06-21-2005, 07:23 PM
You wouldn't happen to know any PHP*, would you? Because that'd make it all a little less complicated (read: less javascript which would make it more crossbrowser-compatible).

:confused: - Ruben

*EDIT: Of course your webspace would have to support PHP...