10.11.08

ActionScript Warning 1090: Migration issue: The onRelease event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( ‘click’, callback_handler).

Posted in Adobe, Error, Error, errors, Flash, Flash 10, Flex at 10:52 pm by Curtis J. Morley

AS3 Warning: 1090: Migration issue: The onRelease event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0.  You must first register this handler for the event using addEventListener ( 'click', callback_handler).

AS3 Warning 1090 Description:

So the other day I opened some AS2 files that I use for teaching Flash Arrays at UVU.  I changed a few things in the file and tested my movie.  That is when Warning 1090 popped up and I realized that I had missed a few things.  AS3 Warning1090 is the most comprehensive and complete error message that I have ever encountered in Flash or Flex.  Not only does it give a really clear description but it tells you how to solve the issue.  Kudos Flash programmers/writers.  Jen DeHaan  if this is you - Nice Job!

P.S.  This will also happen with onEnterFrame, onPress, onMouseMove, etc...  I have only included one example here but it applies to all cases.

Flex / Flash Error #1090 Fix:

Do exactly what the message says use an event listener instead of the onRelease event that was common in AS2.

Bad Code:

joinArray_btn.onRelease = function () {
//Do Something
}

Good Code:

joinArray_btn.addEventListener(MouseEvent.CLICK, joinArray);

function joinArray() {
//Do Something
}

Related Errors:

AS3 Warning 1058

This should help you resolve Flex / Flash Warning #1090

Thanks and as always Happy Flashing

Curtis J. Morley

6 Comments »

  1. curtismorley.com » Warning: 1058: Migration issue: The property _root is no longer supported. This property has been removed. The closest equivalent is the Stage, which serves as the root of the ActionScript 3.0 display list.. said,

    October 22, 2008 at 10:23 pm

    […] AS3 Warning 1090 […]

  2. curtismorley.com » Flex / Flash Compiler Error #1023: Incompatible override. said,

    October 22, 2008 at 11:23 pm

    […] This ActionScript error is the most terse error that AS3 has provided us.  It is nothing like the beautiful description of AS3 Warning 1090 […]

  3. curtismorley.com » AS3 Compiler Error# 1021: Duplicate function definition. said,

    October 22, 2008 at 11:25 pm

    […] ActionScript error is the most terse error that AS3 has provided us.  It is nothing like AS3 Warning 1090 It popped up, rearing it’s ugly head like a teenager on Halloween. In most cases this error has […]

  4. sean said,

    November 30, 2009 at 7:02 pm

    you are a champion, sir

  5. w said,

    April 4, 2010 at 3:59 am

    Sir what is the difference between joinArray_btn and joinArray? With what should I change it so it works? Thanks sir.

  6. Patrik said,

    August 18, 2011 at 1:14 pm

    HELP pls
    Im in trouble, I am quite new to ActionScript, and I just cant fix the problem, there are two problems actually, one is 1119 and the other is 1090.

    those three lines of my code look like this

    searchButton.onRelease = function() {
    resultField.text = getPhoneByName(nameField.text);
    }

Leave a Comment