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
Flex Datagrid Selected Row - Adobe LiveCycle 31-03-2008
Hi all,I have a problem. pls help me. I have a Datagrid. I am usingItemRenderer for displaying an image. Based on user interactionthat image should be changed. Now I can change the image. But it isaffecting the whole datagrid clolumn which contains theitemrenderer. I have to change only the selected row's image. How can Iaccess selected row Itemrenderer?Pls help me soon.Thanks in advance

Views

370

Likes

0

Replies

1
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
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
1131:Packages must not be nested - Adobe LiveCycle 05-03-2008
Hai all,I m working on a Flex Application, in which I have tocommunicate with the server through TCP Socket. I am usingXMLSocketClass. I got a code from help, but I am getting"1131:Packages must not be nested" error whenever I m trying tocompile it. Pls tell me the reason for this error.==========================================================================XMLSocketExample.as==========================================================================package //ERROR// 1131:Packages must not be N...

Views

1.3K

Likes

0

Replies

3
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
Modify External XML file in Flex 2.0 - Adobe LiveCycle 19-02-2008
Hi all,Can we edit/modify an external (from webserver) XML file inour flex application??. Pls send a sample code if u have..thanks in advance,Sunil Nair

Views

333

Likes

0

Replies

1
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