|
|||
|
hi,
I don't understand... I try the examples of the Help like: ------------------------------------------------- //Embed a Microsoft Media Player: var mplayer = createControl( ``MediaPlayer.MediaPlayer.1'', 0, 0, 200, 200); //Open an avi file mplayer.activex.Open(``c:\\demo.avi''); *********************OR********** //Activate a Flash Player in windowless mode. //For SWFKit doesn't draw the windowless control //The control won't be visible in the main window //`fp.window' returns undefined var fp = createControl(`ShockwaveFlash.ShockwaveFlash', 0, 0, 320, 240, `wmode=transparent&movie=c:\\test.swf&bgcolor=0xFF 0000'); fp.activex.play(); trace(fp.window.handle); --------------------------------------------------------------- I have replaced '' by " because Flash displays errors... now no errors by Flash I import the .swf file created by Flash to SWFkit Pro...I build a projector but it doesn't work !!!! I have nothing! Do I have something to add to run this script? or do do you have an exemple which works? something else to download? (I have win XP home SP1) |
|
|||
|
I have downloaded:
http://www.swfkit.com/download/swfgen/swfgensetup.exe And I have put the SWFGen.dll like here: http://www.swfkit.com/swfkit/doc/pro_manual/node34.html I have understood how SWFKit pro works... but I don't know how open pdf files with Foxit PDF Reader (on my cd-rom) and not Acrobat Reader (on Hard disk) Is it possible? PLEASE!! |
|
|||
|
It may not be possible to do that because Foxit PDF Reader doesn't run by an ocx or dll file...
Is it the explanation ? But if I have an ocx or dll file that open pdf files in all applications... How to use it to run a pdf inside the projector because the ActiveX of Acrobat Reader takes a long time time to open pdf files. Thanks for your help! |
|
|||
|
Yes, if you have the ocx or dll, you can embed the pdf in your projector. The following steps demonstrate how to do this:
1. Install the ocx or dll, if you have a setup file, just run the setup file, or use the regsvr32.exe to register the ocx or dll. This step is required to develop and test your projector in SWFKit. 2. Go to the "initialize" script, from [Main menu]->[Tools]->[Insert ActiveX Control] choose the ActiveX Control. If the ActiveX Control is not installed properly, it would not be in the list. 3. Call the methods or properties in the ActiveX Control to open the pdf files. If you have got the documentation of the ActiveX Control, read it and find the relevant methods and properties, or you can use the oleview tool to list all methods and properties of the ActiveX Control. The oleview tool can be found at http://download.microsoft.com/downlo...view_setup.exe The code in "initialize" script should be something like this Code:
var viewer = createControl("some prog id", l, t, w, h);
viewer.activex.method_or_property;
Use the oleview to list the methods and properties in Microsoft FlexGrid Control |
|
|||
|
Write a function like this and call the function
in swfkit Code:
function runPdf(pdfname)
{
// get the pdf viewer
var pdfviewer = getAppDir() + "\\FoxitReader.exe";
// get the pdf file
var pdf = getAppDir() + pdfname;
// view the pdf
Shell.run('"' + pdfviewer + '" "' + pdf + '"');
}
Code:
on (release)
{
fscommand("ffish_eval", "runPdf('\\fscommand\\post.pdf');");
}
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|