Results 1 to 2 of 2
  1. #1
    MSgt. Shooter Person
    Join Date
    May 2011
    Location
    Busan Korea Republic of
    Posts
    275

    Default [Solved][AS3] Right Mouse Button issue.

    Code:
    import scaleform.gfx.*;
    import scaleform.clik.controls.Button;
    
    Extensions.enabled = true;
    
    var mc:Button;
    
    mc.addEventListener(MouseEvent.CLICK, clickHandler);
    
    function clickHandler(e:MouseEvent):void {
    	if (e is MouseEventEx) {
    		var ee:MouseEventEx = e as MouseEventEx;
    		
    		if (ee.buttonIdx == MouseEventEx.RIGHT_BUTTON)
    			trace("Right");
    	}
    	else {
    		trace("Not MouseEventEx");
    	}
    }

    output
    Code:
    Not MouseEventEx

    I think scaleform does not convert MouseEvent to 'Ex' version.

    Need something any more?

    Used 2012-01 UDK.

    Thanks.
    Last edited by donggas90; 04-22-2012 at 06:16 AM.
    Intel Core i5 2500K 4.0GHz O.C
    16GB RAM
    GeForce 560Ti O.C
    ASUS P67 Chipset
    Windows 7 Ultimate K 64bit

  2. #2
    MSgt. Shooter Person
    Join Date
    May 2011
    Location
    Busan Korea Republic of
    Posts
    275

    Default

    Suddenly work.

    I cannot understand why.
    Intel Core i5 2500K 4.0GHz O.C
    16GB RAM
    GeForce 560Ti O.C
    ASUS P67 Chipset
    Windows 7 Ultimate K 64bit


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.