473,386 Members | 1,654 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

_root.gotoAndStop(frame);

oll3i
679 512MB
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.  
Dec 14 '08 #1
0 2484

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: MikeZdoesit | last post by:
Hi, I'm having trouble with setting up a shared object and I really need some help from someone more enlighten then myself in the field of actionscript :) Basically I have a talking character that...
1
by: siresoth666 | last post by:
Greeting to everyone, I am a rookie at ASP and this may seem like a very simpleton question to most but I am clueless about it. I copied a code from a tutorial on to Flash its ASP but it does not...
1
by: mikeguy3086 | last post by:
Here is my problem. I searched here and found something that made sense, however when I did it, it did not work. I'm building a site and heres the deal. I have two links. When you rollover one...
7
by: ridgedale | last post by:
Hi, I'm new to Flash am trying to link to an external site, which consists of a single flash file, and load a specific frame. The actionscript code I have attached to the button so far is as follows:...
4
by: Max58kl | last post by:
Hi I have a main swf file that loads in 2 other swfs. The 2 other swfs have on their timeline a movieClipController the plays their timeline in reverse when a button is clicked. When I view the...
5
by: Katt | last post by:
first of all I am new to flash. I just started to use CS3, and I have 2.0 actionscript selected Cannot get my MC button instance to go play a movie clip on another frame, I have tried...
0
by: chromis | last post by:
Hi, I'm creating virtual tour of a house, the part I am working on at the moment involves a 360 spin view of the house (a series of 36 flat frames). Each corner of the house has a hotspot so that...
0
by: Chinde | last post by:
Hello again I'm having a little problem with this code, the idea is that the cat object follows the main character around and performs certain actions when the character is in range or out of...
1
by: JWest46088 | last post by:
I'm getting this error when I try to preview my code: TypeError: Error #1009: Cannot access a property or method of a null object reference. at therun4life_fla::MainTimeline/frame1() I don't...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.