# \_root.gotoAndStop(frame);

**URL:** https://forum.kirupa.com/t/-root-gotoandstop-frame/277595
**Category:** flash
**Created:** [December 14, 2008, 12:48pm UTC](https://forum.kirupa.com/t/-root-gotoandstop-frame/277595 "2008-12-14T12:48:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![oll3i](https://avatars.discourse-cdn.com/v4/letter/o/eb9ed0/32.png) [@oll3i](https://forum.kirupa.com/u/oll3i)
#### Post date: [December 14, 2008, 12:48pm UTC](https://forum.kirupa.com/t/-root-gotoandstop-frame/277595/1 "2008-12-14T12:48:01Z")

</div>

i store in the database the frame on which a user ended  
i retrive it from the database and store it in a variable “frame” when a user clicks “start” button  
but when i pass the variable to \_root.gotoAndStop(frame);  
it doesn’t work root doesn’t go to that frame ?

on (press){

\_root.pauseEnterFrame=true;  
var post\_get\_frame:LoadVars = new LoadVars();  
var post\_id:LoadVars = new LoadVars();  
post\_id.ID = id;  
post\_id.sendAndLoad(“[http://e-jobs.pl/e-deutsch/getStartFrame.php",post\_get\_frame,"POST](http://e-jobs.pl/e-deutsch/getStartFrame.php%22,post_get_frame,%22POST)”);  
post\_get\_frame.onLoad = function(success:Boolean) {  
if (success) {

```
    frame = post_get_frame.start_frame;

```

trace(frame);  
}  
else {  
frame = 2;  
}  
};  
\_root.gotoAndStop(frame);  
}
