|
|||
|
Hi,
I have a several movie files that I am adding to my swf projector. The problem is that I want them to open in a new window (i.e with the file menu, and min/maximum buttons as well as close). How should I go about doing this? Also, if I want them to open in a new window in flash, what actionscript should I use. I am using the loadmovie script but it opens it in the SAME window and not in a new window: Quote:
Any help is appreciated, Thanks :P |
|
|||
|
You can do that by using the "Form" object. First, add the following code into the "initialize" script in swfkit pro:
Code:
function openNewWindow(movie) {
var form = new Form();
form.movie = getAdditionalFile(movie);
form.showCaption = true;
form.canDrag = true;
form.caption = movie;
form.show();
}
Code:
on (release) {
import flash.external.*;
ExternalInterface.call("openNewWindow", "movie.swf");
}
|
|
|||
|
Hi,
Thanks for the help, that worked perfectly! On a similiar note, how can I put an html page in its own window (w/o the use of opening in IE, Firefox) if i have all the files/images in the resource panel? Thanks |
|
|||
|
Sorry for the late reply. I though that script was going to work but no luck.
At this point, I really do not care if the files open up in firefox or IE, I just want them to open. I am using this actionscript: Code:
on (release) {
getURL("Files/file1.html", "_blank");
}
What is the best way to load an HTML file if I have all the files in the resources. Thanks |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|