Are you using Extension Builder or just the SDK and FlashBuilder?
Just SDK and FlashBuilder...
There's some stuff not right in your project.
First thing is to make sure your manifest file contains a <ScriptPath> object. Without it, your extension will not load the script and the functions declared in it will not be available.
It goes in the DispatchInfo, something like this:
This might get it working; but, there might also be other issues. Please let me know what you find.
Bob, thanks for the insight. I had made note of that "ScriptPath" node in the manifest file and never found any documentation on how to properly use it (can't say I looked too extensively for examples on the web...really just stuck to the PDF's available for the SDK). Your comment just shed enought light on the subject to get me going.
So, I set up my project as you mentioned...and I CAN find any Objects declared in my single "scripts" file (Globas.jsfl at the mome ant).
I sill have some questions just to round out my understanding.
Still no ability to find objects declared in alternate scripts via "fl.runScript()" (e.g. "ObjectFindAndSelect.jsfl"):
One thing that still lingers is that I cannot initialize "ObjectFindAndSelect.jsfl" and then access it's functions via "fl.*" as I can with an other script I've run in Flash.
Adding the following to a script used to give the script access to the functions in ObjectFindAndSelect.jsfl:
The solution does not work in the example I've uploaded.
I've resorted to essentially copying the contents of "ObjectFindAndSelect.jsfl" into my "Globals.jsfl" file and simply accessing the functions from there. This is a workaround I'm willing hang onto for the time being but I'd really like to know why calls to "fl.runScript()" don't end up declaring objects that can be seen by subsequent calls to "CSXSInterface". If they did, my original method for declaring "vars" would have worked (not that I was particularly fond of the method).
Also...is there a way to add multiple "script files" to a project for the sake of organization and abstraction?
I've up-loaded a new sample project (set up to use the "SciptPath") that illustrates the "fl.runScript()" issue mentioned above. Thanks again.