PDA

View Full Version : using reloadTools but my tool won't reload


Soviut
06-15-2005, 04:22 PM
I'm trying to build some simple JSFL tools. So far I've created something that works and returns fl.trace() commands so I know it's working.

On the advice of several tool development tutorials I've read, I've created a command file in my /first run/commands/ directory. This command only contains the reloadTools(); line in it. When I run it from the Commands menu in Flash it seems to be working since the toolbar flickers and the active tool returns to the selection arrow.

The problem is, my tool itself isn't reloading. I've changed some of the trace lines to say something different, saved the file (in the same location, my /First Run/Tools/ folder), and then ran the reload Command. The tool must be cached or something because it won't update unless I close and reopen Flash completly.

Any ideas?

ferrisb
06-15-2005, 04:37 PM
Make sure that you're targeting the Flash IDE when you call the reload method:

fl.reloadTools();

Soviut
06-15-2005, 05:43 PM
I double checked, my ReloadTools.jsfl file has:

fl.reloadTools();

So I'm still stumped as to why the tools won't update when I run it.

ferrisb
06-15-2005, 08:23 PM
I'm stumped. It works fine for me, so I'm not sure what the problem would be. My Reload Tools.jsfl only has that one line in it.

You might also want to check out the forums at flashextensibility.com. That site specializes in extending Flash and writing new tools and commands for it.


http://www.flashextensibility.com/forums/

jjbilly
06-18-2005, 11:21 AM
I've not had quite your problem, but I have noticed that calling reloadTools() can be problematic when a custom tool is currently selected - crashing flash occasionally. Try selecting a built-in tool before reloading, perhaps.