Hi Marcos,
I saw your earlier thread, so I think I understand what you are looking for.
If you right-click on the root node you can select "Insert a script object" from the menu.
This will create the script object in the hierarchy, which you can then name. Say, "translate".
Script objects will only accept Javascript, so your solution to translate would need to be in this language. If you select the script object and go to the script editor, you can declare the function, name it, and enclose it is curley brackets:
function Engligh2Portuguese()
{
// your function script
} // close function
You can call the function from an event in an object. Let us say you have a textField, which you want to contain the value of an amount field ("amount"), but in words.
In the calculate event of the textField you would call the function and pass the value of the numerfield:
translate.English2Portuguese(amount.rawValue);
Then the function in the script object would need a variable to contain the passed value. So in the script object the function would look like this:
function English2Portuguese(vAmount)
{
// your function script
}
I am not sure what your actual function is going to look like. I hope that you have a solution for the translation part.
Good luck,
Niall