[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 194
  • Last Modified:

Why do my flash buttons require TWO clicks?

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
adrosal
Asked:
adrosal
1 Solution
 
adrosalAuthor Commented:
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
 
zenlion420Commented:
please post a request here to have this deleted and pts refunded:

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

j
0
 
Computer101Commented:
PAQed, with points refunded (20)

Computer101
E-E Admin
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now