Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Sunilnairg
Sunilnairg
Offline

Badges

Badges
4

Accepted Solutions

Accepted Solutions
0

Likes Received

Likes Received
0

Posts

Posts
7

Discussions

Discussions
5

Questions

Questions
2

Ideas

Ideas
0

Blog Posts

Blog Posts
0
Top badges earned by Sunilnairg
Customize the badges you want to showcase on your profile
Re: Flex Datagrid Selected Row - Adobe LiveCycle 18-04-2008
private function itemClickEvent(event:ListEvent):void { trace(event.columnIndex); trace(event.rowIndex);}

Views

110

Likes

0

Replies

0
Receiving data through TCP Socket - Adobe LiveCycle 07-03-2008
Hi all,I am trying to receive some data through TCP Socket from theserver using XMLSocketClass. Ther server is responding with somedata. But I can't access this data in my application. Pls tell methe reasons for not working of handler private functiondataHandler(event:DataEvent):void .=============================================================================import mx.controls.Alert;import mx.collections.ArrayCollection;import flash.display.Sprite;import flash.events.Event;import flash.events.DataEvent;import flash.events.IOErrorEvent;import flash.net.XMLSocket;private var socket:XMLSocket;private var nextId:int;private var events:ArrayCollection = new ArrayCollection();public static var host:String = "34.234.43.97"; public static var port:Number = 8002;public var xml:XML;private function connectToServer():void{socket = new XMLSocket();socket.addEventListener(DataEvent.DATA, dataHandler);configureListeners(socket);socket.connect(host, port); } //This function is Not working private function dataHandler(event:DataEvent):void {Alert.show("dataHandler: " + event.data);xml = new XML(event.data);Alert.show(xml); } private functionconfigureListeners(dispatcher:IEventDispatcher):void {dispatcher.addEventListener(Event.CLOSE, closeHandler);dispatcher.addEventListener(Event.CONNECT, connectHandler); dispatcher.addEventListener(DataEvent.DATA, dataHandler);dispatcher.addEventListener(IOErrorEvent.IO_ERROR,ioErrorHandler);dispatcher.addEventListener(ProgressEvent.PROGRESS,progressHandler);dispatcher.addEventListener(SecurityErrorEvent.SECURITY_ERROR,securityErrorHandler);} private function closeHandler(event:Event):void {trace("closeHandler: " + event);} private function ioErrorHandler(event:IOErrorEvent):void {trace("ioErrorHandler: " + event);}private function progressHandler(event:ProgressEvent):void {trace("progressHandler loaded:" + event.bytesLoaded + "total: " + event.bytesTotal);}private functionsecurityErrorHandler(event:SecurityErrorEvent):void {trace("securityErrorHandler: " + event);}/* private function dataHandler(event:DataEvent):void {trace("dataHandler: " + event);} */private function connectHandler(event:Event):void {var obj:Object = new Object();obj.id = nextId++;obj.eventName="connect";obj.timestamp = new Date().valueOf();events.addItem(obj);}private function sendData():void {var xmlvalue:String=txtData.text.toString() ; var xmlfile:String ="<command>SndIns<parameter1>0x06</parameter1><parameter2>0x00</parameter2><parameter3>0x71</parameter3><parameter4>0x0F</parameter4><parameter5>0x11</parameter5><parameter6>0xFF</parameter6></command>";socket.send(xmlfile); Alert.show(xmlfile);} -->

Views

287

Likes

0

Replies

0
Re: 1131:Packages must not be nested - Adobe LiveCycle 11-03-2008
Hi, Thanks for your help. I added the follwoing code in myFlex Application. private var aa:<ClassName> = new <ClassName>(); Thanks. No I am facing one more problem. I can't receive anyreply messages from the server, when I am trying to get someresponses through TCP Socket using XMLSocket Class.addEventListener(DataEvent.DATA, dataHandler) is not working.. Ihave posted the problem in the forum. Can u pls go through that??Thanks in advance,Sunil NaIR

Views

94

Likes

0

Replies

0
XMLSocket Class - Adobe LiveCycle 05-03-2008
My Flex Application is using XMLSocketClass for communicatingwith Webserver. But connection cannot be established. I am notgetting any error message.I am using the follwing code for establishing the connection:================================================================= import mx.controls.Alert; import mx.collections.ArrayCollection; import flash.net.Socket; private var socket:XMLSocket; private function connectToServer():void { socket = new flash.net.XMLSocket(); socket.connect("71.222.34.91", 8002); } function sendData() { var xmlvalue:String=txtData.text.toString() varxmlfile:String="<command>GetRevision</command>" socket.send(xmlfile); } private function getData() { socket.addEventListener(DataEvent.DATA, onData); } private function onData(event:DataEvent):void { trace("[" + event.type + "] " + event.data);} ====================================================================Please help me to handle this error.

Views

203

Likes

0

Replies

0
Re: Modify External XML file in Flex 2.0 - Adobe LiveCycle 19-02-2008
Locally, only via AIR, the Adobe Integrated Runtime.Remotely, via a Java Remote Object that writes to the server.

Views

123

Likes

0

Replies

0
Data Manipulation - Adobe LiveCycle 29-01-2008
Hi all,How can we edit/update XML data in Flex application??

Views

295

Likes

0

Replies

0