|
|||
|
Hi,
I'm trying to pass parameters to an activeX method but it's not working. ================================================== ======== Through activeX it's quite simple: /*@cc_on var fpControls =document.getElementById('fpControls'); fpControls.innerHTML = '<OBJECT ID="ClientAlert"' + 'CLASSID="CLSID:XXXXXXXXXXXXXXXXXXXXXXXXXX"' + 'CODEBASE="xpto.CAB#version=1,0,0,0">'+'</OBJECT>'; activeXInstalled = 1; @*/ ClientAlert.setIpandPort("XXX.XXX.XXX.XXX","XXXX") ; ================================================== ======== This is working In SWFkit: ================================================== ======== var temp:Object=SWFKit.Global.createControl("xpto.Clie ntAlert", 0, 0, 0, 0); var ax:ClientAlert=new ClientAlert(temp.activex); ax.setEventHandler("evt1",Delegate.create(this, evt1EventHandler)); ax.setEventHandler("ev2",Delegate.create(this, evt12EventHandler)); ax.setIpandPort("XXX.XXX.XXX.XXX","XXXX"); return ax; ================================================== ======== ax.setIpandPort("XXX.XXX.XXX.XXX","XXXX"); is not working; I've already tried with another activeX that required passing parameters but had the same result as the previous. Both ActiveX are custom and made in VB6. Also, although wrappercreator lists the method it does not list it's parameters, I had to put them myself. What am I doing wrong? Thank you |
|
|||
|
From only the code we cannot find any problem. Can you please send us a sample .fla file and your activex control? We'll be able to check where the problem is if we have a sample. Thank you.
|
|
|||
|
I canīt send you the full code (company policy) but I'll post the VB6 public functions that I am trying to access with no success
Public Function setIpandPort(ip_str As String, port_str As String) Dim status As Integer ip = ip_str port = port_str setIpandPort = 0 End Function ======================================= Public Property Let proIP(tmpIp As String) ip = tmpIp End Property |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|