# Rewind function heeeeeelp please

**URL:** <https://forum.kirupa.com/t/rewind-function-heeeeeelp-please/214866>\
**Category:** flash\
**Created:** [February 1, 2007, 4:14pm UTC](https://forum.kirupa.com/t/rewind-function-heeeeeelp-please/214866 "2007-02-01T16:14:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flyingzenmonkey](https://avatars.discourse-cdn.com/v4/letter/f/9e8a1a/32.png) [@flyingzenmonkey](https://forum.kirupa.com/u/flyingzenmonkey)\
**Post date:** [February 1, 2007, 4:14pm UTC](https://forum.kirupa.com/t/rewind-function-heeeeeelp-please/214866/1 "2007-02-01T16:14:35Z")

</div>

[LEFT]Hi everyone,

I trying to make this function work but i think i am stuck. please can someone help  
project outline:

Web graphics that will load into an empty mc container.  
once loaded when user clicks another button the mc wil finish play in reverse.  
once the revers is complete, it will load another movie clip in container

here is my starting script

///rewind function  
container.onEnterFrame = function() {  
if (rewind == true) {  
prevFrame();  
}  
};

///creating new empty mc and loading movie into it  
but.onPress = function() {  
\_root.createEmptyMovieClip(“container”, 1);  
loadMovie(“loaded.swf”, “container”);  
container.\_x = 150;  
container.\_y = 20;  
};  
///calling function when rewined when rewind is done, load next movie  
but2.onPress = function() {  
container = function() {  
rewind = true;  
loadMovie(“loaded2.swf”, “container”);  
};  
};

Thanks  
Louis

[/LEFT]
