Skip to content

5. AJUI_Animate Process Management

Gary Criblez edited this page May 15, 2020 · 5 revisions

An animation process is directly launched by the component as soon as one of the member functions is called and the properties have been validated.

The component takes care of storing the ID number of each of the processes it has launched in the storage and removes them at the end of their execution.

Life cycle of the animation process

Here are the different phases that are carried out when you are going to execute an animation using one of the member functions made available via the object returned by the New animation() method :

  1. Properties verification: Calls up the formula, checks the properties and assigns default values if necessary.

  2. Data Retrieval: The component will be in charge of retrieving the basic definition of the 4D objects that you have targeted to make your animations.

  3. Process launch: A new local process will be launched in order to manage the animation execution. The process identifier is stored internally via the 4D storage.

  4. Closure of the process: Removes the process identifier from the storage, a callback is launched if it is specified and the method exists and finally the process is stopped.