|
|||
|
Hi all;
I did this: import SWFKit.*; mplayer = Global.createControl("WMPlayer.OCX.7",0,0,200,200) ; mplayer.activex.URL = Global.getAppDir() + FileName; the control will be created but the URL does not work ! What is the mistake plese reply soooooon Thank you in advance |
|
|||
|
You must be working with actionscript 2. In actionscript 2 you must use a wrapper class for the ActiveX component to call its properties and methods directly. If you do not want to use wrapper classes, you must call its properties in the way shown in the following code
Code:
mplayer.activex.setProperty("url", Global.getAppDir() + FileName);
|
|
|||
|
I have the very same problem, but im using Flash 9 and AS3, i try both ways and none of them work.
import SWFKit.*; var pdf = new Global(); pdf.createControl("vspdfviewerx.vspdfviewer", 100, 0, 1024, 768); pdf.activex.setProperty("Load", "c:\\my.psd",""); If i a wrapper is required, could you plz explain where exactly to put it, im not much into classes and packages. I have read the help file, but i dont knowwhere to place the example. |
|
|||
|
Help files are screw up!. None of the examples work. I have tried everything, and i cant get it to execute anything. The only way to do it is if i do it in FFish. Could you plz post something that actually works for AS3.
And yes i created the wrapper!. import SWFKit.*; function strace(value) { SWFKit.Global.trace(value); } var ax = new SWFKit.Global(); ax.createControl("vspdfviewerx.vspdfviewer", 100, 0, 1024, 768); var pdf = new SWFKit.PDFViewer.fromID(ax.activex); |
|
|||
|
SWFKit wrapper classes for as3 are based the Proxy object, so they support dynamic methods and properties.
Code:
import SWFKit.*;
function strace(value)
{
SWFKit.Global.trace(value);
}
var ax = SWFKit.Global.createControl("vspdfviewerx.vspdfviewer", 100, 0, 1024, 768);
var pdf = ax.activex;
pdf.load("c:\\my.psd");
|
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|