Solved

Why do my flash buttons require TWO clicks?

Posted on 2003-10-31
4
158 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
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…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to record live broadcast.

911 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

21 Experts available now in Live!

Get 1:1 Help Now