calling functions in the scripts of other objects
Posted: Sun Sep 28, 2008 5:46 pm
Hi,
yesterday I downloaded Revolutions Media 3.0 and have been having fun ever since.
However, I cannot find documentation on how to call functions in objects other than the one's they're defined in.
Kindly help.
I have a function and a method in the script of a text field : myTextField
I have a button callMethodButton with script
This script works.
However, the script of the next button no matter what I tried, including using the documented get value(beepFunction(0), of card field "myTextField") I cannot get to work.
The following looks to me (and the compiler) like the sort of thing that should be ok ... but isn't !
What does the correct syntax look like?
Script of callFunctionButton
Thanks
Julius
yesterday I downloaded Revolutions Media 3.0 and have been having fun ever since.
However, I cannot find documentation on how to call functions in objects other than the one's they're defined in.
Kindly help.
I have a function and a method in the script of a text field : myTextField
Code: Select all
on beepMethod theparam
beep
end beepMethod
function beepFunction theparam
beep
return true
end beepFunction
Code: Select all
on mouseUp
send beepMethod && "0" to card field "myTextField"
end mouseUp
However, the script of the next button no matter what I tried, including using the documented get value(beepFunction(0), of card field "myTextField") I cannot get to work.
The following looks to me (and the compiler) like the sort of thing that should be ok ... but isn't !
What does the correct syntax look like?
Script of callFunctionButton
Code: Select all
on mouseUp
get beepFunction(0) of card field "myTextField"
end mouseUp
Julius