flash as1: class creation - static functions - possible?
-
25-09-2019 - |
Question
Can i create static function in a class in action script 1 ? please provide an example.
thanks
Solution
I think you should use a global function in case of AS1 projects
_global.myFunction = new function(param1, param2)
{
// do stuff
trace("1: " + param1 + "\n 2:" + param2 );
}
Call it like this
_global.myfunction("hello", 42);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow