PDA

View Full Version : Importing (static) functions


drkn
02-12-2007, 10:29 AM
I've noticed that when I use top level functions like setInterval I must import that function in my .as file (import flash.utils.setInterval; ). Is there any way to import other functions from my own classes, or this is only a "hack" for top level functions?

dr_zeus
02-12-2007, 05:57 PM
Actually, these aren't static functions. I believe you can do the same thing in your classes by defining a function outside a class (but still in a package).