Flash button I have to press the button twice

Posted on 2004-11-28
Last Modified: 2010-04-07

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?

loadVariablesNum ("", 0, "GET");

if (GoodUser eq "Yes"){

if (GoodUser eq "No") {

Question by:blnukem

    Author Comment

    Here is the .fla file:
    LVL 8

    Accepted Solution

    Hi blnukem,
    here is the correct version:
    All you have to do is to take out the loadVariablesNum ("", 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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
    In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
    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…

    761 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

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now