Question on the "Photo Slideshow Using XML and Flash" in kirupa.com

Dear all,

I got a question on this tutorial about the slideshow.
The flow of this program will be as follow:

loadXML() -> firstImage() -> slideshow() -> nextImage() -> … -> nextImage() -> firstImage() -> nextImage() -> …

from the above it show that the program never end, of course it is ok because we are aim
at doing slideshow and so it should not stop. However, the all the function are never end
also, what I mean is the first call loadXML() will wait for firstImage() end, but firstImage()
is waiting for slideshow() end, slideshow() wait for nextImage() and so on… my question
is will it cause a problem if this program running for sometime? Cause it may eat up a log
of memory as all the functions are waiting for the end.

Or this problem is not applied to FLASH?

Many Thanks!