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();
Your code is in Test.as. It should be in
com/tests/packageFunction.as
This follows the same rules as “normal” classes. The package and main public symbol name must mach the directory path and the file name.