Priority function execution

Is it possible to set in AS3 something like that “making impossible further operations with other parts of code until full complete of particular function that’s running”. In other words to add event “on complete run bla-bla-bla” to a function.