Loading ...
Sorry, an error occurred while loading the content.

RE: [flexcoders] Cannot convert Event to ResizeEvent

Expand Messages
  • Alex Harui
    Is anything listening for a resize event in either swf? ________________________________ From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]
    Message 1 of 7 , Nov 1, 2007
    View Source
    • 0 Attachment

      Is anything listening for a resize event in either swf?

       


      From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mark Ingram
      Sent: Thursday, November 01, 2007 7:23 AM
      To: flexcoders@yahoogroups.com
      Subject: [flexcoders] Cannot convert Event to ResizeEvent

       

      Hi, I’m getting this odd error when trying to load a Flex application inside a parent Flex application:

       

      TypeError: Error #1034: Type Coercion failed: cannot convert flash.events: :Event@aa63f41 to mx.events.ResizeEve nt.

            at flash.events: :EventDispatcher /dispatchEventFu nction()

            at flash.events: :EventDispatcher /dispatchEvent( )

            at mx.managers: :SystemManager/ setActualSize( )[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\managers\ SystemManager. as:1753]

            at mx.controls: :SWFLoader/ doScaleContent( )[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\controls\ SWFLoader. as:1449]

            at mx.controls: :SWFLoader/ updateDisplayLis t()[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\controls\ SWFLoader. as:1091]

            at mx.core::UIComponen t/validateDispla yList()[C: \dev\flex_ 201_gmc\sdk\ frameworks\ mx\core\UICompon ent.as:5760]

            at mx.managers: :LayoutManager/ validateDisplayL ist()[C:\ dev\flex_ 201_gmc\sdk\ frameworks\ mx\managers\ LayoutManager. as:600]

            at mx.managers: :LayoutManager/ doPhasedInstanti ation()[C: \dev\flex_ 201_gmc\sdk\ frameworks\ mx\managers\ LayoutManager. as:673]

            at Function/http: //adobe.com/ AS3/2006/ builtin:: apply()

            at mx.core::UIComponen t/callLaterDispa tcher2()[ C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\core\UICompon ent.as:7909]

            at mx.core::UIComponen t/callLaterDispa tcher()[C: \dev\flex_ 201_gmc\sdk\ frameworks\ mx\core\UICompon ent.as:7852]

       

      I have no idea why, especially when the word “ResizeEvent” doesn’t even occur in any of our source code…

      Has anyone seen this before??

       

      Mark

       

       

    • Mark Ingram
      Nope, I ve done a search for the term ResizeEvent in all projects and I don t get a single match. I ve tested it on a colleague s computer (which works fine)
      Message 2 of 7 , Nov 1, 2007
      View Source
      • 0 Attachment

        Nope, I’ve done a search for the term “ResizeEvent” in all projects and I don’t get a single match. I’ve tested it on a colleague’s computer (which works fine) and the only difference between our dev boxes is the fact I’m running Vista and he’s running XP.

         

        Thanks,

         

        Mark

         

         


        From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com ] On Behalf Of Alex Harui
        Sent: 01 November 2007 16:09
        To: flexcoders@yahoogroups.com
        Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent

         

        Is anything listening for a resize event in either swf?

         


        From: flexcoders@yahoogro ups.com [mailto: flexcoders@ yahoogroups. com ] On Behalf Of Mark Ingram
        Sent: Thursday, November 01, 2007 7:23 AM
        To: flexcoders@yahoogro ups.com
        Subject: [flexcoders] Cannot convert Event to ResizeEvent

         

        Hi, I’m getting this odd error when trying to load a Flex application inside a parent Flex application:

         

        TypeError: Error #1034: Type Coercion failed: cannot convert flash.events: :Event@aa63f41 to mx.events.ResizeEve nt.

              at flash.events: :EventDispatcher /dispatchEventFu nction()

              at flash.events: :EventDispatcher /dispatchEvent( )

              at mx.managers: :SystemManager/ setActualSize( )[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\managers\ SystemManager. as:1753]

              at mx.controls: :SWFLoader/ doScaleContent( )[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\controls\ SWFLoader. as:1449]

              at mx.controls: :SWFLoader/ updateDisplayLis t()[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\controls\ SWFLoader. as:1091]

              at mx.core::UIComponen t/validateDispla yList()[C: \dev\flex_ 201_gmc\sdk\ frameworks\ mx\core\UICompon ent.as:5760]

              at mx.managers: :LayoutManager/ validateDisplayL ist()[C:\ dev\flex_ 201_gmc\sdk\ frameworks\ mx\managers\ LayoutManager. as:600]

              at mx.managers: :LayoutManager/ doPhasedInstanti ation()[C: \dev\flex_ 201_gmc\sdk\ frameworks\ mx\managers\ LayoutManager. as:673]

              at Function/http: //adobe.com/ AS3/2006/ builtin:: apply()

              at mx.core::UIComponen t/callLaterDispa tcher2()[ C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\core\UICompon ent.as:7909]

              at mx.core::UIComponen t/callLaterDispa tcher()[C: \dev\flex_ 201_gmc\sdk\ frameworks\ mx\core\UICompon ent.as:7852]

         

        I have no idea why, especially when the word “ResizeEvent” doesn’t even occur in any of our source code…

        Has anyone seen this before??

         

        Mark

         

         

      • Alex Harui
        You would do a search for resize not resizeEvent . It appears that someone is listening to resize on the systemManager by accident.
        Message 3 of 7 , Nov 1, 2007
        View Source
        • 0 Attachment

          You would do a search for “resize” not “resizeEvent”.  It appears that someone is listening to “resize” on the systemManager by accident.

           


          From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mark Ingram
          Sent: Thursday, November 01, 2007 9:59 AM
          To: flexcoders@yahoogroups.com
          Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent

           

          Nope, I’ve done a search for the term “ResizeEvent” in all projects and I don’t get a single match. I’ve tested it on a colleague’s computer (which works fine) and the only difference between our dev boxes is the fact I’m running Vista and he’s running XP.

           

          Thanks,

           

          Mark

           

           


          From: flexcoders@yahoogro ups.com [mailto: flexcoders@yahoogro ups.com ] On Behalf Of Alex Harui
          Sent: 01 November 2007 16:09
          To: flexcoders@yahoogro ups.com
          Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent

           

          Is anything listening for a resize event in either swf?

           


          From: flexcoders@yahoogro ups.com [mailto: flexcoders@ yahoogroups. com ] On Behalf Of Mark Ingram
          Sent: Thursday, November 01, 2007 7:23 AM
          To: flexcoders@yahoogro ups.com
          Subject: [flexcoders] Cannot convert Event to ResizeEvent

           

          Hi, I’m getting this odd error when trying to load a Flex application inside a parent Flex application:

           

          TypeError: Error #1034: Type Coercion failed: cannot convert flash.events: :Event@aa63f41 to mx.events.ResizeEve nt.

                at flash.events: :EventDispatcher /dispatchEventFu nction()

                at flash.events: :EventDispatcher /dispatchEvent( )

                at mx.managers: :SystemManager/ setActualSize( )[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\managers\ SystemManager. as:1753]

                at mx.controls: :SWFLoader/ doScaleContent( )[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\controls\ SWFLoader. as:1449]

                at mx.controls: :SWFLoader/ updateDisplayLis t()[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\controls\ SWFLoader. as:1091]

                at mx.core::UIComponen t/validateDispla yList()[C: \dev\flex_ 201_gmc\sdk\ frameworks\ mx\core\UICompon ent.as:5760]

                at mx.managers: :LayoutManager/ validateDisplayL ist()[C:\ dev\flex_ 201_gmc\sdk\ frameworks\ mx\managers\ LayoutManager. as:600]

                at mx.managers: :LayoutManager/ doPhasedInstanti ation()[C: \dev\flex_ 201_gmc\sdk\ frameworks\ mx\managers\ LayoutManager. as:673]

                at Function/http: //adobe.com/ AS3/2006/ builtin:: apply()

                at mx.core::UIComponen t/callLaterDispa tcher2()[ C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\core\UICompon ent.as:7909]

                at mx.core::UIComponen t/callLaterDispa tcher()[C: \dev\flex_ 201_gmc\sdk\ frameworks\ mx\core\UICompon ent.as:7852]

           

          I have no idea why, especially when the word “ResizeEvent” doesn’t even occur in any of our source code…

          Has anyone seen this before??

           

          Mark

           

           

        • Mark Ingram
          Hmm, there are no resize listeners on the system manager. There are a couple listening on the stage, but they all expect an event:Event parameter. Like I say,
          Message 4 of 7 , Nov 2, 2007
          View Source
          • 0 Attachment

            Hmm, there are no resize listeners on the system manager. There are a couple listening on the stage, but they all expect an event:Event parameter. Like I say, even when the code bases are the same, it does’t work on my computer, but does work on a colleagues.

             

            Thanks,

             

            Mark

             

             


            From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui
            Sent: 01 November 2007 18:34
            To: flexcoders@yahoogroups.com
            Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent

             

            You would do a search for “resize” not “resizeEvent”.  It appears that someone is listening to “resize” on the systemManager by accident.

             


            From: flexcoders@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Mark Ingram
            Sent: Thursday, November 01, 2007 9:59 AM
            To: flexcoders@yahoogro ups.com
            Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent

             

            Nope, I’ve done a search for the term “ResizeEvent” in all projects and I don’t get a single match. I’ve tested it on a colleague’s computer (which works fine) and the only difference between our dev boxes is the fact I’m running Vista and he’s running XP.

             

            Thanks,

             

            Mark

             

             


            From: flexcoders@yahoogro ups.com [mailto: flexcoders@yahoogro ups.com ] On Behalf Of Alex Harui
            Sent: 01 November 2007 16:09
            To: flexcoders@yahoogro ups.com
            Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent

             

            Is anything listening for a resize event in either swf?

             


            From: flexcoders@yahoogro ups.com [mailto: flexcoders@ yahoogroups. com ] On Behalf Of Mark Ingram
            Sent: Thursday, November 01, 2007 7:23 AM
            To: flexcoders@yahoogro ups.com
            Subject: [flexcoders] Cannot convert Event to ResizeEvent

             

            Hi, I’m getting this odd error when trying to load a Flex application inside a parent Flex application:

             

            TypeError: Error #1034: Type Coercion failed: cannot convert flash.events: :Event@aa63f41 to mx.events.ResizeEve nt.

                  at flash.events: :EventDispatcher /dispatchEventFu nction()

                  at flash.events: :EventDispatcher /dispatchEvent( )

                  at mx.managers: :SystemManager/ setActualSize( )[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\managers\ SystemManager. as:1753]

                  at mx.controls: :SWFLoader/ doScaleContent( )[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\controls\ SWFLoader. as:1449]

                  at mx.controls: :SWFLoader/ updateDisplayLis t()[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\controls\ SWFLoader. as:1091]

                  at mx.core::UIComponen t/validateDispla yList()[C: \dev\flex_ 201_gmc\sdk\ frameworks\ mx\core\UICompon ent.as:5760]

                  at mx.managers: :LayoutManager/ validateDisplayL ist()[C:\ dev\flex_ 201_gmc\sdk\ frameworks\ mx\managers\ LayoutManager. as:600]

                  at mx.managers: :LayoutManager/ doPhasedInstanti ation()[C: \dev\flex_ 201_gmc\sdk\ frameworks\ mx\managers\ LayoutManager. as:673]

                  at Function/http: //adobe.com/ AS3/2006/ builtin:: apply()

                  at mx.core::UIComponen t/callLaterDispa tcher2()[ C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\core\UICompon ent.as:7909]

                  at mx.core::UIComponen t/callLaterDispa tcher()[C: \dev\flex_ 201_gmc\sdk\ frameworks\ mx\core\UICompon ent.as:7852]

             

            I have no idea why, especially when the word “ResizeEvent” doesn’t even occur in any of our source code…

            Has anyone seen this before??

             

            Mark

             

             

          • Alex Harui
            It might be that if you set up those listeners in MXML, it is generating the wrong code. Can you make a mini-test case? ________________________________ From:
            Message 5 of 7 , Nov 2, 2007
            View Source
            • 0 Attachment

              It might be that if you set up those listeners in MXML, it is generating the wrong code.  Can you make a mini-test case?

               


              From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mark Ingram
              Sent: Friday, November 02, 2007 2:34 AM
              To: flexcoders@yahoogroups.com
              Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent

               

              Hmm, there are no resize listeners on the system manager. There are a couple listening on the stage, but they all expect an event:Event parameter. Like I say, even when the code bases are the same, it does’t work on my computer, but does work on a colleagues.

               

              Thanks,

               

              Mark

               

               


              From: flexcoders@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Alex Harui
              Sent: 01 November 2007 18:34
              To: flexcoders@yahoogro ups.com
              Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent

               

              You would do a search for “resize” not “resizeEvent”.  It appears that someone is listening to “resize” on the systemManager by accident.

               


              From: flexcoders@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Mark Ingram
              Sent: Thursday, November 01, 2007 9:59 AM
              To: flexcoders@yahoogro ups.com
              Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent

               

              Nope, I’ve done a search for the term “ResizeEvent” in all projects and I don’t get a single match. I’ve tested it on a colleague’s computer (which works fine) and the only difference between our dev boxes is the fact I’m running Vista and he’s running XP.

               

              Thanks,

               

              Mark

               

               


              From: flexcoders@yahoogro ups.com [mailto: flexcoders@yahoogro ups.com ] On Behalf Of Alex Harui
              Sent: 01 November 2007 16:09
              To: flexcoders@yahoogro ups.com
              Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent

               

              Is anything listening for a resize event in either swf?

               


              From: flexcoders@yahoogro ups.com [mailto: flexcoders@ yahoogroups. com ] On Behalf Of Mark Ingram
              Sent: Thursday, November 01, 2007 7:23 AM
              To: flexcoders@yahoogro ups.com
              Subject: [flexcoders] Cannot convert Event to ResizeEvent

               

              Hi, I’m getting this odd error when trying to load a Flex application inside a parent Flex application:

               

              TypeError: Error #1034: Type Coercion failed: cannot convert flash.events: :Event@aa63f41 to mx.events.ResizeEve nt.

                    at flash.events: :EventDispatcher /dispatchEventFu nction()

                    at flash.events: :EventDispatcher /dispatchEvent( )

                    at mx.managers: :SystemManager/ setActualSize( )[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\managers\ SystemManager. as:1753]

                    at mx.controls: :SWFLoader/ doScaleContent( )[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\controls\ SWFLoader. as:1449]

                    at mx.controls: :SWFLoader/ updateDisplayLis t()[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\controls\ SWFLoader. as:1091]

                    at mx.core::UIComponen t/validateDispla yList()[C: \dev\flex_ 201_gmc\sdk\ frameworks\ mx\core\UICompon ent.as:5760]

                    at mx.managers: :LayoutManager/ validateDisplayL ist()[C:\ dev\flex_ 201_gmc\sdk\ frameworks\ mx\managers\ LayoutManager. as:600]

                    at mx.managers: :LayoutManager/ doPhasedInstanti ation()[C: \dev\flex_ 201_gmc\sdk\ frameworks\ mx\managers\ LayoutManager. as:673]

                    at Function/http: //adobe.com/ AS3/2006/ builtin:: apply()

                    at mx.core::UIComponen t/callLaterDispa tcher2()[ C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\core\UICompon ent.as:7909]

                    at mx.core::UIComponen t/callLaterDispa tcher()[C: \dev\flex_ 201_gmc\sdk\ frameworks\ mx\core\UICompon ent.as:7852]

               

              I have no idea why, especially when the word “ResizeEvent” doesn’t even occur in any of our source code…

              Has anyone seen this before??

               

              Mark

               

               

            • Mark Ingram
              They re all created in AS. The error hasn t occurred today. I ve just put in a fix similar to the WedgeItemRenderer because I think the Resize Event error is
              Message 6 of 7 , Nov 2, 2007
              View Source
              • 0 Attachment

                They’re all created in AS. The error hasn’t occurred today. I’ve just put in a fix similar to the WedgeItemRenderer because I think the Resize Event error is due to a widget / SWF loaded into the main app.

                 

                Thanks,

                 

                Mark

                 

                 


                From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Alex Harui
                Sent: 02 November 2007 16:08
                To: flexcoders@yahoogroups.com
                Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent

                 

                It might be that if you set up those listeners in MXML, it is generating the wrong code.  Can you make a mini-test case?

                 


                From: flexcoders@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Mark Ingram
                Sent: Friday, November 02, 2007 2:34 AM
                To: flexcoders@yahoogro ups.com
                Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent

                 

                Hmm, there are no resize listeners on the system manager. There are a couple listening on the stage, but they all expect an event:Event parameter. Like I say, even when the code bases are the same, it does’t work on my computer, but does work on a colleagues.

                 

                Thanks,

                 

                Mark

                 

                 


                From: flexcoders@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Alex Harui
                Sent: 01 November 2007 18:34
                To: flexcoders@yahoogro ups.com
                Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent

                 

                You would do a search for “resize” not “resizeEvent”.  It appears that someone is listening to “resize” on the systemManager by accident.

                 


                From: flexcoders@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Mark Ingram
                Sent: Thursday, November 01, 2007 9:59 AM
                To: flexcoders@yahoogro ups.com
                Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent

                 

                Nope, I’ve done a search for the term “ResizeEvent” in all projects and I don’t get a single match. I’ve tested it on a colleague’s computer (which works fine) and the only difference between our dev boxes is the fact I’m running Vista and he’s running XP.

                 

                Thanks,

                 

                Mark

                 

                 


                From: flexcoders@yahoogro ups.com [mailto: flexcoders@yahoogro ups.com ] On Behalf Of Alex Harui
                Sent: 01 November 2007 16:09
                To: flexcoders@yahoogro ups.com
                Subject: RE: [flexcoders] Cannot convert Event to ResizeEvent

                 

                Is anything listening for a resize event in either swf?

                 


                From: flexcoders@yahoogro ups.com [mailto: flexcoders@ yahoogroups. com ] On Behalf Of Mark Ingram
                Sent: Thursday, November 01, 2007 7:23 AM
                To: flexcoders@yahoogro ups.com
                Subject: [flexcoders] Cannot convert Event to ResizeEvent

                 

                Hi, I’m getting this odd error when trying to load a Flex application inside a parent Flex application:

                 

                TypeError: Error #1034: Type Coercion failed: cannot convert flash.events: :Event@aa63f41 to mx.events.ResizeEve nt.

                      at flash.events: :EventDispatcher /dispatchEventFu nction()

                      at flash.events: :EventDispatcher /dispatchEvent( )

                      at mx.managers: :SystemManager/ setActualSize( )[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\managers\ SystemManager. as:1753]

                      at mx.controls: :SWFLoader/ doScaleContent( )[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\controls\ SWFLoader. as:1449]

                      at mx.controls: :SWFLoader/ updateDisplayLis t()[C:\dev\ flex_201_ gmc\sdk\framewor ks\mx\controls\ SWFLoader. as:1091]

                      at mx.core::UIComponen t/validateDispla yList()[C: \dev\flex_ 201_gmc\sdk\ frameworks\ mx\core\UICompon ent.as:5760]

                      at mx.managers: :LayoutManager/ validateDisplayL ist()[C:\ dev\flex_ 201_gmc\sdk\ frameworks\ mx\managers\ LayoutManager. as:600]

                      at mx.managers: :LayoutManager/ doPhasedInstanti ation()[C: \dev\flex_ 201_gmc\sdk\ frameworks\ mx\managers\ LayoutManager. as:673]

                      at Function/http: //adobe.com/ AS3/2006/ builtin:: apply()

                      at mx.core::UIComponen t/callLaterDispa tcher2()[ C:\dev\flex_ 201_gmc\sdk\ frameworks\ mx\core\UICompon ent.as:7909]

                      at mx.core::UIComponen t/callLaterDispa tcher()[C: \dev\flex_ 201_gmc\sdk\ frameworks\ mx\core\UICompon ent.as:7852]

                 

                I have no idea why, especially when the word “ResizeEvent” doesn’t even occur in any of our source code…

                Has anyone seen this before??

                 

                Mark

                 

                 

              Your message has been successfully submitted and would be delivered to recipients shortly.