# onComplete function call

**URL:** <https://forum.kirupa.com/t/oncomplete-function-call/253337>\
**Category:** flash\
**Created:** [February 29, 2008, 8:38am UTC](https://forum.kirupa.com/t/oncomplete-function-call/253337 "2008-02-29T08:38:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brenden](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@Brenden](https://forum.kirupa.com/u/Brenden)\
**Post date:** [February 29, 2008, 8:38am UTC](https://forum.kirupa.com/t/oncomplete-function-call/253337/1 "2008-02-29T08:38:13Z")

</div>

Ola Senors e senoritas!

I’ve got this problem which has made me go all emo :sad:  
If you create a class in as3, for instance:

I have a file called rootHandler.as with the following call  
var myClass = new wootClass()

How do you get wootClass to call a function inside rootHandler.as once it’s completed, say loading some XML? Hence I want the class to revert back to rootHandler.as once it has completed some task by calling a specific function in that parent.

If anyone can help it will be the awesomeness. Thanks!
