# Looping frames & scripts - safe?

**URL:** <https://forum.kirupa.com/t/looping-frames-scripts-safe/156066>\
**Category:** flash\
**Created:** [July 22, 2005, 6:11am UTC](https://forum.kirupa.com/t/looping-frames-scripts-safe/156066 "2005-07-22T06:11:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![woot](https://avatars.discourse-cdn.com/v4/letter/w/cab0a1/32.png) [@woot](https://forum.kirupa.com/u/woot)\
**Post date:** [July 22, 2005, 6:11am UTC](https://forum.kirupa.com/t/looping-frames-scripts-safe/156066/1 "2005-07-22T06:11:23Z")

</div>

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?
