I am a Sun Certified Java programmer. Graduated from BITS, Pilani in 2006. Currently working on Adobe Flex.

Twitter: http://twitter.com/sujitg
Note: The views expressed on this blog are entirely mine
I am a Sun Certified Java programmer. Graduated from BITS, Pilani in 2006. Currently working on Adobe Flex.

Twitter: http://twitter.com/sujitg
Note: The views expressed on this blog are entirely mine
February 13, 2008 at 2:45 am
Hi i want to put and HTML page inside the flex website
is there a way to do it
as i dont want to make a popup
Regards
Jorge Cordero
February 14, 2008 at 3:15 pm
Hi Jorge,
Visit the URL below for more details
http://raghuonflex.wordpress.com/2006/12/07/flex-i-frame/
February 19, 2008 at 5:16 am
hi sujit,
were you figure out any drilled down feature wise difference between flex and AIR, except the URL and Desktop compatibility.
rgds
ravish
February 22, 2008 at 6:00 am
Hi Ravish,
Can you please explain what kind of a comparison you are looking for? Is it in terms of the API or is it the security?
February 26, 2008 at 6:36 am
Hi Sujit,
is ther any sample source code avil to integrate flex with struts…
March 5, 2008 at 11:08 am
Hi sujit,
I am a flash developer. recently i made a CAD application in flash using AS2. this was my first experience of any note in object oriented programming..however the project even though fairly complex went very well..
Now the clients wants me to convert this to flex. I have no prior exp. in flex, i just downloaded flex 2 builder. But am having lil problems figuring out what excatly needs done here.
I am just looking for some hints n suggestions on how to go about this.
warm regards
siddhartha
March 5, 2008 at 11:10 am
** the application is basically a drawing application, which allows for object to be drawn, scaled, rotated, depths changed, erased, application state saved as SVG , undo/redo and few others things..
March 5, 2008 at 11:12 am
** the client wishes to have the GUI as components extending some mx classes, but he is ready to accept for now a single component created (i only vaguely understand what that implies right now).
regards
sid
March 14, 2008 at 4:37 am
Hi Sujit,
It was good to get an update from your blog about the interest in Flex among Indians. I would like to see the applications created in 6 hours, waiting for that! It would be good if you send it across by email, if not possible to put on blogs. I would be happy to see the faster development results from the platform which I am thinking of using in startup.
I am Prashant Sachdev (MBA, Babson College, Boston) starting a company in area of audio / video metadata. To start with I will be building the basic functionality similar to (veotag dot com) and currently looking for people who have some experience with Flash / Flex / AIR / actionscript. Do let me know some people who you might know and could be interested in working for startup.
It would also be good to talk with the guys who participated in the contest – 6 hours application development. Do connect me with them too and especially with the winners they might have interest working with videos.
Thanks
Prashant Sachdev
http://prashant.sachdev.googlepages.com/home
April 29, 2008 at 7:50 pm
Hey Sujit,
your tutorials are good..
I am using RemoteObject service call to get the data back from server into flex.
Here is my problem:
I am getting array of java objects into flex application, when i try to convert the java object to actionscript object in flex, am getting the error as “TypeError: Error #1034: Type Coercion failed: cannot convert Object@d68cd59 to com.mlfcst.actionscript.dto.CardEconVar.”
Here is the code:
……………………….
public function setEconVarDetails(event:ResultEvent):void
{
a_econVars= event.result as Array;
var econVar:CardEconVar = new CardEconVar();
econVar = CardEconVar(a_econVars[0]); —–> getting error here
}
Here is my AS file:
……………………….
package com.mlfcst.actionscript.dto
{
[RemoteClass(alias=com.mlfcst.flex.dto.CardEconVar)]
public class CardEconVar
{
public var cardEconVarId:int;
private var groupId:int;
}
}
Here is my java code:
……………………………..
package com.mlfcst.flex.dto;
import java.io.Serializable;
public class CardEconVar implements Serializable {
private int cardEconVarId;
private int groupId;
public CardEconVar() {
}
public int getCardEconVarId() {
return this.cardEconVarId;
}
public void setCardEconVarId(int cardEconVarId) {
this.cardEconVarId = cardEconVarId;
}
public int getGroupId() {
return this.groupId;
}
public void setGroupId(int groupId) {
this.groupId = groupId;
}
}
your help would be greatly appreciated..
Thanks,
Baji.
May 10, 2008 at 5:47 pm
Hi Sujit,
Thank you for the time and energy you put into your blog.
I have a simple issue: I’m building a Flex/AIR app and need to print generated independently of the application. I only need to point to them and print them. Should I pursue this with LiveCycle, Blaze or something else?
All the best,
Jerry
June 29, 2008 at 6:35 pm
Hello Sujit,
This is sandeep from tcs gandhinagar. I’m interested in adobe AIR and flex, I’m a beginnear in this field and don’t know much about. Could u suggest me some good tuts to start wid and and ebooks u have related to them. It would be very helpfull.
I have 1 year exp in java.
June 30, 2008 at 5:22 am
Hi Sandeep,
Please visit the URLs below.
http://flex.org/
Flex dev guide: http://livedocs.adobe.com/flex/3/html/index.html?content=Part2_DevApps_1.html
Flex language reference: http://livedocs.adobe.com/flex/3/langref/index.html
Deveoper network: http://www.adobe.com/devnet/flex/
Hope this helps.
July 21, 2008 at 9:19 am
Hi Sujith,
Is it necessary to install Flex Builder 3 Eclipse Plug-in to use BazeDS? I am not able to download above mentioned builder. But I have standalone version of Flex Builder 3.
Thnaks,
Dipak
July 21, 2008 at 11:48 am
Hi Dipak,
You need not have Flex Builder or Flex Builder Eclipse plugin to use BlazeDS. If you are having standalone version of Flex Builder that’s great and enough. BlazeDS is a server side software and will help Flex application to communicate with server side classes.
Hope this information helps.
July 28, 2008 at 6:27 am
Hi Sujit,
Thanks a lot for your quick reply. I have to develop one chat application for my application. Could you please help me how to proceed. I know flex basics but dont have any idea about client-server and BlazeDS. I am from different background(C++ and database) and flex is totally new for me.
Thanks and Regards,
Dipak
July 29, 2008 at 7:28 am
Hi Sujit,
Thanks a lot for your quick reply. I am developing a chat application. Could you please help me how to proceed. I am new to Flex and BlazeDS.
Thanks,
Dipak Kumar
July 29, 2008 at 9:39 am
Hi Sujit,
I got the chat application done with the help of your blogs and one doc from Christophe Coenraets.
Adobe documentation is really helpfull.
Thanks a lot.
-dipak
July 30, 2008 at 3:35 pm
Hi Dipak,
I am sorry, I got stuck with my work and so could not reply
good to know that you got this working
I hope you are using Messaging feature of BlazeDS
Feel free to contact me
August 4, 2008 at 6:36 am
Hi Sujit,
Yes I have used Messaging feature of BlazeDS.
Can I use BlazeDS for file transfer (like images or text file) in my chat application? If yes can you help me please.
Thanks,
Dipak
October 23, 2008 at 4:09 pm
Hi,
I have a servlet at the moment. I want to integrate it with Flex UI. How can I pass my data from MXML to the servlet and then get the result back?
Pls help
Thanks,
Neha
October 26, 2008 at 6:11 am
Hi Evangelist! I m really proud to put my comments here..
It was fantastic job.. Keep it up man..
I m new to Flex… Can u guide me? What are the prerequisites I have to follow for getting into flex?
October 29, 2008 at 2:54 pm
Hi Sabari,
If you are comfortable with any object oriented programming language, you can go ahead develop in Flex with a very small learning curve. Please visit the URL below for details.
http://sujitreddyg.wordpress.com/2008/01/31/what-do-you-need-for-developing-adobe-flex-applications/
Hope this helps.
October 29, 2008 at 3:00 pm
hi Neha,
You can use HTTPService component and invoke the servlet. Please find more details on how to do that at the URLs below.
http://sujitreddyg.wordpress.com/2008/01/14/extracting-content-from-html-based-server-response-in-adobe-flex/
http://livedocs.adobe.com/flex/3/html/data_access_1.html#110674
Hope this helps.
October 29, 2008 at 5:29 pm
Hi Sujit
I’m working on a web site which will have a java enterprise application based backend and a flex 3 frontend. So far I’ve managed to get them to talk and things are going well. (Partly due to some of your excellent tutorials!) However I have run into a problem with sessions. What happing is that I have a EJB factory in the WEB tier of my J2EE application which looks up the EJBs in the business tier. The EJBs need store and retrieve stuff from the session, but when I try to instanciate a Flex session in the business tier, I just have a null returned.
This is how I’m instanciating the flex session object (in the business tier of the J2EE applicaion):
session = FlexContext.getFlexSession();
I’m not sure this is relevent (as its a HTTP session listener), but in the web.xml deployment descriptor I noticed this:
flex.messaging.HttpFlexSession
Thanks for your time in advance, you help is greatly appreciated.
Regards
Drayton
October 30, 2008 at 3:13 pm
Hi Drayton,
That is how you have to get access to the session object. But I think this will return a valid session object only when the request is through BlazeDS. is your request through BlazeDS (MessageBrokerServlet)?
October 31, 2008 at 11:05 am
Hi Sujit, thanks for the response!
Well I’m not quite sure what you mean by is my request through BlazeDS. If you mean am I using a Flex destination to make a call, then yes it is through BlazeDS. But I do not make use of the ‘MessageBrokerServlet’ directly, there is a reference to it in my web.xml, but thats about it.
This is the Java method in my business tier of my application:
public String sayHello()
{
Date now = new Date();
session = FlexContext.getFlexSession();
return “Hello, I am ” + this.getClass().getName() +
“The time is: ” + now + “” +
(session != null
? “Your session id is:” + session.getId()
: “Your session object is NULL!”) +”";
}
When I call this method, I get the ‘Your session object is NULL!’ response.
Thanks once again for your help!
November 25, 2008 at 2:53 pm
Hi Drayton,
Can you please check if the session listener is configured in web.xml under web-app tag as shown below.
flex.messaging.HttpFlexSession
Hope this helps.
December 3, 2008 at 9:34 am
Hi,
i am new to BlazeDS,
i need to connect the EJB/Hibernate and Flex using BlazeDS.
i am going to write EJB/Hibernate in Rational Application Developement, server is websphere and database is DB2.
can you tell steps for create this Application..
thanks
areef
December 8, 2008 at 3:41 pm
Hi Abdul,
There are adapters for all these. Please visit URL below for details.
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=2&postId=7923
http://biemond.blogspot.com/2008/07/using-ejb-in-flex-with-blazeds.html
http://jim-boone.com/2008/04/10/ria-prototype-client-using-blazeds-messaging-and-jms-j2ee-server/
Hope this helps.
December 17, 2008 at 12:20 pm
Hi Sujit, thanks for opportunity
I have started exploring BlazeDS (Turnkey) and after I followed and understood a simple hello world remoting example, it became very confusing to me
Locally everything runs fine in IE, but remotely its a living hell… it simply does not work in IE, but in Firefox its Ok.
I have tried the blazeds samples and they do work in IE, locally and remotely, but if I use my own java sql classes to retrieve data, it does not work, only in Firefox.
In IE the following error appears:
code:
Client.Error.DeliveryInDoubt
Message:
error
Detail:
Invalid URL url: ‘http://nofearp_2008:8400/xelfsystems/messagebroker/
amf’
It’s very frustrating
I can’t see anything
related with this on the web, at least something that makes sense to me.
Thanks again Sujit, thanks
December 18, 2008 at 2:07 pm
Hi Jorge,
Can you please try changing the nofearp_2008 to complete name with .com etc. something like nofear_2008.com
Looks like Firefox is resolving it to default domain, but IE is not.
Hope this helps.
December 19, 2008 at 11:42 am
Hi Sujit, thanks for the tip.
I’m going to create a virtual host in Tomcat in order to try what you are saying, or there is another way to try this?
I’m using a VMWARE virtual machine (nofearp_2008) with Server 2008 as server machine.
Thanks again Sujit
December 23, 2008 at 6:15 am
Hi Jorge,
Please try accessing any URL to a resource on the nofearp_2008 server from IE. See if IE is resolving the address properly.
Hope this helps.
December 24, 2008 at 3:46 pm
Hi Sujit,
thanks for helping all developers.I am working in a tight dead line project where Flex in presentation layer interacts with BlazeDS using RMI. Again BlazeDS interacts with java/JDBC classes using RMI. I searched in so many places but couldnt get how to do. Please let me know what API of BlazeDS i have to use and please give me any samples which i can use for this. I have to deliver within 15 days these changes to investment bank. Can you please give us your email id?????????????
Thanks
HariKrishna
February 9, 2009 at 1:31 pm
Hi Sujit,
I want to call a java method from a Flex AIR application. I am new to flex. Can you guide me on the same?
Thanks,
Dhriti
February 10, 2009 at 11:19 am
Hi Driti,
Please have a look at the article in this URL http://sujitreddyg.wordpress.com/2008/01/14/invoking-java-methods-from-adobe-flex/
Hope this helps.
February 16, 2009 at 6:18 am
Hi Sujit,
I have one Flex web application. Can you please tell me how can I convert it into a Flex AIR application.
Thanks,
Driti
February 16, 2009 at 7:04 pm
Hi Sujit,
I am using mx:Tree to show the data. Certain leaf node display the check box and certain radio button using the item renderer. First time tree is expanding properly. But when I am closing and opening it again, all the leaf nodes show overlapped radio button and check box.
Here is the code
updateDisplayList method is used to add the radio button and checkbox to leaf node.
override protected function updateDisplayList(unscaledWidth:Number,unscaledHeight:Number):void {
super.updateDisplayList(unscaledWidth, unscaledHeight);
if(super.data) {
super.label.text = TreeListData(super.listData).label;
var currentChoice:Choice = TreeListData(super.listData).item as Choice;
if(currentChoice!=null){
super.label.text = currentChoice.name;
super.label.x = 90;
if(currentChoice.multiSelect){
this.radio.selected = currentChoice.selected;
this.radio.enabled = currentChoice.enabled;
this.radio.y = 18;
this.radio.visible = true;
this.radio.x = super.label.x +10 ;
this.radio.name = super.label.text;
addChild(radio as DisplayObject);
}else{
this.check.selected = currentChoice.selected;
this.check.visible = true;
this.check.enabled = currentChoice.enabled;
this.check.y = 18;
this.check.x = super.label.x + 10;
this.check.name = super.label.text;
addChild(check as DisplayObject);
}
}
}
}
February 17, 2009 at 12:03 pm
Hi Driti,
In Flex Builder create a new AIR based project and then copy the files in src folder of your old Flex project into the new AIR project created. Also copy the SWC files, if you have any.
Hope this helps.
February 17, 2009 at 12:25 pm
Hi Driti,
Please try overriding the set data function also. If you are already using this, please send code to reproduce the issue to sujitreddy.g@gmail.com
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postId=62&productId=2
Hope this helps.
February 17, 2009 at 2:28 pm
Hi Sujit,
Thanks for your input. I have already override the set data method. I have forwarded code on provided id.
Thanks,
Driti
February 23, 2009 at 5:43 pm
hi sir
i working with flex from two weeks. i am working with eclipse. plz be send work space project. That project taken on my eclipse see the paths and depoly and see the output in tomcat server
February 23, 2009 at 5:43 pm
project zip send them to my mail plz
February 23, 2009 at 5:50 pm
flex with java plz send me sir
February 24, 2009 at 8:03 pm
Hi Surendra,
Please check out this URL http://sujitreddyg.wordpress.com/2008/01/14/invoking-java-methods-from-adobe-flex/
Hope this helps.
February 28, 2009 at 9:23 pm
hi sujit,
This is masood sofi,I developed an e-personal diary in flex camp at hyd on feb28-09,Please tell me how u like that idea.
March 1, 2009 at 9:35 pm
Hi Sujit
I am from Hyderabad, do you live in hyderabad as i would like to know about training on flex.
Regards
Sudhakar
March 9, 2009 at 3:38 pm
Hi Masood,
Very nice idea. You might want to take a look at http://www.livejournal.com
March 9, 2009 at 3:43 pm
Hi Sudhakar,
No, I don’t live in Hyderabad
Please find URLs below which are good resources for learning Flex.
Flex developer guide: http://livedocs.adobe.com/flex/3/html/index.html?content=Part2_DevApps_1.html
Flex in a week videos: http://www.adobe.com/devnet/flex/videotraining/
Hope this helps.
March 12, 2009 at 12:35 pm
Hi Sujit,
From JSP, on form submit, I am navigating to flex application. If the form method is get, I am able to read the URL parameters but if the method is post, I am not able to read the URL parameter. Can you help me out in this issue.
Thanks,
Driti
March 26, 2009 at 7:26 pm
Hi Driti,
If the method is POST the data is not passed as query string. Please find details on how to pass data to Flex application at the URL below.
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showDetails&postId=12166&productId=2&loc=en_US
Hope this helps.
April 9, 2009 at 9:37 am
Hi Sujit,
I am new to the flex and action script ,
Previously i have displayed the recodrs in datagrid and selected index displayed in form.
Now the problem is: read the data from xml file and displayed on the form with ids
give me the sample example suji
April 9, 2009 at 8:54 pm
Hi Lakshmi narayana,
I did not understand what you want to do. Can you please explain what exactly you want to do.
April 10, 2009 at 6:07 pm
Sujit,
I want to create a community website in flex using blazeds. Do i have to hire a dedicated server or it will work on the normal remote server. Is it possible that if 1000’s of user are using the site at the same time will not impact the performance or wait time to the user.
Also is it possible to make a chatting application possible on normal server. Is it possible that if 1000’s of user are using the chat at the same time will not impact the performance or wait time to the user.
Thanks.
April 11, 2009 at 6:05 pm
HI SUji,
I have a sample form with some fields(text boxes) and also links like 1,2,3….
If user select that link (1,2,3…) the data related to that link will be dispalyed in that text boxes from XML file.
Also if user edits that particular field and submitting that record should be added to the XML file.
April 13, 2009 at 5:20 pm
HiSuji,
I have a sample form with some fields(text boxes) and also links like 1,2,3….
If user select that link (1,2,3…) the data related to that link will be dispalyed in that text boxes from XML file.
Also if user edits that particular field and submitting that record should be added to the XML file
Please helpme on this
April 26, 2009 at 8:47 am
I have not read much on your blog so far but wanted to ask you a quick question.I want to build a full application with left navs and top navs as well and of course things change when user click or take an action in the centeral pane which effect dynamically top and right navs.So what in you opinion is the best way to develop any such application.
Using just Flex or some framework like Carigorm or Mate is a good idea and the passing the information between pages via this show / hide mechanism or should i use jsp as a parent and then pass parameters to child swf files..basically what in your opinion is a good idea to build an enterprise like application.I plan to use springs and hibernate at the server side using blazeds.
Please suggest !
April 27, 2009 at 6:24 pm
Hi Sujit,
Can we do remote desktop feature using fvnc(flash vnc client)?
April 28, 2009 at 9:05 pm
Hi Sandy,
A normal server will do. If you are using a normal polling channel for Messaging, then number of users shouldn’t be a problem.
Hope this helps.
April 28, 2009 at 9:17 pm
Hi Lakshminarayana,
Please check out the article at the URL below.
http://livedocs.adobe.com/flex/3/html/13_Working_with_XML_03.html
Hope this helps.
April 28, 2009 at 10:03 pm
Hi Harsh,
Go for Mate or Cairngorm and use BlazeDS on the server to exchange messages.
Hope this helps.
June 6, 2009 at 4:15 pm
I’m a beginnear to flex.i know some of the consepts,how to manage the session in flex 3 with LCDS
June 8, 2009 at 12:16 pm
Hi,
I’m using Flex3 and I want to check Memory Profiling in a Flex Application.
where I can get ‘Configure Profiler window’ in flex3?
please help me
July 25, 2009 at 8:55 pm
Hi Sujith,
Firstly thanks for hosting such a wonderful blog.
I have a query regarding executing a perl script or an executable(.exe) from Air. I have searched for around 2 days and was not sucesssful. Can you please provide me a mechanisam to achieve this. Thanks Much
Cheers
Sridhar
August 5, 2009 at 8:12 pm
Hi Sujit,
Do you know where can I get certifications for Flex in India(Mumbai)?
August 28, 2009 at 6:07 pm
Hi Sridhar,
This isn’t inbuilt. You might need to communicate through sockets.
August 28, 2009 at 6:47 pm
Hi Sundeep,
Please find details at this URL http://www.adobe.com/devnet/flex/articles/flex_certification.html
September 2, 2009 at 6:35 pm
I am big fan of you and continously reading your blogs. i need a help we have a databse in mysql user name and password is there with me, how do i connect to get those datas and display in flex , i have blazeds but i not sure which service to use i used http connector its not working.. please help me
eg of my server how the data i have is
asdaasdsa.in.example.com/sql124324
username – asdasda
passsword – asdasda
September 2, 2009 at 7:28 pm
There is a sql server which has all dataes currently we can query using excel by using connect to database, but i wanted to use flashbuilder to connect and display datas and graphs please please please help me in this atleast if u can redirect me where i can get the info i ll be much more happier…
September 7, 2009 at 6:45 pm
Hi Suresh,
You have to create a Java class which will connect to your database and return the data. Once you have this class you can use Remoting to invoke the Java class developed to get the data from the database as explained in this URL http://sujitreddyg.wordpress.com/2008/01/14/invoking-java-methods-from-adobe-flex/
If you are using HTTPService then you should create a JSP/Servlet which will invoke the Java class created above and return the data as XML/JSON.
If you are using Flash Builder 4 try articles at this URL to access Remoting destinations and JSP/Servlet easily http://sujitreddyg.wordpress.com/flash-builder-4/
Hope this helps.
September 15, 2009 at 5:41 pm
Sir,
I am an ENGG Student , and I had geard of a boot camp On Adobe Flex by Adobe Systems Bangalore, in one of ma nearby college.. So i was just wondering what is this flex thing , its capabilities..
September 24, 2009 at 11:57 am
Hi Sujit Reddy garu..
how are you..
i want integrate AIR and BLAZEDS..
i’m getting stuck with this from 2days plx help me…
thanks in advance
October 6, 2009 at 11:57 am
Hi Sujit Reddy,
Ultimate Blog on Flex….Keep it up!..
I’m new to Flex…where can i find jobs in flex in india.And what is future job market…
Thanks in advance….
Regards,
October 21, 2009 at 9:12 pm
Hi Sujit,
I am big fan of you and continously reading your blogs. I have developed a application which does the server push using BlazeDS. The application is pushing the messages to client when we browse the applocation from server where the flex application is deployed. But we have introduced a Clustering (Load Balance) server, which routes the request to the deployed servers. Using this Clustring server the client is not recieving the messages. Do you have any guidence to resolve this issue? Your answer will help me a lot.
October 30, 2009 at 5:27 pm
hai reddy,
i am suresh kumar reddy from mumbai.Are you having Flex3 with AIR certification.i am going to give that certification next week.please give any suggestions about the materials for Interacting with data sources and servers
regards,
suresh kumar reddy