example combo box in module So if I run the sample code for a combo-box as an application it works fine:
<mx:Application width="100%" height="100%" xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()" cornerRadius="0" borderColor="#ffffff" borderStyle="outset"> <mx:Script> <![CDATA[ [Bindable] public var testingStates: Array = [ {label:"M1", data:"initOnePhone"}, {label:"M2", data:"initOnePhone"} ]; [Bindable] public var cards: Array = [ {label:"Visa", data:1}, {label:"MasterCard", data:2}, {label:"American Express", data:3} ]; [Bindable] public var bSelectedItem:Object; ]]> </mx:Script> <mx:Panel id="panel" title="OTP Widget" height="292" width="305"> <mx:ComboBox dataProvider="{cards}" width="150" close="this.bSelectedItem=ComboBox(event.target).selectedItem" x="-1" y="173"/> <mx:VBox width="250" y="215"> <mx:Text width="200" color="blue" text="Select a type of credit card."/> <mx:Label text="You selected: {bSelectedItem.label}"/> <mx:Label text="Data: {bSelectedItem.data}"/> </mx:VBox> </mx:Panel> </mx:Application> But If I have this code in a <mx:Module> with an outside application including this module in a <mx:ModuleLoader> I get the following when I try to select something from the combo box for the first time: TypeError: Error #1006: getInstance is not a function. at mx.core::Singleton$/getInstance().... Any idea on why this is happening? Thanks, Dan

