DOMAJ DXLIB TIPS
How do I return a value to Director?.
Your function must return a value via the results interface
i.e. Result.ValueType := Value;
For example: if we created an xtra global script function
'* reverseMyString string s'
In the procedure.....
procedure reverseMyString (s:Integer);
begin
result.Text:=ReverseString(s); // uses strUtils
end;
In Director we invoke the xtra function:
myText = reverseMyString("StringToReverse")
put myText
--"esreveRoTgnirtS"
member("heresMyText").text = myText
DXLIB TIPS INDEX
- When I use sendMessage, the message does not appear
in the Director message window. Why?
- How do I return a value to Director?.
- What is the results interface?
- Field properties.
- How do I trigger the mouseUp handler?
- How do I add my own function to an asset?
- How do I add my own function to a sprite?
- How do I manipulate the score?
- How do I show delphi forms?
- How do I define and use my own variables?
- How do I create and and read global variables and
their values?
- How do I create a behavior?
- How do I trigger a script in Director?
- How do I get the properties of a cast member?(31Mar03)
- How do I manipulate casts?
- How do I debug an XTRA?
- How do I draw a castmember icon?
- How do I add my own resource file bitmap as the
castmember icon?
- How do I add a Director property interface
- Using the bitmap media property of a castmember
(30Apr02)
- How do I return a list to Director (09May02)
- How to create, execute and delete a Director script
(08Oct02)
- How to create a Director Bitmap (09Oct02)
- How to export a Director Bitmap (15Oct02)
DOMAJ Links
