7 Replies Latest reply on Dec 6, 2010 9:57 PM by Flex harUI

    TypeError: Error #1116: second argument to Function.prototype.apply must be an array

    vineet osho

      Hi Frnds

                   I m loading an external swf into my swf using flex event.

                e.target.content.addEventListener(FlexEvent.APPLICATION_COMPLETE,centerSWFLoad);

       

      but after this line it throws runtime 1116 error.please guide why this error occur and tell me which parameter i have to make array?

      is it adobe frame work ecxeption or something else.kindly guide the solution.

       

      TypeError: Error #1116: second argument to Function.prototype.apply must be an array.
          at Function/http://adobe.com/AS3/2006/builtin::apply()
          at mx.managers::CursorManagerImpl/marshalCursorManagerHandler()[C:\autobuild\3.2.0\framework s\projects\framework\src\mx\managers
      \CursorManagerImpl.as:980]
          at flash.events::EventDispatcher/dispatchEventFunction()
          at flash.events::EventDispatcher/dispatchEvent()
          at mx.managers::CursorManagerImpl/registerToUseBusyCursor()
          at mx.managers::CursorManager$/http://www.adobe.com/2006/flex/mx/internal::registerToUseBusyCursor()
          at mx.controls::SWFLoader/set showBusyCursor()
          at mx.core::Container/createComponentFromDescriptor()
          at mx.core::Container/createComponentsFromDescriptors()
          at mx.core::Container/createChildren()
          at mx.core::UIComponent/initialize()
          at mx.core::Container/initialize()
          at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()
          at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()
          at mx.core::Container/addChildAt()
          at mx.core::Container/addChild()
          at mx.c
          at mx.core::UIComponent/initialize()
          at mx.core::Container/initialize()
          at mx.core::Application/initialize()
          at centerswf/initialize()
          at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::childAdded()
          at mx.managers::SystemManager/initializeTopLevelWindow()
          at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()
          at mx.managers::SystemManager/docFrameListener()

       

       

       

      Thanks in advance

          Vineet Osho