[Extendflash] How to include another file of functions in a command
Judah Frangipane
judah-fc at t8design.com
Tue Jul 26 15:40:24 PDT 2005
I have a lot of utility functions I use in my jsfl commands. I'd like to
put them in an external file and include them in the scripts I create.
I did this and the functions do not get called from the main script but
variables do. Is this the case with anyone else?
//*******************
// in utilities file
myObj = new Object();
myObj.myFunc = function() {
}
function myFunc2() {
}
//*******************
// in main file
fl.runScript(utilitiesFilePath);
alert("myObj=" + myObj); //[object Object]
alert("myObj.myFunc =" + myObj.myFunc); // exists
alert("myFunc2=" + myFunc2); // throws error "ReferenceError: myFunc2 is
not defined"
Best Regards,
Judah
More information about the Extendflash
mailing list