#include problem

hi i’m using an external .as script
and is having just

#include ‘file.as’

so it works throughout the whole frames but now i want to call this file only when i need it, how do i go about now.

how do i reverse the effect? like maybe for frame 3, i do not want open the script. what should i do now?

thanks!