Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX calls with Director

Status
Not open for further replies.

mradako99

Programmer
Sep 12, 2002
1
AU
Hi,

I'm having problems with calling ActiveX controls within Director. As an example if the following are called from Director:

e.g.
sprite(1).Refresh()
-- This works with Microsoft MonthView Control 6.0

Set tempVariable = HitTest(sprite 1, 1 )
-- Same control but calling a function with 2 parameters and returning a
string. THIS KEEPS SAYING "SCRIPT ERROR - HANDLER NOT DEFINED"
However if I add a third parameter it seems to work?
(e.g. HitTest(sprite 1, 1, 1 ) )

Seems like you can call methods that don't take parameters but you can't call methods with parameters?!?!?
Any articles on ActiveX in Macromedia Director appreciated in helping with this.
Also anything on how you can create your own Xtra controls?


Thx in advance,

Mike


 

try passing parameters as strings, for example instead of calling sprite(1).hittest(1) use sprite(1).hittest("1")
 
The HitTest method requires 3 parameters, not two. If you double click on the control and look at the methods, if you scroll down the lists of parameters you'll find it hiding there. So heres how you'd do it:

HitTest(sprite 1, 50, 50, "5-10-2002")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top