Looping frames & scripts - safe?

Hi Team. Is it safe to loop script in Flash (maybe a silly question, but I want to know from the pros). I have a piece of code that check if custom slider is dragged, then it moves the text to suit.

Inside script MC on scene, frame 2 has this code:
Y = getProperty(’/dragMC/buttonMC’,_y);
newY = oldY + (Y - oldY)/12;

setproperty(’/scrolledMCrecipient/scrolledMC’,_y,newY);
oldY = newY;

play();

then its frame 3 has:
prevFrame();

Is this demanding on the system memory?