5 Replies Latest reply on Nov 4, 2009 9:46 AM by Flex harUI

    My Flex components constantly throw Error: #1009

    danwize Level 1

      In a UI we've created, we use many components drawn in flash and exported using flash component kit.  Almost any time there is a user interaction this components, or if the application looses focus, it throws Error 1009.  This problem is so prolific, that we can't find the cause.  Here are a couple stack traces from the error:

       

      TypeError: Error #1009: Cannot access a property or method of a null object reference.

      at mx.flash::UIMovieClip/removeFocusEventListeners()[E:\dev\trunk\frameworks\projects\flash- integration\src\mx\flash\UIMovieClip.as:2466]

      at mx.flash::UIMovieClip/focusOutHandler()[E:\dev\trunk\frameworks\projects\flash-integratio n\src\mx\flash\UIMovieClip.as:2509]

      at flash.display::Stage/set focus()

      at fl.core::UIComponent/setFocus()

      at fl.managers::FocusManager/setFocus()

      at fl.managers::FocusManager/mouseDownHandler()

       

      The above happened when I clicked on a flex component exported from flash that is a movie clip containing only a text field.

       

      TypeError: Error #1009: Cannot access a property or method of a null object reference.

      at mx.flash::UIMovieClip/removeFocusEventListeners()[E:\dev\trunk\frameworks\projects\flash- integration\src\mx\flash\UIMovieClip.as:2466]

      at mx.flash::UIMovieClip/focusOutHandler()[E:\dev\trunk\frameworks\projects\flash-integratio n\src\mx\flash\UIMovieClip.as:2509]

      at flash.display::Stage/set focus()

      at fl.core::UIComponent/setFocus()

      at fl.managers::FocusManager/setFocus()

      at fl.managers::FocusManager/mouseDownHandler()

       

      The above happened when I clicked on a flash exported flex component inside a flash scroll pane within another flash exported flex component.

       

      Maybe part of the problem is trying to mix the flash and flex frameworks too much.  Any help would be appreciated.

       

      Dan