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 05-12-2005, 11:16 AM   #1
jjbilly
Registered User
 
Join Date: Mar 2005
Location: Oxford UK
Posts: 479
Default custom tools and undo

Can anyone tell me what I need to do in a tool to get the undo behaviour to work properly? I've written a tool and my problem is that undo removes everything since the tool was last selected, rather than each individual use of the tool. Is there a command I need to add to mouseUp, say?
jjbilly is offline   Reply With Quote
Old 05-13-2005, 03:35 PM   #2
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

AFAIK no. i know thats well sucky.
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 05-13-2005, 04:42 PM   #3
jjbilly
Registered User
 
Join Date: Mar 2005
Location: Oxford UK
Posts: 479
Default

Thanks for the answer. That is pretty sucky.

Funny thing is, I've just checked, and the polygon/polystar tool does have correct undo behaviour. In principle, anything it can do, we should be able to do, you'd have thought - now why did Macromedia obfuscate the source code for that? Is there something embarassing about it?
jjbilly is offline   Reply With Quote
Old 05-13-2005, 05:00 PM   #4
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

good point about polystar. i heard rumours that MM were going to release a webservice to that obfuscating tool, but thus far i ain't seen any of that.
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 05-16-2005, 09:24 AM   #5
jjbilly
Registered User
 
Join Date: Mar 2005
Location: Oxford UK
Posts: 479
Default

That would be interesting to see.

I think the issue can be restated slightly - no history entry is being made for the use of the custom tool. Worse than what I said in my original post, it seems that the effect of undo is to return the document to the state it was in after the previous tool had been used (rather than before the tool being undone had been used). This means that if you use a custom tool, then use a standard tool, undoing the use of the standard tool also undoes everything done with the custom tool - worse again, because there's no history, redo won't bring it back.
jjbilly is offline   Reply With Quote
Old 05-16-2005, 09:36 AM   #6
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

this is a fileable bug. or an ocr request. my advise to you is to post the steps to recreate this exactly on flashguru's extending flash list first. make certain you write in big letter attention MM engineers since they subscribe to that list, and get their feedback wether this is resolvable and if not if this is going to be fixed in the next version.
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 05-16-2005, 10:25 AM   #7
jjbilly
Registered User
 
Join Date: Mar 2005
Location: Oxford UK
Posts: 479
Default

Thanks, I have.

Things aren't quite as bad as I said in my last post - under most conditions, redo does work.
jjbilly is offline   Reply With Quote
Old 05-16-2005, 10:31 AM   #8
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

still drop it on the other list. an engineer might reply...
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 05-16-2005, 10:37 AM   #9
jjbilly
Registered User
 
Join Date: Mar 2005
Location: Oxford UK
Posts: 479
Default

Yes, I have. The rest of the bug is still quite serious enough.
jjbilly is offline   Reply With Quote
Old 08-25-2005, 06:21 PM   #10
jjbilly
Registered User
 
Join Date: Mar 2005
Location: Oxford UK
Posts: 479
Default

Finally sorted this out.

You have to have a path (even an empty one) and call makeShape to get into the history panel. The whole of the tool's drawing then gets included, whatever part the path is responsible for.
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 12:51 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.