Skip navigation
Currently Being Moderated

button events problem

Mar 12, 2012 3:14 AM

Hi i m tying to add event in buttons, but these button not showing hand cursor or not taking events too... here my piece of code..

 

 

package code {

    import flash.display.MovieClip;

    import flash.display.SimpleButton;

    import flash.events.MouseEvent;

   

    public class switchsim extends MovieClip{

        private var whichsim:String='work'

       

        public function switchsim() {

            setup()

        }

       

        public function setup(){

           

            trace('sim setup')// trace is working

            btnwork.addEventListener(MouseEvent.CLICK,worksimfun)<< here these buttons not taking events

            btnplay.addEventListener(MouseEvent.CLICK,playsimfun)<< here these buttons not taking events

           

        }

... class continue...

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points