Interrupt a composite command

19 views
Skip to first unread message

Wim Deblauwe

unread,
Apr 23, 2013, 11:02:28 AM4/23/13
to as3-commons...@googlegroups.com
Hi,

is there a way to interrupt a composite command running in SEQUENCE?

I would like to be able to say:

compositeCommand.interrupt(); // Would wait for the current running command to be done and then dispatch a complete event (Or maybe a new 'interrupted' event?)

regards,

Wim

Roland Zwaga

unread,
Apr 24, 2013, 7:43:53 AM4/24/13
to as3-commons...@googlegroups.com

There is no specific method for this, but it can be simulated by just
clearing the .commands property on the CompositeCommand instance.
This will won't cancel the currently running command, there won't
be a dedicated event though.
> --
> You received this message because you are subscribed to the Google
> Groups "as3-commons-developers" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to as3-commons-devel...@googlegroups.com.
> To post to this group, send email to as3-commons...@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/as3-commons-developers?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.



Reply all
Reply to author
Forward
0 new messages