Ask Me

On this page we can discuss topics, which I have not blogged.ย  ๐Ÿ™‚

628 Responses to Ask Me

  1. Chandu says:

    Hi Sujith,

    I am new to Flex and ActionScript world, I am basicall a java programmer, I have read to some extent about Flex and used the examples on the adobe sites. I have tried BlazeDS as well. Though I was able to run the example in the tutorial, it was rather a simple example. I am trying to map a Java Object which is complex, and Object that has more objects inside it and those objects have some objects and so on.. to a certain level, how Can I map such complex types to action script objects. Can you please provide me with a working example if ppssoible.

    Your help will be greatly appreciated


  2. Sujit Reddy G says:

    Hi Chandu,
    Lets say you have an object Student which contains properties named Address, Courses and Profile. All the three properties are different objects of respective Class types. When you are passing a object of the type Student to the Flex application, it will contain objects of the type Address, Courses and Profile right? In order to get all these objects mapped to your AS objects, all you have to do is to create AS objects of the type Address, Courses and Profile and map them to the respective Java classes individually. This applies, even if you are passing the objects in a ArrayList from Java; You will receive them as ArrayCollection, with the objects converted into mapped AS object ๐Ÿ™‚
    Hope this helps. If not let me know, i will try to give you a sample ๐Ÿ™‚

  3. Chandu says:

    Hi Sujith,

    Thanks for your prompt reply. I will try out your suggestions. But if you can provide me a sample if you get time, that will be great too.

    Thanks a Lot again.

  4. Chandu says:

    Hi Sujith,

    Can you please provide and example, say something like you mentioned.List of Students , I want to be able to have a page display list of students with their names courses they are taking etc, but this data should be retrieved from the Java Class,

    In this scenario, where does the Action Script fit. I mean my understanding is
    1) I will create a flex app i.e mxml file which will invoke the Java class like you described in one of your blog posts. But now to interpret the complex Object type returned by the java class I need Action Script objects to map to Java Objects,,…

    2) I will also write the java class and put the classes in the WEB-INF folder etc

    3) I will click a button to get the data from the page

    In the above scenario,,,
    a) where exactly will I need to create .as file mapping,
    b) which folder should the .as file reside in
    c) how will the client flex map know to render the data in a grid, table or text area etc

    The above are some areas I am still in dark.

    Your help will be greatly appreciated


  5. Sharathchandra says:

    Hello sujith,

    I’m sharath, i think u remember today only i’m requesting u at the end of the elimination round in Hyderabad Boot Camp.Anyway things went wrong i didn’t had a chance to participate in the next round…Ok i have asked you the question about database but still i had a problem in connecting to it…Ok Let me ask this one I’m developing a Cricket Score analysis application using charts i succeded up to some extent…Actually my plan was to implement it in BootCamp..I completed most of the coding part but my problem is when i take the score for a team i’m using a ArrayCollection for both the teams…It sounds good for only one match score but i want to create a generic application where i want to take the match scores from the users what ever they like and store it in database.Can you please help me reagarding this one and onemore thing i’m a user.If u can provide me some code snippets it will be help ful to me.If you want i will send my application code..Please give me your Mail address. Thankyou…

  6. Sharathchandra says:

    Hi i created a blog for me in wordpress.In that i posted my application.I want to enhance that applicaiton using .ASPX.How to do that help

  7. Praveen says:

    Hi Sujith,

    Iam trying to use Flex with Weblogic(8.1.5) portal application. When i use HttpService to make call to the server, it returns the contents from the server, but it invalidates the existing session. Iam not able to access any other portlets.
    When i use remote object call it gives me SSL handshake error.
    How do i resolve this. Pls help me out

  8. Sujit Reddy G says:

    Hi Sharath,

    Application looks great. You have to use some server side script to connect to the database from a Flex application. You have three options to interact with the database. You can create a .ASP page which will listen to your request and do the database operations. You can also expose the .NET functions as web services and access them from the Flex application. If you are looking for a RPC kind of solution, where in you want to invoke the functions in the .NET object from your Flex application, you can try WebORB. Below is the URL to the weborb site. You can even find code samples for all the above options i.e. web service/http service/RPC
    Hope this helps.

  9. Sujit Reddy G says:

    Hi Chandu,

    Your question was on how to map AS objects to Java objects. I have created a post on this, check this post on my blogs: mapping-action-script-objects-to-java-objects

    Your AS class should reside in your Flex application and the mapping to the Java class is done in the AS class.
    Rendering the data in a datagrid is completely a different problem. If you want to populate a datagrid with the ArrayCollection you can use the dataProvider property of the datagrid. In case of the text input or anything else, you have to retrieve the value from the object (returned by Java) and then set it to the appropriate property of the component. Please refer to the language reference of the respective components details.

    Hope this helps.

  10. Sharathchandra says:

    Thank you for your reply sujit. I’ll try to use weborb. I want see those applications of HYDERABAD BootCamp winner can u please post them…

  11. Chandu says:

    Hi Sujith,

    Thanks for the reply, in fact i was able to overcome the AS script mapping with Java , now I am trying to dynamically create a data grid using the script and populate it with data from the java remote object, but doesnt work , I have pasted the mxml code , do u think it is right way of doing things ???

    Please help.



    import mx.binding.utils.BindingUtils;
    import mx.collections.ArrayCollection;
    import mx.controls.DataGrid;
    import mx.controls.dataGridClasses.DataGridColumn;
    import mx.containers.Panel;
    import mx.controls.listClasses.ListBase;
    import mx.rpc.remoting.mxml.RemoteObject;
    // A data provider created by using ActionScript
    //private var employeeList:ArrayCollection ;
    private var ro1:RemoteObject = new RemoteObject(“prctest”);

    //employeeList=ro.getEmployeeList1() as ArrayCollection;
    private var dg:DataGrid = new DataGrid;
    private var pn:Panel = new Panel;
    private var dgc:DataGridColumn;

    private function buildDG():void
    var aColumnDef:Array = getColumnDefArray(); //returns a noraml array of objects that specify DtaGridColumn properties
    var oColumnDef:Object;
    var aColumnsNew:Array = dg.columns
    var iTotalDGWidth:int = 0;

    for (var i:int=0;i<aColumnDef.length;i++) { //loop over the column definition array
    oColumnDef = aColumnDef[i];
    dgc = new DataGridColumn(); //instantiate a new DataGridColumn
    dgc.dataField = oColumnDef.dataField;
    dgc.headerText = oColumnDef.headerText; //start setting the properties from the column def array
    dgc.width = 100;
    // iTotalDGWidth += dgc.width; //add up the column widths
    // dgc.editable = oColumnDef.editable;
    //dgc.sortable = oColumnDef.sortable
    dgc.visible = true;
    //dgc.wordWrap = oColumnDef.wordWrap;
    aColumnsNew.push(dgc) //push the new dataGridColumn onto the array

    dg.columns = aColumnsNew; //assign the array back to the dtaGrid
    dg.editable = false;
    dg.width = 400;
    dg.dataProvider = ro1.getEmployeeList1.lastResult; //set the dataProvider;

    //uses the first product node to define the columns
    private function getColumnDefArray():Array
    //“colcount:” + xmlCatalog.toXMLString());
    var aColumns:Array = new Array();
    var oColumnDef:Object;
    var empName:EmployeeName;
    // for (var i:int=0;i


  12. Chandu says:

    Hi Sujith,

    How Can I create dynamic data grid and populate it with data from a jave invoked remote object. In the code I pasted above, i was able to create the grid,,, but when I provide it with the dataprovider I get error and it does not work.. can you please help me

    – Regards

  13. Sujit Reddy G says:

    Hi Chandu,
    [Small correction]
    Please try changing this line
    ro1.getEmployeeList1.lastResult as ArrayCollection

    and also make sure the getEmployeeList1() method is invoked. ๐Ÿ™‚
    Hope this helps.

  14. Sujit Reddy G says:

    Hi Sharath,

    I will post the applications developed at the Flex Boot Camp in Hyderabad as soon as possible. We have requested the KMIT college staff to burn a CD and send it to us ๐Ÿ™‚

  15. Mark says:

    Hi Sujit,

    I’m playing around flex and blazeds for a while now and still pretty confused at it. I found your tutorials easy to follow but i still have a question.

    I can now send and receive messages through topics and using JMS-adapter. But my problem is the authentication of users, can i authenticate users through topics? can you help/guide me on login/authentication part? i don’t know what approach i will do to make this.

  16. Barry says:

    It seems that the returned data in this case must be processed synchoronously via a result listener. Try the following to see if it works for you,

    private var ro1:RemoteObject = new RemoteObject(โ€prctestโ€);
    ro1.getEmployeeList1.addEventListener(“result”, buildDG);

    private function buildDG(event:ResultEvent):void {
    //build your DG here….
    dg.dataProvider = event.result;

    Note that event.result seems exists only in the event handler, so you won’t be able to assign it to a shared variable and use it in a different function.

  17. Neil says:

    Hi Sujit
    We need some help. We have a Java Applet that captures images on a users desktop. How can we convert the image from a byte array to string to pass to FLEX. Is there a better way to pass the images from the Applet to Flex?

    Any ideas would be greatly appreciated. Also do you have time for any consulting on a project??

  18. John says:

    Great site and useful content! Could you leave some opinion about my sites?
    My pages
    [url=]My pages[/url] My pages

  19. Pravi says:

    Hi Sujit,
    What a lovely blog!! So useful for us.
    I’m Praveena. We’ve a plan to develop one financial portal. I’m just thinking of using technologies like JBoss portal, Adobe Flex, BlazeDS.
    Can you pl give a overview how can i achieve this? Or where can i get architecture using the three technologies? Can I use Eclipse IDE for development?
    Pl let me.
    Thank you so much.

  20. Chandu says:

    Hi Sujith

    I am able to work with BlazeDS , is it necessary the package structure for AS and Java classes match for mapping them,

    for ex:
    can I have a java object in package say

    and the mapped actionscript class in package

    I have tried it and its not working, I have tried looking up the documentaion but nowhere it taks about package structure being the same

    Can you please tell me if the above is true.


  21. 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
    public class CardEconVar

    public var cardEconVarId:int;
    private var groupId:int;

    Here is my java code:
    package com.mlfcst.flex.dto;

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


  22. abhay says:

    Hi Sujit

    i followed the steps which u given for blazeds but am not able to make it working, its giving error “page cannot display”,
    can u plz tell me how to make working the sample applications available in tomcat\webapps\samples

  23. Sujit Reddy G says:

    Hi Chandu,

    The package structure of the AS class and the Java class which are mapped need NOT be same. Please check out if you are missing something else. Try checking your log files for errors ๐Ÿ™‚

    Hope this helps.

  24. Sujit Reddy G says:

    Hi Abhay,

    My guesses are check if the server is running, if the server is up and running, please see if you can find any errors in the server log files. If you cannot figure out whats going wrong, please feel free to mail me with your log files.

    Hope this helps.

  25. Sujit Reddy G says:

    Hi baji,

    Please modified your code in setEconVarDetails() function to the below an then try.

    public function setEconVarDetails(event:ResultEvent):void
    var a_econVars:ArrayCollection = event.result as ArrayCollection;
    var econVar:CardEconVar = new CardEconVar();
    econVar = a_econVars.getItemAt(0) as CardEconVar;

    Hope this helps.

  26. Srinivas M says:


    my self , i am srinivas working as sr. software engineer( web,UI).

    i want to learn flex designing ( CSS,Themes, layouts..etc).

    any help from ur side? i am from hyderabad.

  27. chandu says:

    Hi Sujith

    I am using BlazeDS to send data to my flex client. However is there API
    or a way to find out how many bytes of data the client received from there server
    if I make a remoteObject call.

    Basically I am trying to find out how many bytes of data is transffred over the wire through BlazeDS……

    Can you please explain the blazeDS serialization and how it works.

    For eg: I am sending a list of HashMaps. Each hashMap is a set of key pair values and corresponds to 1 row of data in DataGrid. The hashMap keys are columnNames
    and the values are the cell values..

    Say for eg If I am sending 3 hashmaps, Since the keys are columnNames, this information is duplicated as keys in all the 3 hashMaps. I know on java side Its using the reference. But once the data is serialized through BlazeDS is that maintained or not

    Any help will be greatly appreciated.


  28. Sujit Reddy G says:

    Hi Chandu,

    State should be maintained, please check out. I think the serialization works the same way as Java serialization.

  29. HARI.S says:


  30. Rajesh Sundar says:

    -> About using different database urls with destinations in the hibernate assembler in LCDS.

    Hi Sujith,

    I have a question that I could not find any information in the web. I thought this might be familiar to you. I am having a flex app which uses data service destinations using hibernate assembler. But since all the destinations (whether runtime or xml for application scope) gets loaded on startup, I am unable to change hibernate configuration especially the database name based on the user logged in.

    For example. Consider a flex app with hibernate in backend.
    Company XYZ should use XYZ database
    Company ABC should use ABC database.

    Note: Both xyz and abc have same tables or data model.

    Also changing the Original hibernate configuration (using programmatic API like Configuration()) has no effect. Also note the data service destinations once created
    on server startup, cannot accept a new hibernatconfiguration as well, even if it would
    it will apply the same changes for both XYZ and ABC users.

    Any help on this would be appreciated. Thanks.

  31. Mohan says:

    I am new to BlazeDS.I am using FlexBuilder3,mySQL and Java to develop a project. Initially I am getting all the records from the database through pushing mechanism. If any changes made, I am sending the whole record set again. Can you please guide me? How to use pushing mechanism with mysql database with BlazeDS….


  32. Jasper says:

    Hi there,

    I have set up some ‘destinations’ in Blaze-DS, and am successfully using ‘Producers’/’Consumers’ from my flex application to connect to these destinations and exchange messages.

    Now, since my server is hosted, any one in the world, who knows what the destination name is can connect to this blaze-ds destination of mine(from a simple flex app), and send/recieve messages. Isn’t this true? How do i prevent unauthorized access?

    Looking forward to your help!

  33. Sujit Reddy G says:

    Hi Hari,

    I mailed you the list of URLs.

    Hope that helped

  34. Sujit Reddy G says:

    Hi Jasper,

    I mailed you details on securing destinations.

    Hope that helped.

  35. srinu says:

    Hi Sujit,

    Recently I am doing a project, that needs to get read an xml file and display the content in Datagrid layout.
    Could you please tell me how to do it.

    If you have the answer , please forward it to my mail


  36. Crystal says:

    Hi Sujit,
    I’m Crystal. I’m new to Flex and BlazeDS technology. So far all the implementation is alright. But I have some questions about the Messaging Service. Hope you can answer me or provide some useful links to me or give me some examples.
    Let say there are 2 different server. JMS client (producer) reside in Server A, and Flex client (consumer) reside in Server B. JMS is going to publish some data into BlazeDS destination and allow the Flex subscribe it. The questions are:
    a) The main question is the BlazeDS destination should reside in which Server??
    b) The BlazeDS destination can reside in Server A?? If yes, how is the Flex client going to subscribe the data in different Server?? Any idea and examples??
    c) Is it a must the BlazeDS destination should reside in Server B? If so, any idea/example that enable the JMS publish the data to different Server?

    Looking forward to your help. Thank you and advanced.


  37. Crystal says:

    Oh ya, i also need some details about the destination security from you. Thanks for your help again.


  38. Sujit Reddy G says:

    Hi Crystal,

    I Emailed details to your yahoo inbox.

    Hope that helped.

  39. Sujit Reddy G says:

    Hi Srinu,

    Please find code samples at the URL below.

    Hope this helps ๐Ÿ™‚

  40. Crystal says:

    Hi Sujit,
    Thanks for your information.
    May I request some websites/links that related the idea u gave to me??
    Thanks again.


  41. Crystal says:

    Hi Sujit,
    It’s me again. I really need some advise from you.
    Nowadays, “performance” becoming an important issue especially when develop a real-time application.
    I goes for BlazeDS Messaging also because of this.
    I wonder how fast/good is the performance when millions of data push to client side.

    Is it the performance is actually depends on network protocols?
    E.g. BlazeDS offers long polling & streaming. Is it “Streaming” faster than “polling” ??

    Where LCDS (commercial product) offers RTMP & socket-based protocol. So is it “RTMP” will faster than “Streaming” which offered by BlazeDS ??

    As a conclude here, is it LCDS Messaging better than BlazeDS Messaging when want to develop a mission-critical Real-Time application??

    Looking forward to your help. Thank you.

  42. Kesh says:

    Hi i wanna create an app using flex and java but the thing is i cannot move to another page after clicking the logout button pls tell me how to do page navigation.

  43. Sujit Reddy G says:

    Hi Kesh,

    Please have a look at view states in Flex. There is nothing like a page in Flex, you will have to think in terms of states or keep adding a removing components in a single state.

    Please find more details on view states at the URL below.

    Hope this helps.

  44. kev says:

    Hi Sujit,

    Can you apply the content in your blog post about Flex Message Service with BlazeDS to AIR apps? I only have access to a PHP backend and so have been trying with Weborb to no avail.


  45. kev says:

    Hi Sujit,

    Can you apply the content in your blog post about Flex Message Service with BlazeDS to AIR apps? I only have access to a PHP backend and so have been trying with Weborb to no avail.


  46. Mohan says:

    Hi Sujit,
    I cant able to zoom the chart in Flex for trending.
    Can u please provide the examples..
    Thanks in advance..

  47. kev says:

    Whoops – apologies for that double entry there!

    I found this post “” by Christophe which explains that you must specify the actual server address & port in the services-config.xml file rather than leaving the ‘tokens’ in place to use DS with AIR apps.

    He says:

    “instead of:


    I’m using BlazeDS on port 8400 and found this worked:

    And similar for Weborb except on port 80.

    changed this:

    to this:

    Also of worthy note, I had to ‘clean’ my projects in Eclipse after making a change to the service-config.xml file before the change was reflected.

    Now down to securing the channels…

  48. Sujit Reddy G says:

    Hi Kev,

    Yes, you got it right. In case of AIR application you need to give the complete URL ๐Ÿ™‚ and yes, you have to clean your project in Flex Builder.

    Check out this URL (might be useful ๐Ÿ™‚ )

    Feel free to ping me if you think I can help you ๐Ÿ™‚

  49. kev says:

    Hi Sujit,

    Thanks for your reply and for this great site ๐Ÿ™‚

    I notice that you sent some information to another person regarding securing AMF channels – could you please forward to me also?

    I have read that the simplest way is to create a local user list to which you allow certain channels access. But I was wondering how hard it would be to query a database on the server for a list of users?

    (runtime channel creation is very useful too – thanks)


  50. Venkata Reddy says:

    Hi Sujit,

    I am new to Flex and using the Flex Dashboard sample given at

    I need to use my existing Applet(which does publish/subscribe with backend), to update data in the individual pods.

    Using Javascript am able to call the methods inside the Dashboard main mxml. From there am not knowing how to pass the data to the individual pods.

    Can you please help me on this ASAP.


  51. Sujit Reddy G says:

    Hi Kev,

    Please find more details on how to secure channels at this URL

    Hope this helps. I am sorry I was stuck with work and so the delayed response ๐Ÿ™‚

  52. Mikey says:

    Hello all,

    I am new to BlazeDS and am working on a project that requires it. I came across your article and let me to take this opportunity to tell you that you put out a solid work. I am just wondering how can I do the following:

    I have my back-end written in Java, and in my Class I have an array of Strings that keeps updated. In my client side code, I invoke the getter method for this array. I would like to display those messages at the client side as soon the server knows this array got updated.

    I tried to listen and get the array data every XXXX amount of time. Unfortunately, this approach did not work. I got all the results at the very end (all at once).

    Please let me know of your ideas, and if you have sample code that would be very helpful.

    Thank you,


  53. kev says:

    Hey Sujit,

    Thanks for the links about securing destinations – I’ve been busy on another project and finally have time to look at this again. I’ll post my results at attempting to get this working with AMFPHP/WebORB…


  54. kpbird says:

    hello Sujit,

    I am using OS X 1.5.
    I install flex builder in it and working fine
    now I want to display PDF file in my AIR application.
    my application has main 2 part.
    left side list of pdf file and right side is empty
    when user click on pdf file that pdf should open in right part.

    I try it with HTMLCapibility but it’s not working.
    is it problem of OS X or any other thing?

  55. Raaj says:

    Hi Sujit,

    How to communicate two SWF files using Cross-Scripting method!


  56. Sujit Reddy G says:

    Hi Kpbird,

    Please try visiting the URL below. If you already did that and still its not working, please send out your code to I will try to fix that ๐Ÿ™‚

    Hope this helps ๐Ÿ™‚

  57. Sujit Reddy G says:

    Hi Moussa,

    Remoting calls are batched. Try to send the code to I will try to fix it ๐Ÿ™‚

  58. adireddy says:

    hi sujit h r u,
    iam training on adobe flex i am facing one problem ,
    one remote object using lcds,iam trying to two days but iam not getting,
    plese send one sample program(java class,flex code) ,and how to configure in server plese send me folder struture,

  59. Terry Corbet says:

    I see that you have comments about modularization in Flex and articles about using RSL in Flex, so I have a request. Point me to the ‘best practices’ for using those techniques with AIR. I have an AIR ‘container’ that has lots of Flex components that are modular AND rely on the Player to cache both the Flex framework and my own libraries. How — precisely — do you make those enhancements with AIR.

    No, I don’t want to be told that desktop applications don’t need to be small and compact — nonsense — no one wants to download a 5MB update if only a .5MB update is needed. How do we do this with AIR? Your thoughts would be much appreciated since you cannot find anyone in Adobe product management willing to talk about the apparent disconnect.

  60. Sujit Reddy G says:

    Hi Adireddy,

    Please visit the URL below.

    Hope this helps.

  61. Bob Johnson says:

    I tried your example about integrating Blazeds with Flex got all the way through but the application didn’t display your message: Destination “CreatingRpc” either does no9t exist or destination has no channels defined (and the application does not define any default channel).

    Got any ideas?

  62. Sujit Reddy G says:

    Hi Bob,

    Couple of things you can try.

    1. Clean your project in Flex Builder
    2. Restart your server
    3. Clean the browser cache.
    4. Check if the destination exists ๐Ÿ™‚

    Hope this helps.

  63. naveen says:

    Hi sujith,
    i am new to flex,i read ur articles and i feelthey were very much helpful.Recently I had an interview and just want to share the questions and if anybody can answer that will
    be helpful.

    Unit testing and how did u approach?
    explain about cairngorm event?
    explain interface and abstract in java with examples?
    why did u use spring?
    how will u check for authorization?
    flex issues?
    why did u use LCDS

  64. Jinoy says:

    Hi Sujith,

    I have gone through your blog “Sending messages from Java to BlazeDS destinations using MessageBroker”…The flex client is working fine both as producer and consumer, but the message sent from jsp is not appearing in flex client…Do I need any other configuration? I am using BlazeDS turnkey server…

  65. Lord says:

    Hi Sujith,

    a very good site…

    i need a to retrieve java object from flex, but i don’t know how to start. Can you help me?
    I’ve heard about livecycle data service, blazeDS and remote object. Are these technologies the same or they are different??

    thanks a lot

  66. Jai says:

    Hello –
    I am a designer turned developer who is moving from Flash to Flex and I have been asked to help someone plug their site into the photoshelter api (the basic documentation for this is at: I have some limited experience in using Amfphp to make mysql queries through Flex, but am unsure whether, or how, I can access this kind of api – and can’t find any info. that clarifies things for me. Do I need to use a solution like Blaze DS and Java, or can I manage the session calls through amfphp? Can you give me any pointers on this? Thanks.

  67. Namaste:

    Would love to have an AIR app, that displays a PDF to cover the entire desktop area (until minimized).

    Would love for the live PDF to become the actual desktop canvas; but I don’t know if that is possible.

    Can some one speak on this.

    In Service of THE ONENESS,
    Rafiki “The Digital Doctor” Cai

  68. Vishnu Sanjit says:

    Hey Sujit,
    This is Vishnu. Good to know you are from BITS PIlani,I’m from BITS Pilani too, passed out in 2007.

    So lately I’ve been trying to learn FLEX by myself. Was trying to build a twitter mashup using Chris Korhonen’s Creating Mashups with Adobe Flex and AIR. I’m not using the Flex Builder. I compiled my mxml file and transferred the generated swf file to the root of my HTTP server. I also included a crossdomain.xml file in the root since the RSS feeds it was trying to access doesn’t reside on my server.

    Despite this i keep getting an error:
    [Security error accessing url” faultCode=”Channel.Security.Error” faultDetail=”Destination: DefaultHTTP”]

    Here is the code:




    Where am i going wrong here?

  69. Sujit Reddy G says:

    Hi Vishnu,

    Looks like the code got truncated.

    You will need the crossdomain.xml on the server from which you are accessing the data from and not on the server where the SWF file is hosted.

    Hope this helps.

  70. Sujit Reddy G says:

    Hi Jai,

    I don’t think you need to worry about AMFPHP for accessing the API you mentioned. Looks like they are sending their response as XML. All you need to do is to use HTTPService component and access the XML.

    Please find more details on how to use HTTPService at the URL below.

    Hope this helps.

  71. Jai says:

    Thanks Sujit, that is a useful confirmation. However I remained rather confused about security. I have to access the photoshelter api via SSL. From what I gather, that seems to mean that I must use a proxy of some sort… Is that true? If I authenticate by sending username and password over HTTPService, don’t I make my archive at photoshelter very vulnerable?
    Would it still be worth it to be running the httpService through BlazeDS? Would it make any differences to speed? Again, thank you so much for your helpful advice.

  72. Jai says:

    After further research, I now believe that I have to set “useProxy” to true and then configure my https service via BlazeDS – or a php proxy – in order to be able to communicate via https – and send necessary username and password authentication. (There seems to be very little clear documentation on using HTTPS with BlazeDS on the web…) So although I don’t need to use secure-amf, will it perhaps give me increased speed? Even though serialising from xml, and back into xml at the other end…

  73. baji says:

    Hi Sujith,

    I have developed flex application with webservices..I would like to handle session time out using werbservices..i am not using remote objects…could you suggest me .?

  74. Diny says:

    i would like know how to configure BlazeDS with websphere 6.0.. please reply me as soon as possible..

    My mail id is

    thanks in advanceโ€ฆ

  75. Souvik says:

    Hi sujit,
    I have gone through the article “Sending messages from Java to BlazeDS destinations using MessageBroker”. I have implemented it and it is functioning well. Only the exception is that I am making use of LCDS instead of BlazeDS. Any way, your article provided a great help indeed.

    Now all I need to send message to few(not arbitrary)consumers. Suppose there are 10 consumers and I need to send message to 7 of them. How could it be decided from server side? Could it be made possible by modifying the code of Actually I need to decided it from server side prior to send push data. Please help.

  76. Sujit Reddy G says:

    Hi Jai,

    You can go ahead and use HTTPService without BlazeDS. I don’t think it will be vulnerable to pass credentials using HTTPService over HTTPS.

    You will need BlazeDS if you cannot communicate with the service provider directly. That is the service provider is not having a crossdomain.xml on his server.

    AMF will definitely increase performance.

    URLs below might be useful. In the BlazeDS dev guide, try to read about channels and RPC services, especially proxy service.

    Hope this helps.

  77. kev says:

    hey Sujit,

    I have a ‘design’ question for you…

    I’m building an inventory application using Flex, AMFPHP, MYSQL and the Cairngorm pattern. Take 3 tables as an example: Categories, Colours, Products.

    CategoryID 1
    CategoryName Pants

    ColourID 1
    ColourName Red

    ProductID 1
    CategoryID 1
    ColourID 1
    ProductName Cargo Pants
    Price 20.00

    Now when I init the app, I send 3 events to gather all records from each table and populate 3 ArrayCollections in the ModelLocator. Great, this works fine.

    But I want to populate a Datagrid which contains the fields “CategoryName”, “ColourName”, “ProductName”, “Price”.

    I can think of 3 ways to do this:

    1) create a new ArrayCollection in my ModelLocator and populate this by calling a PHP service which does a joined SELECT statement – disadvantages, need to refresh this AC whenever I change the contents of any of the others, duplication of data being sent/received from the server, ?

    2) create a new ArrayCollection in my ModelLocator and populate by iterating through the 3 ACs in Actionscript each time any of them change – advantage, no excess data sent/received from server but potentially higher processor usage?

    3) don’t create a new ArrayCollection, but use ItemRenderers for each DatagridColumn which takes the appropriate ID field and returns the Name field – again, no excess network but potential high cpu everytime the DataGrid is refreshed

    Or is there another way that I cannot see!

    Maybe this is a simple design concept that people learn in Software Design 101 – but having missed that class, I’m playing catchup!


  78. kalyan says:

    Hi Sujith,

    I’m relatively new to flex, we are developing a multiplayer online game using flex client and blazeds.I want to know how scalable is the blazeds server and what are the measures i need to take two improve the scalabity of the blazeds server which i have configured into tomcat.

    Looking forward to hearing from at the earliest

    Thaks and regards

  79. Sujit Reddy G says:

    Hi Kalyan,

    Please check out the capacity planning guide at the URL below.

    Click to access 95011594_lcds_planguide_wp_ue.pdf

    Hope this helps.

  80. Sujit Reddy G says:

    Hi Kev,

    I would go with the first approach and paginate my data. If the data is huge, then the processing required to loop through the collections for each item is HUGE ๐Ÿ™‚

    Hope this helps.

  81. Sujit Reddy G says:

    Hi Souvik,

    Please try creating custom messaging adapter and filter your message there by setting selectors. Please find more details at the URLs below.

    Hope this helps.

  82. Sujit Reddy G says:

    Hi Diny.

    Its similar to deploying it on any server. You have to
    1. Change web.xml
    2. copy BlazeDS jar files into WEB-INF/lib folder
    3. Place your configuration files (services-config.xml) in WEB-INF/flex folder

    Hope this helps ๐Ÿ™‚

  83. kalyan says:

    Hi Sujith,

    Thanks for the swift response.But my concern was to improve the scalability of open source blazeds but you were referring to LCDS which my org cannot afford.kindly suggest me keeping in view open source blazeds which is our priorityand about its scalability.looking forward to hearing from you

  84. Sujit Reddy G says:

    Hi Kalyan,

    It all depends on the channel you are using. The capacity planning guide which I pointed to you previously has comparison for all channels. BlazeDS supports only Servlet based channels like AMFChannel, HTTPChannel, HTTPStreamingChannel and AMFStreamingChannel. Where as LCDS has these Servlet based channels as well as Java NIO based channels (which scale a lot) and RTMP channel. The code for both LCDS and BlazeDS is same for the channels supported in both the products.

    In the capacity planning guide, you can look at a section where they are comparing Servlet based channel with NIO based channels. Basically, Servlet based channels can handle only few hundreds of clients at one go as there are restrictions on number of threads a web server will run and each connection to a client will occupy one thread in the case of Servlet based channels.

    Hope this helps.

  85. bibin says:

    hi Sujit,

    I have the following java nd as classses

    Java class —

    public class PatientVO
    private AverageDays[] myAvrgDays;

    public AverageDaysPerPipelineVO[] getAvrgDays() {
    return myAvrgDays;

    public void setAvrgDaysPerPiplnVos(
    AverageDays[] avrgDays) {
    this.myAvrgDays = (AverageDays[])avrgDays;


    AS class —

    [RemoteClass(alias=”vo.PatientVO “)]

    public class PatientVO implements IValueObject

    public var avrgDays : Array;

    Here it actually converts the java object to flex as object with no problems.

    But when i am passing the as object to java, it somehow nullifies the array (myAvrgDays) in the java object.

    This problem happens only when when i am using arrays.

    and works fine with array list

  86. bibin says:

    hi sujit,

    one more query,

    I have a line graph with DateTimeAxis.

    By default if my dateUnits is in year and all the data points to be plotted fall into same year, the date time axis won’t show up the year.

    if the data points spread out to more than one year, then date time axis shows all the years.

    Is there a way to show the year on the date time axis, if there is only one year and all data points fall into this year only?

  87. bibin says:

    hi sujit,
    i digged out the solution for myself. Set the property alignLabelsUnits=false, so that graph puts a label always at the beginning of axis


  88. bibin says:

    hi sujit,

    the issue with action script array to java array was my local problem, happnd bcz of my mistake in the code.

  89. ravish says:


    i am trying to integrate LCDS 2.5 with JBoss 4.0.1 SP1. i followed the instructions given.When it tried to deploy the samples.war provided with LCDS, the server throws”ERROR [Engine] StandardContext[/samples]StandardWrapper.Throwable
    java.lang.NoSuchMethodError: flex.messaging.config.LoginCommandSettings.setServer(Ljava/lang/String;)V “.
    also,”ERROR [Engine] StandardContext[/samples]Servlet /samples threw load() exception
    javax.servlet.ServletException: Servlet.init() for servlet MessageBrokerServlet threw exception”. i dont have a clue. can you please help me out..?


  90. Sujit Reddy G says:

    Hi Ravish,

    Please visit this URL for installation instructions on JBoss server.

    Hope this helps.

  91. Ragini says:


    Problem in getting cookie object in JSP
    I want to get the cookie object in main.html(wrapper) that I have made JSP page,
    when it is loded and want to set value of cookie to flashvars so I can get it
    in preinitialize of application, But problem in getting the cookie object in JSP????

    Description : I have set the cookie on combo change for language using,
    HttpServletRequest request = FlexContext.getHttpRequest();
    HttpServletResponse response = FlexContext.getHttpResponse();

    But didnt get this cookie value in JSP,request = FlexContext.getHttpRequest() is null in JSP
    can u help me in solving this problem??

  92. Srinivas says:

    Hi Sujit,

    I am Java developer and new to Flex envionrment.I have implemented some examples on Flex from Adobe website.I am tried to install LCDS on Weblogic 8.1 server but was unsuccesful in doing so.I tried the installion by following the procedure in /8.2/lcds_installation.html.If you can provide detail procedure regarding the installation it would be helpful.


  93. ravish says:

    Thanks for your reply Sujith.

    I need your helping hand again.

    i am trying to define a StreamingAMFChannel in LCDS ES 2.5.1, it is not getting defined, and it shows channel is undefined. the same configuration is working just fine with BlazeDS. Just wondering is this version LCDS ES 2.5.1 supports StreamingAMFChannel…?


  94. Sujit Reddy G says:

    Hi Srinivas,

    Can you please explain what exactly is happening. Is the installation not being completed or you could not start the server?

  95. Sujit Reddy G says:

    Hi Ravish,

    I think it was added to LCDS 2.6

    Hope this helps. ๐Ÿ™‚

  96. Sujit Reddy G says:

    Hi Ragini,

    I think FlexContext.getHttpRequest() is null in a JSP page because the MessageBrokerServlet is the one which sets the HTTPRequest object to the FlexContext
    As the request is not going thru MessageBrokerServlet I don’t think you will have the HTTPRequest object. Please try the normal J2EE way to get access to the cookie in your JSP page.

    Hope this helps.

  97. Tanmoy says:

    Hi Sujith…
    Could you let me know about configuring BlazeDS with BEA weblogic workshop ? I would like to know the changes to be made in configuration.xml file with a small example.


  98. daniel says:

    hi sujit,

    i am working on a project using weborb for .net and flex 3.
    i am retrieving an Array of strings from using weborb. the array has the right length; but all the values are blank. in weborb i have used the test-run feature to invoke this same call; and the array is returned with all the values. i have done the same from an aspx page. maybe it’s the way i am reading the array into actionscript? please help me (and other weborb users) with a tutorial on interaction between these two(and a solution for my problem too ๐Ÿ™‚ ) thank you in advance. daniel
    ps: if it makes a difference; the class is written in c#; and the class retrieves a static array and returns an array.(returned_array = static_array).

  99. Souvik says:

    Please let me ask you a question.In our application, we are using a custom messaging adapter which uses a rtmp channel. Our intension is to get an acknowledgement in the server. In our case, let us assume a java class is the message producer(like in your article “Sending messages from Java to BlazeDS destinations using MessageBroker”). If we would have sent message using Flex Producer component, we can optionally specify “acknowledge” and “fault” event handlers for a Producer component. How exactly this could be implemented when a java class is sending the message and this class is acting as a message Producer.

  100. Hi Sujit,

    I am working on blazeds applications where i
    want to detect browser close event of on server side.
    I have tried using adaptors and session listeners,
    but nothing going right for me.

    i saw your blog and thought that you are the right person to
    solve the problem.

    So please let me know if there is any solution for
    the same.

    Pravin Uttarwar,

  101. Hi Sujith says:

    Hi Sujith,

    We are trying to integrate Flex with a Single-sign on product (Siteminder). In our environment, the incoming request to the Flex application will get routed via Siteminder. Siteminder will authenticate the incoming request, then append few authorization details (user profile, like role, department, etc) in the Http header and redirect the request to the Flex application.

    Our requirement is to read the http header information, and take some business validation based on user profile. But we couldnโ€™t able to find any direct functions, which helps us to read the http header information. When we browsed through Flex documentation, we found couple of functions for it (like URLLoader). But these functions require sending explict request to the server and reading the response header. But in our case, we are not sending any explicit request to Siteminder. Rather we are just trying to read the http header, when the user request hits the swf file.

    We have managed found a solution using JSP wrapper and Flashvar. But we don’t want to use a JSP wrapper in-between. Is there any other alternate way to read http header? Any suggestion would be greatly appreciated.


  102. Raaja says:

    Hi Sujith,

    Need barcode handling like generating label, reading barcode etc.,

    thanks and regards

  103. Sujit Reddy G says:

    Hi Raja,

    I didn’t understand ๐Ÿ˜ฆ

  104. Sujit Reddy G says:

    Hi Pravin,

    Flex application running in Flash Player in browser will not dispatch any event when the browser is closing. You will have to use ExternalInterface for this. Pleaes find more details on how to achieve this at the URL below.

    Hope this helps.

  105. Sujit Reddy G says:

    Hi Souvik,

    Do you want an acknowledgment on the server ? So, you want to make sure the message is being delivered. Did i understand it correctly ?

  106. Sujit Reddy G says:

    Hi Daniel,

    Please visit the URL below for details on Remoting with WEBORB.

    Hope this helps.

  107. Sujit Reddy G says:

    Hi Kumar,

    I don’t think you can do this with out a JSP wrapper ๐Ÿ™‚ You basically need a JSP/container/server which will accept a POST/GET from the SSO server. If you are worried about passing these values as Flash Vars, you can consider adding the values in a persistent storage on the server and generate an ID for the same. Now pass this ID to your Flex application and get the values SECURELY from Flex application using the ID from the persistent storage. ๐Ÿ™‚

    Hope this helps.

  108. arunraj says:


    i am new flex,here i need to add some java jars and corejava files in my flex desktop application,but i donot know how to make this and use those *.java FILE IN MY FLEX PROJECT..PLZ HELP ME TO DO THAT.ur help is important

    thanks and regards

  109. Ajith Manmadhan says:

    i am a coldfusion developer and a flex aspirant. i want to know how we can integrate flex with blazeds and coldfusion. i dont know much abt blazeds. Can we make a chat applicatin in coldfusion with blazeds support and integrate in a flex site? I have tried ur example with blazeds and java and was quite helpful. but the problem is how we can use blazeds along with coldfusion. is there anything we need to change in the CF admin for the blazeds to work along with CF.Is that possible? any tutorial links would be helpful..thnx..

  110. Romil Sinha says:

    Hi Sujith,

    Nice articles. In your post “Session data management in Flex Remoting” you talk about calling static method FlexContext.getFlexSession() for Flex Remoting. But, I’m using Servlets. Normally you set objects in HTTP session. But Flex also has one session, and due to some reason 2 sessions are getting created. So I want to access the flex session instead of creating http session in servlet. I tried FlexContext.getFlexSession() but it doesn’t work. It returns null. Can you tell me how to achieve this?

    Romil Sinha

  111. Rabiya Khan says:

    Hi Sujit,

    I got your reference from Sambhav Gore in Bangalore.
    I have a few queries related to session management in BlazeDS.
    1. Once a session has been established, how do we ensure that the next request coming in is from a valid user.
    2. How does cache management work in Flex. Is it possible to maintain data at the client side for the specified amount of time?


  112. Sujit Reddy G says:

    Hi Rabiya,

    1. What exactly do you mean by valid user ? if you meant the same user, then you can just check for some object stored in the session. Requests from same user will return one session object
    2. Flex is state full client, any instance of the objects created will remain as long as the user doesn’t reload the entire SWF. That is by refreshing the page loaded. If you want to store a object only for a specified amount of time, you can use a Timer and then remove the instance end of the period.

    Hope this helps.

  113. Sujit Reddy G says:

    Hi Romil,

    In a Servlet you can get the FlexSession object. It is stored in HttpSession as an attribute. Please get attribute named “__flexSession” from the HttpSession. FlexContext.getSession() works when the request is received my the MessagebrokerServlet only.

    Hope that helps.

  114. Sujit Reddy G says:

    Hi Ajith,

    You can integrate ColdFusion and BlazeDS. Please visit the URL below for more details.

    Hope this helps.

  115. Sujit Reddy G says:

    Hi Arun.

    As of today you cannot do this with just AIR. You can try having a look at Merapi project, this will act as bridge between AIR and Java. Please find more details at the URL below.

    Hope this helps.

  116. Matt says:

    Hi Sujit,

    Is it possible to deploy a flex application using remoting and lcds to a different server? ie remove the flex app from the java web app and deploy it on another server – like a web server?

    The reason I ask is that when running the sample apps on a fresh lcds 2.6 install using flex builder, there is no option to change the output directory. And when we run the samples the desitination cannot be found. So I assume that the flex app must be contained within the lcds web app?

    Is there any way around this? And is this the same situation with AIR apps (that they must be deployed to the lcds web app?

  117. Frank says:

    Hi Sujit,

    I have a real urgent question:

    I want a LineChart to be drawn.
    I have these Timestamps [84, 1000, 34000, 34699, 439999] who are representing the x-Value of DataPoints along the X-Axis.

    Unfortunately the distance between 2 nexted datapoints along the x-Axis is always the same, that means that between the points with x-values 84 and 1000 is the same distance along the axis as between the points with x-values 34699 and 439999.
    But the distance between points with x-values of 34699 and 439999 should be much greater than between 84 and 1000.

    How can I customize the distance between data Points on a LineChart to solve my Problem?

    I really dont know right now and I did not find a solution yet.
    Would be very nice to get some hints.



  118. Sujit Reddy G says:

    Hi Matt,

    You should be changing the end-point URLs of the channels you are using. Please find more details in the article below.

    Please check out the comments also.

    Hope this helps.

  119. Bob Johnson says:

    Sujit. Hope you can provide some help?

    I have a simple read/write project in Flex 3 using Blazeds to access a java class.

    The program runs fine within the Flex Builder environment. However, it does not run from the bin-release compiled version. It doesn’t seem to be talking to the Tomcat server.

    I am trying to write to a file name which is absolute: ie, c:\\….

    I have also tried using a UNC path to the file and it doesn’t work at all.

    Got any suggestions?

  120. Bob Johnson says:

    A followup on the post 121.

    When the write option is selected an long error message appear that completely scrolls off the page. However, some of the path names try to point to a directory called messagebroker which does not exist. I don’t know what it is trying to reach?

    Thanks in advance

  121. Amarnath says:

    Is there a way to override class.
    My requirement is at one place i should be able catch all the faults occurred with the Remote/HTTP object invocation.

  122. Amarnath says:

    How to block copy/paste for “TextInput” in Flex.

  123. Sujit Reddy G says:

    Hi Bob,

    I didn’t get what your application is trying to do. Are you trying to write into a File on client system or is the File on the server?

  124. Sujit Reddy G says:

    Hi Amarnath,

    Did you try just extending that class? Didn’t that work?

  125. Sujit Reddy G says:

    Hi Amarnath,

    Please try the keydown event.

    Hope this helps.

  126. Bob says:

    Reply to post 125:

    In development mode, I have a Tomcat server on my local computer which is inside blazeds. Inside the webapps is a java class as well as server-config files that have destinations for Flex. The client interface has been built with Adobe Flex 3 Builder. The java script has two functions: one that writes a line to a file and another that reads a file. The file name is specified in the Flex client.

  127. sameer says:

    hi sujeet,

    We have an existing struts based application.I want to change the view (jsp to flex).I followed some examples and got stopped by one problem.response from struts is coming to jsp(where i build xml )and jsp to can i avoid this intermediate jsp. Please help me regard this.

    can u provide me a detailed example of using fx:stuts.I followed some examples in net none is more helpful to me


  128. Dinesh says:

    Hi Sujith,

    How to work with SSL enabled WebServices.
    If u have any samples or Tutorials. Can u please ping us.

  129. Hi Sameer,

    FxStruts solves this problem. Please find detailed example at this URL

    Hope this helps.

  130. daniel says:

    Hi Sujith,

    thanks for the link; i had seen the Developer guide;
    but the “Flex client API” section will be very useful. the problem was not to do with weborb (.net) or with flex receiving or working with the array. the array i was passing had blank entries in it when i later tested the array in a different way.

    thanks in any case and regards

  131. Chandu says:

    Hi Sujith,
    Can I embed a .swf into another swf file and have them both communicate like pass params etc.. is there a way to do this ?


  132. Hi Chandu,

    Please try SWFLoader, ModuleLoader or LocalConnection.

    Hope this helps.

  133. Hi Daniel,

    Problem might because the properties in the object being passed are not public. Can you please check if the properties are public. If you debug your Flex application from Flex Builder, you can see message in the console if there is a problem setting properties of the object on the Flex side.

    Hope this helps.

  134. narayana says:

    Hi my name ia M.V.Narayana. iam working in java and flex technology. Totally iam having 2+ experience .Any one can send me resume please.


  135. Greg says:

    Dear Sujit,
    I am looking at adding BlazeDS to an existing Tomcat/JSP application for which we have a functioning web services Flex/AIR app. The app handles lots of images and I felt that AMF would be a good way to improve comms performance.

    However, I am a bit confused. How can I take all my existing JSP based API’s and port them to Blaze so I can use AMF. Today we use Cairngorm as the MVC and HTTP services to do the requisite get and post actions.

    I just need a little pointer in the right direction.

    Sincerely Greg

  136. Noel says:

    hi Sujit,

    Topic: Querying a MYSQL database and generating pdf reports

  137. Joe says:

    dear Sujit,
    I have a problem sending a list in jave that should fill a data grid.
    The data source of mine is a list of HashMaps, each HashMap contain a key/value that should represent the column name and its value.
    In all examples the data was taken from a database of some sort and created a designated beans with properties.
    Is it possible to create a simple list of HashMaps and send it remotely to be the DataProvider?
    Thanks a lot


  138. Masood Sofi says:

    hi sujit,

    can you please tell me how can I store data from my flex application directly on hard disk of my If i am writing a text file in my application then how can this be stored as text file on hard disk.

  139. prabhakar says:


    I need to generate some objects at serverside based on some conditions and these objects will be pushed to client (not pull). Can you provide me any sample code snippet for this.


  140. prabhakar says:


    I need to generate some objects at serverside based on some conditions and these objects will be pushed to flex client (not pull) using blazeDS messaging services. Can you provide me any sample code snippet for this.


  141. Sri Tej says:


    This is Sri Tej, Adobe Student Representative for RIA.I met you on Feb 28th at Hyderabad.As you have seen the Multiplayer gaming environment, My next plan is to develop a Multi-player Game Which is also 3-D version using Flex. Can you Please Help me out in developing a 3-D environment some thing like a room or a person standing or such.. Do we have any tools to develop such 3-D environment using Flex..?

    Sri Tej.

  142. Hi Joe,

    Yes, you can. You will get the HashMap instances as instances of Object.

    Hope this helps.

  143. Hi Masood,

    Please check out article at the URL below.

    Hope this helps.

  144. SK says:

    Hi Sujit,

    I’m new to flex.I have been trying to use ExternalInterface.addCallback in IE 7 to invoke ActionScript functions from javaScript.It does not work.IE does not show any error.It just skips the statement & executes the remaining statements.Can u please explain with an example.


  145. shanker says:

    hi sujit,
    can u send me sample example that explains complete flow of execution includes user enters details and request goes to controller and executes action then the values posted in database. And the response should come back to the flex.

    Add details and retrive details exapmle please.

  146. Mohamed Ghaly says:

    Dear Sujith,

    I am new to the adobe air and i make an appliaction to be a container for pdf forms, the problem is i want to pass variables from the adobe air to the pdf (integrate AIR and PDF together) and in the same time i want when i save the data in the pdf file itself the pdf file disappear and throw me to the adobe air.

    please i need help in this urgent

  147. aK says:

    Hi Sujit,

    I have a bar chart application.
    In one series its shows customer importance and in the other customer satisfaction is shown.
    My requirement is draw a rectangle at the end of the customer satisfaction bar series if the customer satisfaction is less than customer importance and show the difference in a label inside the rectangle.
    If the customer satisfaction is greater than customer importance then draw the rectangle within the bar series and show the positive value in the rectangle.
    Inorder to do this I have created a custom bar series named “SatisfactionGapBarSeries” extended from the Bar Series and custom box item render named “SatisfactionGapBoxItemRender”.
    In the updatedisplaylist of the SatisfactionGapBoxItemRender i have drawn rectangle according to my need but i am not able to add the label.
    How can i add a label into the drawn rectangle?
    Will you please help me?


    Software Engineer

  148. namita says:

    hai sujit,

    i m working on flex….i wanted to impliment ActiveMQ concept for one of my application…so can you plz send me some sample apllication wich is using activemq message broker….
    Thanks in advance

  149. Manan says:


    i must say nice blog n comments,i got nice knowledge regarding the modules..

    m developing chatting application..i’m having 3modules in my application,loginpage and registrationpage..n 3rd 1 is the application which does chatting..all is set,the only problem is when i click the SignIn button on my login page,i want to nevigate to the user’s home page,(i.e. 3rd module) can i get it??

    inshort,i’ve 4 mxml files..main app file n 3modules..i wanna nevigate from my 1st module to 3rd module wen i press a button in my 1st module..will custom events help??

  150. Manish Verma says:

    I have a strange problem with Blaze DS. I am using Flex SDK 3.3 and BlazeDS 3.2 ( also tried 3.3)
    I have a A/S been mapped to a Java Bean on server side.I am able to retrieve a collection of such beans from server, and they are mapped properly. I am calling a method on my remote object which takes this bean as the only argument. But I am getting the following error
    [FaultEvent fault=[RPC Fault faultString=”Cannot invoke method ‘addEquipment’.” faultCode=”Server.ResourceUnavailable” faultDetail=”The expected argument types are (com.gtech.esrs.rm.core.beans.MiscEquipment) but the supplied types were ( and converted to (null).”] messageId=”9E8C3D0A-D00A-B927-E2B4-A37CA5BDCF52″ type=”fault” bubbles=false cancelable=true eventPhase=2]

    The similar error is displayed in the server log, indicating somewhere the [RemoteClass] meta data is being lost during serialization.

    Could you please help.


  151. Hi SK,

    Please make sure you have everything properly setup as explained in the URL below. If your problem persists withe everything in place, code to reproduce the issue will help in understanding the problem.

    Hope this helps.

  152. Hi aK,

    Instead of drawing a rectangle, try adding any of container/component.

    Hope this helps.

  153. Hi Manish,

    Resource unavailable is thrown when the Class is not found. Can you please confirm that the objects of the mapped class type are properly converted to appropriate AS class type. If the objects are properly converted and is creating problem when sending back, please share code to reproduce the issue. Please send to

    Hope this helps.

  154. kevin says:

    hi Sujit,

    I’m trying to find a solution for debugging PHP service classes when used as the back end for Flex apps. I’d prefer not to fork out extra money for the Zend Studio at the moment and from what I read about PDTv2, it seems like all I need.

    While I can set break points on individual PHP files and step through the code, I can’t seem to trigger a break point in a PHP service class when invoked from a Flex app.

    Can you offer any help or advice?


  155. kevin says:

    Woohoo! Scratch that I got it working.

    I followed these instructions to install XDebug:

    I had to compile the plugin from the v2.04 source for it to install properly under MAMP – luckily someone posted this info in the comments below the post.

    Installed PDTv2 via Eclipse software updates:

    But then I could not get Firefox to connect to Eclipse – the issue seems to have been some faulty prefs in Eclipse. I just created a new workspace, created a new PHP project pointing to my Zend services directory and imported my Flex project.

    It’s probably sad how excited I am to have this working. No more looking at PHP error logs (well less anyway).


  156. Iresh says:

    Hi Sujit,

    I am a Flash developer for al long time now and I am trying Flex since 1.5 whenever I get time, I had developed a sample application in Flex2 with coldfusion as middle layer and the MSAccess db, it worked out to b well but went on getting complex as the size increased and I got stucked.

    I have gone through and somewhat understood the BlazeDS structure and worked around the examples too, since I cannot install FlexBuilder I am again stucked in compiling Flex3 files on command line comipler which will be deployed on preconfigured tomcat which comes with the BlazeDS Trunkey download whic is for free.

    The same thing is with Carngorm architecture I have gone throught the documentation and some what understood but could not implement due to the lack of any sample application which is with the CG framework and the actual sample application sourcecode, which will make it easy for me to understand the structure in details and help me develop the application on CG framework without any fear.

    I am seeking your help on following points:

    1. Any small sample cairngorm implemented application along with cairngorm framework used in it and the application source code, to understand the CG framework in actual use.

    2. What are the steps to compile the flex application on command line for BlazeDS, so that it takes the configuration from the service-config.xml or other service related xml rather than the default flex-congif.xml. [in short how to compile the flex application on command line using Flex SDK 3 not FlexBuilder to make it work on BlazeDS]

    It would be a great if you would help in these points.

    Thanks & Regards,

    Iresh SA

  157. poornimahc says:

    this is my mxml code

    this my java code

    package com.codeofdoom;

    import java.util.ArrayList;
    import java.util.List;
    import java.util.Random;

    import flex.messaging.MessageBroker;
    import flex.messaging.messages.AsyncMessage;
    import flex.messaging.messages.Message;
    import flex.messaging.util.UUIDUtils;

    public class BlazeDsServiceAdapter extends ServiceAdapter
    Random random;
    PersonGenerator thread;
    public BlazeDsServiceAdapter()
    random = new Random();
    System.out.println(“Adapter initilized”);

    public void start()
    if(thread == null)
    System.out.println(“Adapter started”);
    thread = new PersonGenerator();

    public void stop()
    System.out.println(“Adapter stopped”);
    thread.running = false;

    private List generatePersons()

    List arr = new ArrayList();
    for (int x=0;x<5;x++)
    Person p = new Person();
    return arr;

    public class PersonGenerator extends Thread
    public boolean running = true;
    public void run()
    String clientId = UUIDUtils.createUUID();
    MessageBroker msgBroker = MessageBroker.getMessageBroker(null);
    while (running)
    AsyncMessage msg = new AsyncMessage();
    List a = generatePersons();

    catch(InterruptedException e)

    public Object invoke(Message message)
    System.out.println(“message——–” + message);
    // System.out.println(“true”);
    System.out.println(“Adapter received new”);
    return generatePersons();
    System.out.println(“Adapter sending message”);
    AsyncMessage newMessage = (AsyncMessage)message;
    MessageService msgService = (MessageService)getDestination().getService();
    msgService.pushMessageToClients(newMessage, true);
    return null;

    i want compare the msg in invoke method but it is not taking what i published in flex it taking some other data like this

    message——–Flex Message (flex.messaging.messages.AsyncMessage)
    clientId = 2648E184-810D-494A-08CF-B8B0BAB10C99
    correlationId = null
    destination = BlazeDsServicePush
    messageId = 266A6A61-1D0C-4E49-01DC-C352B839495E
    timestamp = 0
    timeToLive = 0
    body = [com.codeofdoom.Person@1a1ff9, com.codeofdoom.Person@12943ac, com.codeofdoom.Person@19ed7e, com.codeofdoom.Person@3727c5, com.codeofdoom.Person@1140709]
    Adapter sending message
    message——–Flex Message (flex.messaging.messages.AsyncMessage)
    clientId = 2648E184-810D-494A-08CF-B8B0BAB10C99
    correlationId = null
    destination = BlazeDsServicePush
    messageId = 266A9A10-2509-4F0F-6609-00A73D3053A5
    timestamp = 0
    timeToLive = 0
    body = [com.codeofdoom.Person@1f95165, com.codeofdoom.Person@14ed577

    can suggest some way to overcome this

  158. Raj says:


    I am having Jboss as my application Server and using Flex for my front end . Essentially I am to convert one legacy application into a Flex one . I am running into the problem
    a lot . In the Java Code of the application lot of application specific Parameters are stored in Request Object and Session Object .is there a way by which I can access HttpSession , HttpRequest object in Flex .
    In java if i do session.setAttribute(“userName”,xxx);
    how will i do session.getAttribute in my mxml .

  159. Nikhil says:

    Hi Sujit,
    First of all I have found your blog extremely helpful as I’m just starting off flex. As a part of my project, I am required to upload an image from the client to the server and I’m using a servlet to handle this request. You might have guessed I’m using Java at the business tier. I found a tutorial using the FileReference object and it seemed to be very clear. The JSP code present in the comment section of that blog doesn’t seem to work whenI try to use a similar code in the doGet() method of my servlet.

    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    DiskFileItemFactory factory = new DiskFileItemFactory();
    ServletFileUpload upload = new ServletFileUpload(factory);
    List list = upload.parseRequest(request);
    for(FileItem items: list){
    File uploadedFile = new File(“H:/”+items.getName());
    }catch(Exception e){


    This is just a test program but it doesn’t seem to be working. When i submit the file for uploading on the flex front end, it continuously says ‘waiting for localhost’ (I have verified the URL of the servlet and the one mentioned in the URLRequest). When I directly try running my servlet on the server, I get a classNotFoundException for FileItemFactory even though I have imported it.

    Do you know why this is happening or If i can do this in an easier way without using BlazeDS?

    Your suggestions would be valuable.



  160. Chandu says:

    Hi Sujith,

    I would like to send XML data from a remoting service to my flex client. How Can I achieve that ? Can i send an XML string and how do I create XML using that string on the client side ?

    Any help will be appreciated.


  161. Hi Iresh,

    For configuring your services-config.xml to your Flex project you just have to add -services “\services-config.xml” to your compiler arguments

    Please find developer documentation for Cairngorm at this URL
    You will find sample at this URL

    Hope this helps.

  162. Hi Raj,

    Instead of setting the objects in the session or the request, you can send those objects to Flex application from your Java classes. Please find details on how to invoke Java methods from Flex application at the URL below.

    Hope this helps.

  163. Raj says:

    Thanks Sujith. Well I did anyalyze this option , but Since i am a newbie I always thought there must be a straight forward way to store session .
    The problem is I have a jsp page which calls a Controller
    login method on failure it redirects to a page and sucess it redirects to different page . It is not structs completely but still works on the similar concept of Structs .I use Java Page Flow.

    I had written the first login.jsp —-> login.mxml
    login.xmlml Parts of Code where I have issues.


    private function validateForm(evt:MouseEvent):void {
    –call registrationRequest.send();

    I have two functions handleResult and handleFault. This is where my main question is .

    This is my Controller method
    method login(
    @Jpf.Action(forwards = { @Jpf.Forward(name = “success”, path = “MainV2.jsp”), @Jpf.Forward(name=”retry”, path = “welcome.jsp”) })
    public Forward login(Controller.loginForm form) {
    Forward forward;
    call db validtor
    return forward(sucess)
    session.setAttrinute(“errorMessage”, “error message from db”);
    return forward(failure)

    Now I dont know what is the problem , no matter what if there is no exception also , i get debug messages in the handle fault method of MXML . I dont hit the handle result case .

    I am not sure why ? How would i handle this if sucess redirect to different mxml , error show message from db .

    I would apprectiate if you point me to some example .

    2. Second question . I have two list boxes in my MXML . I want to add , add all , remove , remove all the values from the two list boxes . Is there any example for that too .



  164. Hi Chandu,

    org.w3c.dom.Document objects from Java are converted to XML class type by default. You can also send String from Java and convert that to XML using XML(yourXmlString)

    Hope this helps.

  165. Hi Nikhil,

    Try doPost method in your Servlet.

    Hope this helps

  166. Hi Raj,

    You don’t have access to session or request on Flash. You will have to write code on your server which will get the data for you. How exactly is the flow? Are you using Struts?

  167. Raj says:

    Thanks . Sujith , I am not using Struts . I use Java Page Flow, which is similar to Struts . Now that we don’t have session or request objects on the session, I have to change the whole JSP to Flash is alot of work.

  168. Mike says:

    Hi Sujit Reddy, sorry but I don’t speak english. I have a question…
    it’s posible retrieve data from a database on MySQL to application in Flex with LCDS and Data Management Services, but without having a flex client that notify all other clients… ie, that LCDS verify the changes in the database it automatically, by example if you enter data in the database from the console of mysql, that Flex LCDS detect changes and update the view in client Flex with Data Management Service, not AMFPolling.

  169. Ashok says:

    Hi Suji..
    This is Ashok.. Am download your gmail contact retrieve project.. your project only run in AIR.. but am convert into web browser .. am not able to retrieve gmail contacts.. please give IDEA for me..

  170. Ashok says:

    Hi Suji..
    This is Ashok.. Am download your gmail contact retrieve project.. your project only run in AIR.. but am convert into web browser .. am not able to retrieve gmail contacts.. please give IDEA for me.. What can i do..

  171. selva says:

    hi sujit,

    I face the below problem in module loading using module loader. Can u please suggest me where I might be wrong.
    Thanx in deed.

    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.containers::Panel/layoutChrome()
    at mx.core::Container/updateDisplayList()
    at mx.containers::Panel/updateDisplayList()
    at mx.core::UIComponent/validateDisplayList()
    at mx.core::Container/validateDisplayList()
    at mx.managers::LayoutManager/validateDisplayList()
    at mx.managers::LayoutManager/doPhasedInstantiation()
    at Function/
    at mx.core::UIComponent/callLaterDispatcher2()
    at mx.core::UIComponent/callLaterDispatcher()

  172. selva says:

    Can you please say whats the key difference between these three classes



  173. Vasu Reddy says:

    hi Sujit,

    i am trying to create Flex portlets in RAD and configure it in WebSphere Portal Server 6.0.

    1) know how to create jsp portlet in Portal Server, to create Flex portlet is there a need of FlexPlugin in RAD as per these below PDF

    Click to access portal_update_lcds261.pdf

    uses FlexTagLib in jsp.

    2) how to configure Flex Portlet in Portal Server with BlazeDS to invoke Java method using Remote Object…..this is much different than BlazeDS with tomcat.

    may be if BlazeDS is configured properly in PortalServer than Flex can invoke Java method same as in tomcat.

    please reply soon.

  174. Shilpa says:

    Hi Sujit,
    could you tell me how to bind datepicker with datagrid in blazeds.

  175. Shilpa says:

    Hi Sujit,
    could you tell me how to bind datefield with datagrid in blazeds.

  176. Chandu says:

    Hi Sujith,

    Can provide a simple example of writing and dispatching custom events in AS3.


  177. Prakash says:

    Hi Sujit, I need to send an ActionScript object to servlet and return the object in CSV format. Could you please share some sample code how to pass the AS object to servlet and how to receive the AS object in servlet?

  178. Ravi Gummadi says:

    Hi Sujit,

    I vaguely remembering some real AVM level tutorial pdfs long back (Jan 2007). I was searching for them offlate and couldnt find them. They deal with the memory managmeent model of Flex and 3 frame execution of Flex application. Do you have any idea where they are found? And also I am looking at indepth discussion of Flex/Flash rendering mechanism and memory model (Threading and event based). Plz do let me know if you have come cross them.
    Thank you


  179. celine says:

    hi Sujit,

    I want to create and save a folder in my machine using a flex application, can i do this with SharedObjects?

    Thank you

  180. Jzy says:

    I have a problem using BlazeDS. I have a big application in Flex using remoting with BlazeDS. That’s works fine but my messagebroker crashes sometimes when my application is running and after that, calls to BlazeDS don’t works anymore.
    It happens after many calls (sometimes 200, sometimes more than 1000…).
    I tried to use many channels instead of only one, no result.

    Is it a limitation of Blaze? Thanks.

  181. Hi Mike,

    Check out the article at the URL below.

    Hope this helps.

  182. Hi Ashok,

    Yes, that might not work in web application cause, Google doesn’t have a crossdomain file defined.

    Hope this helps.

  183. Hi Selva,

    Looks like some property is null, can you please share code to reproduce this?

  184. Hi Vasu,

    Never tried this, but configuring BlazeDS properly and making sure your Flex based portlet is sending request to BlazeDS will get it working. Please check out the articles at the URLs below.

    Hope this helps.

  185. Hi Shilpa,

    What exactly do you want to do? which property of DateField you want to bind to which property of DataGrid. Can you please explain.

  186. Mike says:

    Hi Sujit, thanks that’s what I needed: D in fact was doing well, but the problem is not within the class by invoking the server. thanks ๐Ÿ˜€

  187. Hi Chandu,

    var e:Event = new Event(“EventType”);

    Hope this helps.

  188. Hi Jzy,

    Sharing error messages from the Flex application or from the server logs will help in finding out what might be going wrong.

  189. Nidhi says:

    Hi Sujit,

    I am trying to pass the elements of my dynamic list from Flex to JSP..
    Can you tell me how can that be done?

  190. Hi Nidhi,

    Please try sending them as comma separated values or key value pairs using HTTPService.

    Hope this helps.

  191. selva says:

    hi sujit,

    Im using the resourceManager.loadResourceModule(resourceModuleURL); to load my messages property files in my main application . Also Im using modules in my application.
    In the modules Iam not using this below tag


    But still my application is loading correctly the messages from the file.If so Whats the purpose of this metadata tag.

    10x in deed. Can u please make clear that.

  192. Nidhi says:

    Hi Sujit,

    Thanks.. That helped.. ๐Ÿ™‚

  193. Nidhi says:

    Hi Sujit,

    Is it possible to read from a DataGrid if it is empty? If yes, then how? .. I tried using many ways but it doesn’t run.

  194. Ragvendra says:

    IE7 with https under cross domain throws the following error: Security error accessing url” faultCode=”Channel.Security.Error” . A link identified this issue as a IE bug that can be circumvented by using one of the following http header parameters:
    Cache-Control: no-store
    Cache-Control: no-store, must-revalidate
    Cache-Control: no-store, must-revalidate, max-age=0
    Cache-Control: must-revalidate
    Cache-Control: max-age=0

    Do you have any insight?

  195. Vasu Reddy says:

    Hi Sujit,

    1) I had made portal project in RAD, by using simple “Hello” Flex application (i.e. used generated swf file ) able to view flex application properly in portal server.
    2) if i will use RemoteObject tag in Flex application, made MessageBrokerServlet entry in web.xml for rmi connection. In same project created java class and made corresponding entry in remote-config.xml.

    My Question
    1)By refering to swf file in jsp through WebSphere Portal Server it is possible to invoke JavaObject using RMI?, if both are deployed on same war file.
    2)while creating Flex project where should i point to i.e. Root folder, Root Url, Context Root. because i am using WebSphere Portal Server.

    In “creating Blaze channel at runtime”, i think it talk about without making entries in remoting-config.xml should be configured in Flex application.

    thanks in advance.

  196. Doug says:

    Hi Sujit, this is a very useful website. Question:

    We are trying to slowly integrate Flex 3 into an existing web app. We plan on adding the Flex client into iFrames where appropriate. The problem that I’m addressing is how to integrate a mixed J2EE/Flex client into a single web app on the server. For the Blaze side we want to hit java classes via destinations.

    The web.xml file contains a which forwards to a .jsp login form (we’re using FORM auth-method). When the BlazeDS url-mapping is added to security-constraints any RemoteObject calls will hit this login-config servlet. That’s OK. We know it’s requesting the Blaze servlet and can try to respond accordingly (i.e. not returning the HTML logon form).

    I tried returning an AMF3 object back to the client (a string that said “noAuth”) but the Flex client had no clue and spewed a “BadVersion” error. I was hoping to have the client recognize some kinda specific String/error so that it could prompt the client to logon (say, in the event of a session timeout while in the Flex portion of our app). I also prefer to avoid creating my authentication via Blaze as both my J2EE client and Flex app are sharing the same session and thus the same timeouts and other settings.

    This seems like a good strategy but I just can’t figure-out how to make it apply. If this isn’t a good strategy do you have any suggestions given this issue? Certainly we can’t be the only Java shop trying to slowly migrate Flex into our web applications. Thanks.


  197. Chandu says:

    Hi Sujith,

    My task is as follows ,

    a) I have an AdvancedDataGrid , I have to render icons and label coming from the server . icon data from server comes as byte array. So I created a an image render which has an HBox and to the HBox I added an Image class and a Label Object. I am able to see icon and text as expected,
    now when the user clicks on the cell, I wanted a ComboBox to drop down with choices which again should show the icon and text.

    b) so I created a new class extending ComboBox and I created another image renderer , which is the ItemRenderer for the ComboBox. The dataProvider is an Array of Strings, In the image render based on the “data” property I set the Image and Label in t he renderer

    c) now I set the itemEditor as the above custom ComboBox

    All the above works fine to a certain extent. However when ever I click the Cell the cell changes to a DropDown List and starts showing the “string” from the Array which was the data provider for the ComboBox. and when I click cell again the DropDown List opens and I see the Icons and Text, I want to avoid showing the “text” part when I just click the cell

    Hope I was able to explain clearly.. if you have an exmaple or a refernce to some material on how I can achieve this I will be gratefull


  198. Christophe says:


    We are trying to build a high definition PDF (300 dpi, for book printing) from pages designed in a FLEX tool ( like

    The flash is included in a web site written in Java/J2EE, so the PDF generation will take place on the Java server (based on a description of the pages sent by the flex tool with BlazeDS

    We need 300 dpi definition and the ability to build the PDF without any template (since the user will be able to change the layout of the pages he wants to print : the description sent by the flash tool includes the location, orientation and source of all the elements in each page).

    From what we have seen up to now, the lack of a template can be difficult to handle with java libraries.

    Any idea how such a PDF can be built in Java ? Or lacking that, with other languages (such as PHP) which could be added on the server side.

    Thanks for your help.

  199. Sharath says:

    Hi sujith,

    How to open a browser window from air application. for me its showing sandbox exception.

    SecurityError: Error #2121: Security sandbox violation: navigateToURL: app:/demo.swf cannot access about:blank. This may be worked around by calling Security.allowDomain.

    i need to open all http,https ….


  200. Hi Nidhi,

    access the dataProvider property of the DataGrid.

  201. Hi Ragvendra,

    I think this is a IE bug and this solution should help.

  202. Karunya says:

    Hi Sujit,

    I have been trying to setup Custom wrapper in JSP for my flex application so I can get some header variables. But I am getting errors in passing the Flash Vars. Can you please recommend best way to do this.


  203. dan says:

    Hi Sujit ,

    Below is a very simple Flex app. containing the main screen with a Button (main.mxml) and a Form-based component , located under src/components .
    I would like to know how to use the Button to display the Form component when clicking on it ; the method that i added to the button is : click=โ€showForm()โ€ .

    Thank you very much



  204. dan says:

    Hi Sujit,
    It seems my previous post is incomplete … I’ll try again .


    mx:Button x=”246″ y=”242″ label=”Button” click=”showForm()”


    … etc

  205. Rajan says:

    Hi Sujit,

    I want to appreciate the time you put into replying to the blogs queries. It is tremendous..
    I am using LCDS. In API docs, ServerConfig class xml property should hold all the detinations which are present in the services-config.xml file.

    In my services-config.xml file. i am doing something like below

    but when i access the Services.xml property on creationcomplete. i notice that some of my destinations are missing from the file remoting-config.xml. Due to which i am getting the error from the method

    private static function getDestinationConfig(destinationId:String):XML

    Can you please show me some pointers..


  206. Rajan says:

    Hi Sujit,

    I want to appreciate the time you put into replying to the blogs queries. It is tremendous..
    I am using LCDS. In API docs, ServerConfig class xml property should hold all the detinations which are present in the services-config.xml file.

    In my services-config.xml file. i am doing something like below

    service-include file-path=”remoting-config.xml”
    service-include file-path=”proxy-config.xml”
    service-include file-path=”messaging-config.xml”

    but when i access the Services.xml property on creationcomplete. i notice that some of my destinations are missing from the file remoting-config.xml. Due to which i am getting the error from the method

    private static function getDestinationConfig(destinationId:String):XML

    Can you please show me some pointers..


  207. Dhanya says:

    hi sujit.
    From mxml application remote object method working properly
    but RemoteObject error when calling from within a Module
    is it possible or not?
    can you give me some clarification reagrding this

  208. Mike says:

    Hey Sujit,

    First of all, thanks in advance for any help you could bring to me. I really appreciate your time on this.
    Now, I’m working with Charts, right now I’m facing the problem, of the label on the chart. By request of my client, he is asking me to solve the issue that comes up when the label it’s too big, and the graphic (BarSerie) too short, so then the label appears as “…” ok, yes we do have the tooltip, but those graphics are also exported as PDF files, and the requiere to have the graphic information on the report, so I thought that might be a way to specify dinamically to the BarSerie the labelLocation property.
    My problem is that I’m not really a Flex programmer, I had been focused on Java but the client asked me to create this project as this interaction Flex + Java + Oracle. So…

    Do you thinks is there a way to create that dynamic position?

    Also, on the same project and as a plus of the strategy… And taking the advantage of your knowledge, I’m exporting to PDF and Excel, but right now I’m using a JSP page to call the interaction to the exportation. So the way I’m exporting to PDF is using AlivePDF, no problem there, because that API allows me to add images, so there I add the chart object. The problem comes up, when I’m trying to export an image to the Excel file.
    I just started to read about as3xls project on googlecode. But if you have some sample that I can use, would be wonderful!

    Once again, thanks and thanks and thanks in advance.
    I’ll be waiting on your answers!!
    Have a gr8 day!


  209. Suman says:

    Hi Sujit,

    I am new to blazeds, I have few concerns regarding multithreading in the context of remote objects. Currently, who takes care of the mutl threading issues (like those handled by tomcat servlet contaier),when the destination invokes the java object through the adapter for the given destination?

  210. Jayakumar says:

    Hello Sujith,
    Hope you remember me . Could you please help me on export to excel functionality. How will i export a datagrid to an excel?

    Jayakumar Aravind

  211. kirat says:

    Hello Sujith,

    I am facing problems in Adobe Air Version..I had AIR 1.0 ,I have updated it to 1.5.1 but still its installed in the folder 1.0.
    When i create a new Flex project it shows Adobe version 1.0 is used.
    My major concern is i want to use Text layout Framewok and it minimum requirement is 1.5.
    Please reply ASAP.

  212. Shyam says:

    Hi Sujith,
    I am using Blazeds-Tomcat Integrated version.Whenever I run my flex application it creates a new session for Blazeds in Tomcat.The number of sessions for Blazeds is not increasing above 22 (seen in the Tomcat Manager).If I run my application for the 23rd time , my application says it is out of memory.
    Can u suggest a solution for increasing the number of sessions ?

    Thanks in advance and awaiting your reply at the earliest,

    Shyam Sundar.A

  213. Neeraj says:

    Please send me link to download blazedsMonster

  214. Bindu says:

    Hi Sujit,

    Iam new to Flex. Iam exploring Flex and Blaze DS capabilities. My requirement is like this.

    I have my Plain Java Object in Server A and flex application deployed in Server B. And I need to invoke Java Object running on Server A from flex client application which is deployed on Server B. Is this possible to do with BlazeDS web application.

  215. Hector says:

    Please note that retrieving data from db via the same code works perfectly fine….

    Need some help!!! Yes, some stuff is missing, but i can added if need be to be assisted. clarity and making sure i didn’t overload the page was the reason for not including everything….

    thx in advance….

    My Error is:
    [RPC Fault faultString=”Channel disconnected” faultCode=”Client.Error.DeliveryInDoubt” faultDetail=”Channel disconnected before an acknowledgement was received”]
    Here is my Code:
    VO – PHP

    VO – AS3

    package org.olg
    public class VOContact
    public var $contactyear:uint;
    public var $contactmonth:String;
    public var $contactgender:String;
    public var $contactlanguage:String;
    public var $contactparticipation:String;
    public var $contactlastname:String;
    public var $contactfirstname:String;
    public var $contactaddress:String;
    public var $contactcity:String;
    public var $contactstate:String;
    public var $contactzipcode:String;
    public var $contacthomephone:String;
    public var $contactworkphone:String;
    public var $contactmobilephone:String;
    public var $contactemail:String;
    public var $ontactotheremail:String;
    public var $contactparish:String;


    public function putData($contact)
    if ($contact == NULL)
    return NULL;
    //connect to the database.
    //save changes
    $query = sprintf(โ€INSERT INTO contactstable	(contactyear,
    contactparish) VALUES (
    $result = mysql_query($query);
    return NULL;


    private var contact:Object = โ€œโ€;
    private function groupContact():void
    contact = {contactyear:yearTextInput.text,
    private function putDataListner(event:ResultEvent):void
    {โ€The data was saved!โ€);

    Ok…. so i have narrowed it down to this:

    1. my variable data does get recognized through the “tunnel”, Flex debug says so
    2. I am able to insert “something” garbage into the db
    3. i need to find out what is the correct string for the insert syntax with flex, zendamf and php
    4. the data that the db gets is:
    depending on my db schema i get more or less characters


    What is the correct syntax for the $query = sprintf(” blah ?????

    public function putData($contact)
    			if ($contact == NULL)
    				return NULL;
    			//connect to the database.
    			//save changes
    			$query = sprintf("INSERT INTO contactstable VALUES (NULL, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
    			$result = mysql_query($query);
    			return NULL;
  216. Ganesh says:

    Hello Sir,

    I am new to flex technology. I am developing a web application using struts.
    I have some difficulty in using flex as front end.

    I am trying to use the menu bar. I am able to create the menu bar but i dont know how to show the corresponding page(not url) on click of item.

    Also please advise me, is it possible to hide the components such as panel and other components and they should be shown on particular event occurance.

    Please help me
    Thank you

  217. Ganesh says:

    Hello Sir,

    small correction in the previous post.

    Hello Sir,

    I am new to flex technology. I am developing a web application using struts.
    I have some difficulty in using flex as front end.

    I am trying to use the menu bar. I am able to create the menu bar but i dont know how to show the corresponding page(not alert message) on click of item.

    Also please advise me, is it possible to hide the components such as panel and other components and they should be shown on particular event occurance.

    Please help me
    Thank you

  218. Mona says:

    Hi Sujith,

    I found lot of useful posts in your blog. I am looking for some help in developing a Flex Project.
    Here’s my requirement:
    Dashboard needs to be displayed with the data from MySql database which gets updated every 10 min. That dashboard charts have to be refreshed every 10 min. Please suggest me how to start this project. Any hints/sample code is highly appreciated.


  219. Mona says:


    I am planning to use Java as backend and JBoss server to deploy my application. Step by step walk through will be very helpful. Looking forward for your reply.


  220. Hi Ganesh,

    Please check the visible property of the Flex controls and modules in Flex.

  221. Hi Mona,

    Couple of options

    1. Data Management feature in LCDS has this and more implemented. If you can use LCDS, then go for it.
    2. Have a timer and send request to the server to get data the modified data
    3. Use one of the polling channels in BlazeDS Messaging service and get the modified data

    Useful articles

    Hope this helps.

  222. Prachi says:

    Hi Sujit,

    How can i put blazeDs, My SQL and flex together.
    Is there any way?

    Please help


  223. Hi Prachi,

    You should have a Java class, which communicates with MySQL. Flex should communicate with Java class using Remoting in BlazeDS. Please check the articles in the URL below.

    Hope this helps.

  224. Mona says:

    Hi Sujith,

    Thanks for the reply. I am unable to configure JBoss server as target runtime in Flex Builder.
    I am getting this error:
    Missing classpath entry \your_server_root\appservers\jboss\bin\run.jar

    I have seen a lot of posts similar to this error but could not find a solution.


  225. Mona says:


    A simple application demonstrating interaction between Flex, Java and MySQL would be very helpful. Please post if you have such applications.


  226. Prachi says:

    i have tried using java class for connecting blazeds to mySQL but still faing the problem,
    Can you pelase put together a simple app which demonstrates interaction between Flex, Java and MySQL . It will be really very helpful

  227. Phil says:

    Will your Blazemonster utility work with LCDS as well? Thanks.

  228. Phil says:

    Have you used Blazemonster with the Swiz framework? If so can you write a blog entry indicating how the two work together? This would seem to be a very time-saving combination but I’m not yet sure how it would work, being new to Flex.

  229. Mahesh says:

    Is there a way to display PDF in a Flex Web App like the PDFs displayed in… We don want to use iFrames. Pleae reply….

  230. Srinivas Reddy says:

    Hi Sujit,

    In Flex , Is it possible to mashup other site components ie gagdets in my flex program (or in Accordion).
    It can be like news/ chat / currency codes/ Exchange rates etc).

    If possible point to me links available with example (flex examples).

    Thanks in Advance,


  231. Nilesh says:

    HI Sujit,

    Have posted one query on usergroup. Can you quickily take a look and provide your input ?
    It is about using HTTPService to send POST request to https URL

    Thanks ,

  232. Kamal says:

    Hi Sujit,

    Could explain me the clear picture of life Cycle methods of a application as well as child creation process with an examle???

  233. Kamal says:

    Hi Sujit,

    Could explain me the clear picture of life Cycle methods of a application as well as child creation process with an example???

  234. Hi Phil,

    Yes it will work, please let me know if you face any problem.


  235. Hi Mahesh,

    I don’t this is possible as of now.

    Hope this helps.

  236. Hi Srinivas,

    It is definitely possible, just consume the services you want using WebService or HTTPService components and display them in your Flex application.

    Hope this helps.

  237. tobi says:

    Hi Sujit,

    I want to create a page with Adobe Flex where few user can login in a same session.
    For example to chat or to see each other via webcam.
    How can I realize this?
    The page is already working, but every user have an other session…

    Can you give me a hint?

    best regars


  238. Idan says:

    Hi Sujith,

    I am trying to run example using flex 4 and blazeds.
    I am receiving error when I press the button:

    [MessagingError message=’Destination ‘CreatingRpc’ either does not exist or the destination has no channels defined (and the application does not define any default channels.)’]

    What is the source for this problem ?
    How can it be debug ?


  239. Rahul says:

    Hi Sujit,

    I am using the Google Calendar API created by you. I am facing two problems while using that:
    1. Firstly if I try to delete an event I get this error:

    ArgumentError: Error #2008: Parameter method must be one of the accepted values.

    Debugging the error gave me some idea that it was coming at:
    urlRequest.method = “DELETE”;
    Any idea on how to rectify it?

    2. Second error is when I try to get events between a given date range. The problem is that the date gets converted to UTC format in ur API and if I try to get events for a single day, i get in result for 2 days.

    Would appreciate if you could help me out..


  240. chary says:

    Hi Sujit!
    I wish you will answer my question.

    Iam doing project which use combine Flex, Stomp, ActiveMQ. How can I send message from Flex client to topic of ActiveMQ. I import as3-stomp before. What do I must import packages more?


    – chary –

  241. Jose says:

    Hello to all

  242. Jose says:


  243. qnaguru says:

    Hi Sujit…

    i keep getting this error in LCDS…

    “HttpSession to FlexSession map not created in message broker”

    I have clustered my LCDS Server(on TomcatB) with another Tomcat Server(TomcatA).

    What am i doing wrong…


  244. Lalit says:

    Hi Sujit,

    I want to integrate Flex and BlazeDS with my Struts framework using remote object.
    I am able to get the parameters from Flex client to my remote method as arguments.
    But I was earlier using forms to get these parameters and used that form object at many places to update my application.How can these be achieved in Flex ?
    It would be of great help if you could reply with a sample application integrating Struts with Flex and BlazeDS.

    Thanks in advance,

  245. kanti says:

    I want to integrate mathmleditor in flex application,
    i have seen the google code which uses javascript and html and mylib.swc. I tried the same code alongwith the swf file and loaded the same swf as a url

  246. Richard says:


    I just want to ask if its possible to create xml file and save the data in my form in flex or air?

  247. Sachin Sharma says:

    Hi Sujit,

    Please can you tell me how i can access Java methods from Adobe Air Appilcation?

  248. Prashanth says:

    Hi Sujit,

    As per my understanding ,Flex is not supporting Map DataType(HashMap/Map). So i wrote the below class to use Map in my application.

    The problem i am facing with doing this is, I am not able to bind my map with the ‘currentState’ property of a “Canvas”. The Class which i have written extends the ArrayCollection but still i am facing issues with binding.

    My Map class which extends ArrayCollection:

    package com.util
    import mx.collections.ArrayCollection;

    public class Map extends ArrayCollection
    private var keyNames:Object = new Object();
    public function Map()
    public function put(key:String,value:Object):void
    keyNames[key] = this.length;
    public function getValue(key:String):Object
    return getItemAt(keyNames[key]);

    My MXML:

    It would be of great help to me, if you could post a solution.



  249. Vimal says:

    Hi Sujit,
    Thanks for all the great postings.
    Could you please provide an example for Data Paging in Fash Builder4 with Java?


  250. Idan says:


    I am trying to load a file that is locally on my computer.
    I am receiving the following error:
    SecurityError: Error #2148: SWF file http://localhost:8400/blazeds/MyApp-debug/MyApp.swf cannot access local resource file:///C://flex.txt. Only local-with-filesystem and trusted local SWF files may access local resources.

    I try to add to add to the compiler the option of -use-network=false but it didn’t help.

    I am using flex 4.
    I also add the the file and directory to the trusted list.

    can you help with that ?


  251. Tobias says:

    Dear Sujit,

    I have created a RIA using Flex 3 and WebORB PHP. It successfully runs on MAMP on Mac using the localhost. But how the heck do I deploy this to my hosted website? There’s nothing to be found on how to setup WebORB PHP on a hosted website. Could you give me some hints regarding this issue? Btw, I am using the Community Edition. I would be very glad.

  252. cham says:

    Hi Sujit,

    I am using flex 3 and blazeds for web application development. I have following questions and any help is appreciated.
    1. Do we have to do any session handling in flex based web app?
    2. Can you please explain how to handle the server session expire event in client side and display login page?


  253. kanti says:

    i have actionscript classes to parse mathml but i dont know how to access them using html and javascript. I want to send xml data and want to get parsed mathequation.please help.

  254. Pooja Gupta says:

    Hi Sujit,

    I want to create a simple application which would require a database at the backend. I am using Flex Builder 3 to make the application. Can you please suggest a light backend database for this. Is it possible to use MS Access.

    Thanks in Advance.


  255. Rao says:

    Hello Sujith,

    I need help from you on LCDS, I have installed LCDS ES2 Version 3 Beta and i have flex SDK 3.4.0 and using Flex Builder 3.

    My problem is same as the one posted by Laurie_Hall here

    While creating new flex project if i point the Root folder to <>/lcds-sample/ (I have appropriate destinations configured in data-management-config.xml) i am able to get the data from my owm backend. If i point the Root folder to <>// i am getting “No destination….” error eventhough i have proper destination configured.

    Thanks in Advance,

  256. Rao says:

    Hello Sujith,

    I need help from you on LCDS, I have installed LCDS ES2 Version 3 Beta and i have flex SDK 3.4.0 and using Flex Builder 3.

    My problem is same as the one posted by Laurie_Hall here

    While creating new flex project if i point the Root folder to -app root-/lcds-sample/ (I have appropriate destinations configured in data-management-config.xml) i am able to get the data from my owm backend. If i point the Root folder to -app root-/myapplication/ i am getting “No destination….” error eventhough i have proper destination configured.

    Thanks in Advance,

  257. Ravi says:

    Hi Sujit,

    I need help from you regarding server console printing. As I am using blazeds for remote call for server side java classes. Everything is working fine. I have deployed my application on JBOSS server. Whenever I use to call remote classes there are few thing that is getting printed on server console. I have checked in my application that if I am using any system.out.println inside java class. But that is also not the case. I want to stop printing of those information on server console. Please help me regarding this.

    Thanks in advance,

  258. Purnima Sriram says:

    Hi ,
    Iam having problem with my application. Iam connecting flex to struts to mysql. It is hanging in between after 3-4 records are added into the database. Iam not able to understand whether it is java problem or tomcat problem or flex problem pls do help me in this regard. waiting for your reply. You can send it to my personal mail id too.
    pls its urgent.

  259. Raja says:

    Hi,Iam need information on FLEX HTTP request.
    I dont want to hard code URL in .
    So iam configuring in proxy-config.xml file.
    Iam unable to communicate with this file.Iam using Blaze ds.
    Let me know if u have any ideas

  260. Raja says:

    MessagingError message=’Destination ‘ProxyRequest’ either does not exist or the destination has no channels defined (and the application does not define any default channels.)’]” faultCode=”InvokeFailed” faultDetail=”Couldn’t establish a connection to ‘ProxyRequest’

    Getting this error…

  261. Raja says:

    Hi, Iam using Blazeds with Tomcat.
    Making a Http service request from Flex client

    I have configured destination in proxy-config.xml file.


    Error iam getting on submit is :[RPC Fault faultString=”[MessagingError message=’Destination ‘ProxyRequest’ either does not exist or the destination has no channels defined (and the application does not define any default channels.)’]” faultCode=”InvokeFailed” faultDetail=”Couldn’t establish a connection to ‘ProxyRequest'”]
    at mx.rpc::AbstractInvoker/[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\]
    at mx.rpc.http.mxml::HTTPService/[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\http\mxml\]
    at mx.rpc.http::HTTPService/send()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\http\]
    at mx.rpc.http.mxml::HTTPService/send()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\http\mxml\]
    at FlexHttpServiceDemo/___FlexHttpServiceDemo_Button1_click()[E:\home\isms\eclipseWorkSpace\FlexHttpServiceDemo\src\FlexHttpServiceDemo.mxml:24]

  262. Hi Tobi,

    You can try Messaging service BlazeDS/LCDS or try one of the below

    Hope this helps.

  263. Hi ishai,

    This might because either the destination doesn’t have any channel defined or Flex application is not recompiled after configuring the channel. You can check the channel used by the RemoteObject by just putting a break point and watching the RemoteObject instance variable.

    Hope this helps.

  264. Hi Rahul,

    Which Flex SDK are you using ?

  265. Hi Jose,

    Whats the message you are getting ?

  266. Hi Richard,

    Yes, definitely. Please see if this article helps

  267. Hi Prashanth,

    Did you send out same question to Vyshak ? If yes, I replied to your email.

    Hope that helped.

  268. Hi Vimal,

    I will try posting that. But its same as PHP except that the code on the server is written in Java. Please try and see if you can get that working.

  269. Hi ishai,

    Please change the output folder/ launch URL to launch it from local system rather than from the server. swf loaded from a server cannot access local file system.

  270. Hi Tobias,

    You should be changing the endpoint URLs in your services-config.xml file to point to your hosted website and the Flex application has to be recompiled with the updated services-config.xml configuration file. That change should be sufficient to deploy.

    Hope this helps.

  271. Hi Cham,

    You can find details on how to manage session using Remoting at this URL

    Incase of session expiring, you should be writing code which will check if the session has expired and let your Flex application know about that. You can also handle the same on the client. Please find details at this URL

    Hope this helps

  272. Hi Pooja,

    You can use database of your choice as long as there are driver to communicate with the database. I would use chose MySQL over MS Access ๐Ÿ™‚

    Hope this helps.

  273. Hi Rao,

    Can you please share the data-management-config.xml and the web.xml. If you can also share the Flash Builder error logs that will help. Thanks.

  274. Hi Ravi,

    Please change the log settings in services-config.xml

    Hope this helps.

  275. Hi Raja,

    Where is this proxy-config.xml file ?

  276. Hi Raja,

    Please make sure you have recompiled your Flex application after changing proxy-config.xml file. Safe side, run clean command on your Flex project.

    Hope this helps.

  277. Raja says:

    I have been battling with this problem for the last few days so could really do with some help ๐Ÿ™‚
    I have a Flex3 app using Blazeds to recieve messages being pushed from a Web App on a Tomcat server – the app on the server is working fine and can see things working as I expect. I consistently get the error message “The Destination [“alarm-event-feed”]either does not exist or the destination has no channels defined” when I try to run the Flex3 app.
    I’ve attached the config files from the Tomcat server – can anyone help??

    Iam using flex http service with use proxy=true,destination = “destination”…

  278. Vijay says:

    Hi Sujit,

    I have gone through ur “Building Flex application for BlazeDS Remoting destinations using Flash Builder 4”. i have created destinations but still i am not able to see any destinations list in BlazeDS wizard(in DCD). i am able to access the destination using RemoteObject Call. Can u plz help me out

    And While connecting BlazeDS it is asking me tomcat Username and password if i give wrong password also it is allowing me to enter inside is there any prob in tomcat

    Vijay Kumar J

  279. Suman says:

    Iam working on Flex Spring Integration.
    In flex iam using Http Service.
    Please let me know the configuration for Application-config.xml file in Spring to work on FLEX-Spring Integration.

  280. Suresh says:

    Hi i am able to use php to access my locally created db and view the datas, but i have sql there in usa and now wanted to view the datas i.e bind the datas and see it.

    I am able to connect in xl using connect database and give the database name which looks like this\sql2005
    have username and password and know the table name

    if i use the\sql2005 in xl i am getting the query datas but if i do the same in flexbuilder4 it throws a error which says it could not connect no such host is known.. but the same is connected through xcel please help me…

    its through vpn network..

  281. David Saad says:

    We are looking at utsourcing the development of some RIA components. Can you recommend some of the top players in RIA and Flex development in India?

    Thank you


  282. Kaushal says:

    I am using the MessageBroker code to send a message from Java to the client. It works perfectly fine when the application and blazeds server run from the same tomcat instance but if i change the blazeds server the message sent from java is not received by the client. Any help would be fine.


  283. Hi Vijay,

    Can you please send me the remoting-config.xml file, screen shot of the of the destinations displaying window in FB4 and the FB4 error log. Regarding destination being accessible even if you enter wrong user name password, are you using custom or basic authentication? Also please make sure your authentication logic is fine.

    Hope this helps.

  284. Hi David,

    Please see if this link helps. If you cannot find any kindly let me know.

  285. Hi Kaushal,

    As long as your Java class sending the message and the BlazeDS are on the same tomcat instance this should be working. Can you please check if normal messaging using Flex application as the message producer is working fine.

  286. Idan says:


    Is it possible to have flex web application on server located in one place and have proxy servers located in different location(countries) so when user enter my url server he will get the data (if exists) from the local server and if not exists the local server will be update from the main server.
    In any case the main server is update with changes the client should be updated.

    If that possible how can I do that ?


  287. Vijay says:

    Hi Sujit
    I have some questions can u plz answers them ThankQ in advance

    1) When we are using RemoteObject then request will be sent in Binary format and while using HttpService or WebService request will be in xml format is it correct?.

    2) Is there any encryption and decryption method of request and response ?

    3) what is difference b/w Polling and Streaming in BlazeDS? is there any other type available?

    4) what concept comes under FDMS and Messaging Service.

    DataPush like producer, consumer and DataService comes under FDMS then what is Messaging Service?

    5) RPC Service is nothing but HttpService , WebService and RemoteObject is it true?

    I know how to use them but i what to know what happens internally.

    Plz help me out, i am getting conflict about this Questions.

  288. Vijay says:

    Hi Sujit

    I have some question can u plz answers them

    1) Is there any Encryption and Decryption technology will sending request/response from Server.

    2) RPC calls means RemoteObject, HttpService and WebService is it true?

    3) Genearlly they are FDMS and Messaging Service.

    FDMS is used for Serialization b/w Server and Client and b/w clients like Producer, consmer and DataService is i am write? then what are Messaging Service?

    4) if we are Using RemoteObject then request is send in format of AMF(Binary) and while using HTTPService or WebService request is send in xml format is i am Write?.

    Accourding BlazeDS AMF Channel send request in AMF (Binary) and HTTP Channel in XML is i am Write?.

    Plz Help me out in this conflict

    Vijay Kumar J

  289. Kaushal says:

    Hi Sujit,
    Flex application being the producer works perfectly fine with blazeds on a different server. Flex to Flex communication also works perfectly fine but java sending out the message, java does send out the message but we are unable to find where it is going or which client is receiving….

  290. Hi Sujit,

    I am working on Flex with Coldfusion. I am trying to get knowledge on LCDS/Blazeds. I have few doubts in my mind. It would be nice if u can help me please.

    1. I have used Flex Remoteobject to call Coldfusion CFC to Read/Update/Delete process on MS SQL Server DB for our application. I was not using LCDS. But now i am using LCDS and its charts says that LCDS has RemoteObject. What is the difference between the first RemoteObject and LCDS RemoteObject ?

    2. Is Messaging Service in LCDS and BlazeDs is Same ? Is BlazeDs is a subSet of LCDS ?

    3. I am trying a simple chat application with Producer/Consumer approach. But it is throwing error.

    “Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 405: url: ‘http://localhost/messagebroker/amfpolling”

    Content of messaging-config.xml



    Please help!!!!


  291. Ryan Lanman says:

    Hi Sujit,

    I am interested in using your BlazeMonster tool for its Java to AS capability. However, I can’t seem to find any license information about it. Can you please publish a page with license information about your projects? I love what you have done and the tool works great, but unfortunately I cannot proceed without knowing what type of license the project is under. Thanks!


  292. Hello Sujit, I attended the first day of your Flex boot camp at MA College of Engg,Kothamangalam,Kerala. I liked the FlashAhead web site vert much. But one thing I would like to know is about Search Engine Optimization (SEO) of Flex sites. Coz when I view the site source, it shows just an swf embedded and I think it don’t help from the SEO perspective. So can we do SEO with flex??

  293. Miguel Pinto says:


    I’m playing around with the zend framework (zf) and flash builder 4 (fb4), and I’m a bit lost, i read about the new features in the fb4 for connecting with data, so i configure a new zf project, with a virtual host (www.zf-fb4.test).
    I followed the structure recommended on the zf site having the library 1 level behind the public_html folder, create some controlers, default, admin, and service, the default launch the flex app, the admin is serving HTML and javascript, and the services is my messageBroker, where i start the Zend_Amf_Server.

    The problems came when i try setup the data services in fb4. i cant get to the services controller.

    In the URL i specify http://www.zf-fb4.test/services/amf
    where services is the name of the controller and amf is the Action where i start the Zend_amf_server, and use the addDirectory() function to specify the “services” folder under /application/services.
    but i cant get it to load the services in fb4.

    In the file field on fb4 data services wizard i select the index.php on public_html sence it reroutes the requests to the services controler, and amf action.

    But it doesn’t work, my objective is to use the all zf as a server platform, and flash(flex) on the client side for the front-end, and zf and xhtml+ajax on the backend.

    how can i do this? Can you give me some lights?


  294. cham says:

    Hi sujit,

    Thank you very much for your reply for my earlier post.Iโ€™m using flex 3, java, blazeds and spring framework for web application development.

    Iโ€™m handling session expire event in java side and flex side in following way.

    Iโ€™m setting a sessionId session attribute in flex session once user login to the system. It is done in a java class following way.

    FlexSession session= FlexContext.getFlexSession();
    session.setAttribute(“sessionId”, session.getId());

    Then in each remote call I’m checking the session id as in following code.
    if((session.getAttribute(“sessionId”)==null) || session.getAttribute(“sessionId”)!=session.getId()){
    throw new Exception(“no session”);

    If session attribute is null or stored session id is not equal to current session, exception is thrown.

    I’m catching this exception at flex client side within the fault result handler of remote object call and displaying the login page.

    public function userListFaultHandler(event:FaultEvent):void{
    if(event.fault.faultString==”no session”){
    //shows the login page

    Can you see any issues or cons in this approach?


  295. ilikeflex says:


    I am using the blazeds server. I have created the destination and i am able to recieve the messages.

    The issue i am facing is that i have my java program which keep sending the messages to the blazeds server. At this point i have no client(browser) to consume the messages.So all the messages are accumulated at blazeds. At one point there are so many messages that my weblogic server goes out of memmory. So my question is how to destroy those messages which are not consume. I am using the tag but this does not seem to work. Please see the configuration below.

    Snippet of Java program:
    AsyncMessage msg = new AsyncMessage();
    catch(JMSException e)

    MessageBroker.getMessageBroker(null).routeMessageToService(msg, null);


    <!– –>










    Any pointers are highly appreciated.


  296. ilikeflex says:

    Doing repost…

    I am using the blazeds server. I have created the destination and i am able to recieve the messages.

    The issue i am facing is that i have my java program which keep sending the messages to the blazeds server. At this point i have no client(browser) to consume the messages.So all the messages are accumulated at blazeds. At one point there are so many messages that my weblogic server goes out of memmory. So my question is how to destroy those messages which are not consume. I am using the message-time-to-live in the desination properties tag but this does not seem to work. Please see the configuration below.

    Snippet of Java program:
    AsyncMessage msg = new AsyncMessage();
    catch(JMSException e)

    MessageBroker.getMessageBroker(null).routeMessageToService(msg, null);

    and i am amf poling to get the messages.


  297. John says:

    Thank you so much for your excellent work and support. I recently decided to take out WebORB and replace it with BlazeDS and BlazeMonster-generated code. I’m under the gun for a demo to sell Flex to my management.

    I noticed that with BlazeDS/Monster-generated code, all collections are ArrayCollections, rather than Arrays by default with WebORB. I have a complex (deeply nested and circular) object model and I need to fetch large record sets to the client. When I switched to the Blaze solution, I noticed a considerable slow down in performance.

    My questions is, can I make Blaze send only Arrays (and make the corresponding changes in the generated VO’s), and then just convert to ArrayCollections on the client when/if needed. I suspect this will recover the performance hit I took by switching. I can easily fix up the generated VO code, but how do I force BlazeDS to send only generic arrays? Is there a setting somewhere?

    Thanks again for your generous support to the Flex community.

    John K.

  298. LReddy says:

    hi Sujit,

    I have to traverse an xml tree and build an object(for instance Map) that shows the parent and the children as a collection( parent id – collection). My xml is similar to this.

    I should have properties of the node as object properties. What is the best way to do this?


  299. Sayali says:

    Hi Sujit,

    I want to pass custom properties like host and port to a java class specified in remoting-config.xml.
    I tried something like this,


    but i am getting an error like

    **** MessageBrokerServlet failed to initialize due to runtime exception: Exception: flex.messaging.config.ConfigurationException: Unrecognized tag found in . Please consult the documentation to determine if the tag is invalid or belongs inside of a different tag:
    ‘/remote-host’ in destination with id: ‘CxJavaAPI’ from file: remoting-config.xml
    ‘/remote-port’ in destination with id: ‘CxJavaAPI’ from file: remoting-config.xml

    Now in this case actually my class CxJavaAPI has a constructor which needs the host and port .Is it possible to achieve this? If yes please let me know.

    Thanks in advance,

  300. Shreyas says:

    Hi Sujit,

    I wanted to how we can get the method name of a RemoteObject that has invoked a particular handler?

    At present I have a RemoteObject with various methods all using the same handler on result, I just wish to ‘switch’ the actions based on which method invokes the handler.

  301. Raj says:

    Hi Sujith Reddy,

    Could you plz post one article on flex profiling.

  302. Latha CV says:

    Hi Sujit,
    I am having a flex application with BlazeDS and Remote Objects are used to perform the business logic. The remote object also creates a RMI client object and communicates with the RMI server which inturn performs some DB operations.

    After approximately 30 seconds the AMF channel disconnects with a Fault while the backend is still working. The AMF is simple AMF.
    I have tried setting the requestTimeout=0 and also -1 on the remote objects, but the result is same.
    Any help is much appreciated.
    Thanks in advance.

    Channel definition







    Here is the log extract
    ToolAccessMngr.invokeToolMethod: Inside invokeToolMethod
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer sending message ‘6F042089-0286-EE50-0244-4C5D8E70178F’
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer connected.
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer acknowledge of ‘6F042089-0286-EE50-0244-4C5D8E70178F’.
    warning: unable to bind to property ‘toolGroup’ on class ‘Object’ (class is not an IEventDispatcher)
    warning: unable to bind to property ‘toolGroup’ on class ‘Object’ (class is not an IEventDispatcher)
    warning: unable to bind to property ‘toolGroup’ on class ‘Object’ (class is not an IEventDispatcher)
    warning: unable to bind to property ‘toolGroup’ on class ‘Object’ (class is not an IEventDispatcher)
    warning: unable to bind to property ‘toolGroup’ on class ‘Object’ (class is not an IEventDispatcher)
    warning: unable to bind to property ‘toolGroup’ on class ‘Object’ (class is not an IEventDispatcher)
    warning: unable to bind to property ‘toolGroup’ on class ‘Object’ (class is not an IEventDispatcher)
    warning: unable to bind to property ‘toolGroup’ on class ‘Object’ (class is not an IEventDispatcher)
    warning: unable to bind to property ‘toolGroup’ on class ‘Object’ (class is not an IEventDispatcher)
    warning: unable to bind to property ‘toolGroup’ on class ‘Object’ (class is not an IEventDispatcher)
    warning: unable to bind to property ‘toolGroup’ on class ‘Object’ (class is not an IEventDispatcher)
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer set destination to ‘ToolAccessMngr’.
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer sending message ‘AEA0904A-8C56-D9BE-0A82-4C5E0F41C94E’
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer connected.
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer sending message ‘F03B8162-A1B3-2376-4763-4C5E0F4EB11A’
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer acknowledge of ‘AEA0904A-8C56-D9BE-0A82-4C5E0F41C94E’.
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer acknowledge of ‘F03B8162-A1B3-2376-4763-4C5E0F4EB11A’.
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer sending message ‘E48F33FF-38C7-8A6F-C67B-4C5E97FEFE56’
    ‘CF0DE17F-AB7F-E863-4537-4C5C61C36744’ producer channel faulted with Channel.Call.Failed NetConnection.Call.Failed: HTTP: Failed
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer channel faulted with Channel.Call.Failed NetConnection.Call.Failed: HTTP: Failed
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer channel faulted with Channel.Call.Failed NetConnection.Call.Failed: HTTP: Failed
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer fault for ‘E48F33FF-38C7-8A6F-C67B-4C5E97FEFE56’.
    [ChannelFaultEvent faultCode=”Channel.Call.Failed” faultString=”error” faultDetail=”NetConnection.Call.Failed: HTTP: Failed” channelId=”my-amf” type=”channelFault” bubbles=false cancelable=false eventPhase=2]
    [ChannelFaultEvent faultCode=”Channel.Call.Failed” faultString=”error” faultDetail=”NetConnection.Call.Failed: HTTP: Failed” channelId=”my-amf” type=”channelFault” bubbles=false cancelable=false eventPhase=2]
    NetConnection.Call.Failed: HTTP: Failed
    NetConnection.Call.Failed: HTTP: Failed
    ToolAccessMngr.invokeToolMethod: Inside invokeToolMethod
    ToolAccessMngr.invokeToolMethod: Inside invokeToolMethod
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer sending message ‘8C4F889F-A2C9-0DC8-C43B-4C5F15892BD8’
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer sending message ‘8C4F889F-A2C9-0DC8-C43B-4C5F15892BD8’
    ‘my-amf’ channel sending message:
    body = (Array)#1
    clientId = “9E706DC1-2D0E-B462-81B5-51DE23E8F796”
    destination = “ToolAccessMngr”
    headers = (Object)#2
    messageId = “8C4F889F-A2C9-0DC8-C43B-4C5F15892BD8”
    operation = “returnToolDetails”
    source = (null)
    timestamp = 0
    timeToLive = 0
    ‘my-amf’ channel polling stopped.
    ‘my-amf’ channel polling stopped.
    ‘my-amf’ channel disconnected.
    ‘my-amf’ channel disconnected.
    ‘my-amf’ channel has exhausted failover options and has reset to its primary endpoint.
    ‘my-amf’ channel has exhausted failover options and has reset to its primary endpoint.
    ‘my-amf’ channel endpoint set to http://localhost:8080/RAAdmin/messagebroker/amf
    ‘my-amf’ channel endpoint set to http://localhost:8080/RAAdmin/messagebroker/amf
    ‘CF0DE17F-AB7F-E863-4537-4C5C61C36744’ producer channel disconnected.
    ‘CF0DE17F-AB7F-E863-4537-4C5C61C36744’ producer channel disconnected.
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer channel disconnected.
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer channel disconnected.
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer channel disconnected.
    ‘DA76AE26-93A4-F6EA-57C7-4C5E0D1EB1FF’ producer channel disconnected.
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer fault for ‘8C4F889F-A2C9-0DC8-C43B-4C5F15892BD8’.
    ‘8AFA707B-08A2-CA64-E772-4C5D7AE7D89A’ producer fault for ‘8C4F889F-A2C9-0DC8-C43B-4C5F15892BD8’.

  303. Latha CV says:

    Hi Sujit,
    In my previous post, the xml tags are missing. Please find them here.
    Thank you.
    Channel definition:








  304. Latha CV says:

    Hi Sujit,
    The problem of channel disconnect got resolved. It was mistake from our side. We were not using the AIR SDK for Linux, but were using the one for Windows.
    Sorry for any inconveniences.


  305. RDB says:

    Morning Sujit,

    I have a problem with the new FB4. I would like to use the generated php wizard but cannot filter the datagrid using filter functions?

    Basically I was working on an date range filter that can filter the data in the datagrid connected to the mysql DB. I can only get it to work if I hard code the whole project and use arraycollections in the main application.

    Please could you create an example that uses dates and applies a range filter in flash builder 4…it would be a massive help?

    Thank you


  306. Jones says:

    Hi Sujit, I have a question related to Flex 3 and ColdFusion that it might be simple to answer but I have been struggling with it for a while.
    I need to create a Flex application to use with ColdFusion and although this is a simple procedure when we are creating the project in a computer where you have ColdFusion installed locally (as all books shows examples of it), but what if the ColdFusion server is installed in another machine in the network?

    My current situation is the following:
    – I have Flex Builder 3 install in my PC at work and its workspace is in a folder in the network outside of my PC.
    – We have a server (ISWEB1) partition in two drives; C, where the ColdFusion 8 is installed and D where all the files the developers work with reside. The ColdFusion installation runs in a server where IIS is used as the web server.
    – I have the drive D on the server ISWEB1 mapped to one of my letter drives and can access it easily
    – The drive C on the Server can only be accessed remotely (or through the web to access the ColdFusion admin page) and is not exposed to the network as drive D is.

    My problem is, I need to create a Flex 3 application that uses ColdFusion using remote object access service (CF Flash Remoting) but I wanted to point to the installation version on the server ISWEB1 and not to the one installed locally. The Configure ColdFusion Server screen in the Flex Builder asked me for the location of ColdFusion root folder, Web root, and root URL. There is no way I can point to the server (ISWEB1)where ColdFusion is installed as those fields seem to required a address that points to a local install or a mapping on that local server.

    So how can I go about to create a project in Flex that uses ColdFusion that is not installed locally? The work around that could be used is to use the ColdFusion developers edition I have installed locally and use during the creation of the project in Flex Builder, but then I would have to have all the same data sources, mappings, and CFCs in my the local server in order to test, which seems double work. To aggravate that when you try to test the application Flex writes the files to the local server and unless you have everything available locally it would not work properly. I am trying to avoid duplicating the work.

  307. Todd says:

    Hi Sujit,

    I am seeking some input about session authorization. I am assigned with the task of authenticating against a mysql data table. A userName,userPassword challenge. The development tools are Flex 4, LCDS 3 B2. Is the fiber model able to handle these request, and if so can you recommend a place to start researching or would the Spring framework be better suited for this type of task?

    Thank you

  308. Rajan says:


    I am using Blazeds- amd Weblogic I have the session timeout
    for 5 minutes.

    Below is channel definition i am using


    I have declared destination as


    Generally 10-15 users uses the system simultaneously. The server side code sends
    approx 3000 messages in one second on the destination. Everthing works fine but
    some time the client misses few messages. It happens sometimes. It is difficult
    to reproduce also. But any client cannot afford to loose message. I can send you
    the conference files for your reference.Any blaze expert can provide any


  309. Rajan says:

    Doing Repost


    I am using Blazeds- amd Weblogic I have the session timeout
    for 5 minutes.

    Below is channel definition i am using
    channel-definition id=”my-polling-amf”




    I have declared destination as

    destination id=”destICL”
    adapter ref=”actionscript” /

    Generally 10-15 users uses the system simultaneously. The server side code sends
    approx 3000 messages in one second on the destination. Everthing works fine but
    some time the client misses few messages. It happens sometimes. It is difficult
    to reproduce also. But any client cannot afford to loose message. I can send you
    the conference files for your reference.Any blaze expert can provide any


  310. Rajan says:

    I am sorry it is 3000 messages per minute and not second.


  311. Ricardo says:


    How does that relate to two tables?

  312. suresh kumar reddy says:

    are you ace in Flex3 with Air?

  313. Chaitu says:

    Hi sujith,

    I want to develop a sample application using java and flex, which contains jus two screens first contains the link for the second and the second one contains the results fetched from a data base. can you please assist me, as im new to flex…..

  314. Latha CV says:

    Hi Sujit,
    I am having a AIR application on linux system. I am facing a channel fault after >~30secs when installed as a package using adt. While it works fine when we use ‘adl’ to run the application. I am using linux air sdk for both adl and adt, but the mxml is compiled on windows platform. Can you please provide any pointers on what could be causing the problem.
    Thanks in advance,

  315. Abhishek Gupta says:

    I have developed the dashboard in my application using flex 3.0. For this I have used JSP wrapper around the flex application. My application runs on JBoss application server. for communication between flex app and my application I am using LCDS. HTTPService component is being used to receive data from the server. Channel definitions are given in service-config.xml for amf and http channels and for both secure secure and not secure mode. In my proxy-config.xml I have defined Channels and destinations.

    In my development environment both secure and non secure mode were working fine. Now when I have deployed it behind the hardware load balancer(which accepts secure requests only and if the request is not secure it redirects it to secure url) there is no response from the message broker servlet. One thing more I have observed is when the environment is non load balanced there are request like ‘http://{}:{server.port}/{context.root}/messagebroker/http’. and these requests are post request. But in load balanced environment with ssl the request is again like ‘http://{}:{server.port}/{context.root}/messagebroker/http’ which is a post request and it is redirected to ‘https://{}:{server.port}/{context.root}/messagebroker/http’ which is a get request. The content returned by this get request is null.








    Looking for some comments


    Abhishek Gupta

  316. Khalid says:

    I am new to Adobe Flex; I am playing around Adobe flex dashboard . I have managed to customize some of the panels (PODs), I am trying to have one of the panels to show pdf document, I used IFrame method I managed to have the SWF file configured and can show the Loading Icon shown, but I could not managed to pass the PDF document to the panel through
    * Base class for pod content.

    package com.esria.samples.dashboard.view
    import flash.xml.XMLNode;
    import mx.containers.VBox;
    import mx.controls.Alert;
    import mx.rpc.http.HTTPService;
    import mx.utils.ObjectProxy;
    import flash.external.ExternalInterface;
    import flash.geom.Point;

    public class PodContentBase extends VBox
    public var properties:XML; // Properties are from pods.xml.

    function PodContentBase()
    percentWidth = 100;
    percentHeight = 100;
    addEventListener(FlexEvent.CREATION_COMPLETE, onCreationComplete);


    private function onCreationComplete(e:FlexEvent):void
    // Load the data source.
    var httpService:HTTPService = new HTTPService();

    httpService.url = properties.@dataSource;
    if (httpService.url != “”) {
    httpService.resultFormat = “e4x”;
    httpService.addEventListener(ResultEvent.RESULT, onResultHttpService);
    else {

    httpService.addEventListener(ResultEvent.RESULT, onResultHttpService);


    private function onFaultHttpService(e:FaultEvent):void
    {“Unable to load datasource, ” + properties.@dataSource + “.”);

    // abstract.
    protected function onResultHttpService(e:ResultEvent):void {}

    // Converts XML attributes in an XMLList to an Array.
    protected function xmlListToObjectArray(xmlList:XMLList):Array
    var a:Array = new Array();
    for each(var xml:XML in xmlList)
    var attributes:XMLList = xml.attributes();
    var o:Object = new Object();
    for each (var attribute:XML in attributes)
    var nodeName:String =;
    var value:*;
    if (nodeName == “date”)
    var date:Date = new Date();
    value = date;
    value = attribute.toString();

    o[nodeName] = value;

    a.push(new ObjectProxy(o));

    return a;

    // Dispatches an event when the ViewStack index changes, which triggers a state save.
    // ViewStacks are only in ChartContent and FormContent.
    protected function dispatchViewStackChange(newIndex:Number):void
    dispatchEvent(new IndexChangedEvent(IndexChangedEvent.CHANGE, true, false, null, -1, newIndex));
    I am using the Dashboard as a training session for me, can you please help me on this.

    Khalid Almansour

  317. Khalid says:

    Hello Sujit;
    I am new to Adobe Flex, can I use Flex to access MS Access tables, if yes can you please help me.

    Khalid Almansour

  318. Thongchai Lim says:

    Hi Sujit;
    Thanks for you Example, I want to connect Wsdl with SSL but I can’t use by step like your example please help me .


    Thanks very much.

  319. Sandeep S says:

    We are working on stock trading kind of application, it is basically an flex desktop application i.e. on AIR.
    Our requirement is to handle 5000 to 10000 messages updates per second by flex datagrid. For that we are using LCDS 2.6 messaging RTMP protocol.
    To achieve this we have generated around 350000 messages in min and push them to LCDS destination, at client end datagrid is able to render 36000 messages only rest of the messages queued in LCDS will keep rendering but they exeeds 1 min time limit.
    So our question is whats the maximum messages update would be handled by flex datagrid and is there any way to optimize datagrid to achieve mentioned target.
    Note:We already tried to override ‘collectionChangeHandler’ method of datagrid as we are passing ArrayCollection object to dataprovider and then we change ArrayCollection to Array also, as Array is having minimum event handling.
    But still we are able to render 36000msg/min only.
    Expecting your help on this issue.
    Thank you very much.

  320. Hi Khalid,

    Yes you can access. Write Java code to communicate with your DB as explained here and then access the Java class from Flex application as explained in this article

    Hope this helps.

  321. kayoto says:

    i try to run your source code from “Invoking Java methods from Adobe Flex” and i get error:
    MessagingError message=’Destination ‘CreatingRpc’ either does not exist or the dsetination has no channels defined….
    can you help me this

    thank you

  322. satheesh Reddy says:

    Hisujit Reddy,

    i am working a small application in flex with LCDS , i have tried to create the same application which you have posted in your web site , i.e:simple date disply using LCDS, i have done the following steps below and i am getting error”cannot create class of type ‘flex.samples.Hello.HelloWorld’.

    1.i have created a hello.mxml file

    2.and my java class name is and package name Hello and i placed in WEB-INF/src/flex/samples/Hello

    package flex.samples.Hello;
    import java.util.Date;

    public class HelloWorld{

    public HelloWorld(){}

    public String getresults(String name){
    String result=null;

    result=”Hi”+name+”your program is succuss”+ new Date();
    return result;



    3.i mapped destination in remoting-config.xml


    when i run the application after clicking the button the error displying
    Cannot create class of type ‘flex.samples.Hello.HelloWorld’.

    please help me to fix the error , i am very new to flex and LCDS

    thanks in advance

    -satheesh reddy.

  323. satheesh Reddy says:

    Hisujit Reddy,

    i am working a small application in flex with LCDS , i have tried to create the same application which you have posted in your web site , i.e:simple date disply using LCDS, i have done the following steps below and i am getting errorโ€cannot create class of type โ€˜flex.samples.Hello.HelloWorldโ€™.

    1.i have created a hello.mxml file

    2.and my java class name is and package name Hello and i placed in WEB-INF/src/flex/samples/Hello

    package flex.samples.Hello;
    import java.util.Date;

    public class HelloWorld{

    public HelloWorld(){}

    public String getresults(String name){
    String result=null;

    result=โ€Hiโ€+name+โ€your program is succussโ€+ new Date();
    return result;



    3.i mapped destination in remoting-config.xml


    when i run the application after clicking the button the error displying
    Cannot create class of type โ€˜flex.samples.Hello.HelloWorldโ€™.

    please help me to fix the error , i am very new to flex and LCDS

    thanks in advance

    -satheesh reddy.

  324. satheesh Reddy says:

    my Hello.mxml file is for the above query

    -satheesh Reddy

  325. Problem with tabbar says:

    I am building a component with blaze ds,i have lot of data to be updated through group wise. i have created a tabbar controller and inthat tab bar each tab contains some text fields and other controls. There is one submit button and if i click that button all the entered information has to be passed to the server.Can anyone let me know how to do this.

  326. Ravi says:

    i have some doubt in flex column chart.
    i am drawing the column chart with form = curve,i am
    drawing a line on mouse over using cartesian data canvas.Now my problem is i want to find line intersection point with curve.

    can you give any suggestion on this.

  327. santosh says:

    hi sujith,

    your sessions in Hyderabad devsummit was awesome,your session made me to get awareness on flashbuilder4.Thanks to Adobe for organising the devsummit,looking forward for more devsummits and more products from adobe.

    Santosh M

  328. Anshuman says:

    Hi Sujit,
    I am on, with a flex project development. My client is very particular with the UI, they have developed (which is in HTML mock up). With some tough times, my team has almost achieved all the look n feel, but left with one issue- ‘When user press ctrl+scroll the page shrinks, but the flex component doesn’t shrinks, rather it’s getting chopped off’.

    I tried to get solutions for this, but no luck.
    Will appreciate your comments on this issue, earliest.
    Thanks in advance.


  329. Jon says:

    I am interested in using a PHP Service for logging in users to a Flex 4 application. Does Flex 4 natively store session data?

  330. Uday says:

    Dear Sujit,
    Do you know how to deploy a Blzae DS application on Websphere? I can see the samples (Blaze DS test drive) running, but if my application is not working even though I put my project in the same location. Any help would be appriciated. Please let me know if you need more information.


  331. Sandeep S says:

    Hi Sujit,
    With reference to my previous question, I just want to ask how to optimise flex datagrid to render as much as message with in a stipulated time period.
    Appreciate your comments on thi issue earliest.
    Thanks in advance.

  332. Sudheer says:

    hi Sujit,
    I recently install flash player 10.0.42.
    so my flex application is not running properly..
    its not able to find services.
    its unable to convert
    Help me out its very urgent

  333. Hi Sudheer,

    Try and share the code to reproduce this or at least the stack trace will help.

  334. Hi Uday,

    Can you please share details on what is not working. If there is any error, then please share the details.

  335. Hi Jon,

    Flex will not store any session data. If your session is managed using either cookies or URL rewriting, that will work with Flex application cause all the requests are through the browser and so the cookies as well as URL rewriting will happen.

    Hope this helps.

  336. Hi Santosh,

    Thanks for attending the summit. We too had a great time, looking forward to meet you all again ๐Ÿ™‚

  337. Hi Ramesh,

    In your Flex application you can access all the UI controls and get the data entered. When the button clicked, access all the UI controls in your tabs and send the data.

    Hope this helps.

  338. Hi Satheesh,

    Can you please make sure the HelloWorld.class is in the web application classpath (WEB-INF/classes)

    Hope this helps.

  339. Bhargava Vinjamuri says:

    Dear Sujith,

    I am Bhargava and i met u long in Adobe meet. I had a great time with you as well.

    Here i have an issue like communication between AIR and Flex. My main concern is i would like invoke an AIR application from Flex and vice versa as well.

    Please guide me to do this. I tried so many ways like implementing common interface and placing AIR swf in Flex but i could not succeeded. Thanks in advance.

    Bhargava V

  340. simhadri says:

    Hi Sujit,

    1. I want to add a button to a tabnavigator with a label from xml dynamically. That means if i add a new node to existing xml, my tabnavigator shows a button with label specified in the node.

    2. How should i fix the length of the button for any variable length value coming from the xml node.

  341. raj says:

    Hi Sujith,

    i am trying to do an application using data service in LCDS. need to show data in datagrid from Oracle Database. i have set the database connection and used SQLassembler in data-management-config.xml. and when i run the application i am getting error like this.
    ReferenceError: Error #1069: Property maxFrequency not found on and there is no default value.

    even i have set the inbound and outbound frequency in config.xml.

    can you please solve this for me.

  342. Ragini says:


    I am using Flex 3.3, BlazeDS am getting the error :

    [FaultEvent fault=[RPC Fault faultString=”Send failed”
    faultDetail=”Channel.Ping.Failed error null url:
    type=”fault” bubbles=false cancelable=true

    when I delete the browser cookies or restart the server for first call to the sever.I am specifying the endpoint to the RemoteObject explicitly.

    Is any setting required in the service-config ,if we are setting endpoint to remote object externally??

    Please let me know if you want more information from me.
    Awaiting for prompt reply!


  343. SJ says:

    I’m using FlashBuilder4 Beta2 and dcd for json parsing. I have a data entity with a property of array type.
    fml file shows it like this

    I get json parse error whenever it encounters empty array like this { “something”:[] }
    1. Do you know where I can get the source for plugin, com.adobe.serializers.json…, so I can debug?
    2. Where can I find any doc for .fml format to configure certain parsing rules?

  344. lion says:

    I have a question~!
    how to convert AS Object to Java Object~!

  345. Amit Kulshreshtha says:

    Hi Sujit,
    I met you in Dev Summit in chennai.
    i am facing issue in sending JSON request using httpservices.send() method.
    Its showing error that Variables not defined. Though i am sending only String.
    Can you provide me some example on it.

  346. George says:


    Anorder to retrieve embedded metadata from an .FLV file do you have to load the .flv through netstream object? What if you just want to retrieve the data to make a cue point list and not load/play the .flv?

    Thank you,

  347. James says:

    I downloaded Blazeds turnkey integrated with Tomcat6 from the following link and followed the instructions on how to install. (here is the link .. This installation is not configured for port 8400 but is instead configured for port 8080. I can’t figure this think out. Any ideas?

  348. Giorgos says:

    Great job!

    I am using flash builder 4 and Coldfusion, i ‘ve tried your tutorials and have an idea how dcd works. The question is if dcd can be used with a remote Coldfusion server and still have all the easy to use functionalities as you present in your tutorials. It would be great if you write a tutorial or point me to another website. All I need to know is how to set up the ColdFusion root folder, Web root and Root URL and then just connect to a data/service.

    Thank you,

  349. subhash says:

    am Subhash working on flex chat application using blazeDS,
    i want to write all chat what am sending to client in a text file, here am doing as follows

    private function send3():void

    while running application am getting error as follows
    “Channel.Security.Error error Error #2048 url: ‘http://localhost:8400/messagebroker/amf’

    if i comment remote object calling method

    application working but not writing in to file,i want to write in to a file,how can i do this ?

    where i need to tune & in which config file i need to change ?

  350. FlexUser says:

    Hi sujith,

    I have a doubt about the expand collapse functionality in Advanced DataGrid.

    Let us assume we have following fields of data A, B, C, D and E.I want to group them by A and B. If i group on columns A and B then i get an ADG with 4 columns. A and B would get displayed in column 1 and C, D and E would be in columns 2, 3 and 4. I have to open two nodes belonging to A and B to see the detailed rows containing C, D and E data.

    | A/B | C | D | E |
    | >a | | | |
    | >b | | | |
    | | c | d| e |

    But my requirement is to continue to have 5 columns and show A and B parent nodes in separate columns.

    | A | B | C | D | E |
    | >a | | | | |
    | | >b | | | |
    | | | c | d | e |

    That is when the output is generated then the user first sees only >a.On clicking > a the user should see >b , but not in the same column . Rather it should appear in its own column B.On clicking B,the remaining entities >c,>d and >e should appear.

    Can someone suggest how can this be achieved?

  351. FlexUser says:


    I have a doubt about the expand collapse functionality in Advanced DataGrid.

    Let us assume we have following fields of data A, B, C, D and E.I want to group them by A and B. If i group on columns A and B then i get an ADG with 4 columns. A and B would get displayed in column 1 and C, D and E would be in columns 2, 3 and 4. I have to open two nodes belonging to A and B to see the detailed rows containing C, D and E data.

    | A/B | C | D | E |
    | >a | | | |
    | >b | | | |
    | | c | d| e |

    But my requirement is to continue to have 5 columns and show A and B parent nodes in separate columns.

    | A | B | C | D | E |
    | >a | | | | |
    | | >b | | | |
    | | | c | d | e |

    That is when the output is generated then the user first sees only >a.On clicking > a the user should see >b , but not in the same column . Rather it should appear in its own column B.On clicking B,the remaining entities >c,>d and >e should appear.

    Can someone suggest how can this be achieved?

  352. Sandeep says:

    I recently updated the flash player 10.0.42, my code works perfectly in 10.0.32, but gves me the following error. Below is the stack trace
    [BlazeDS][DEBUG] Deserializing AMF/HTTP request
    Version: 3
    (Message #0 targetURI=null, responseURI=/3)
    (Array #0)
    [0] = (Typed Object #0 ‘flex.messaging.messages.RemotingMessage’)
    source = null
    operation = “getMultiFirm”
    headers = (Object #1)
    DSEndpoint = null
    DSId = “82877EDF-C109-AF1F-E137-6A88F32C77E8”
    destination = “entitlement”
    timeToLive = 0
    clientId = “8288AF3A-CB09-FB03-ECCC-A4C9A02D49D1”
    timestamp = 0
    messageId = “C1A5D3AA-5FEE-5F05-B33A-4D3932A54275”
    body = (Array #2)
    [0] = (Object #3)
    kopsid = null
    action = null
    payload = (Externalizable Object #4 ‘’)
    (Array #5)
    [0] = (Typed Object #6 ‘com.test.abcd.genericrequest.RequestParams’)
    value = “AMFDATA”
    key = “RESPONSETYPE”
    msgtype = null
    version = “1.0”

    [BlazeDS][DEBUG] Serializing AMF/HTTP response
    Version: 3
    (Message #0 targetURI=/3/onStatus, responseURI=)
    (Typed Object #0 ‘flex.messaging.messages.ErrorMessage’)
    rootCause = (Typed Object #1 ‘java.lang.ClassCastException’)
    localizedMessage = “”
    message = “”
    cause = null
    destination = “entitlement”
    headers = (Object #2)
    correlationId = “C1A5D3AA-5FEE-5F05-B33A-4D3932A54275”
    faultString = “”
    messageId = “8288B371-E509-702F-EA1F-D8224ED62A8B”
    faultCode = “Server.Processing”
    timeToLive = 0.0
    extendedData = null
    faultDetail = null
    clientId = “8288AF3A-CB09-FB03-ECCC-A4C9A02D49D1”
    timestamp = 1.264015980725E12
    body = null

    The requestParams object is serializable and I am using arraycollection in the flex UI.

    Please help this is urgent. This works perfectly fine in flash 9 and 10.0.32, but gives errors in 10.0.42

  353. krishna chaitanya says:

    Dear Sujith,
    I am a Flex,Java developer. Please suggest me some sample project in Flex 3 or Flex 4.

    Waiting for your kind reply.
    Thanks in advance.

  354. Naresh says:

    Hi Sujeet,

    Iam new to flex.
    I have developed a small flex apllication which calls a webservice which is there on my machine
    I deployed the flex application in IIs.
    When i browse the swf file from IIS, following error is thrown
    “[RPC Fault faultString=”Security error accessing url” faultCode=”Channel.Security.Error” faultDetail=”Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL”

    Do i need to set anyhting in the IIS,


  355. Chandra says:

    Hi Sujith,

    Am Chandra and working on i am working with flex calendars..can u plz give me an idea How to create a calendar with events in Flex or Actionscript? this is urgent. plz help me.


  356. nareshbabu says:

    Hi Sujeet,
    iam naresh, iam new to flex.
    I created a simple application where a user can upload images to a server

    i deployed my application in iis and when i run the application from the iis it’s giving me the following error

    SecurityError: Error #2148: SWF file http://localhost/SlideShowGenerator/LoginPage.swf cannot access local resource file:///D:\ToPublish\ReceiveImages\UploadedFiles\20101\26\People01.gif. Only local-with-filesystem and trusted local SWF files may access local resources.

    i have copied the crossdomain.xml file at my root directory of IIS

    This is my to upload the image
    request=new URLRequest(“http://MachineName/ReceiveImages/Default.aspx?Username=”+strUserName );


  357. nareshbabu says:

    Hi Sujeet,

    Iam naresh, iam new to flex.

    I have developed a simple application which is used to upload images on the server and show the images in horizatal list box.

    I provided a button โ€œAddPhotoโ€ which on click displays a module which will popup a file dialog box.

    There is a button for upload in the module form. When user clicks on the button after selecting an image,iam sending a request to a webpage which is again in IIS . the web page recieves those images and saves the image files on the server

    Iam using the following code in flex to upload the file

    request=new URLRequest(“http://MachineName/ReceiveImages/Default.aspx?Username=”+strUserName );

    This works fine when I run the app from the flex builder. Images are uploaded and displayed in the horizontal box which I use to display uploaded images(what I do here is whenever user uploads I store this path in a collection and ssing this collection as dataprovider to the Horizantal list box)

    I deployed my application in IIs and when I browse my swf file url from another machine for the first time the upload wroks but the images are not displayed in the horintal list box. Also when I click on the โ€œAddPhotoโ€ button for the second time my screen gets disabled and nothing happens.


  358. Giorgos says:

    Hi Naresh,
    I think you need to edit the crossdomain.xml file which stands on your local machine, have a look on adobe’s knowledge base site at

  359. Mk says:

    Hi Sujith,

    I have strucked in my application.It’s giving following error message.

    [RPC Fault faultString=”Attempt to begin a DataServiceTransaction when an existing transaction was already in place.” faultCode=”Server.Processing” faultDetail=”null”]
    at mx.rpc::AsyncRequest/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\]
    at NetConnectionMessageResponder/statusHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\channels\]
    at mx.messaging::MessageResponder/status()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\]

    Please help me out to resolve this issue.

    Thanks in advance.


  360. Mk says:

    Hi Chandra,

    Please have a look on below link for calender.May be it will give some idea to you.Sample application available in Tour de Flex also.


  361. Deepak says:

    Hi Sujit,

    I’m working on a flex application where I have a datagrid as a data entry component(I’ve assigned an empty arraycollection to this datagrid). I have about 4 columns in it and I have created itemrenderer for each column which, based on some conditions like, value should not be blank, value’s length should not exceed 8 characters etc,.I am coloring the cell to red(itemrenderer is a custom actionscript class which extends Label). I have a ‘Save’ button just below this datagrid. On click of this ‘Save’ button i want to check which cells are colored so that if at all there is any cell on the grid which is colored in red, i can stop the ‘Save’ logic in it’s click event. How can I validate this on click on ‘Save’? Can you please help me??? ๐Ÿ˜ฆ

  362. Nguyen Quoc Dinh says:

    How to put a value into a Boolean field?
    Is it possible to add these following values?
    1) “true” (or “false”)
    2) 0 (or 1)

    The Boolean value is put into the database is always 1

  363. Naresh says:

    Hi Giorgos,
    yes there was some problem with my cross-domain file
    i fixed that.
    Any way thanks for ur reply


  364. Pawan says:

    Hi Sujit,

    I hope you will get enough time to response to my query.
    I am basically a java programmer and beginner to flex. My problem is – I am having a java api (.jar) on local file-system. I want to invoke methods from that api. But the things is I don’t want to create any background service or starting a server on localhost. Is it possible? If so how?


  365. santosh says:

    I am facing one issue, tried a lot,

    in RPC
    I am passing the Arraycollection (array of simple POJO objects) to JAVA, and expecting this will be arraylist,

    while converting that list to simple POJO object, I am getting ClassCastException : java.util.hashMap.

    Could you please suggest some way to resolve this?

  366. Hi everyone, I would like to set up a ColdFusion Gateway to talk to my Flex app via BlazeDS, but the catch is, it’s an EXTERNAL BlazeDS server. I see there is info on integrating CF with BlazeDS by installing them on the same machine, but I specifically want ColdFusion and BlazeDS on different servers. How can this be accomplished? Thx in advance.

  367. FlexBee says:


    I was working on a Flex app where session management was handled by cookies. We are now trying to migrate the same application to AIR without touching the server code. How do you think should I go with the session management in AIR??
    Without making any changes on server side… I thought of handling the headers for every request of my own (if I could get the cookie by reading the response header, I could explicitly set them up for every subsequent request), but unfortunately HTTPService or RemoteObject doesnt give me access to headers by any ways. What do you think can be done?

    Thanks in advance.

  368. Macky says:

    Hello Sujit,

    If you have time, would you mind giving us a sample .FLA file of the Google Calendar Project. It’s because we can’t run it with the reason of an error that’s always popping up. Or even for anyone in this board.

    Thanks in advance.

  369. Rakesh says:

    Hi Sujit,

    I have got one challenging question for which I am banging my head. Let me put the question in a simple way..
    I have an Advanced Data grid which has a total of 6 advanceddatagrid columns. Out of the 6 columns 4 of them are divided as AdvancedDatagridGroupedColumns which inturn again have 4 advanced datagrid columns…so the columns are like App_name, A(grouped advanced datagrid colum…inturn contains a1,a2,a3,a4),B(b1,b2,b3,b4),C(c1,c2,c3,c4),D(d1,d2,d3,d4) and Count

    I had set the background colors for the 4 grouped column A,B,C and with 4 different colors..

    Now my requirement is to get ALTERNATING ROW COLORS for the grouped columns (i.e for A,B,C and D) and not for app_name and Count…

    For Eaxample if I give the background color for the grouped Column A as dark Blue then the ALTERNATING ROW COLORS of the grouped column should in such a way that the first row of the a1,a2,a3 and a4 should only be DARK BLUE and the second row of the same grouped column A (a1,a2,a3,a4) should be LIGHT BLUE..

    Also another req is that I need to give the header colors to only A,B,C and with their respective background colors.

    Here is the samplecode..

    ######################################### This is my AdvancedData Grid with Grouped Columns ##########################################

    ############### This is the StyleFunction Name that I am providing to AdvancedDataGridColumnGroup ################################

    function ADGStyle(data:Object, col:AdvancedDataGridColumnGroup):Object
    // var rowColumnIndex:adva
    /* var vals:Array = [0, 2, 4, 6];
    var i:int = fullDeployDGLinux.dataProvider.getItemIndex(data);
    if (vals.indexOf(i) >= 0){
    var o:Object = new Object;
    //o.color = 0x000000;
    //o.fontWeight = “bold”; alternatingItemColors=”[0xFFE0E0, 0xE0E0FF, 0xeaf1dd, 0xe5e0ec]”
    o.backgroundColor = 0xFF0000;
    return o;
    else return null; */
    if(col.headerText ==”PA1″)
    var i:int;
    var rc:int = fullDeployDGLinux.rowCount;
    for(var i=0;i >= rc; i+2)//fullDeployDGLinux.getChildAt(rc %2)
    return {rowColor:0xFF0000}; //styleFunction=”ADGStyle”

    #################################################### I only provided the styleFunction for the first AdvacedDataGridColumnGroup… The ADGStyle function is not being called (tested it using the Alert Statement).. I guess the function needs to get the value from the AdvancedDataGridColumnGroup…I dont know how to pass values to the function as styleFunction is just called by its name and variables cannot be passed by the function..

    Also the Header BackGround colors are to be changed only for the Grouped Columns according to their specific Grouped Columns BackGroundColor .. That is also giving me trouble

    I had tried out many ways but I m not getting any solution.. I am not sure its correct or not.

    I hope you could help me out with this Issue

  370. Rakesh says:

    Hi Sujit,

    The previous post was skipped by the Advanced Data Grid Content.

    I am pasting the same in this comment..

    ######################################### This is my AdvancedData Grid with Grouped Columns ##########################################


  371. Rakesh says:

    Hi Sujit,

    The previous post was skipped by the Advanced Data Grid Content.

    I am pasting the same in this comment..

    ######################################### This is my AdvancedData Grid with Grouped Columns ##########################################


  372. Suresh says:

    Hi All,

    I am trying to return java collection objects to flex from a servlet, can any one suggest me the best way to do it.

    Thanks in advance.

  373. Dear Sujith,

    I have an XML and swf file in the server.

    I was using PHP to write to XML file similar to post at

    Since xmlData i am sending to of size 40.0kb and 1017 lines of code, i am not able to send using POST method. Here is the code

    service.useProxy = false;
    service.resultFormat = “text”;

    var parameters:Object=new Object();;

    service.addEventListener(ResultEvent.RESULT, writeToXMLFileHanlder);
    service.addEventListener(FaultEvent.FAULT, writeToXMLFileError);


    It is working file in local machine but having problem when we deploy in the server.

    Please help. It is very urgen.

    Thanks in advance,
    Ravichandran J

  374. Devika says:

    Hi Sujit,

    I am working in Seam framework, i want to add flex component to seam framework, This is i did with fiji components.

    Now i got springgraph.swf file to be added it is working fine But how do i fill the data for that using Java Calls. can you help me pls


  375. Rajasekar says:


    i am trying to run an application using LCDS.when i run the application i am getting below error. could you plz assist me to solve this issue.
    ReferenceError: Error #1069: Property maxFrequency not found on and there is no default value.

  376. Sangita says:

    Hi Sujit

    I have used flerry given by Piotr for calling Java API and making connection between flex and java.

    Through flerry we can call java API directly.

    We need flash builder 4 beta 2 for using flerry

    the following is the link from where you can download Flerry-Demo sample.

    I wanted to debugg both flex and java together so need ur help if u can.

    Help me out if u can

    Waiting for ur reply


  377. Balaji D says:


    I am currently working in project where we require widgets to be created. Could you help us in providing websites or materials containing the information about developing widgets.


  378. daslicht says:

    I love Flex based RIA’s.
    We all want to spread this wonderfull technology right?

    I dont understand why you Flex Evangelists do ‘not’ use Flex technology as BLOG System? I understand that it is easier to use WordPress rather than developing a own silmple blog system, but this begavior only supports all Flash/Flex haters.

    Think about that, please and spread the message.

    Love and Light

  379. pramod says:

    Hi Sujit,
    I m working on flex php pagination(runtime)…
    which get the data run time..
    i am showing first 10 pages by default..
    As page no.1 fetch first 10 records by default..
    on click page no.2 it will fetch records from 11 to 20 from database using php.
    the navigator has next button on click it should be go on page no. 11 and should show record with respect to that page..
    My problem is when i click next button the default selection is done on page no. 11 but it shows an TypeError: Error #1010: A term is undefined and has no properties.
    and page no. 11 is apper blank..

  380. jwalakumar says:

    Hai sir,

    I want to implement an email application.I went through some sample codes for that.but i’m confused now bcoz most of it contains php codes.Can we do it without using php in flex?If we are using php,how to call it our flex3?

    Hope u reply soon…


  381. gp says:

    hello sujith ,
    how can i send email from flex-java application

  382. Marko Simic says:

    Hi Sujit,
    I am looking for the way to log/save all messages in database, sent to BlazeDS to specific destination.
    Any suggestion/idea is much appreciated.

    Best Regards,
    MArko Simic

  383. pramod says:

    Hi Sujit,

    I want to apply multiple color to single area series…
    how to do this…?

    please help…

    Thanks in advance..
    Pramod Ingole.

  384. Pramod Rao says:

    Hi Sujit,

    I am currently working on BlazeDS and trying to get some data from Java to Flex.
    There is a specific case where I have a user object that I am trying to get. The user object in Java has a Role object inside it. My problem is that while I am getting the User object, I am not able to receive the Role in the Flex side. It is giving me nulls.
    Please advice on what I can do on this.


  385. GoldEye says:

    Thanks for all the great info. Can you help with this:

    I have used the RDS service in FlashBuilder4 to generate the services files (,, etc)
    And it all works great when building in FB4.

    But when I go to compile with command-line ant, it fails.
    Because it cannot find: RemoteObjectServiceWrapper
    Can you say what library or swc needs to be injected into the ant build?
    (I see FB4 references: fds.swc, fiber.swc, serializers.swc)
    And, equally important, indicate how tell ant to use the required libs/swcs?

  386. Vinรญcius says:

    Hi Sujith,

    I’m with the trial version of flash builder 4 premium standalone and i’m trying to integrate it with java with WPT (i can’t manage to install it), could you help me out by explaining how to do that?
    Thank You


  387. kofi says:

    Hi Sujith, i have a question…:) i have the professional blazeds book by Shashank Tiwari

    i am trying to run one of the samples in the book..but i have had no success, i hope you can point me in some directions. my background is heavy flex, so the java side of things i would i am a newbie.

    first of all, i have a EnergyConsumptionDataService class that has a public method returning a List. within the class i have a declaration like this

    List list = new ArrayList();

    for some reason eclipse does not like this(i get warnings). and this is declared in the book.the errors i get are

    ArrayList is a raw type. References to generic type ArrayList should be parameterized


    List is a raw type. References to generic type List should be parameterized

    i have imported the class

    import java.util.*; (doesnt get rid of error)
    import java.util.ArrayList; (doesnt get rid of error)

    the next question is are you familiar with hsqldb?? the sample uses it but doesnt show you how to implement it for the blazeds example. do you know what i need to have on my client/server side to make hsqldb work?

    appreciate your thought on this. Thanks


  388. John says:

    I’m using LC ES Designer 8.2 and I have create a quote form. Once the 1st part of the form is completed the user would then hit a submit button to email to customer however the customer could then change the quote since it is a form. at the bootom of the form I add a section for the customer to add a PO and date for service and then print and email back.

    How can I protect the first part onthe form so the customer does not have access to change

  389. Kartik says:

    Hi Sujit,

    I have gone through the Flash CS 5 features which is releasing this month. I have a query releated to Flash CS 5 and Flash Builder 4 Integration. My query is can I use the classes and components of flex 4 in to my flash professional project or not? I am a little curious to know since it shares the same IDE for actionscript Development.

  390. Chetan says:

    Hi, I want to use some system API’s in my AIR application ….. how can i use that one …. like in tabble application

  391. Santosh Shanbhag says:

    I would like to know the comparison of BlazeDS 3.x with 4.x. I cannot find that information anywhere. Does 4.x include client side sync?

  392. Hi Sujit,
    I am deveoping a flex-balzeds (java backend)..this application is under actual problem is “if i am trying to access my flex application through virtual hosturl i am unable to form a amfchannel..If is access with physical box url iam able to work normally”

    i tried with cross domain.xml..but in vein

    errorID = 0
    faultCode = “Client.Error.MessageSend”
    faultDetail = “Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url:

  393. dl says:

    Yeah being able to built the gui in flash and using flex components would be nice.
    Are there finally viewstates in Flash CS5 ?

  394. madhu says:

    Hi sujit,
    i am having an arraycollection of video files parsed from xml tht i wanna display in videodisplay. i wanna play them without the userinteraction(play in sequence,one after the other).if user wants he can click what ever video he want tht is working fine.but as soon as the player starts it go on playing all the videos in sequence. its playing 1st video and stops ,so how to give condition to get into the next video. plz chk my code and provide me the solution or guide me to the right my code videoVO1 is the AC into which i get videofiles from xml. as i gave zero its playing 1st video,but if i give anyother num it is showing range error.
    private function resultHandler(event:ResultEvent):void
    var linkvideoAC:ArrayCollection=new ArrayCollection();
    var xml:XMLList=XMLList(event.result).children();
    var links:XML;
    var videoVO1:ArrayCollection=new ArrayCollection();

    for each(links in xml)

    for(var i:int=0;i<linksVideos.length();i++)
    trace("my length is"+videoVO1[0].toString());

    for(var j:int=1;j<linksVideos.length();j++)

  395. Karuna says:

    Good Morning,
    I have been working successfully with Flex Builder 3-am now trying to migrate code to FB4. My configuration is : Windows xp + Tomcat 6 + MySQL + BlazeDS 4 + FB 4.

    Issue: When i try execute the ‘connect to Data/Service’, i get a ‘Status code:500, Reason: Internal Server Error.

    Your “remoteobjects.RemoteServiceHandler” runs w/o problems.

    I ma able to run normal jsp servlets that call the dbms w/o trouble using the jndi emulation that Tomcat provides for managing db pooling.

    i copied the suggested RDS servlet reference to the app’s web.xml for mapping the RDSDispatchServlet

    The jndi reference is located in my app’s context.xml.

    I have tried with and without requiring a password.

    Please help, i really would like to take advantage of the code generation FB4 offers.

    p/s i have found no references to how to set up RDS for FB$4 + Java in the Help files. But that is another issue/problem. IMHO—Adobe should provide ready to run examples complete with server configuration etc. I’ve already spent a lot of time googleing the web trying to find the answers. Thanks to you for the examples you have provided — w/o them i would not have gotten this far . But i have a question: why does a programmer have to go thru this process for a commercial product?

  396. Karuna says:

    Hello again,
    oops — i found it.. googled “how to configure a Remote Development Services (RDS) server Flex” got a hit re:LCDS adobe help online doc.

    thanks for all your contributions — i’ll take a rain check for my next issue

  397. hezal says:

    hey Sujit..
    can u please give a good diffrence between itemeditor and itemrenderer?

  398. Hi Karuna,

    Good to know that you found the solution ๐Ÿ™‚ I am sorry I didn’t get your second question, what process?

  399. Hi Madhu,

    Please try listening to complete event of VideoDisplay ( and then play next video.

  400. Hi dl,

    I don’t think so.

  401. Hi Nagendra,

    Please try checking the channel URL in the services-config.xml

    Hope this helps.

  402. Hi Santosh,

    I couldn’t find a comparison chart, it should be available soon. As far as I know there are lots of improvements and additions including Spring BlazeDS bundling with BlazeDS and support for Data-centric development features in Flash Builder 4 ๐Ÿ™‚

    No, BlazeDS 4.x doesn’t have multi client sync, multi client sync is part of data management service, which is available in LCDS. But with Flash Builder 4, you can try client side data management, please find details here

    Hope this helps.

  403. Hi Kartik,

    I think I answered this when I met you in Ahmedabad ๐Ÿ™‚

  404. Hi John,

    I have no idea on that. Please try asking the question here


  405. Hi Kofi,

    Looks like you are using Java 1.5 and higher for compiling your Java project. Try this List list = new ArrayList();

    For setting up HSQLDB try article in this URL else install MySQL ๐Ÿ™‚

    Also try Data-Centric development in Flash Builder 4, connecting to back-ends is tooo easy, please find details here –

    Hope this helps.

  406. kofi says:

    thanks sooo much. i will look into what you have said :))))

  407. Hi Vinicius,

    Flash Builder 4 is eclipse 3.5 based, can you make sure the plug-in you are installing is for 3.5 version.

  408. Hi GoldEye,

    You will need all three swcs. Just adding these to your project libs folder should help.

    Hope this helps.

  409. Hi Pramod,

    If you can share the code to reproduce this, we can check what might be going wrong.


  410. hezel says:

    Hey Sujit
    Thank for your help.
    I have one more question that

    what are the differences and similarities between 3 PRCs(RemoteObject , HttpSrvices , Webservices).

    And which should be used when(for what purpose)?
    I gone through some site but I didnt get it yet.


  411. madhu says:

    hi sujit,
    thanks for ur guidance, i got it. i have accordian(in tht vbox+linkbutton which has links to videofiles),each pane have diff num of video files parsed from xml,i want panes to move without user interaction and particular link shud get highlighted ,as the videofiles playing.
    thanks in advance.

  412. Bill says:

    I’m gettin this error in WebSphere Server v6.1. The Servlet is not able to do it’s init()… I get the error:
    SRVE0100E: Did not realize init() exception thrown by servlet Transaction Controller: java.lang.VerifyError: (class: javax/xml/marshal/StreamScanner method: fail(ILjava/lang/String;)V) at pc: 97

    Only me setup gets this, my colleauges setup does not have this problem and I have the same WAS6.1 version and application installed…go figure.

    Anyone else run into this one?

  413. Subodh says:

    Hi Sujith,

    Can you please guide me a little in learning Flash Builder 4 ? What are the areas i should concentrate on and learn ? What are the skills i must acquire to be an expert in Flash Builder and RIA ? I am a student of Computer Science and Engineering, III year.

  414. Harshi Gunarathna says:

    Hi Sujit,
    I am trying to access a WSDL file which is in local file system by using the . But i get an error – faultDetail=”Unable to load WSDL. If currently online, please verify the URI and/or format of the WSDL.
    Please suggest me a way of doing it.
    Thanks in advance,

  415. Harshi Gunarathna says:

    This is how i access the WSDL file.
    mx:Webservices wsdl=”file:/C:/LoginService.wsdl”

  416. Kartik says:

    Hi Sujit,

    Thanks for your input.

  417. pradeep reddy says:

    Hi sujith reddy,

    1.I am trying to integrate flash photo gallery into flex application, am not success to do ,please could you help me with giving any reference links or source code .it is possible? am using flex 3.

    2.Am trying movie clip masking using (swf) in flex application, am failed to success, i referred tour de flex but i failed to do. could u help me.

  418. Colin says:


    I find your blog very useful. I have a question regarding RDS on Tomcat. In the servlet mapping, CFIDE… is specified. Is there anyway to use RDS without coldfusion or livecycle and to use RDS to discover available java classes and methods using only Tomcat and BlazeDS?



  419. pradeep reddy says:

    Hi sujith reddy,

    can u please suggest me on. Movieclip masking in flex application, i referred tour de flex, i download the source code from it, on executing the same code, it is showing below code in the error panel.

    ******** error Severity and Description PathResource Location Creation Time Id unable to open ‘\Efflex\bin\Efflex.swc’ ************

    please help me, by solving this issue.

  420. Hi Colin,

    You can use RDS without ColdFusion or LCDS. Its just an URL mapping, pointing the RDSServlet, which is also part of BlazeDS.

  421. Colin says:


    Can you give me an example please? I’m getting an error when I use the xml code snippet you provided on your blog. We have remote developers that want access to the available ‘remotable’ methods and this would really help us! The error that I’m receiving is:

    Error executing RDS command. Status Code 404, Reason: /blazeds/CFIDE/main/ide.cfm.

    We don’t have that cold fusion module – we’re not running cold fusion. How should the RDS Servlet be mapped?

    Thank you for your help.

  422. Hi Harshi,

    Please try changing the URL to file://c:/LoginService.wsdl

    Hope this helps.

  423. Hi Colin,

    Looks like the servlet mapping is not done properly. Please check if there are any errors in the web server log and also please check if you have the flex-rds.server.jar in your web application bin folder, if not please use BlazeDS 4.0 or try this article

    Hope this helps.

  424. Colin says:


    Hmm. Now it works! I am using BlazeDS 4.0 – I may have been pointing to the wrong context in the Flash Builder project.

    There was an error that I found in the RDS Servlet mapping though – the made the xml compiler choke. I changed it to id=”rds..”> and it worked. Any ideas here?

    Thank you.

  425. Colin says:


    Another question – RDS looks like it’s working now, but how do I package this up in an AIR app for desktop deployment?

    Thanks again,


  426. OmarOmar says:


    Flex AIR (SDK 4) have property “alwaysInFront”. And yes, it is working almost always but when i run some game – that window hide… I think it’s because games use OpenGL/DirectX.

    I try make overlay/transparent layer in games/programs but i dont know how do solve this problem.

    It’s possible because The Procaster Application from have that future.

    Any ideas? Or help? How do that?

  427. Hi Colin,

    Please check the articles for details on how to configure the configuration files for an AIR application.

    Regarding the error, I am not sure. Can you please share the XML snippet, I will try to reproduce the same.

  428. madhu says:

    hi sujit,

    i have a complete project with videodisplay tht plays .flv files with play,pause,next video,prev ,but now we would like to add .swf files to it. Is there any possibility tht we can play .swf file in videodisplay or how can we change the project just to replace the .flv files to .swf, we r parsing the data from xml.pls advice.
    thanks in advance.

  429. madhu says:

    hi sujit,
    in video display i just added the arraycollection of videofiles to the source of videodisplay, so can i replace the videodisplay with swfloader? bcoz in swf loader also if we pass .swf to source for tht to we need to load the swf file bfore playing?some examples r like tht. i dint find good examples for playing a list of .swf files tht r parsed from xml.plz provide me some links. i have a requirement tht i have to b able to click on the link in the .swf file while playing. unless u click on it, the file will not move.plz help.

  430. alamata says:

    hey sujit,

    i try to use the as3googlecalendarlib…

    thx for share it….

    but i have somme error with falsh cs4 ide

    GoogleCalendarVO.As line:66 Error 1047: Parameter initializer unknown or is not a compile-time constant.
    GoogleCalendarVO.As line:78 Error 1047: Parameter initializer unknown or is not a compile-time constant.
    GoogleCalendarEventUtil.As line:109 Warning: 3594: getTime n’est pas une mรฉthode reconnue de la classe dynamique Date.

    how can solve the problem,…

    i hope sincerely that you ‘ll answer to my post,….

    best regards,…

  431. Rakesh Dash says:

    Hi Sujit,

    My application is using flex as front end as java as back end with BlazeDS.

    I have a method to get the data from the DB. I get “java.lang.NullPointerException : null” error when I hit for data from flex using IE 8 but while using Firefox I am not getting any exception.

    What I need to do to solve this for IE??


  432. Ashish says:

    Hello Sujit:
    How are you?
    I am one of the attendee in Pune Flex 4 tour at Pune last month.
    Thanks for such a wonderful demonstration.
    I have got one problem it would be gr8 if you help to solve it.

    I have one database of 30 lac records in it,
    Fields are ID, Name & Mnumber(10 digit mobile number)

    i want to create autocomplete textbox which suggest number acoording to user input data, for example
    lets say user enter 98 so it will show all the matching entries (not all but atleast 10 records)
    again if user entered 982 so it will show matching records from database.

    How do i achieve this, means 30 lac records is the main problem for me.

    Please suggest.

    Thanks & Records

  433. U Shiva says:

    Hi Sujith,

    I have seen your blog and I have done some examples it is very useful to learn flex. But basically I am java developer and now i am trying to shift to flex with java platform. And I am trying to get job on flex.I am attending for interviews on flex, but i think that I am not representing correctly for the interviewer. I have searched in the googlge but no one is giving correct answsers.So can u please give the answers at the interview point of view.Or can u give the reference links for preaparing for interview. If u r ok for this i will send the list of questions which interviewer has asked me.

    Thanks in advance….

    Looking forward for your reply………

  434. U Shiva says:

    Hi Sujith,

    I have seen your blog and I have done some examples it is very useful to learn flex. But basically I am java developer and now i am trying to shift to flex with java platform. And I am trying to get job on flex.I am attending for interviews on flex, but i am thinking I am not representing correctly for the interviewer. So can u tell where I can get correct answer in the interview point of view and I will send the interview question if u r ok with this…

    Thanks in advance…

    Looking forward for your reply…….

  435. veera, says:

    Hi Sujit,

    You are doing nice job…ur replys helping a lot for the people who are working on it…

    I have one problem.. please help me..

    I have some vboxs ….i want move clicked one to top…and remaining should move in circle..

    example.. i have 4 vboxs like 1 2 3 4

    I clicked 3…result of order should be 3 4 1 2


  436. Srini Yarlagadda says:

    Hi Sujith,

    We are trying to load test one of the applications built on flex framework. While recording the scripts using webload, we are getting an exception saying “Cannot create class of type DSK”. Could you please let us know where i can find this class/jar file?

    Here is the log information

    Apr 29, 2010 10:21:58 AM WLAmfMessage createMessageFromBuffer
    Apr 29, 2010 10:21:58 AM com.radview.amf.WLAmfMessage createMessageFromBuffer
    WARNING: Exception occurred while reading message
    flex.messaging.MessageException: Cannot create class of type ‘DSK’. Type ‘DSK’ not found.
    at flex.messaging.util.ClassUtil.createClass(
    at com.radview.amf.WLAmfMessage.createMessageFromBuffer(
    at com.radview.amf.WLAmfMessage.(
    at com.radview.amf.WLAmfMessageNavigator.getMessageStructure(
    Apr 29, 2010 10:21:58 AM WLAmfMessage createMessageFromBuffer

  437. Varun says:

    Hello Sujit,

    It was nice to meet you and get new information on the FlashBuilder4 during the seminar in Adobe, last month. ๐Ÿ™‚
    I am building a AIR application and using Updater UI, since we have iterative releases. But some of my users do not have admin privileges on there machines. The first deployment is not a problem since I can take help from the admin to get it installed, but consecutive updates wont work. Is there a way we can work around this problem or does version 4 supports this. Kindly let me know your thoughts.

  438. madhu says:

    i have a requirement to roll a single image into half circle shape, i searched google but i found galleries but i just wanna paste single image on a cup. so thought of 1st moulding it and then paste it.
    guide me thru the links.

  439. Amruta says:

    Hi Sujit

    I have a question regarding flex java communication using remoteobject.When do we require to define channels runtime in application?because sometimes it works fine without defining any channel runtime but sometimes not.


  440. nidhi nautiyal says:

    Hi Sujith

    Can i use oracle datasource in lcds.xml.Its gving me error .I am using this resource property

    I am not sure about type type=”javax.sql.DataSource”

  441. Akash says:

    Hi Sujit,

    I want to know how I can create dynamic reports in a flex applications. Just like crystal reports. I want to generate list of people citywise or coursewise. suggest me any other alternative. I am building my application with Flex & PHP & MySQL.



  442. Rohit says:

    Hi Sujit,

    I want to know about EXTJS framework. I have heard that once GUI is ready in EXTJS, we can use the same GUI with adobe air. Could you please guide me for the same how to do the same.

  443. sandy says:

    May 17, 2010 5:33:24 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source’ to ‘org.eclipse.jst.jee.server:VideoChat’ did not find a matching property.
    May 17, 2010 5:33:24 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
    WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property ‘source’ to ‘org.eclipse.jst.jee.server:CustomerCare’ did not find a matching property.
    May 17, 2010 5:33:24 PM org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\MySQL\MySQL Server 5.1\bin;C:\Program Files\Java\jdk1.6.0_18\bin;C:\Program Files\Java\jdk1.6.0_18\bin;
    May 17, 2010 5:33:24 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8080
    May 17, 2010 5:33:24 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 276 ms
    May 17, 2010 5:33:24 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    May 17, 2010 5:33:24 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
    **** MessageBrokerServlet failed to initialize due to runtime exception: Exception: flex.messaging.MessageException: An unknown exception occurred while creating an instance of type ‘cc.ClsTEST’.
    at flex.messaging.util.ClassUtil.createDefaultInstance(
    at flex.messaging.Destination.createAdapter(
    at flex.messaging.config.MessagingConfiguration.createAdapter(
    at flex.messaging.config.MessagingConfiguration.createDestination(
    at flex.messaging.config.MessagingConfiguration.createServices(
    at flex.messaging.config.MessagingConfiguration.configureBroker(
    at flex.messaging.MessageBrokerServlet.init(
    at org.apache.catalina.core.StandardWrapper.loadServlet(
    at org.apache.catalina.core.StandardWrapper.load(
    at org.apache.catalina.core.StandardContext.loadOnStartup(
    at org.apache.catalina.core.StandardContext.start(
    at org.apache.catalina.core.ContainerBase.start(
    at org.apache.catalina.core.StandardHost.start(
    at org.apache.catalina.core.ContainerBase.start(
    at org.apache.catalina.core.StandardEngine.start(
    at org.apache.catalina.core.StandardService.start(
    at org.apache.catalina.core.StandardServer.start(
    at org.apache.catalina.startup.Catalina.start(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(
    at org.apache.catalina.startup.Bootstrap.main(
    Caused by: flex.messaging.MessageException: Given type ‘cc.ClsTEST’ is not of expected type ‘’.
    at flex.messaging.util.ClassUtil.createDefaultInstance(
    … 23 more

    May 17, 2010 5:33:25 PM org.apache.catalina.core.ApplicationContext log
    INFO: Marking servlet MessageBrokerServlet as unavailable
    May 17, 2010 5:33:25 PM org.apache.catalina.core.StandardContext loadOnStartup
    SEVERE: Servlet /CustomerCare threw load() exception
    javax.servlet.UnavailableException: An unknown exception occurred while creating an instance of type ‘cc.ClsTEST’.
    at flex.messaging.MessageBrokerServlet.init(
    at org.apache.catalina.core.StandardWrapper.loadServlet(
    at org.apache.catalina.core.StandardWrapper.load(
    at org.apache.catalina.core.StandardContext.loadOnStartup(
    at org.apache.catalina.core.StandardContext.start(
    at org.apache.catalina.core.ContainerBase.start(
    at org.apache.catalina.core.StandardHost.start(
    at org.apache.catalina.core.ContainerBase.start(
    at org.apache.catalina.core.StandardEngine.start(
    at org.apache.catalina.core.StandardService.start(
    at org.apache.catalina.core.StandardServer.start(
    at org.apache.catalina.startup.Catalina.start(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(
    at org.apache.catalina.startup.Bootstrap.main(
    May 17, 2010 5:33:25 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8080
    May 17, 2010 5:33:25 PM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /
    May 17, 2010 5:33:25 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/19 config=null
    May 17, 2010 5:33:25 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 1255 ms

    May 17, 2010 5:33:49 PM org.apache.catalina.core.StandardWrapperValve invoke
    INFO: Servlet MessageBrokerServlet is currently unavailable

  444. sandy says:

    what to do???

    [RPC Fault faultString=”Send failed” faultCode=”Client.Error.MessageSend” faultDetail=”Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: ‘http://localhost:8080/CustomerCare/messagebroker/amf'”]Error In the Code

    i checked all the xml files, but, i am unable to rectify the problem.

    please tell me how to make the code run…

  445. Varun says:

    hi sujit,

    Is there a limitation to restore AIR application from system tray using Native windows commands like ShowWindow and WinMain? I have a light weight .Net client application that is responsible for invoking AIR application. Once done it dies and then I can use my AIR application itself to control minimize/maximize application. But if I use .Net client, I wasn’t able to restore it back using any of the native code. Appreciate your comments on the same.


  446. Manimaran says:

    Hi Sujit,

    I want to download blaze monster(in AIR version) , can you please send me the correct link to download.


  447. Aakash Punatar says:

    Hi Sujit,

    i am facing one wired problem which i am not able to reproduce in my dev environment. but @ QA environment explore are crashing and giving the following error.

    “The Instruction at “0x7e1f9883” referenced memery at “0x017674e0”. The memory could not be “read”.

    Click on Ok to terminate the program.

    Please suggest me wheather it has the problem with QA set up. They are using the IE6 and in dev we are using the IE8 with flash player 10.

  448. Srini says:

    can you look at this question.
    Please share your thoughts.

    Created a java pojo with boolean attribute on backend .
    For example like this,
    public class CustomerBO {

    private boolean isFunction;

    public boolean isFunction() {
    return isFunction;

    public void setFunction(boolean isFunction) {
    this.isFunction = isFunction;

    public CustomerBO() {


    2. Create a remote service that returns this object.

    3. using FlashBuider connect to this service , it generates action script classes (valueobjects & service classes ).
    But it’s not compiling , we don’t know how it generates.

    Looks like , isFunction method translated into as below , since function is a reserved word, it’s not compiling.

    public function get function() : Boolean
    return _internal_function;

    We are trying to connect to existing backend system which has functions like this isFunction , isNull etc… ,

    Is there any work around ?

    Why it’s ignoring ‘IS’

  449. saj says:

    Hi Sujith,

    I am trying to write an ftp client and using to write the files at the ftp location. The files are getting written without any problem. But once the files are written I need to inform the user that its done. Can you please tell how to do it?

  450. Sameera says:

    Hi Sujith,

    We have a java web application. I embeded flex chart in one of the jsp pages of the web application. When I login to the application and navigate to that jsp, flex chart shows up just fine. But, after that if I want to navigate to a different page in that application, it logs me out since my login session is lost. How to keep hold of this login session after flex chart is displayed?

    I am new to flex, I would really appreciate your help.

  451. Rahul says:

    Hey Sujit,

    I am new to flex and blazeds. I had the following question.

    I am trying to pass a complex object from Java to Flex using BlazeDS. I have three classes

    public class Phone {
    public long number;
    public String type;

    public class Addres {
    public String city;
    public String state;
    public String type;

    public class ContactInfo {
    public Phone phone;
    public Address address;

    in another class I have the following two methods. this class is a exposed to flex in the remote-config.xml in blazeds

    public Phone getPhoneNumber() {
    Phone phone = new Phone();
    .. some code..
    return phone;


    public ContactInfo getContactInfo() {
    ContactInfo cinfo = new ContactInfo()
    … some code..
    return ContactInfo

    Above are my classes on Java side and I have similar classes on Flex side.

    package object
    public class Phone {
    public var number : Number;
    public var type : String;

    package object
    public class ContactInfo {
    public var phone: Phone;
    public var address: Address;

    If I call a java method from flex which returns an object of type Phone, I am able to get that object on flex side and access all its data field, but if I try to access an object of ContactInfo which internally has Phone and Address object, I get an error #1009: Cannot access a property or method of a null object reference.

    If I run test code calling the same methods on java side, I am able to print all the values from the object ContactInfo.

    I am missing something when I try to call a method which returns an object which internally holds other objects instead of standard data types?

    Thanks in advance! Any help is appreciated.


  452. Shri Priya S says:

    Hi Sujit,
    I appeared for the Adobe Flex 3 with AIR exam and cleared the exam with a score of 84 %. I am extremely happy and feel elated that I am now part of the Adobe Certified Expert Community. Your blogs greatly helped me to explore all topics. Thank you.

  453. Venkat Reddy says:


    i was setthe focus to the TextInput component, (this is component in login window). This highlights my TextInput component, but it is not place
    cursor in textinput

  454. VenkatReddy S says:

    Hi sujit

    i was setthe focus to the TextInput component, (this is component in login window). This highlights my TextInput component, but it is not place
    cursor in textinput

  455. VenkatReddy S says:

    this highlights my TextInput component,but cursor not placed into

    please send solution for my problem.

    1) I wrote Code in html-template \index.template.html file

    2) This is Mxml Code


    2) I wrote this Code in file

    public function setfocus(event:Event):void
    if (ExternalInterface.available)
    {“Browser not available”);
    LoginView_UserNameTextInput.text = EMPTY_STRING;
    LoginView_UserNameTextInput.text = EMPTY_STRING;
    LoginView_UserNameTextInput.selectionBeginIndex = 0;
    LoginView_UserNameTextInput.selectionEndIndex =


  456. Adnan says:

    Hi Sujit,

    I am new to LCDS, just a quick question is it possible to create joins from LCDS?

  457. Ravi kumar says:

    i was installed LCDS. but when i was trying to connect java server its showing unknown error “my-http” missing. Need help

  458. Hi,

    We are using a BlazeDS turnkey solution which was running perfectly on localhost:80 when viewed from the local machine.

    When we try to change the localhost to a fixed IP in the services-config.xml file, the remoting calls return Send Failed. Have tried a few options but no luck so far.

    All help is highly appreciated.

    Best regards,

  459. SrinivasaRao says:

    Hi Sujit

    I would like call MDB from flex without using Blze or LCDS.What is the approach i have to follow.Can you suggest me

  460. Amy says:


    I am developing an appication in flex 4. I want to know which one to use “BlazeDs” or “PHP” as backend.?

  461. Ajay Reddy says:

    How can we pause and resume the timer in flex.

    var timer:Timer=new Timer(10000);
    now i want to pause the timer after 5 seconds if some event occurs and resume from 5 seconds if another event occurs.

  462. kanaily says:

    I have integrated Flex with Java through blazeds. Its very small program in which i set/get the value to/from the Java class data member. I set the value but while getting the value from class through other member function it returns “null” at event.result in flex.
    So i have one doubt “do i access the member variable through other function via remote object ?”
    All function are public declared at JAVA class.

    I am new to Flex. I am following your blog ..

  463. Ankur says:

    HI Sujit,

    I am using blazeds spring.
    I am using FlexContext.getFlexSession()
    to access flexSession and store some object there.
    But at some time I am getting this exception, please let me know if you have ever faced the same problem or you have any solution.


    java.lang.IllegalStateException: setAttribute: Session already invalidated
    at org.apache.catalina.session.StandardSession.setAttribute(
    at org.apache.catalina.session.StandardSession.setAttribute(
    at org.apache.catalina.session.StandardSessionFacade.setAttribute(
    at flex.messaging.HttpFlexSession.setAttribute(
    at com.barcap.hpscui.serviceImpl.UIQueueImpl.saveUserProfileInFlexContext(
    at com.barcap.hpscui.serviceImpl.UIQueueImpl.getUserDetailsFromSession(
    at sun.reflect.GeneratedMethodAccessor595.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at flex.messaging.MessageBroker.routeMessageToService(
    at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(
    at flex.messaging.endpoints.AbstractEndpoint$$FastClassByCGLIB$$1a3ef066.invoke()
    at net.sf.cglib.proxy.MethodProxy.invoke(
    at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
    at org.springframework.flex.core.MessageInterceptionAdvice.invoke(
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
    at org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
    at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(
    at flex.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$2e2fe31d.serviceMessage()
    at flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(
    at flex.messaging.endpoints.amf.LegacyFilter.invoke(
    at flex.messaging.endpoints.amf.SessionFilter.invoke(
    at flex.messaging.endpoints.amf.BatchProcessFilter.invoke(
    at flex.messaging.endpoints.amf.SerializationFilter.invoke(
    at flex.messaging.endpoints.BaseHTTPEndpoint.service(
    at flex.messaging.endpoints.AMFEndpoint$$EnhancerByCGLIB$$2e2fe31d.service()
    at org.springframework.flex.servlet.MessageBrokerHandlerAdapter.handle(
    at org.springframework.web.servlet.DispatcherServlet.doDispatch(
    at org.springframework.web.servlet.DispatcherServlet.doService(
    at org.springframework.web.servlet.FrameworkServlet.processRequest(
    at org.springframework.web.servlet.FrameworkServlet.doPost(

  464. Dayasagar says:

    Hi Sujit,
    We are using the BlaseDS libraries to serilize the Java ArrayList (amf3Output.writeObject(arrayList)) and on the client side reading the byte stream and the casting the read stream of bytes as ArrayCollection (event.result as ArrayCollection). This was working fine while we were using Flex SDK 3.1 and BlaseDS 3.2 libs. The we compiled the same code with Flex 3.4.0 and above , the flex is not recognising as ArrayCollections.
    If you can provide any pointer to solve the issue? I appreciate any help..

  465. Zafer Altun says:

    Hi Sujit.

    I ‘m using Flash and AS3 to develop my applications. I downloaded the library and helper pdf files but i could not run it unfortunately. I wonder, does it run with Flex only? I ‘m working in a private company and we want to use your library in a big ERP project. Can you give me an example file or something like that please?

    Best regards.

  466. kamesh says:

    i have a flash application that interacts with a URL. the flow goes like this
    -> refers to Redirect, => HTTP POST

    flash as3 -> page A.aspx -> page B.aspx -> Page C.aspx => Page B.aspx -> page A.aspx ->flash as3

    the page A sends a XML response to flash.

    Now when page c.aspx POSTS data to Page b, flash reads this data and gives this error “Since your browser doesnt support
    javascript, you need to hit continue button to proceed”.

    Actually we are expecting flash to read the XML response from page A.aspx.

    i want flash to read the XML result from page A.aspx….is there a woraround to get this working?

  467. Makarand says:

    Dear Sujit,
    I am working on a recruiting software, UI is all flex and backend is Java.
    I have the prototype, but my UI sucks.. If you can recommend some UI expert (person /company) who can create UI’s with a kool look n feels, I would appreciate very much.. Preferably in Pune or Bangalore.

    Looking forward..


  468. saj says:


    I need to do ftp to different ftp locations of the users. It worked fine from my local machine. But when I deployed it on my server it gave SecurityErrorโ€“>Error #2048: Security sandbox violation: cannot load data from

    I kept crossdomain.xml in server root directory and its accessible with but still the security error is thrown.

    Do I need to anything else on flex side like loading the crossdomain.xml on application init etc.Any ideas?

  469. Abhay says:

    [MessagingError message=’Destination ‘CreatingRpc’ either does not exist or the destination has no channels defined (and the application does not define any default channels.)’]

    I have created a 2nd java class in the same java project.

    In the remoting -config file too i have added the


    But its isnt working

  470. Manoj says:

    Hi Sujit,

    we are using webservices to fetch data from jboss server. we were able to fetch data when i call any of the method with no arguments, but when any method with any custom AS class as param the operation fails with #1009 eror.Cannot access a property or method of a null object reference.
    I made sure that none of the objects are null.

    Let me know if there are any issues with this.


  471. sri says:

    Hi Sujith,

    I am trying to use appendChild, this xml has multiple nodes of same element. For example my xml is like this
    var testxml:XML = abc
    This is the xml that I have to append
    var appendXML:XML = AB
    I have a lot of class nodes that I have to construct dynamically.
    When I try using testxml.categories.category.appendChild(appendXML)
    there is a runtime exception APPENDCHILD works on only list containing one item. I have tried using various ways and other methods. Can you suggest some way to append this xml.


  472. shrikumar says:

    Need one help in flex 4.
    Searched all over internet around 3 days, Couldn’t find it..

    here is my question,

    Consider, I need to fetch data from java by using remote object.
    for that, i need to create 2 funcrion a) Invoke the remote object b) Uising addEventListner & resultEvent to fetch the data as arrayCollection.

    public function remoteHandler():void
    var ro:RemoteObject= new mx.rpc.remoting.mxml.RemoteObject;

    private function resultHandler(event:ResultEvent):void

    var objectiveList:ArrayCollection= new ArrayCollection;
    objectiveList=event.result as ArrayCollection;

    I am pretty sure above code will work,

    But i need to combine these 2 functions together and make a single function which return the arryCollection, So that i can call this function is some loop and fetch the java values whenever i need.
    But i am not able to combine there 2 functions since addEventListner returning null value(void), and not not getting any values.

    Please let me know how i can do this,,

    Thanks in advance

  473. Daniel says:

    Iโ€™m having a problem in exactly 30 seconds with AIR 2.0/BlazeDS request. The error is not a requestTimeout. Error message:
    Any hint how to fix this problem?

  474. Ravichandran says:

    Hi Sujith,

    I have the problem in convert Hexa Decimal values to Integer and display the Time in Flex.

    Here is same xml code :

    Please help in converting this to readable time format.

    Thanks in advance.

    Ravichandran J

  475. Srinivasan says:

    Hi Sujith,
    I am learning on Flex and integrating Flex with Java using BlazeDS. We are planning to move to Flex and remove the Java Swings.
    I have a following query.
    I have read that Polling and Long Polling are possible.
    But I was not able to find any sample examples for that.
    My requirement is , From Flex, i will call a java method. In Java, i will do the processing and I will send some notification to Flex(Client) and the Flex will show it in UI.Also the notification that i send should be of a common structure which both Flex and Java can understand.The structure will have a type of the notification and the value for it.

    How can i do it? Can you help with sample examples for both Polling and long polling and the server is in Java and Using BlazeDS?

    It would be helpful for me and many others.


  476. Pravin ttarwar says:

    Hi Sujit,

    I have an requirement in my project where I want to create my own Flex Session on the web server.

    Is that possible?

    Please let me know if i can do this,

    Thanks in Advance.

  477. Antonio says:

    Hi Sujith,
    I’m using AS3 library for Google Calendar API.
    How I can retrieve my existing calendar?
    I have to call getAllCalendars(userVO) void function and then how I can access to allCalendars variable that contains my calendars?

  478. Antonio says:

    Hi Sujith,
    how I can do authentication, get my calendars, but I can’t add an event to the calendar selected.
    Can you help me?
    Can you post an example with authentication, retrieve calendars, and add an event to a calendar?
    Thanks in advance

  479. Pothiraj says:

    Hi Sujit,

    I’m following your site and posts regularly.It helped me lot in Flex initially.Past 2 years I’ve worked many Java, flex projects with help of Evangelists like you. Actually I don’t have any questions to you today, Just wanted to greet and thank you. Keep Rocking….


  480. Idan says:


    I am working with flex 4 and blazeds.
    On the server side I have method that receive string and return result of sql query as ArrayList.
    The results are of different table each time depending on the string I send.
    In the result I put in place 0 the column names.

    When I try to change the column property of the datagrid I receive no data in the datagrid.

    Below is the code of the event.
    What can cause this ?


    private function resultHandler(event : ResultEvent) : void {
    data = event.result as ArrayCollection;;
    var columnNames : String = data.getItemAt(0).toString();
    var columns : Array = columnNames.split(“,”);
    var columnArray : Array = new Array();
    for (var i :int=0; i < columns.length; i++) {
    var dataGridColumn : DataGridColumn = new DataGridColumn(columns[i]);
    dataGrid.columns = columnArray;

  481. Naveen Malhotra says:

    Hi Sujit,

    I need some information regarding LCDS; like how to get the license, what is cost, what kind of license is it, how to install it and stuff like that.

    Can you please help me in this?

    Thanks in Advance

  482. Adnan says:

    I want to export the advanceddatagrid to CSV file, I write the code that working quite good but i face the problem. It should not genrated the heirarical data and also the grouped column in CSv file, any one have the solution then lz help me….

  483. Uzair says:

    Hi Sujit,

    I have been struggling for Flex and BlazeDS setup but you brilliant article has solved it in minutes. So, Thank you for posting such useful material.
    I am stuck at one point and struggling from last 3 days. When I am trying to connect to a dataservice then after Selecting No Password checkbox for RDS and when I click next it gives this error:
    RDS server message: Error executing RDS command.Status Code: 500, Reason:Internal Server Error.
    Note: I have started Apache Tomcat 7 as well and its running fine apparently.
    I am waiting for your reply.
    Thanks. Uzair

  484. Peter says:

    Hi Sujit,

    I’m building Flex application with BlazeDS/LCDS on background. Currently I have small problem, with uploading files to server.

    There are two solutions, how to upload file on server.
    1) Load selected file into object and send this file thru RemoteObject to server. This options work for me, because server backend recieve object with my file and all security rules and sessions are accessible ( is user logged or not, session data about user). But there are some cons. I need to load whole file into flash player and if is file big, flash player freeze for a while. Other cons is, I lose upload progress (eq for progressbar).

    2) Create upload servlet and upload selected file by fileReference.upload( URLRequest ). With this option I get upload progress and flash client not freeze, because file is uploaded on background. But here are some cons too. I can’t access to FlexContext, so i lose authorization and session data.

    I’m not sure, which option chose. Second solution is better for users, because they see file upload progress. But it is security risk for me, because I can’t access to FlexContext.

    Solution is, somehow add my upload class to FlexContext. In this case I would see that FlexContext. But I don’t know, how to do this.

    Thanks for any help.


  485. Amit M says:


    I have a FlexClient which only uses HTTPServices for RPCs. We dont have any BlazeDS as of now.

    In order to use the messaging, I will be using BlazeDS. Is there a way where, while talking to BlazeDS (using Consumers – short po9lling), it doesnt reset my usual session for client. In other words, if client X is logged IN and I make server calls through Consumer (short polling mechanism), it should not affect the client’s session at all. Is it possible?

  486. Irfan Ahmed says:

    Hey Sujit,

    I am a bit of a novice in Flex. I have everything working with BlazeDS, I am having trouble setting up order of my internal Flex containers/components they each get data from my java app server, and I would like them to each contact my app server at the same time, and then become visible as each completes. Right now it’s following a serial order. We are using states, and it seems right now the The child most component is loading first and then going upwards. I hope you understand what I mean. The codes’ huge so I can’t post it.

  487. Uzair says:

    Hi Sujit,

    I have managed to sort out the issue and my application is running perfect now. Anyways thanks for all the brilliant material here.
    I have another question. I have a chart and I am passing values to draw lines through an array. What I want to do is, I want to draw DOTS or Points over the same line graph as well but for Dots the data will come from an sql data source. Therfore, is thei any ways to use two datasources for the same graph, where first datasource will be drawing lines while the second datasource will be plotting dots over the same graph. OR Is their any other way to do this.

    Thanks in advance.

    Kind Regards,

  488. suma says:

    Hi sujith,

    I am new to flex and trying some sample application.
    Below is the issue im facing.
    I have 2 projects in flexbuilder.
    1st project used for UI
    2nd project to map to java class(interfaces,as files)

    I have given project ref from project 2 to project .And I have taken swf and html file from project 1 and placed in eclipse to test UI and services chnages together.

    I have removed couple of methods in project 2(calling and its implementation logice) but while running in eclipse it gives error telling that “method not found”.Looks like chnages i have done in project 2 its not taking in eclipse.
    can you please suggest me on this

  489. Uzair says:

    Hi Sujit,
    I have managed to solve the second problem as well, which was using two different datasource from two different places and its working perfect now.
    Now my question is, Curretnly I am plottin bothe datasources as lineseries using linechart but what I want to do is, in the same linechart, I want to show data from one datasource as lines and data from otherdata source as DOTs. Please give me some suggestions that how can I achieve this.
    Thanks in advance.


  490. U Siva says:

    Hi Sujith,

    I want to do Adobe Flex Certification. Can you please guide me how to do that and any mock test papers are there for Flex Certification.

    Thanks in advance……

  491. GopiSaxsi says:

    I followed the example in this:
    Now while starting Tomcat i get this error:
    MessageBrokerServlet in application ‘BlazeDS’ failed to initialize due to runtime exception: Exception: flex.messaging.config.ConfigurationException: adapter not found for reference ‘RandomDataPushAdapter’ in destination ‘RandomDataPush’.
    Not sure where I’m wrong I have checked Service-config.xml and messaging-config.xml
    Any pointers?

  492. Mohini Aherkar says:

    We are developing a tool which will automate and execute command prompt related commands. This tool is specific TO OUR PROJECT FRAMEWORK. We are facing a few difficulties.Below is the code snippet.

    protected function updateTargets(targets: String): void {
    var file:File = File.documentsDirectory;
    //TODO relative path
    file = file.resolvePath(“C:/Users/224439/Documents/TM1/MaestroCommands/”);
    var fileStream:FileStream = new FileStream();
    fileStream.openAsync(file, FileMode.WRITE);

    fileStream.addEventListener(Event.CLOSE, executeCommands);

    The above code containing resolvePath() works fine when absolute path is given.But we want that file should be generated in flex-air project directory itself. We have tried using resolvePath with documentsDirectory, applicationDirectory, desktop and applicationStorageDirectory etc. This creates the file outside the project. Could you please guide us regarding this ASAP. Also it would be helpful to know about any alternative API which may help in setting relative path.

  493. David Weis says:

    Hi Sujit,

    Is it possible to intercept action script object responses from and construct action script object requests to be sent to a third party server?

    I do not have access to the server and do not know the structure of their objects.

    I believe it is possible without deploying a crossdomain.xml file to the 3rd party server, using HTTPService.useProxy = “true”.

    So with this, is it possible to create a java app client that would interact with their server as their client Flex app does?

    Again, I have no access to their server and know nothing of their Object structures or API other than what I can see using Firebug to watch the wire while using their Flex app.

    I am very much looking forward to your response.

    Thank you,


  494. Aubry says:

    Hello Sujith,

    I am ussing Coldfusion 9 and I am trying to send and recieve messages (client/client) in Flex using producer and consumer.
    I am using the cf-polling-amf channel and the ColdFusionGateway destination.
    I am a bit lost and stuck with this error :
    “Unable to find ColdFusion gateway ‘cfgateway’ in RMI registry on host localhost. The gateway may not be running.”
    I read that RMI is used with LCDS but LCDS is not installed by default with CF9 but BlazeDS is.
    So what do I need to do in order to get this working ?

    Thanks a lot,

    Regards from Belgium,


  495. Angela says:

    Hi Sujit,

    I am new to flex so please excuse if my questions doesnt make much sense.
    I would like to make an application, whose front end is in flex and backend as Java. I am not using any webs server, hence not sure if BlazeDS makes sense here or not. I have a complex Java Core code, consisting of many classes, and would like to call the java code from flex/action script.
    Can you please help me understand this? Would appreciate your help!

  496. Edgar Aguilar says:

    Hi suji:

    My situation is this. My team developing a flex3 blaze ds aplication that uses remote object to write/read the database and producers/consumers to inform other instances of the same app that the database has been modified so they update themselves as I/the clients can’t afford lcds. Another team is developing a different aplication that also runs on blazeds/flex3. Now we need to add a messaging system, very similar to forum threads that can be shared between the two applications. What we want to do now is share remote objects/messaging channels between the two completely separate flex/blaze projects so we only need to write/update one set of java classes that do the forum-thread database writing as well as creating a shared messaging channel between the two different flex apps.

    We used you blaze monster and we were able to comunicate with it to our separate applications, when we added the code it generated to a non blaze ds flex project it also worked perfectly. but when we added that code to a blaze-ds/java flex project we got a sandbox security error. also this only worked for remote objects and not for messaging channels.

    We ahve been searchign around but have not found any examples of poeple doing the cross application comunication so if you could guide us in the apropiate direction we would be thankful.

  497. sunil says:

    Hello Sujit,

    I want to create application using Flex 4 and BlazeDS in which i want to sync. client – server data (means data pushing). So, Can you please guide me that how can i achieve this.


  498. Chaitanya says:

    Hi Sujith

    This is Chaitanya. I am having problem with validateNow() function on an object which contains a Huge CustomDataGrid. The DataGrid contains more 2500 rows of data. I am getting the following error
    “Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.
    at mx.managers.layoutClasses::PriorityQueue/removeLargestChild()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\managers\layoutClasses\]”

    The code works greats if the datagrid has less than 100 rows..

    Need help badly..

  499. Edgar Aguilar says:

    just to update that I ahve sovled my problem, thanks anyway.

  500. elmak says:

    What is the easiest why to configure Flex-Spring-Hibernate Project in eclipse.

  501. Gerald says:

    hi Sujit,
    i am new to Flex.i trying to call java function from flex button click.
    but am getting sending failed error can you please help me. i followed your example but am getting thos eror please give me some idea

  502. Chandu says:

    Hi Sujith,

    I am using the FlashBuilder profiler, but I am trying understand what the (%) values mean ,specially in the context of cumulative instances and memory . Any insight into this will be greatly helpfull.


  503. Akash says:

    Hello Sujith,

    After a lot of researches and copy/paste on Google, I finally decide to create a topic here, that means I am totally desperate.

    I have a dev environment on a Windows platform with Apache/PHP/MySQL and Flash Builder 4. I am using the Zend Framework in order to communicate with PHP classes in Action Script. Locally, all work perfectly, PHP works and content is correctly updated in my Flex apps.

    But I have a problem when i deploy application on my server(linux).

    I just export my Flex app to a release build, I modify the amf_config.ini. And I am sure my configuration is correct.

    ZendFramework is correctly installed.

    Class “xxxxxx” does not exist: Plugin by name ‘xxxxxx’ was not found in the registry; used paths: : /xxxxxx/www/services/

    The path is correct, my services are in the “services” folder, but Zend does not find the classes. Is there a difference between Zend Framework running on Windows and deployment server.

    Can you help me?

    Thanks a lot.


  504. chowdary says:

    Hi Sujith,

    How can I pass Value object to java side by using Remote Object. Can you plz give me samll example on this same.

    Like this we can send name to java side.

    Same thing I want to Send Value Object to java side by using Remote Object. Can u plz tell me how it is?


  505. Prakash says:

    Hi Sujit,

    I have a requirement to implement a feature like providing on-screen help related to the panel/control/form(using F1). By using this feature,user who is using my application can get information on particular portion of help.

    I am using flex 4 + cairngorm 3 + blazeDS + spring + hibernate

    Thanks & Regards,

  506. lreddy says:

    hi Sujith,

    I am working on a flex datagrid with pagination feature. I also want to have a copy and paste functionality from datagrid to excel.
    Do you have any article on it or can you point me to some resources?


  507. Jitendra says:

    Hi sujit,
    Im an intern under grad doing my project in Flex and Struts. I dont have any experience working on either technology. Can you help me out by providing me with example code on CRUD app using Flex 3, Struts and Oracle 10g. I have managed to connect Flex and Struts using FStruts but i cant figure out the next move. I tried ur post –

    But i wasnt able to connect to the database. Feels tough.. ๐Ÿ˜ฆ Well, incase u know any reference books or links that mite help me then post them too! Thanks in advance.

  508. Ram says:

    I am a java developer.I know Flex basics.I have a requirement that I have to connect to JSP from Flex without using LCDS & BlazeDS.Can please tell me how is it possible.If possible send me an example for it.


  509. Doby says:


    I am developing an application for sailboat racing whereby racers provide their location via a flex application, and the locations are distributed to a viewing application.

    Would you recommend blazeds? There would need to be queuing and logging.


  510. lreddy says:


    I have a datagrid, but the vertical line betwnn the
    header rows and the data rows are not continuous, there is a slight angle, because of this I am not able to resize the column/header width. What css attribute controls this alignment.

  511. syeath says:

    i need to get session in java java i am using xfireframe work.then i need to pass this session to flex client side,pls help me
    give idea
    thanks for advance

  512. lreddy says:

    Hi Sujit,

    I am using a datagrid with resizableColumns set to true. I can drag and resize columns with ease on my local setup. But when I deploy the same app on my dev env the dragging feature does not work and I cannot resize the columns. What I noticed usually the vertical line separator in the header section is continuous with the datarows verical separator, but on my dev env it is not continuous, there is very slight angle betn the two lines. Is that the cause. Is there any css attribute that controls this property?

  513. Krishna says:

    Hi Sujith,

    I want to migrate my flex 3 application to flex 4.
    which component set should i choose for this new project?
    there are two component set
    1. mx+Spark
    2. mx only

    i can go with any one of the option, but i want to prefer one which will not create any performance issue.
    can you please tell me the better one or
    if you have any blog related to this please give me link.


  514. Akash says:


    Can you Please help me on this : init SRVE0100E: Uncaught init() exception created by servlet Service in application PG2Ear: java.lang.VerifyError: JVMVRFY027 receiver is incompatible with declaring class; class=javax/xml/marshal/StreamScanner, method=fail(ILjava/lang/String;)V, pc=97

    I have migrate web application from WAS 6.0 to WAS 7.5.4.

    Please if possible help me on this ASAP.

    Akash Srivastava.

  515. Jonathan says:

    I have been trying to integrate a flex app that is run on my apache 2.2 server with a blazeds servlet on tomcat on the same box. I am using php and would prefer to maintain this so just moving my whole site to the tomcat server is not an option. I have ajp13 connection setup and my apache server can process jsp files in this manner but I have been unable to redirect my flex files to the servlets. I could have them access tomcat more directly but I believe I would need a cross domain file and I am under the impression these are not good. Have I been going about this setup correctly? Most of the stuff I have read only seems to mention the flex app running on the tomcat server. Thanks,

  516. Deepak Surana says:

    I am a application developer in technologies.
    I am new to Adobe and wish to develop applications for blackberry mobile and blackberry playbook.
    Please guide me what all tools I need to learn and how to go about it. Is there any training institue / workshop which I can attend.
    I am located in Delhi/Noida.


  517. Maykut says:

    Hi Sujith,
    I wanna create a simple chat room application in flex. But in my server, ฤฑ need to know which users are online. So whenever a client connect to application , will see list of available users. Can you show me any java example about this.

  518. Amit says:

    Hi All,

    I want to move all libraries from WEB-INF/lib to some external folder. but while doing so server throughs No Such class found exception. due to below entry in web.xml


    I have included flex-messagin-core.jar in external folder but still getting this error,

    what i need to change in configuration so that it will refer to my external lib folder.


  519. Shridhar Kulkarni says:

    Hello sir
    I am using amfphp and flex.
    whenever i give url for http://localhost/../gateway.php in remote object end point api, it will work fine.
    But when I place amfphp on server and try to acess it from my PC by givin url with that server ip then it will not access the server amfphp file?
    I need to c demo to client. Please revert early
    thank you

  520. Sagi says:

    Hi Sujith,

    I need to sync the changes happening in the server object model to the client currently loaded ( might be few only depends) ( Data Grid in client)

    can you suggest what would be the best to go ?

    should i go with LCDS messaging feature or data management service feature ?

    If it is messaging feature, what would be the channel i should use for performance ( huge volumn of data)

    please reply

    Thank you

  521. Joe says:

    I watched your episode: Advanced Data-Centric Application Development with Flash Builder and I was very impressed with this technology. I have also watched many Flash Builder training videos.

    I am a project manager for a POS (Point of Sale) company. Currently we offer a POS application written primarily in Cobalt for MS Windows environment on touch screen hardware. We our using โ€œWindows POSready 2009โ€ as the operation system but would like to offer our application on other platforms. Our POS system works both as single client or multi-client environment, as well as multi-revenue environment with single or multi-clients in each revenue center. For example, Revenue Center 1 (1 client), Revenue Center 2 (3 Clients), Revenue Center 3 (2 Clients). etc pointing to one server.

    I would like to move this POS application over to a Flash application but I want to make sure that the Flash technology will meet all our needs, Please let me explain what these needs are with regards to what we call a thick client concept.

    Our application works as a client server application with an Admin portal application that handles all changes to the client. The client handles all POS operations in a retail environment. This includes, Cash, Credit Card, Gift Card (Magnetic, Barcode, Proximity Chip, etc..), Per diem (Transaction, daily, Weekly and Monthly limits that reset), Payroll deduction transactions (Using a ID Badge (Magnetic, Barcode, Proximity Chip, etc..) and Company Department Charges using an ID #.

    With Payroll Deduction, Gift Cards, and other Declining and Per Diem transactions, there needs to be a way to verify per diem limits, declining balances and Department Charge Limits using an ID system.

    Every Transaction is synchronized with the server and can operate regardless of the serverโ€™s online/offline status. If the server is offline then all transaction are just stored locally until the server is back online. This also means the Customer database that holds Customer information needs to be available even when the server is offline. Both the Customer ID number and the Badge number can be the same number (but in many cases are different) but they do need to be unique from other ID numbers, like gift cards and other declining balances cards. Currently all Ids are stored in one database but this could change and should change in my option. I think a database for Employees another database for Company departments, another for gift cards, etc

    When the server is offline and a declining card is used, the last known balance on the client is used and then updated when the server when back online. This is a slight chance that if the server is no brought back online in a timely manner, a person can go into the red if the ID is used on more than one client in a given revenue center. When the server is back online all clients would synchronize with the server and the negative balance would be reflected. This however does not normally happen and would be resolved the next time a person added more money to their card. The risk of this happening out weighs the benefit of not interrupting the normal POS daily operation.

    The item file that stores all item details and prices including scan codes also needs to be available whether the server is online or offline. All changes and updates (Price change, adding/deleting items, adding Employees and company departments, changes to the UI (adding/deleting/modifying Item buttons, function keys, media keys) made to the client are done through admin portal application that first makes changes to the server side and then are automatically sent to the client. Normally any UI changes will be updated once the client logs off and back on to refresh the touch screen. I hope this can change with Flash and any UI updates can refresh without the user logging off the client.

    Reporting of data needs to be available from either the client side or through the admin application. The client side would need to be able to print reports even when the server is offline. Currently, if the server is offline, reports will only be available for transaction completed on the client the report is being generated from. When the server is online, reports can be generated from any client within an individual revenue center for either all clients in the revenue center (Grand Totals) or individual totals for any single client.

    Closeout procedures need to be able to run on a single revenue center level, either on a single client or on a single revenue center. This is referred to an X readying and a Z reading respectively. Currently this is handled on the client side where a user runs a Client EDO (end of day) or a Revenue EOD. Client EOD clears all totals and a report is generated and is used to balance the drawer and prepare the bank deposit. The Revenue EOD closes out the Revenue center for the day and is run on Client #1 in each Revenue Center. I would also like to have the ability to run this on the server side once we move to a flash application.

    The application needs to be able to auto launch when the operation system is loaded and does not allow the user to have access to the desktop unless an exit code (only known to an admin) is used to exit the application. The application should now show any part of the desktop. Currently if a keyboard is connected to the system, a user could gain access to the desktop. We do not see this an issue because normally a technician or an admin would be the only ones doing this. There is also the need sometimes to have the admin portal running on the client and having the ability with a keyboard to switch between both applications.

    There are several main reasons I would like to move to a Flash Application. The first is the ability to create a more visual robust looking application and experience for both the client side (POS) user and the admin portal user. The second would be to have an application that can run on any operating system. The third would be to have an application that takes full advantage of Flash Builder Technology to more easily deploy changes and new application version.

    I appreciate that you took the time to read through this and I look forward to your response on whether Flash would be a platform that we could use.

    Best Regards,


  522. sreecharan says:

    Hi Sujit,

    1) Is there any way to open the .txt and word files to open in the browser using “Flex” If so please give me one example with code.

    2) How to swap the columns in Advanced DataGrid.

  523. pandi says:

    i m using flash builder burrito trial version. it works well few days. after few days, when i am opening flash builder burrito, the eclipse start up page appears, then after 30 seconds it will disappear. flash builder burrito not open. what should i do to work in this?

  524. David Wu says:

    Hi, Sujit,

    I am new to Flex and model driven development. I am using Flex 4 and LCDS to build an application to create two records in MySQL DB. One record in Account table and the other in Employee table. The relationship is one account has many employees.

    Account table

    Employee table
    A form was created to capture the email and when a button is pressed, will create a record in account table with a slice of the email (the domain part) stored in domain name. Another record in employee table with the email stored in emailaddress.

    Here is the problem:
    How can I assign the value of idaccountemployee which happens to be the value of idaccount?
    Account table
    idaccount = 36
    domainname =

    Employee table
    idemployee = 92
    idaccountemployee will be 36 (same as idaccount)
    emailaddress โ€“

    Hope to hear from you soon!

  525. vaishnavi says:

    i have done changes in flex. its working fine in design view but its not working when i run the application in browser. thanks

  526. Ravindra says:

    Hi Sujit,
    Need your help on understanding on feasibility of using flex for product development. In a nutshell GUI will have hierarchy of components which will be used to design a flow of specific task. When components are dragged to design canvas and assign attributes(data) to component, the XML has to create with data of components. When the same task re-opened, the same design view should be appeared in canvas along the data included in components.
    Can you please tell if this is doable using flex? If it is possible how difficult it is…

    Help is really appreciated.


  527. Hi Vaishnavi,

    Can you please explain what is not working.

  528. Hi David,

    Having a relationship between these two entities in the model should do the work.

  529. Hi Pandi,

    Sorry to hear this. Can you please share the .log file. You can find the log file under /.metadata folder. Please send the log file to

  530. Hi Sreecharan,

    If you want to display text in Flex application itself, then try loading it using HTTPService and then displaying the content. If you want to display in browser, then try navigateToUrl.

    Hope this helps.

  531. Hi Sagi,

    Go with Data Management service. If you chose Data Management service, it will take care of syncing the data on the client and also manage the data on the client. If you chose messaging service, then you have to make sure the data is in sync on the server and the client, by sending exchanging messages. Try and have a look at the ASObjectAdapter in Data Management service.

    Hope this helps.

  532. Hi Sridhar,

    You might need to place crossdomain file on your server. Please find more details here

    Hope this helps.

  533. Hi Amit,

    Please make sure your external folder is included in classpath.

    Hope this helps.

  534. Hi Jonathan,

    Adding a cross domain file is definitely good. If you don’t want to continue to use PHP on server side, you can consider using ZendAMF instead of BlazeDS.

  535. Hi lreddy,

    Can you please share code to reproduce this.

  536. Hi syeath,

    Try adding a web service operation which will let you access the data stored in your server session. Use this operation to get the objects in session onto Flex side.

    Hope this helps.

  537. Hi Doby,

    BlazeDS has messaging service using which you can definitely achieve this. Pleas check article in the URL below to chose right Channel for your application.

    Hope this helps.

  538. Hi Jitendra,

    Once you can successfully invoke the code in Struts layer, from there you can have any Java class to communicate with Databases. Try looking for articles which explain how to communicate with databases from Java.

  539. Hi Chowdary,

    Please check this article Instead of passing a String as shown in that article, you can pass instance of you VO. Also check this article

    Hope this helps.

  540. Hi Akash,

    Is the path to your PHP classes listed in the “used paths” shown in the error log? When deploying Zend on servers, you just need to make sure the is properly configured, looks like you have that done. So, should work fine.

  541. Hi Gerald,

    Please make sure services-config.xml etc are properly configured. If you can share error details, that will help in understanding what might be going wrong.

  542. Hi Elmak,

    Not sure. If you haven’t looked at my article below, see if that helps. They are not discussing about setting up in Eclipse though.

    Hope this helps.

  543. Hi Sunil,

    You can check Data Management service in LCDS else try using messaging service using which you can push data in various ways using different channel types. Please find more details in the URLs below.

    Hope this helps.

  544. Hi Edgar,

    You might have to add crossdomain file. You can also have a look at clustering. Please find more details in the URLs below.

    Hope this helps.

  545. Hi Angela,

    If you want to invoke Java classes from Flex applications without any web servers, check this –

    If you have Java code on a server and want to invoke the same from client applications, which might be running in a browser or as AIR applications check this –

    Hope this helps.

  546. Hi Aubry,

    I am sorry, not sure what is going wrong.

  547. Ravindra says:

    Thanks for your reply. Can you do prototype for me..Can i tlk to you in detail?
    please send me an e-mail


  548. Rohit Paul says:

    How to external fonts dynamically in Flex4. Need to use it in RTE. Thanks.

  549. Hi Irfan,

    Requests to the server from Flex applications are by default asynchronous. For example, if you have 2 requests made to server one after another, both are invoked immediately one after another.

  550. Hi Amit,

    See if you can override couple of functions in AMFChannel or NetConnectionChannel classes to get this working. Other than that I don’t know of any other way.

    Hope this helps.

  551. Hi Peter,

    Please try using second option and access the Servlet HTTP session. The session created for Remoting calls and this are same.

    Hope this helps.

  552. Hi Naveen,

    Please visit the URL below, you will find options to contact Adobe regarding the pricing etc.

  553. Hi Ravindra,

    Sorry, will not able to do a prototype for you.

  554. Ravindra says:

    No issues, Can you please let me know , if you know any flex export looking for a part time opportunity

    Really appreciate your help

  555. Vijay Kumar says:

    Hi Sujit,

    I want to create and delete Destination Dynamically, I am able to create messaging service destination dynamically but How Can I Create Dynamic Remote Object Destination

    I am creating Dynamic Messaging Destination using this code

    MessageBroker broker = MessageBroker.getMessageBroker(null);
    //Get the service
    MessageService service = (MessageService) broker.getService(
    MessageDestination msgDest =

    But for creatingDestination(id) of type RemoteService , there is no Flex Class available

  556. Joe says:

    Hello Sujit,

    Could you explain how I would setup my flash builder 4 project to use RestfulX to connect to Couchdb? This is the closest I could find doing a search on Google.

    Thank you for your time and effort.

    Best regards,

    Joe Coyle

  557. Pooja Gupta says:

    Hi Sujit,

    I am trying to develop a Flex based NNTP client. Can you please point me in the right direction for this. As in, which particular Flash Builder 4 feature would be helpful here, etc.

    Thanks in advance.


  558. nirav says:

    i have a datagrid in my web application, i have add a checkbox to datagrid using itemrenderer. how can i get the value of checkbox?

  559. Tanay Shah says:

    hi sujit,

    i am currently pursuing bachelors of Engineering from MITCOE,Pune.I am in the final year and need help in my project..My project is a real time implementation of the trains journey from source to destination; wherein i am trying to create a project for:-
    1.Automization of signaling
    2.Train positioning
    3.Track changing
    4.Collision avoidance

    I have been told to use Flash builder 4 for the front end(the map of tracks) and then embed this on .NET program wherein the position of the train wud be shown on the Flash application based on the input from the .NET code…
    We are depicting the trains and the stations as Laptops such that the train wud have a GUI and so wud the stations.We are then going to create an Ad-hoc network such that the train wud send its position via bluetooth to the station where the train wud be shown as a dot.
    So i was wonderin if all this is possible wid Flash Builder 4 in front end and .NET in backend…

  560. Kemal TURHAN says:

    Hello Sujit,

    I try to a simple example by using Model Driven Development with Flex Builder 4 and LCDS 3.1 for tree weeks. Iโ€™m about to lose my mind. I have tried everything in my mind and lots of tutorial but i couldnโ€™t . Plesae help me;
    i have got the error when i run the flex aplication.
    Error: Invalid configuration setting for reconnect. Valid options are IDENTITY or INSTANCE
    at Function/()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\]
    at Function/()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\]
    at Function/()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\]
    at Function/()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\data\]
    at mx.messaging::MessageAgent/channelConnectHandler()[E:\dev\4.0.0\frameworks\projects\rpc\src\mx\messaging\]
    at mx.messaging::ChannelSet/channelConnectHandler()[E:\dev\4.0.0\frameworks\projects\rpc\src\mx\messaging\]
    at mx.messaging::Channel/connectSuccess()[E:\dev\4.0.0\frameworks\projects\rpc\src\mx\messaging\]
    at mx.messaging.channels::RTMPChannel/setUpMainNC()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\messaging\channels\]
    at mx.messaging.channels::RTMPChannel/tempStatusHandler()[C:\depot\DataServices\trunk\frameworks\projects\data\src\mx\messaging\channels\]

  561. Neha says:

    Hi Sujit,

    I am working on Flex 3 with LCDS. My project is build on JMS queuing. According to the requirement of my project, if there are 10 messages waiting in the queue to be read and updated in Flex UI,it should update only the UI client who is entitled for a particular message. So my question comes as how to identify which client posted the request and how to achieve mapping between the client req and response in queue based scenario?
    Is there any built in mechanism in Flex LCDS to uniquely identify client? The approaches that i could think of was eiter tracing session ID’s or UID’s?
    What could be the best solution according to you ?
    Please guide as am realtively new to Flex.


  562. asha malathi says:

    hi sujith ,

    I have two doubts..

    1.When am trying to do a remote object operation and connect to java code to retrieve values to my data provider

    faultCode:Client.Error.MessageSend faultString:’Send failed’ faultDetail:’Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url: ‘http://localhost:8400/WebContent/messagebroker/amf”

    why is it so??

    2. i have to limit my datagrid rows as per the no.s selected. if 10 is selected 10 rows must be displayed.

    thank u

  563. Anand says:

    Hi sujith,

    I am a flex developer and new to AIR.I have doubt how to call Java class in a AIR application.


  564. Anil says:


    I have a Vbox , i want to display text radio buttons and text area. text is gonna be the same for each vbox, but radio button or text area depends on the what kind of question will be coming from database. i have to use repeater to display the Vbox???
    Can you help with how this repeater can choose whether to display radio buttons or text area by checking from the data source??

  565. Ganesh says:

    Hi Sujit,

    I am developing some air android appln using AS 3.0. I want my android appln to invoke other android application. I tried creating custom URI in the manifest xml file. But i dont know how to launch it through actionscript 3.0. Pls guide me.
    my xml code of android app being called:

    <data android:scheme="callapp"

    i used… navigateTOURL?(new URLRequest(“callapp://”));
    but it didnot work.

    Thanks in advance.


  566. henri says:

    I’m a new user of flash builder 4. I’v done a project on local server ( MAMP on MAC OS X ) with PHP service that connect to a mysql DB. I need to put this project on a reel server. When i put it on the server ( by ftp, server php 5.2.9 and mysql 5. Zend framework at the root ) the project work but i can get any connection with the php service. I have been looking the web for two days, and trying a lot of tips but nothing change. Can you help me ?
    best regards

  567. henri says:

    a few hours later still this error :
    Class “IntervenantsService” does not exist: Plugin by name ‘IntervenantsService’ was not found in the registry; used paths:
    #0 /web/hosts/ Zend_Amf_Server->_dispatch(‘verifIntervenan…’, Array, ‘IntervenantsSer…’)
    #1 /web/hosts/ Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http))
    #2 /web/hosts/ Zend_Amf_Server->handle()
    #3 {main}

    Help me if you can. I dont get any answer in the documentation or in any tutorial

  568. Hi Pooja,

    If you are asking if DCD features in Flash Builder will help in building NNTP clients, I am sorry it doesn’t.

  569. Hi Nirav,

    You can override the setter function of “data” property and set the updated value in one of the properties. You can access the objects from dataProvider property of DataGrid. Else you can also try dispatching a event.

    Hope this helps.

  570. Hi Tanay,

    Yes, its possible.

  571. Hi Kemal,

    Can you please share the fml file.

  572. Hi Henri,

    Is โ€˜IntervenantsService’ class developed by you?

  573. henri says:

    Hi, thanks for helping me

    The php class is done by fb by a connection at my mysql local base ( a copy of my real one)
    I have change some sql request inside but nothing more.
    I can send you the code if it can help to understand the problem

    best regards

  574. Hi Henri,

    Please try following the steps below:

    1. Make sure ZendAMF is deployed on your server. This is a folder named “ZendFramework”
    2. Change settings in amf_config.ini if required. You can find this file in your web application folder.

    Hope this helps.

  575. Hi Anil,

    You can chose to use repeater or any List based components. If you are using Flex 4, you can try DataGroup component as well.

  576. Hi Asha,

    Looks like either your server is down or BlazeDS is not properly configured. For second one, check this

  577. henri says:


    Amf_config.ini is set as follow :
    webroot =
    zend_path = ../ZendFramework/library
    amf.production = true
    amf.directories[] =backoffice/services

    response of gateway without any variable is Zend Amf Endpoint. so seems to be working.

    If i change anything in the amf_config.ini i get a error channel disconnected .

    i really dont get any idea of what is going wrong. …
    thanks a lot for your help.
    best regards

  578. Puneet Wishwas says:

    Hi Sujit,

    I am quite new to Flex.

    I have a struts 2.0 page where we shld have a graph, and 2 datagrids.
    For Chart , I m trying to use FLEX .

    I am trying to pass a ArrayList of Objects to a FLEX SWF/mxml file through HttpRequest object.

    The mxml will NOT call any java remoteService/HttpService or Webservice.

    In this case how my .as file of java object will map to the java object.

    Looking forward to your reply.


  579. hector says:

    is it possible check credentials for login and check them against a local database(sqlite) with out any serverside scripting.

    meaning get the username and password and check them against user info in the database in order to login.

    is it possible to do in AS3 only?


  580. Collin says:

    Hi Sujit,

    I am using Fiber, RDS, and LCDS. I am to the point where I would like to build a real app, but security is a major concern.

    Is it possible to secure the destinations created by Fiber/RDS? I know how to secure destinations that I define in remoting-services.xml, but I can’t figure out how to secure the dynamic destinations created by Fiber/RDS. I have created my own custom authentication/authorization LoginCommand class that does the actual authentication. How do I configure Fiber/RDS to use that custom class?

    Thank you,

  581. Vijay says:

    Hi Sujit,

    Need your help its very urgent, We need to develop one Data Management System using Flex, AIR and we need to support application offline also, when its online then data sync as to happen.

    For this we have LCDS & clear toolkit is available but client is very small cant take LCDS licence and clear toolkit wont even install properly.

    can you please suggest any way to provide offline & online & sync, if you provide some guide line,we can develop, I have already seen how LCDS is working but for developing it make take lots of time, can you please suggest any idea please


  582. Mohan says:

    Hi Sujit,
    I am mohan working in flex i am have problem here how to reduce the loading time of the application.
    instead of using embed is that any other way to supply skin at run.

    How to reduce the swf file size for release …..

  583. Chandu Reddy says:

    Hi Sujith,iam a java programer,i have gone thru articles on flex but still need to learn Flex can u pls provide me a way to learn flex in a better way

  584. Ravi Prakash says:

    I am a final year engineering student, we are doing a project for:
    1:positiong of train .
    2:collision avoidance.

    my problem:

    MXML has a it can have ‘xfrom’,’xto’ and ‘xby’ attributes , and if all three given together,MXML ignores xby, but we to specify all 3 to make the train move along a path and to make it cover a certain number of pixels thus showing the train’s current location

    we are using lines(path) as individual entities to simulate movement . is it possible to treat an entire path as a single object and make the rectangle move along this object?

  585. Goutham says:

    Hi Sujit,

    I have attended your workshop on developing multiscreen applications using Flex at IIIT(during AVM annual meet)
    Which is good when we want to develop mobile apps,
    whether i should go for J2ME or should i go with Flex new features in Flash Builder 4.5 Burrito.
    i am a java programmer,which platform should i choose when developing mobile apps.
    i am intrested in flex too.

    one more question, Which one is better when we compare JavaFx and Flex. I don’t know about JavaFx.

  586. Tanay Shah says:

    hi sujit

    we are building an application in Flash Builder 4.
    i am using a tag to move a rectangle.
    I want to control the speed of this rectangle via a VSlider…How do i achieve this.?

  587. Tanay Shah says:

    i am using a tag to move it

  588. Nagendra says:

    Hi Sujit,
    I am Nagendra, java developer and i am very new to Flex and blaze DS stuff. ur blog is awsome, good to follow and undesrtand the concepts.
    we are developping a chatting application(using Flex and Blaze DS) similar to gmail and we are planning to integrate this with our project. we have done our first step, sending messages successfully by using subtopics. ex: user 1(opens user 2 pop up) and user 2 (opens user 1 popup)opens popups for exchaning messages. here my problem both users should have opened their popus for communicating.
    i need help in, when user 2 is not opened his popup still user 1 is able to send message to user 2 and it should open a popup at the user 2 side. so that user 2 can start sending messages.
    Please give me an over view/idea how can we do this. please share some information.
    Thanks in advance,

  589. Nagendra says:

    Hi Sujit,
    I am Nagendra, java developer and i am very new to Flex and blaze DS stuff. ur blog is awsome, good to follow and undesrtand the concepts.
    we are developping a chatting application(using Flex and Blaze DS) similar to gmail and we are planning to integrate this with our project. we have done our first step, sending messages successfully by using subtopics. ex: user 1(opens user 2 pop up) and user 2 (opens user 1 popup)opens popups for exchaning messages. here my problem both users should have opened their popus for communicating.
    i need help in, when user 2 is not opened his popup still user 1 is able to send message to user 2 and it should open a popup at the user 2 side. so that user 2 can start sending messages.
    Please give me an over view/idea how can we do this. please share some information.
    Thanks in advance,

    SORRY for sending once again, i have not checked the notify and subscribe check boxes while posting.

  590. Binu says:

    Hi Sujit,
    I am a beginer in flex. I am developing a whiteboard application in Flex. The board becomes very slow after a few minuts. It seems that it is because of the persistance of graphic.draw commands. Is there any option to negate this effect?

    Thanks in advance,
    Best regards

  591. Umar says:

    Hi Sujit.

    I am hoping you can help me out on this issue.

    I am trying out mobile application development with Flex 4.5 following the Tutorial “Build a mobile application in an hour” and for the past three days I have been stuck trying to connect the Data Services in the IDE to the BlazeDS based application running on tomcat.

    The error message reads “RDS server message: could not initialize class”

    I have checked the url multiple times and it is correctly pointing to the BlazeDS Turnky Server running on port 8400. The call to test.html to check the testdrive application is working correctly. Also when I call http://localhost:8400/testdrive/messagebroker/amf“>http://localhost:8400/testdrive/messagebroker/amf I am getting a blank page as expected. The project’s Flex Server setting are:

    Root folder: C:\blazeds-turnkey-4\tomcat\webapps\testdrive
    Root URL: http://localhost:8400/testdrive/
    Context root: /testdrive
    Output folder: C:\blazeds-turnkey-4\tomcat\webapps\testdrive\MobileTestDrive-debug

    Any suggestions on how I get beyond this point will be greatly appreciated.

  592. Farid Valipour says:

    Dear Sujit
    I have got a Galaxy tab p1000 , it is great but I have a problem with flash player.
    the flash player work well with Vimo for video but for application for example I had a flex3 app it works well via tablet with fp 10.1 but for a flex 4 spark app it getting error #204 .
    I have updated FP to 10.2 But I got still error #204.

    what you think , it is about spark problem with FP android version?
    what must I do to overcome it?

    Farid Valipour

  593. Robert says:

    Hi Sujit,

    I have a quick question about BlazeDS. I’m wondering how you can turn off the “batching” it does when you fire multiple requests to the same service. Our application needs to return data for a number of widgets as the data is available but since we fire the requests when the app loads it appears BlazeDS batches them into one request and then server batches the respones.

    Any help would be appreciated.

  594. Biju says:

    I am a FLEX+PHP developer, trying to use JAVA in backend. I have followed your instructions multiple times but yet not able to set services through Blazeds server. I am not getting Service Lists in “Selecting Remoting destination” stage. I have changed in services-config.xml page and add ‘


    ‘ to remoting-config.xml, whereas already created a remoteobject with destination “datagridService” in .mxml file.

    Please tell me if any other changes are required? I am Getting this error “No destinations configured on server. Click on ‘How to use BlazeDS/LCDS?’ link to know how to configure destinations.”

    Help me.

  595. vijay says:

    Hi Sujit,
    i am basically a java programmer.In my project iam using the blazeds for interfacing the Java and the Flex.In my java programming i am having an object which contains BitSet, but in the flex code i am not able to get this bitset instead it is jst giving as an regular object.So can you suggest me how to send the bitset from java object to flex code.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: