Solved

Why do my flash buttons require TWO clicks?

Posted on 2003-10-31
4
164 Views
Last Modified: 2010-07-27
I don't get it. When I click the button the first time, nothing happens. When I click it a second time, it works like it's supposed to.

I think I have everything set up correctly. The button resides in the first frame (which has a stop action). The action for the button is as follows:

on (release) {
      petBtn.onRelease = function() {
            gotoAndPlay(2);
      };
}

So all I'm asking it to do is advance one frame (frame 2 also has a stop action).

IT WORKS FINE on the second click! Why won't it work on the FIRST click?

Thanks in advance!!
0
Comment
Question by:adrosal
4 Comments
 

Author Comment

by:adrosal
ID: 9660591
Sorry all, I figured it out. I didn't need that

on (release) {

in my actionscript.

The correct actionscript should read:

petBtn.onRelease = function() {
      gotoAndPlay(2);
};
0
 
LVL 5

Expert Comment

by:zenlion420
ID: 9661773
please post a request here to have this deleted and pts refunded:

http://www.experts-exchange.com/Community_Support/

j
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 12185988
PAQed, with points refunded (20)

Computer101
E-E Admin
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
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…
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…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

808 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