Added return type on functions, for better overrides in FlashDevelop

Added return types, to have proper overrides in FlashDevelop.
Otherwise FlashDevelop generates a function with return type Dynamic.