Libraries and Sending output back to my caller...
Posted: Fri Jan 20, 2012 6:49 pm
Hi All,
I'm building a little library-like bit of code to do my http gets and what not. I'd like to use callbacks to notify my object when things are finished.
Let's say I had a button that called my library:
on mouseUp
httpGet "url", "httpFinished"
end mouseUp
on httpFinished
answer "Wa-hey, I made it!"
end httpFinished
How does my library know where it could find the 'httpFinished' handler?
I didn't see anything in the User Guide about this, nor the lessons. Anyone got a FM to RT?
-Ken
I'm building a little library-like bit of code to do my http gets and what not. I'd like to use callbacks to notify my object when things are finished.
Let's say I had a button that called my library:
on mouseUp
httpGet "url", "httpFinished"
end mouseUp
on httpFinished
answer "Wa-hey, I made it!"
end httpFinished
How does my library know where it could find the 'httpFinished' handler?
I didn't see anything in the User Guide about this, nor the lessons. Anyone got a FM to RT?
-Ken