Call a function in one script from a different script

Just for organizational purposes, I’d like to split out the functions of my AppleScript Studio app into different files. But I need all functions available in the main file. How do I call a script function defined in a second file from the first file?

I’ve tried a LOT of different things so far but nothing seems to be able to do it. Any ideas would be great!

(scroll to the bottom)

That worked great, thanks!

I got a little lost along the way though: Inside XCode it looks like one’s scripts end in .applescript, but they actually end in .scpt on disk. Weird.

Can someone please post what was in that link, I need exactly that info, but it seems to be an old link now. Thanks.