Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-07-2008, 03:06 PM
Junior Member
 
Join Date: Jun 2008
Posts: 6
Default passing parameters to activex not working

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

Reply With Quote
  #2 (permalink)  
Old 10-08-2008, 07:36 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: passing parameters to activex not working

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.
Reply With Quote
  #3 (permalink)  
Old 10-08-2008, 11:24 AM
Junior Member
 
Join Date: Jun 2008
Posts: 6
Default Re: passing parameters to activex not working

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

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 05:21 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.