Announcement

Collapse
No announcement yet.

Mouse right click in actionscript 2.0 on a button " is it possible "?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    https://www.dropbox.com/s/vqt1jrjt5v...2007.53.08.png

    It does work, and from this fucntion , you can detect through a number wich button you hit.

    Code:
    	 * The button has been "clicked", either by a mouse click, or a key press.
    	 */
    	private function handleClick(controllerIdx:Number, button:Number):Void {
    		ExternalInterface.call("DraggedItem"," click  "+button);
    		if (toggle) { selected = !_selected; } // Will cause a state change.
    		dispatchEventAndSound({type:"click", controllerIdx:controllerIdx, button:button});
    		 
    	}

    Leave a comment:


  • replied
    Ok , trying and reporting. How did i miss that line ? lol

    Leave a comment:


  • replied
    Sorry, was wrong. It's in the gfx.controls.Button.as . Under configUI():
    Code:
    /* 
    // The following enables all mouse buttons (by default only the left mouse button is processed)
    this["onPressAux"] = handleMousePress;
    this["onReleaseAux"] = handleMouseRelease;		
    this["onDragOverAux"] = handleDragOver;
    this["onDragOutAux"] = handleDragOut;
    this["onReleaseOutsideAux"] = handleReleaseOutside;
    */
    Haven't tried it, but the comment sounds promising

    Leave a comment:


  • replied
    Ok, im just amazed how hard is hard to get the right click listened , i googled and it seems like it's a pretty hard task to for everyone lol ....

    Such a bizarre simple issue ... Ok im going to search for it. ill tell you if i find it. Else i think that i will just find methods in gameplay to avoid using it.

    Leave a comment:


  • replied
    Hey, I think I stumbled upon this somewhere. Either in the udk_manager.fla or, which I think is more likely, in the UIComponent.as. Somewhere it says something about listening to right click events. Maybe search the file for "right" ; ).

    Leave a comment:


  • replied
    I realised i could use the one of unrealscript, and use the mouse roll over and roll out, wich is actually like a hack, but it stills work .

    Still how would i add a right mouse click to a button ?

    Leave a comment:


  • Mouse right click in actionscript 2.0 on a button " is it possible "?

    I've been searching if right click on a button listener or, something that would allow me to use the input it's possible, but it's like the only button that detects it's the left click.

    ItemSlot it's using button , but it seems that there's no way to make it detect if right click.

    Thanks in advance.
Working...
X