After I saw the methods in flash.utils package, I decided to make a try:
// inside file Test.as
package com.tests
{
internal function packageFunction() {
}
}
But I got:
A file found in a source-path 'Test' must have the same name as the class definition inside the file 'packageFunction'.
packageFunction is a function, not a class.. Any idea what is wrong?
--update
For those who don't know what is the "package function" I'm talking about, please, see the flash.util package methods. I can use it like:
flash.utils.getTimer();