0

Can i create static function in a class in action script 1 ? please provide an example.

thanks

ufk
  • 30,912
  • 70
  • 235
  • 386

1 Answers1

1

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);
Mark Knol
  • 9,663
  • 3
  • 29
  • 44