Announcement

Collapse

The Infinity Blade Forums Have Moved

We've launched brand new Infinity Blade forums with improved features and revamped layout. We've also included a complete archive of the previous posts. Come check out the new Infinity Blade forums.
See more
See less

Right Click in Scaleform?

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

    #31
    Bump. Coldscooter, you ever get this working? I'm going to try what limscafo was doing... treating left/right click as the same thing in ActionScript, and letting UnrealScript try to figure out which one was pressed.

    Edit: Also, I need to make the movie intercept input. Where would I need to look in uscript for flagging something before the input gets intercepted in the GFx movie?

    Comment


      #32
      Booyah! Solved!

      BOOYAH! SOLVED! Check it out: Put something on the stage and call it "button." Then in your ActionScript code, do this:

      Code:
      import scaleform.gfx.MouseEventEx;
      Extensions.enabled = true;
      
      button.addEventListener("click", clickHandler);
      
      function clickHandler(e:MouseEventEx):void
      {
      	switch(e.buttonIdx)
      	{
      		case 0:
      			trace("Left click");
      			break;
      		case 1:
      			trace("Right click");
      			break;
      	}
      }
      When you click that button, you'll get the expected output to your console. Just replace with whatever exactly you want to do.

      Comment

      Working...
      X