Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-22-2007, 01:36 AM
Junior Member
 
Join Date: Feb 2007
Posts: 6
Default Open in new window?

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:
on (release) {
loadMovie("movie.swf", "10");
}

Any help is appreciated,
Thanks :P
Reply With Quote
  #2 (permalink)  
Old 06-23-2007, 10:02 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Open in new window?

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();
}
and then call the function in actionscript
Code:
on (release) {
import flash.external.*;
ExternalInterface.call("openNewWindow", "movie.swf");
}
Reply With Quote
  #3 (permalink)  
Old 06-25-2007, 10:26 PM
Junior Member
 
Join Date: Feb 2007
Posts: 6
Default Re:Open in new window?

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
Reply With Quote
  #4 (permalink)  
Old 06-26-2007, 07:05 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Open in new window?

Code:
on (release) {
import SWFKit.*;
Shell.open(Global.getAdditionalFile("my.html"));
}
Reply With Quote
  #5 (permalink)  
Old 07-04-2007, 08:41 PM
Junior Member
 
Join Date: Feb 2007
Posts: 6
Default Re:Open in new window?

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");
}
This works perfect in flash but when I create the app via swfkit it does not work. Basically, the default brower is opened and the URL is "http://Files/file1.html" which does not return no results.

What is the best way to load an HTML file if I have all the files in the resources.

Thanks
Reply With Quote
  #6 (permalink)  
Old 07-05-2007, 02:10 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Open in new window?

Please send us your files, we will help you to make it work.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:22 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.