Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以在动作脚本 1 的类中创建静态函数吗?请提供一个例子。
谢谢
我认为你应该在 AS1 项目的情况下使用全局函数
_global.myFunction = new function(param1, param2) { // do stuff trace("1: " + param1 + "\n 2:" + param2 ); }
像这样称呼它
_global.myfunction("hello", 42);