?
Solved

Flash button I have to press the button twice

Posted on 2004-11-28
2
Medium Priority
?
176 Views
Last Modified: 2010-04-07
Hi

I have a problem with this button it calls a Perl script and the script returns a variable named GoodUser and that can have a value of a Yes or No. My problem is I have to press the button twice to get the "gotoAndStop" part of this script to work any ideas?



on(release){
loadVariablesNum ("http://www.mydomain.com/cgi-bin/flashtest.pl", 0, "GET");

if (GoodUser eq "Yes"){
gotoAndStop("Good");
}

if (GoodUser eq "No") {
gotoAndStop("Bad");
}

}
0
Comment
Question by:blnukem
2 Comments
 

Author Comment

by:blnukem
ID: 12690367
Here is the .fla file: http://www.smldesign.com/help.fla 
0
 
LVL 8

Accepted Solution

by:
sokhodom earned 2000 total points
ID: 12690458
Hi blnukem,
here is the correct version: http://www.ntu.edu.sg/home2001/n0069866/help.fla
All you have to do is to take out the loadVariablesNum ("http://www.smldesign.com/cgi-bin/flashtest.pl", 0, "POST"); out of the on(release) function and put it into the FRAME instead.
Usually, those loadVariableS and loadVars are put in the frame instead of button because it's make the code run faster and always execute first.
Cheers,
SokhodoM
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
Suggested Courses

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question