Results 1 to 4 of 4
  1. #1

    Default AS3 Mouse event issue in UDK 2012-03 release

    I was using AS2 in my menus and submenus, and all worked fine..

    Then I upgraded development in CSFlash to AS3 as eventually wanted to take advantage of greater number of features available here (eventually). When imported my upgrade into UDK 2012.03 all appeared correct, but menu buttons are at best "erratic". Sometimes they work, sometimes they do not. It is almost as if the event handler misses the mouse click event? After many clicks it takes... But it is frustrating to say the least. When I test the movie in CSFlash environment, it all works fine. I'm using CSFlash 6.0, but saving as as 5.0 and exporting the *.swf for import into UDK.

    Anyone else see a similar problem? Any suggestions?

    A Bazillion thanks....

  2. #2

    Default

    I reverted all the button actionscript code to 2.0, and now they work flawlessly in UDK 2012.03 and the recent 2012.05. It appears AS3 is still a little buggy in UDK? Anyone else have similar problems? If this is known issue and/or if there is a workaround I would be very grateful, as AS3 appears to much more structured and versatile (compared to AS2).
    Thanks...
    Last edited by walkabout888; 07-06-2012 at 02:10 AM. Reason: Add more info

  3. #3

    Default

    Solved the problem... Somehow, someway the mouse cursor event was clashing with the button click event. Since I only had a visible cursor for testing purposes, as really do not need one as the game will eventually be ported to mobile app, the problem went away when I got rid of it.

    AS3 appears to work fine in UDK's Scaleform. Thus far really happy with it!!! And love the Scaleform panel one can set-up and launch from CSFlash. This shows if AS3 code will actually work in UDK environment. Really awesome...

  4. #4
    MSgt. Shooter Person
    Join Date
    Jul 2011
    Posts
    49

    Default

    i'm still running into this problem with AS3. are you using "<instanceName>.addEventListener(MouseEvent.CL ICK, functionName);" ?

    EDIT/SOLVED: and therein lies the problem. i was using MouseEvents assuming their compatibility with touch events similar to AIR for iOS cross-compatibility. switched everything to ButtonEvents and now it works great.
    Last edited by paradoc; 07-14-2012 at 04:21 PM.


 

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.