Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Pre-sales

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-17-2004, 09:38 PM
Member
 
Join Date: Jan 2003
Posts: 56
Default swf generator (how to use answer)

Hey, this is what SWFGen Support sent me, so I though I would share it with anybody wondering: (might be of some use to others)
---------------
Before you can use the methods and properties of an activex object, you must register it. You can register the SwfGen object in your setup program, that is to say, you can let your setup program to copy the swfgen.dll to your user' computers and register it.

In your own computer, you can type "regsvr32 swfgen.dll" in the command prompt to register it.

If you don't want to use any of the above methods to register the swfgen object, you can do like the demo we've sent to you:

FFish script includes a method "ActiveXObject.register" to register an ActiveX object. The method takes one parameter, the full path name of the dll. In the demo, we add the swfgen.dll as an additional file, and in the FFish script, we register it by the using following statement:

ActiveXObject.register(getAdditionalFile("swfgen.d ll"));

And when the main window is about to close, we unregister it by using the "ActiceXObject.unregister" method.

Of course you can copy the swfgen.dll into the system folder, and register it for only once, and don't need to unregister it. Just like this:

var zGen = new ActiveXObject("SWFKit.ZGen");
if (zGen == null)
{
//SWFGen has not been registered yet, register it

//extract the dll, the variable swfgen contains the full path name of it
var swfgen = getAdditionalFile("swfgen.dll");

//copy it into the system folder
var sysfile = Shell.getSpecialFolder("system") + "\\swfgen.dll";
(new File(swfgen)).copy(sysfile);

//register it
ActiveXObject.register(sysfile);

//create the object again
var zGen = new ActiveXObject("SWFKit.ZGen");
}
Reply With Quote
  #2 (permalink)  
Old 01-17-2004, 10:22 PM
Junior Member
 
Join Date: Jan 2004
Posts: 7
Default Re:swf generator (how to use answer)

adan,

thanks for your help, ill give it a try.

Dev...
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 02:55 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.