Connecting Tech Pros Worldwide Help | Site Map

_root.gotoAndStop(frame);

oll3i's Avatar
Site Addict
 
Join Date: Mar 2007
Posts: 563
#1: Dec 14 '08
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 ?

Expand|Select|Wrap|Line Numbers
  1.  
  2. on (press){
  3.  
  4.  
  5. _root.pauseEnterFrame=true;
  6. var post_get_frame:LoadVars = new LoadVars();
  7. var post_id:LoadVars = new LoadVars();
  8. post_id.ID = id;
  9. post_id.sendAndLoad("http://e-jobs.pl/e-deutsch/getStartF...et_frame,"POST");
  10. post_get_frame.onLoad = function(success:Boolean) {
  11. if (success) {
  12.  
  13. frame = post_get_frame.start_frame;
  14. trace(frame);
  15. }
  16. else {
  17. frame = 2;
  18. }
  19. };
  20. _root.gotoAndStop(frame);
  21. }
  22.  
Reply