Calling 2 functions in a function.... only the last one called


function1 = function() {
	this.onEnterFrame = function() {
		function2();
		function3();
	}
}

function2 = function(){
	this.onEnterFrame = function() {
		trace("function 2 activated!");
	}
}

function3 = function(){
	this.onEnterFrame = function() {
		trace("function 3 activated!");
	}
}

function1();

try this code… it only trace function3

i’m wondering why? is it because of the onEnterFrame in the functions?