|
ActionGroups
Groups of actions that contain child actions and are themselves actions.
SummaryAction Groups are special types of actions that contain sets of other actions which can be controlled simultaneously. All action groups extend the AbstractActionGroup class. DetailsThe AbstractActionGroup class defines common characteristics of all action groups. All action groups use the addAction() method to add actions to the group. As you can see from the figure, AbstractActionGroup is itself a subclass of `AbstractAction` allowing you to nest action groups within other action groups or use a group as if it were a single action. This distinction makes creating long strings of time based events a relatively simple task. The types of groups are:
Groups can be used in conjunction with one another. For example, you may wish to create a sequence that contains a parallel action so that you can have several actions occur at the same point in a sequence. With all of the action groups, separate events are dispatched upon completion of individual items and of the entire group. ExampleIn this example, 5 shapes are tweened from left to right with each of the various group types. The black circles each take 2 seconds and the red square takes 4 seconds (this is to show how the simultaneous end group works differently from the parallel group) Related Links
|
Sign in to add a comment