View Full Version : functions used by multiple commands?

09-23-2005, 08:35 AM

is there a way to store a collection of functions that could be used by multiple commands in one file, and give the commands access to it?


09-23-2005, 10:55 AM
A partial solution is to use fl.runScript() to run a function in another file - you can pass values and have a value returned; so it is possible to have a library of commonly used functions which are shared.

I too would be interested to hear of other solutions, especially ones that don't do this rather nasty pass back through flash.

09-24-2005, 02:18 PM
well this is the only way currently. another sollution is to have dll in which you execute code, but that would be ide non specific code ~(handy for math functions for example)