Groups | Blog | Home
all groups > flash (macromedia) > april 2005 >

flash (macromedia) : Open movie in another window?


giyggugpupg
4/18/2005 11:07:38 PM
Hello:

Within a .swf movie, if you are calling an external .swf file by the loadMovie
script, how do you specify that you want the external movie to open in another
window, rather than simply a layer ontop of the current movie?

Any help greatly appreciated.

Regards,

Stephen
giyggugpupg
4/19/2005 12:47:37 AM
Urami:

I can understand (believe it or not) the rationale behind what you said. What
about if the movie was going to be a projector.exe file for a stand alone
application? Is it possible to have an external .swf movie load into another
player?

Regards,

Stephen
urami_
4/19/2005 7:42:08 AM


[quoted text, click to view]

You will need to use getURL action and call it like you would call HTML document
using the _blank parameter.

getURL("second.swf", "_blank");

I would however recommend not to open SWF directly because. You can't control it
in browser if you do so. It will stretch to available window size, you can't control
the parameters like quality, size, bg colors, wmodes, loops, menus etc... and
it will have the path to the file on server in your title bar which does not look good.
SO preferred would be to place it in some html and use the above :

getURL("second.html", "_blank");


--
Regards

Urami

--


<urami>
http://www.Flashfugitive.com
</urami>

<web junk free>
http://www.firefox.com
urami_
4/19/2005 8:52:24 AM


[quoted text, click to view]

You can not run projector from browser for security reasons, it will only allow you
to download and than run on desktop.
And you can't open SWF in player as user has no player for that file.
Just like JavaScript, SWF is browser environment file format and only designers have
the standalone player for authoring purpose, publicly distributed one is the browser
based player only so you must open new browser window in order to run the file and nest it
in html if you want to control it in any way whatsoever.


--
Regards

Urami

--


<urami>
http://www.Flashfugitive.com
</urami>

<web junk free>
http://www.firefox.com
AddThis Social Bookmark Button