Foros del Web » Creando para Internet » Flash y Actionscript »

error que no comprendo

Estas en el tema de error que no comprendo en el foro de Flash y Actionscript en Foros del Web. Buenas tardes espero que alguien me pueda ayudar... no entiendo el error que me muestra el debugg de flex... @import url("http://static.forosdelweb.com/clientscript/vbulletin_css/geshi.css"); Código Error: Ver original ...
  #1 (permalink)  
Antiguo 17/03/2011, 17:20
Avatar de superscully  
Fecha de Ingreso: febrero-2009
Mensajes: 56
Antigüedad: 15 años, 2 meses
Puntos: 0
Pregunta error que no comprendo

Buenas tardes espero que alguien me pueda ayudar... no entiendo el error que me muestra el debugg de flex...
Código Error:
Ver original
  1. TypeError: Error #1009: No se puede acceder a una propiedad o a un método de una referencia a un objeto nulo.
  2.     at mx.rpc.http::Operation/getSerializationFilter()[C:\autobuild\3.5.0\frameworks\projects\rpc\src\mx\rpc\http\Operation.as:317]
  3.     at mx.rpc.http::Operation/send()[C:\autobuild\3.5.0\frameworks\projects\rpc\src\mx\rpc\http\Operation.as:239]
  4.     at components::editFotosPublic/guardapub()[D:\Flex 3\flexVangAdmon\src\components\editFotosPublic.mxml:42]
  5.     at components::editFotosPublic/___editFotosPublic_Button1_click()[D:\Flex 3\flexVangAdmon\src\components\editFotosPublic.mxml:55]

mi codigo es el siguiente:
Código Flex3:
Ver original
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()" close="cerrar()" showCloseButton="true" width="836" height="284" title="Archivos Publicados">
  3. <mx:Script>
  4.     <![CDATA[
  5.         import mx.rpc.events.ResultEvent;
  6.         import mx.managers.PopUpManager;
  7.        
  8.         private function init():void
  9.         {
  10.             PopUpManager.centerPopUp(this);
  11.             var sndObj:Object = new Object();
  12.            
  13.         }
  14.         private function cerrar():void
  15.         {
  16.             PopUpManager.removePopUp(this);
  17.         }
  18.         [Bindable] private var imag:XMLList = new XMLList
  19.        
  20.         private function resultInHandler(event:ResultEvent):void
  21.         {
  22.             var tmp:XMLList = new XMLList(event.result);
  23.             imag = new XMLList(tmp.galeria.node);
  24.            
  25.         }
  26.         private function guardapub():void
  27.         {
  28.             var sndObj:Object = new Object();
  29.             sndObj.identificador = idlabel.text;
  30.             var con:int = imag.length();
  31.             for(var i:int=0;i<imag.length();i++)
  32.             {
  33.                 if(chk[i].selected)
  34.                 {
  35.                     sndObj.pub = 1;
  36.                 }else{
  37.                     sndObj.pub = 0;
  38.                 }
  39.                 sndObj.id = imag[i].@id;
  40.                 //trace(sndObj.pub);
  41.                 //trace(sndObj.id);
  42.                 modPub.send(sndObj);
  43.             }
  44.            
  45.         }
  46.         private function resInHandler(event:ResultEvent):void
  47.         {
  48.             var res:Object=event.result;
  49.         }
  50.     ]]>
  51. </mx:Script>
  52. <mx:HTTPService id="infophp" url="http://localhost/xml/getFotoById.php" result="resultInHandler(event)" resultFormat="e4x" method="POST" showBusyCursor="true"/>
  53. <mx:HTTPOperation id="modPub" url="http://localhost/xml/updateFotosEst.php" result="resInHandler(event)" resultFormat="text" method="POST" showBusyCursor="true"/> 
  54.     <mx:Label x="164" y="-30" id="idlabel"/>
  55.     <mx:Button x="740" y="209" label="Guardar" click="guardapub()"/>
  56.     <mx:HBox y="10" paddingBottom="2" paddingLeft="2" paddingRight="2" paddingTop="2" width="812" height="191">
  57.         <mx:Repeater id="rep" dataProvider="{imag}" >
  58.             <mx:VBox>
  59.                 <mx:Image id="imagen" source="http://10.15.1.106/previstas_discos/{rep.currentItem.@dir}/{rep.currentItem.@arch}"  width="143" height="145" brokenImageSkin="@Embed(source='../assets/Unload.jpg')"/>
  60.                 <mx:CheckBox id="chk" label="{rep.currentItem.@arch}" selected="{rep.currentItem.@pub=='1'?true:false}"/>
  61.             </mx:VBox>
  62.         </mx:Repeater>
  63.     </mx:HBox>
  64.    
  65. </mx:TitleWindow>
  #2 (permalink)  
Antiguo 08/04/2011, 16:52
Avatar de Sergestux  
Fecha de Ingreso: agosto-2007
Ubicación: Tapachula
Mensajes: 1.218
Antigüedad: 16 años, 8 meses
Puntos: 20
Respuesta: error que no comprendo

Los objetos del tipo mx:HTTPOperation tienen el metodo send?

Etiquetas: error#1009, flex
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 22:23.