ForumsProgramming ForumRelatively Easy Q

1 3330
DaliuXas
offline
DaliuXas
71 posts
Scribe

So I've been following this Flash book and it suggested for me to try my own functions to trace my mouse activity on buttons. E.g.

stop()

function buttonDoubleClick(myevent:MouseEvent):void{
trace("You Double Clicked Me"
}

myBtn*.addEventListener(MouseEvent.DOUBLE_CLICK,buttonDoubleClick);

*name of the button instance

<> The problem is that the trace window doesn't show up and tell the "You Double Clicked Me" thingy after you click a button instance myBtn.Others like ROLL_OVER , MOUSE_OUT and CLICK work with trace function.Any suggestions , maybe the book writers problem?

  • 1 Reply
Diddy645
offline
Diddy645
23 posts
Nomad

I may just be unaware, but I have never heard of a DOUBLE_CLICK function. If it comes up blue when you type it, then it exists (I don't have time to test right now). Otherwise, i have no clue how to help.

Showing 1-1 of 1