Solved

Why do my flash buttons require TWO clicks?

Posted on 2003-10-31
4
182 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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…
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.

730 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