Solved

Why do my flash buttons require TWO clicks?

Posted on 2003-10-31
4
144 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
Comment Utility
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
Comment Utility
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
Comment Utility
PAQed, with points refunded (20)

Computer101
E-E Admin
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to how to record live broadcast.
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.

771 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

14 Experts available now in Live!

Get 1:1 Help Now