| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Jun 2005
Posts: 2
|
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? |
|
|
|
|
|
#2 |
|
Batman
Join Date: Nov 2004
Posts: 72
|
Make sure that you're targeting the Flash IDE when you call the reload method:
ActionScript Code:
|
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Jun 2005
Posts: 2
|
I double checked, my ReloadTools.jsfl file has:
ActionScript Code:
So I'm still stumped as to why the tools won't update when I run it. |
|
|
|
|
|
#4 |
|
Batman
Join Date: Nov 2004
Posts: 72
|
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/ |
|
|
|
|
|
#5 |
|
Registered User
Join Date: Mar 2005
Location: Oxford UK
Posts: 479
|
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.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|