I know that a command that is entirely JSFL will create undo states automatically. When an SWF panel uses JSFL to make changes to the project, though, there is no undo record automatically made.

I currently have a workaround, adding an undo button to the panel, but this is not ideal, since there is only one level and it would have unpredictable results if something else were changed before pressing it.

I was not able to find any reference to this in JSFL documentation, but I did find some for the AfterEffects API. There must be some way to do this with Flash, right?