tengo problema con Combox, y claro no se resolver, a ver si alguien me puede ayudar
tengo un formulario en flex, que solo funciona perfectamente
Código Flex :
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="558" height="431" layout="absolute" backgroundAlpha="0">
<mx:HTTPService id="httpService" url="mail.php" method="POST">
<mx:request >
<name>{nombre.text}</name>
<company>{empresa.text}</company>
<email>{email.text}</email>
<country>{pais.selectedItem.data}</country>
<type>{tipo.text}</type>
<message>{mensaje.text}</message>
</mx:request>
</mx:HTTPService>
<mx:Panel title="FORMULARIO DE CONTACTO" height="401" width="532" paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10" y="10" x="10">
<mx:Form width="492" height="325">
<mx:FormItem label="Nombre">
<mx:TextInput id="nombre" width="200"/>
</mx:FormItem>
<mx:FormItem label="Compañia">
<mx:TextInput id="empresa" width="200"/>
</mx:FormItem>
<mx:FormItem label="E-mail Address">
<mx:TextInput id="email" width="200"/>
</mx:FormItem>
<mx:FormItem label="País">
<mx:ComboBox id="pais" width="200">
<mx:dataProvider >
<mx:Object label="Argentina" data="[email protected]"/>
<mx:Object label="Brasil" data="[email protected]"/>
<mx:Object label="Otros países" data="[email protected]"/>
</mx:dataProvider>
</mx:ComboBox>
</mx:FormItem>
<mx:FormItem label="Tipo de cliente">
<mx:ComboBox id="tipo" width="200">
<mx:dataProvider>
<mx:Object label="Instalador" data="Instalador"/>
<mx:Object label="Distribuidor" data="Distribuidor"/>
<mx:Object label="Decorador" data="Decorador"/>
<mx:Object label="Arquitecto" data="Arquitecto"/>
<mx:Object label="Fabricante" data="Fabricante"/>
<mx:Object label="Importador" data="Importador"/>
</mx:dataProvider>
</mx:ComboBox>
</mx:FormItem>
<mx:FormItem label="Mensaje">
<mx:TextArea width="200" height="100" id="mensaje"/>
</mx:FormItem>
<mx:HBox paddingLeft="150" paddingTop="10" width="437" height="38">
<!-- Trigger submit. -->
<mx:Button label="Enviar" id="applynow" click="httpService.send();" />
<!-- Trigger reset. -->
<mx:Button label="Borrar" />
</mx:HBox>
</mx:Form>
</mx:Panel>
</mx:Application> pero en cuando cargo este swf a otro swf me sale esto y combox claro deja de funcionar
Código ActionScript :
warning: unable to bind to property 'data' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'data' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'data' on class 'Object' (class is not an IEventDispatcher) TypeError: Error #1009: No se puede acceder a una propiedad o a un método de una referencia a un objeto nulo. at mx.controls::ComboBox/displayDropdown()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\ComboBox.as:1567] at mx.controls::ComboBox/downArrowButton_buttonDownHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\ComboBox.as:1801] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298] at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::buttonPressed()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\Button.as:2504] at mx.controls::Button/mouseDownHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\Button.as:2750] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298] at mx.controls::ComboBase/textInput_mouseEventHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\ComboBase.as:1388] warning: unable to bind to property 'data' on class 'Object' (class is not an IEventDispatcher)
alguien puede ayudarme?
gracias
