How would these DisplayObjects be garbage collected?

Let say there is a Class A, it has a timer which updates its x position periodically. So all the instance of Class A will update their own x position. There is another Class B which extends Class A and overrides the function which updates position to change y position and call the trace function.

Now what I do now is create two instance alpha1, alpha2 of Class A and other two instance beta1, beta2 of Class B.

  • alpha1 is only instantiated, but not added to the stage.
  • alpha2 is instantiated, and there after added to the stage.
  • beta1 is only instantiated, but not added to the stage.
  • beta2 is instantiated, and there after added to the stage.
  • let say after few seconds, I remove alpha2 and beta2 from stage.

Now suppose the GC fires collection, who all would be collected ?

Please do consider this a question from a naive developer.

Humble Regards,
AS3 Gringo