IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

Flex Error #1034: Type Coercion Failed: Cannot Convert Mx.managers


eniranjee
no avatar
Newbie
*
Group: Members
Posts: 1
Joined: 18-September 08
From: Coimbatore
Member No.: 68,029



Post #1 post Oct 1 2008, 08:00 AM
Hi Boosters

am created below flex module and then include this module to one mxml application .

after that i run that mxml file , its showing combobox successfully. But if i click that combobox then , following error displayed.

anyone know the solution, pls post it.
CODE
<!-- test.mxml -->
<mx:Module xmlns:mx="http://www.adobe.com/2006/mxml"  layout="absolute">  
    <mx:ComboBox x="199" y="80" width="140">
    <mx:dataProvider>
            <mx:Array>
                <mx:Object label="Select" />
                <mx:Object label="Apple" />
                <mx:Object label="Sony"/>
                <mx:Object label="Lg"/>
                <mx:Object label="Samsung"/>
                <mx:Object label="Hcl"/>
                <mx:Object label="Moto"/>
            </mx:Array>
    </mx:dataProvider>
    </mx:ComboBox>
</mx:Module>
<!--Module End -->



QUOTE
<!-- Error Message -->

Error #1034: Type Coercion failed: cannot convert mx.managers::PopUpManagerImpl@91335a1 to mx.managers.IPopUpManager.
at mx.managers::PopUpManager$/get impl()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\managers\PopUpManager.as:68]at mx.managers::PopUpManager$/addPopUp()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\managers\PopUpManager.as:169]
at mx.controls::ComboBox/getDropdown()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\ComboBox.as:1455]
at mx.controls::ComboBox/displayDropdown()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\ComboBox.as:1535]
at mx.controls::ComboBox/downArrowButton_buttonDownHandler()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\ComboBox.as:1780]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9156]
at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::buttonPressed()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\Button.as:2498]
at mx.controls::Button/mouseDownHandler()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\Button.as:2744]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9156]
at mx.controls::ComboBase/textInput_mouseEventHandler()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\ComboBase.as:1388]




Thanks and Regards
Ranjithkumar.M
[note=jlhaslip]add tags[/note]
Go to the top of the page
+Quote Post
Saint_Michael
no avatar
$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3
*********************
Group: [MODERATOR]
Posts: 7,285
Joined: 21-September 04
From: 9r33|\| 399$ 4|\|D 5P4/\/\
Member No.: 1,218
myCENT:96.30



Post #2 post Oct 1 2008, 08:27 AM
I know this error as I came across it and the problem is that you duplicated the class somewhere and you need to fix that, however, since you didn't provide the full source code it is hard to determine where the duplication is at. Due to the fact you have so many lines that have produce this error, but usually it is at the top of your code that might be producing the error (line 68). Since this is just a drop down menu your are better of just placing it within the application itself instead of connecting it with module and so that is all I can really offer you since I don't know much on debugging errors in flex.

I recommend that you click this link which lists google results for this error and that you check them out and see if one of those site might provide you a solution.

Click here
Go to the top of the page
+Quote Post
iGuest
no avatar
Hail Caesar!
*********************
Group: Members
Posts: 5,876
Joined: 21-September 07
Member No.: 50,369



Post #3 post Feb 19 2009, 12:14 PM

Hello following code in your main application

        import mx.Managers.*;
        private var _dragManager:DragManager;
        private var _historyManager:HistoryManager;
        private var _popupManager:PopUpManager;
 

-reply by Pradip Jadhav

 

Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   3 Shackman 9,030 30th August 2004 - 06:33 PM
Last post by: DataHead
No new   17 stevey 9,276 4th November 2009 - 01:17 AM
Last post by: Soviet Rathe
No New Posts   4 The Devils Playpen 6,176 9th August 2004 - 10:03 AM
Last post by: LuciferStar
No New Posts   10 shadowx 3,854 14th January 2010 - 03:05 PM
Last post by: index.html
No New Posts 6 BlueReign 5,332 18th August 2004 - 08:38 PM
Last post by: Aero147
No New Posts   6 hh89 4,543 28th July 2006 - 05:18 PM
Last post by: farsiscript
No New Posts 12 atoz 8,923 26th January 2010 - 08:51 PM
Last post by: ahmed_mmahmoud
No New Posts 5 MusicOnly 1,296 7th February 2007 - 08:07 PM
Last post by: MusicOnly
No new   19 chrismiller3404 859 23rd August 2009 - 07:46 AM
Last post by: SaraInWasteland
No New Posts   1 Tenshi 344 29th May 2009 - 06:24 PM
Last post by: jlhaslip
No New Posts   2 Dawid 5,313 20th October 2004 - 07:04 PM
Last post by: serverph
No New Posts 0 sanbeand 1,914 30th October 2005 - 12:45 AM
Last post by: sanbeand
No New Posts   3 Danieluchis 4,520 24th October 2004 - 07:15 PM
Last post by: Danieluchis
No New Posts   4 guangdian 4,585 26th October 2004 - 07:11 AM
Last post by: Hamtaro
No New Posts   2 patrickcurl 822 23rd August 2008 - 02:56 AM
Last post by: OpaQue


 



RSS Open Discussion Time is now: 9th February 2010 - 04:09 PM

Web Hosting Powered by ComputingHost.com. Xisto.com : Honesty ROCKS! Truth Rules.
Creative Commons License

1