Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-23-2008, 06:00 AM
jon jon is offline
Junior Member
 
Join Date: Sep 2007
Posts: 25
Default new window displaying a flash file

Hi

I want to create a new window and display a flash file in it.

var wnd2 = new Window(handle);

Firstly I dont understand what handle is and what I should initialise it to (other than an interger). Secondly, I dont know how to load a flash movie into that window.

Thanks
Jon
Reply With Quote
  #2 (permalink)  
Old 01-23-2008, 01:09 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: new window displaying a flash file

The window object cannot be used to do this. However, you can try the "Form" object.
Reply With Quote
  #3 (permalink)  
Old 01-23-2008, 11:32 PM
jon jon is offline
Junior Member
 
Join Date: Sep 2007
Posts: 25
Default Re: new window displaying a flash file

thanks
sorry, it could just be me, but i'm looking at the SWFKit Pro 2 Manual (April 8, 2004) and i cant find the Form object. I dont suppose you could point me to the documentation?
Reply With Quote
  #4 (permalink)  
Old 01-24-2008, 05:40 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: new window displaying a flash file

Sure, the Form object is supported by SWFKit Pro 2. Please try to search for "Form".
Reply With Quote
  #5 (permalink)  
Old 01-25-2008, 04:55 AM
jon jon is offline
Junior Member
 
Join Date: Sep 2007
Posts: 25
Default Re: new window displaying a flash file

thanks, i found the form object in the help section in the program. However I havent got it working yet. Here is the code i'm using;

var form = new Form;
form.movie = Global.getAdditionalFile("nokey.swf");
form.caption = "!";
form.showCaption = false;
form.canDrag = true;
form.initVars = "formid=" + form.Identifier;
form.show(true);

I got this from the section entitled "Creating multiple forms". Its not showing me a window. In fact its causing a microsoft visual c++ debug error.

Could you give me another hand?
Jon
Reply With Quote
  #6 (permalink)  
Old 01-25-2008, 07:34 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: new window displaying a flash file

In SWFKit Pro 2 you cannot call the ffish script methods directly in action script, so you cannot use the sample code for swfkit pro 3: "Global.getAdditionalFile" is only for actionscript. In ffishscript you must use "getAdditionalFile" directly.
Reply With Quote
  #7 (permalink)  
Old 01-30-2008, 02:29 AM
jon jon is offline
Junior Member
 
Join Date: Sep 2007
Posts: 25
Default Re: new window displaying a flash file

Thanks
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:54 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.