Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 12-05-2007, 08:15 PM   #1
Registered User
Join Date: Dec 2007
Posts: 3
Question AS3 Click events from a class file

I've got a problem with a flash application that should be very easy ... but is driving me nuts (new to AS3).

The buttons are animating over/out properly. That's not the problem. The problem is the CLICK Event. I have a button on the stage, we'll call it myButton. The symbol has linkage to the myButtonClass class (finds it successfully). The rollover events work properly, but I'm not able to get the gotoAndPlay function to work. What would that code be? everything I'm finding is saying to use:
ActionScript Code:
However, this is not working. Any thoughts?

In addition, I actually have multiple buttons on the stage, we'll call the other one myButton2. When I click myButton, I would like to disable the rollover events for it and lock it into an active color. By active I simply mean that I want the MOUSE_OVER color to stay and for it to disable the MOUSE_OUT event listener. I'm not really sure if there is an easy way to do this.

Any assistance would be appreciated.
VertigoRay is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange problem setting visibility Chewie ActionScript 2.0 12 02-17-2006 09:21 PM
component class file preload problem? theiceman Components 1 09-11-2005 07:40 PM
Displaying data within a AS class file silencer01 Flash Remoting 0 05-31-2005 10:17 PM
can a class file be laoded in movie symbol shaba2000 ActionScript 2.0 19 03-17-2005 04:50 PM
including class file confusion whozie ActionScript 2.0 9 12-27-2004 11:30 PM

All times are GMT. The time now is 09:06 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.