Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Extensions and Plugins > JSFL - Extending Flash

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-15-2005, 04:22 PM   #1
Soviut
Registered User
 
Join Date: Jun 2005
Posts: 2
Default using reloadTools but my tool won't reload

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?
Soviut is offline   Reply With Quote
Old 06-15-2005, 04:37 PM   #2
ferrisb
Batman
 
Join Date: Nov 2004
Posts: 72
Default

Make sure that you're targeting the Flash IDE when you call the reload method:

ActionScript Code:
fl.reloadTools();
ferrisb is offline   Reply With Quote
Old 06-15-2005, 05:43 PM   #3
Soviut
Registered User
 
Join Date: Jun 2005
Posts: 2
Default

I double checked, my ReloadTools.jsfl file has:

ActionScript Code:
fl.reloadTools();

So I'm still stumped as to why the tools won't update when I run it.
Soviut is offline   Reply With Quote
Old 06-15-2005, 08:23 PM   #4
ferrisb
Batman
 
Join Date: Nov 2004
Posts: 72
Default

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/
ferrisb is offline   Reply With Quote
Old 06-18-2005, 11:21 AM   #5
jjbilly
Registered User
 
Join Date: Mar 2005
Location: Oxford UK
Posts: 479
Default

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.
jjbilly is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:32 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.