Hi

I have a script that I run at the end of each section in timeline of a presentation.
All I tried to do is put it into a function on the main timeline of the movie
and then on the end of each section call the function ...
BUT it wont work anymore?

All code is on the same timeline but function doesn't get called why ?

//main timeline throughout movie
function gotoNext(){
if (_global.count<29) { ...//blabla ... }}

//end of the section - last frame
gotoNext();

Is this wrong ???