SCRIPT::A -
SCRIPT::B -
You can also add call to funcB() at the end of the SCRIPT::B (it will not be executed during import with "use", but will call your code when you'll use SCRIPT::B somewhere. I don't recommend that, however - just create separate script with functions you need and import them where required.
Code Select
use SCRIPT::B;
funcB($1);SCRIPT::B -
Code Select
sub funcB(arg) {
trace(0, "SCRIPT::B arg=" . arg);
}You can also add call to funcB() at the end of the SCRIPT::B (it will not be executed during import with "use", but will call your code when you'll use SCRIPT::B somewhere. I don't recommend that, however - just create separate script with functions you need and import them where required.