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:[EMAIL PROTECTED] 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@yahoogroups.com [mailto:[EMAIL PROTECTED] 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@yahoogroups.com [mailto:[EMAIL PROTECTED] 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@yahoogroups.com [mailto:[EMAIL PROTECTED] 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@yahoogroups.com [mailto:[EMAIL PROTECTED] 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::[EMAIL PROTECTED] to mx.events.ResizeEvent.

      at flash.events::EventDispatcher/dispatchEventFunction()

      at flash.events::EventDispatcher/dispatchEvent()

      at
mx.managers::SystemManager/setActualSize()[C:\dev\flex_201_gmc\sdk\frame
works\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/updateDisplayList()[C:\dev\flex_201_gmc\sdk\frame
works\mx\controls\SWFLoader.as:1091]

      at
mx.core::UIComponent/validateDisplayList()[C:\dev\flex_201_gmc\sdk\frame
works\mx\core\UIComponent.as:5760]

      at
mx.managers::LayoutManager/validateDisplayList()[C:\dev\flex_201_gmc\sdk
\frameworks\mx\managers\LayoutManager.as:600]

      at
mx.managers::LayoutManager/doPhasedInstantiation()[C:\dev\flex_201_gmc\s
dk\frameworks\mx\managers\LayoutManager.as:673]

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

      at
mx.core::UIComponent/callLaterDispatcher2()[C:\dev\flex_201_gmc\sdk\fram
eworks\mx\core\UIComponent.as:7909]

      at
mx.core::UIComponent/callLaterDispatcher()[C:\dev\flex_201_gmc\sdk\frame
works\mx\core\UIComponent.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

 

 

 

Reply via email to