Who Am I

I am a Sun Certified Java programmer. Graduated from BITS, Pilani in 2006. Currently working on Adobe Flex.
Sujit Reddy G's Facebook profile

Twitter: http://twitter.com/sujitg

Note: The views expressed on this blog are entirely mine :)

76 Responses to “Who Am I”

  1. Jorge Cordero Says:

    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

  2. Sujit Reddy G Says:

    Hi Jorge,
    Visit the URL below for more details :)
    http://raghuonflex.wordpress.com/2006/12/07/flex-i-frame/

  3. ravish Says:

    hi sujit,

    were you figure out any drilled down feature wise difference between flex and AIR, except the URL and Desktop compatibility.

    rgds

    ravish

  4. Sujit Reddy G Says:

    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?

  5. Raja Says:

    Hi Sujit,
    is ther any sample source code avil to integrate flex with struts…

  6. siddhartha Says:

    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

  7. siddhartha Says:

    ** 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..

  8. siddhartha Says:

    ** 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

  9. Prashant Sachdev Says:

    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

  10. baji Says:

    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.

  11. Jerry G. Says:

    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

  12. Sandeep Choudhary Says:

    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.

  13. Sujit Reddy G Says:

    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.

  14. Dipak Kumar Says:

    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

  15. Sujit Reddy G Says:

    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.

  16. Dipak Kumar Says:

    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

  17. Dipak Kumar Says:

    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

  18. Dipak Kumar Says:

    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

  19. Sujit Reddy G Says:

    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 :)

  20. Dipak Kumar Says:

    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

  21. neha Says:

    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

  22. Sabari Says:

    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?

  23. Sujit Reddy G Says:

    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.

  24. Sujit Reddy G Says:

    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.

  25. Drayton Says:

    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

  26. Sujit Reddy G Says:

    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)?

  27. Drayton Says:

    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!

  28. Sujit Reddy G Says:

    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.

  29. Abdul Areef Says:

    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

  30. Sujit Reddy G Says:

    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.

  31. Jorge Santos Says:

    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

  32. Sujit Reddy G Says:

    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.

  33. Jorge Santos Says:

    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

  34. Sujit Reddy G Says:

    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.

  35. HariKrishna I Says:

    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

  36. Driti Says:

    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

  37. Sujit Reddy G Says:

    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.

  38. Driti Says:

    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

  39. Driti Says:

    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);
    }
    }
    }
    }

  40. Sujit Reddy G Says:

    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.

  41. Sujit Reddy G Says:

    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.

  42. Driti Says:

    Hi Sujit,

    Thanks for your input. I have already override the set data method. I have forwarded code on provided id.

    Thanks,
    Driti

  43. surendra Says:

    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

  44. surendra Says:

    project zip send them to my mail plz

  45. surendra Says:

    flex with java plz send me sir

  46. Sujit Reddy G Says:

    Hi Surendra,

    Please check out this URL http://sujitreddyg.wordpress.com/2008/01/14/invoking-java-methods-from-adobe-flex/

    Hope this helps.

  47. Masood Sofi Says:

    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.

  48. Sudhakar Says:

    Hi Sujit

    I am from Hyderabad, do you live in hyderabad as i would like to know about training on flex.

    Regards
    Sudhakar

  49. Sujit Reddy G Says:

    Hi Masood,

    Very nice idea. You might want to take a look at http://www.livejournal.com

  50. Sujit Reddy G Says:

    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.

  51. Driti Says:

    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

  52. Sujit Reddy G Says:

    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.

  53. lakshminarayana reddy Says:

    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

  54. Sujit Reddy G Says:

    Hi Lakshmi narayana,

    I did not understand what you want to do. Can you please explain what exactly you want to do.

  55. Sandy Says:

    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.

  56. lakshminarayana Reddy Says:

    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.

  57. lakshminarayana Reddy Says:

    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

  58. Harsh Says:

    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 !

  59. Abhilash Says:

    Hi Sujit,
    Can we do remote desktop feature using fvnc(flash vnc client)?

  60. Sujit Reddy G Says:

    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.

  61. Sujit Reddy G Says:

    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.

  62. Sujit Reddy G Says:

    Hi Harsh,

    Go for Mate or Cairngorm and use BlazeDS on the server to exchange messages.

    Hope this helps.

  63. laxman Says:

    I’m a beginnear to flex.i know some of the consepts,how to manage the session in flex 3 with LCDS

  64. Abhilash Says:

    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

  65. Sridhar Valiveti Says:

    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

  66. sundeep Says:

    Hi Sujit,
    Do you know where can I get certifications for Flex in India(Mumbai)?

  67. Sujit Reddy G Says:

    Hi Sridhar,

    This isn’t inbuilt. You might need to communicate through sockets.

  68. Sujit Reddy G Says:

    Hi Sundeep,

    Please find details at this URL http://www.adobe.com/devnet/flex/articles/flex_certification.html

  69. Suresh Says:

    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

  70. Suresh Says:

    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…

  71. Sujit Reddy G Says:

    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.

  72. Manu Varghese Says:

    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..

  73. prajnith Says:

    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

  74. jsrinivasreddy Says:

    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,

  75. Ishwar Says:

    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.

  76. suresh kumar reddy Says:

    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

Leave a Reply