I want to make an external as file that will have a set of functions in, I want to be able to include these functions to a class without having to rewrite them, is this possible?
For example
Game.as (will contain functions)
package Game{
function test(){
trace("hello");
}
}
Character.as
package{
public class Character
{
import Game;
public function Character()
{
test(); //hello
}
}
}
I know my code may be wrong, it is just an example of what I would like to achieve.
Thanks for reading and in advance for any replies.