flash display_list_player_head

How the player head works

Due to the new list display mechanism in Flash 9 player the internal functioning of the player head has also been modified.

When the player head meets a frame with graphic objects it adds the graphic objects using the addChild method:

4.13.1.jpg

On the other hand, when the player head meets an empty keyframe the player deletes the graphic objects using the removeChild method:

4.13.2.jpg

Through the deletion or addition of graphic objects, they automatically broadcast the ADDED_TO_STAGE and Event.REMOVED_FROM_STAGE events.

We discuss this further in the article entitled Extending native classes.

Worth remembering

  • It is strongly recommended to manage activation and deactivation of graphic objects.
  • To do this we use the Event.ADDED_TO_STAGE and Event.REMOVED_FROM_STAGE events.
  • If new objects are placed on a keyframe, the layer head adds them using the addChild method.
  • If the player head meets an empty keyframe the player automatically deletes the graphic objects using the removeChild method.







Adobe Training center


Mediabox Training Centre © 2000 - 2008 All rights reserved.
Adobe Authorized Training Centre. State convention under number 25 14 02167 14.
Mediabox : SARL au capital de 62.000€ - Activity number: 25 14 02167 14 - SIRET : 493 716 468 00027
MEDIABOX, 102 Avenue des Champs Elysées, 75008 PARIS - Tel. +33(0)2.31.91.96.89 - Fax. +33(0)2.72.68.56.42