Flex and XML, and Combobox.

Hello.

First I'll apologize for whatever it is repeated. I've had a search through the forums, but it was a long and painful process, and I couldn't really find anything useful.

Secondly, I'm new to Flex, please stick with me if I come out with things that should be obvious.

The question.

I created an application base of Flex. This becomes the XML data in a PHP page that querys a MS SQL DB.

I have the data to fill a datagrid ok, this was done to ensure that it was getting the good things in the DB.

What I actually want is to put the data in a combobox control, but what I currently get in the CB is [object Object] for each element.

I really don't know where I went wrong, because the code is implemented that I found on a bunch of websites.

I really appreciate any help, advice, tips or advice on where I'm wrong with this.

Thank you very much.

Now, codey bit...

Try to add this attribute in the ComboBox element:
labelField = "trust_name."

It should look like this:

Tags: Flex

Similar Questions

  • Flex and XML Variables

    Hi, I'm new to Flex and I tried to understand this, but as I can't find many tutorials on the net thought I may as well ask here.

    I currently have a Flex application that connects to a PHP that connects to the MYSQL db, then writes the XML, then it displays it in the data grid.

    Now, it's the problem.

    My XML looks a like that
    <>tiles

    <>tile
    < x >/< x > 1
    < y > 2 / < y >
    < timage > http://www.google.com/intl/en/nav_first.gif < / timage >
    < / slab >

    <>tile
    < x > 2 / < x >
    < y > 3 < /y >
    < timage > http://www.anotherimage.com/image/anotherimage < / timage >
    < / slab >

    < / tiles >

    I am trying to assign each timage to a variable with the url and then get a picture using the source of the url to display. I hope you understand what I'm trying to say that I'm not very good at explaining. The help is much appreciated thanks.

    Maybe I understand, either, but here's my point of view:

    (1) I think you should use TileList, no tile
    (2) set the dataProvider of the TileList on the object that you receive from your xml file

    Here's an example of super fast and dirty I basted together the TileList component example in the documentation:

    http://www.Adobe.com/2006/mxml"initialize ="initData (); ">

    Import mx.controls.Button;
    Import mx.collections. *;
    private var listArray:Array =]
    "" http://www.google.com/intl/en/nav_first.gif ", "
    "" http://www.google.com/intl/en/nav_current.gif ", "
    "" http://www.google.com/intl/en/nav_page.gif ", "
    "" http://www.google.com/intl/en/nav_next.gif " "
    [Bindable]
    public var TileListdp:ArrayCollection;

    private void initData (): void {}
    TileListdp = new ArrayCollection (listArray);
    }
    ]]>


    itemRenderer="mx.controls.Image"/ >

    Al

  • I can not compile for iOS more with Flex and AIR 3.8

    Hello team Adobe and others.

    I use for my business framework 4.10 Apache projects Flex and adobe Air 3.8.

    I always had problems to compile and publish iOS apps (with Air 3.5 front), but with AIR 3.8, it was a miracle, I compile my projects without error on Windows... until today.

    I am running this command in DOS to compile my project:

    "C:\Program Files\Java\jre7\bin\java.exe" - jar "C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\sdks\4.10 - 3.8\lib\adt.jar AIR ' - package - target the ipa-app-store - hideAneLibSymbols non - implementation service-profile 'S:\Directory_to_MobileProvision.mobileprovision' - shops pkcs12 - keystore"S:\Directory_to_Certificats_ios.p12"- storepass my_private_password Proginov_FVTE_V45.ipa Proginov_FVTE_V45 - app.xml active com config_app.xml [email protected] Proginov_FVTE_V45.swf - extdir"S:/Directory_to_ANE/air_3.8_pnv_3.00 ".

    And I get this result after 1 hour of compilation:

    Bug iOS.png

    If you want, I can send you my file bin-release-temp and DONKEY to try for yourself, but I need to private messaging, because I don't want to publish my project private to everyone.

    Thank you

    Could you please try the growing size of the java heap in your order.

    for example, "C:\Program Files\Java\jre7\bin\java.exe" - Xmx2048m-jar...

  • Flex and InDesign application WYSIWYG editing

    Hello

    I'm creating an application using Flex and InDesign Server. I am facing an interesting problem with it.

    Flex application renders a model (contain images or text) based on XML. After editing the text content by the user, this XML model will change to InDesign server and will generate PDFS. It works very well. But if I compare the PDF model and model in Flex then I sometimes noticed the problem about text WYSIWYG template.

    I noticed this problem in the content of multiline text.

    Can someone help me?

    Thanks in advance.

    Pierrel

    To do this, create a custom algorithm to map the online composer and InDesign text rendering style line.

  • Collection ArrayCollection in flex and ArrayList in java




    Salvation of this world don't
    Here I am with my problem with the hope someone can solve it
    I am totally new to flex and I work only for 3 days in flex. and I learned a little more.
    I want to get the values of database that is received from java to flex datagrid object by using the data provider.
    I did quite well in my opinion. But I could not produce the result in the data grid. Since I am very new. I don't know what is happening.

    my code is here, please help me.

    My mxml file: Myadmin.mxml

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml ' layout = "vertical" >
    < mx:RemoteObject id = "ber" destination = "dock" showBusyCursor = "true" fault = "faultHandler (event)" > "
    < name mx:method = "getBerth" result = "resultHandler (event)" / >
    < / mx:RemoteObject >

    < mx:Panel id = 'Top' title = "MaBase" width = "100%" height = "40%" enabled = "true" >
    < mx:TextArea id = "sql" width = "100%" height="100%"/ >

    < mx:Button label = "Execute" click = "handleSend ()" / >

    < / mx:Panel >

    < mx:Panel id = "bottomPanel" title = "Results" width = "100%" height = "60%" enabled = "true" >
    < mx:DataGrid id = "dg" dataProvider = "{result}" width = "100 percent" height="100%"/ >


    < / mx:Panel >
    < mx:Label id = "resultLabel" text = "Onumae puriyale ulgathulae" / >

    < mx:Script >
    <! [CDATA]

    Mx.rpc.events import. *;
    Import mx.collections. *;
    Mx.controls import. *;
    Import mx.utils.ObjectUtil;




    caching empty ArrayCollection collection so that we don't continue to create
    new

    private var emptyResults:ArrayCollection = new ArrayCollection();

    [Bindable]
    public var result: ArrayCollection collection = emptyResults;







    private void resultHandler(event:ResultEvent):void
    {
    Alert.Show ("event.result table of results", ObjectUtil.toString (event.result as ArrayCollection collection));
    result = ArrayCollection (event.result);
    var myCursor:IViewCursor=result.createCursor();
    var oldLength:int = result.length;

    Alert.Show (oldLength.ToString ());




    }

    private void faultHandler(event:FaultEvent):void
    {
    Alert.Show (event.fault.faultString, "Error");
    }

    private function handleSend (): void
    {


    ber.getBerth ();


    }




    []] >
    < / mx:Script >


    < / mx:Application >

    My java object: Berth.java


    package samples.sqladmin;
    import java.sql. *;
    Import Java.util;
    import java. IO;

    public class Berth

    {
    Public Shared Sub main (String args []) throws exceptions
    {
    List ArrayList = getBerth();
    System.out.println ("the list is =" + list);
    }

    public static ArrayList getBerth () throws Exception {}
    Connection con = null;
    Statement st = null;
    ResultSet rs = null;
    ResultSetMetaData rsmd = null;
    List ArrayList = new ArrayList();
    HashMap line = null;
    try {}
    Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
    } catch (ClassNotFoundException nctf) {}
    System.out.println (CNFE.getMessage ());
    }
    try {}
    con = DriverManager.getConnection ("jdbc:odbc:Jurong", "","");
    St = con.createStatement ();
    String sql = "select * berth;
    RS = ST. ExecuteQuery (SQL);
    rsmd = rs.getMetaData ();
    int colCount = rsmd.getColumnCount ();
    While (RS. Next {}
    line = new HashMap();
    for (int i = 1; i < = colCount; i ++) {}
    Row.put (rsmd. GetColumnName (i), rs.getString (i));
    }
    List.Add (Row);
    }

    }
    {} catch (SQLException sqle)
    System.out.println ("enna da yogans eeeeee...");
    System.out.println (sqle.getMessage ());
    }

    If (con! = null)
    con. Close;
    If (st! = null)
    St.Close ();
    back list;

    }

    }

    my remote-config file is:

    < destination id = "dock" >
    Properties of <>
    samples.sqladmin.Berth < source > < / source >
    < / properties >
    < / destination >

    I got the table in flex collection object, but it gives the values received in java

    Please help me.
    Thanks in advance
    yogans.

    Hi my dear friends

    I'm sorry to put you in trouble. I got the result. The problem is
    not with the code. its with my system. The problem is that I have configured
    same name for datesource for system and user DSN DSN name. After that I deleted
    a user DSN data source. I got it working.

    Thank you very much william, thank you much Nelson for your spontaneous response

    Thank you
    Yogans

  • Flex and ColdFusion on shared server

    Good afternoon everyone,

    So I, like many here I guess, use CF for quite awhile now and I am very interested in what Flex can do. I used the CF adapter several times now with great success on my LOCAL Dev machine, but when I download on my web server (hosted by the My Site host), it does not work. Instead, it throws an error springing from the somrthing on a flexgateway.

    So what I was hoping that someone could tell me my host does not support or is at - it something I don't in my setting up a Flex project I have to do? I had the impression to run a simple Flex application, you didn't need something special at the end server except the flash player 9.

    When I use Flex and CF adapter I just follow the steps to create what I need. I do not use the part "login" so I uncheck this option. Except that I use all the default settings.

    And in regards to my host, I have another Flex application up, which works perfectly, but it uses no CFCS to fill in the data of a database as I am doing now.

    I searched for many hours a lot now for a simple question answer with no luck.

    Here, any help would be greatly appreciated.

    OK, I see. So I think between you and your host that they provide you with a URL string of some sort that you have placed in the crossdomain.xml on your roots.

    Something like this maybe:

    And the crossdomain.xml file is on the root of your web or in the bin folder?

  • Flex and its future

    After that I spent almost three years to design an application (Flex and Air), my developer are now telling me that Flex as a language is dying and that I should consider a re - write using HTML and Java.

    My investment was considerable, so it was a shock for me - especially since I'm close to launch the application on the desktop and smartphone.

    Someone in this community reassure can me (or confirm), or maybe give me an idea. The application in question is very sophisticated and a rewrite just seems like a lot of work. I mean, who really knows what is the future of software in languages, it seems to change on a six pence.

    I would be grateful if someone could perhaps look at the app, give me an idea.

    Thank you very much (I'll post the link if anyone wants to watch the app).

    Where the hell were you, wordtapper? This kind of question/discussion has come the forums for a while.

    If the application works and is usable on the target platforms, then I'd go with it, BUT keep in mind that the long term future of flex as a programming language is very much in the balance. Adobe has little interest in it and the platform it runs on (Flash runtime) is not viable on Apple Mobile products in the browser and run on other mobile browsers in the long term.

    who really knows what is the future of software in languages, it seems to change on a six pence.

    Quite right, but it has not been filled since Mobile really took off and changed the whole game plan, so the tech world is rapidly changing.

    If you are close to launch, personally I go ahead with Flex and then look at your options if the application takes off. Better to re-think, if necessary with a successful delaying application there and gamble that this restructuring will be useful.

    If your application runs in the browser and mobile target, I'd be nervous.

  • Flex and HTML displayed shift in Safari under Mac OS

    When a popup is displayed in Flex app, Flex display gets moved down in Safari under Mac OS only. However, even if the screen is shifted down, orders appear to be in the correct position. For example, to click on a button, the cursor must be a few pixels above illustrated screen. Not only the Flex display moves down. Display of HTML links also moves down with Flex and the links are clickable a few pixels above the screen.

    The problem occurs only when to trigger the display of popup Flex flex long screen. On a screen of Flex in the height of the browser, with the same actionscript and Javacsript code there is no problem.

    It works fine in all other browsers like Safari in windows.

    All the world is facing this scenario? Any help will be much appreciated.

    The following code is used for the popup to display in the center of the viewable area.

    callLater (SMBObjectUtil.changePosition, args);

    In the SMBObjectUtil.as file.

    public static function changePosition (int x, y, obj:UIComponent):void { }

         var yPos:int = ExternalInterface.call("saveglobalscore",score) ("findScrollTop");

         var winHeight:int = ExternalInterface.call("saveglobalscore",score) ("getWindowHeight");

         var appHeight:int = Application.application.height;

         var objectWidth:int = obj.width;

         var objectHeight:int = obj.height;

         var calculatedX:int = 0;

         var calculatedY:int = 0;

    If(Application.application.width > obj.width) { }

              try {

    calculatedX = (Application.application.width - obj.width) / 2;

                   if (yPos < = 0) {}

    calculatedY = ((winHeight-objectHeight)/2-100) > 0? (winHeight-objectHeight) / 2 - 100:50;

    }

    else If(yPos < =(appHeight-winHeight)) {}

    calculatedY = (((winHeight-objectHeight)/2) + yPos-100) > 0? ((winHeight-objectHeight)/2) + yPos - 100:50;

    }

    else If(Posy >(appHeight-winHeight)) {}

    calculatedY = appHeight - objectHeight - (winHeight-objectHeight) / 2;

    }

    }

              catch (error) {}

    }

    }

    else {

    }

    obj.x = calculatedX;

    obj.y = calculatedY;

    }

    Used JavaScript functions are:

    function findScrollTop()
    {
    var ScrollTop = document.body.scrollTop;
    If (ScrollTop == 0)
    {
    If (window.pageYOffset)
    ScrollTop = window.pageYOffset;
    on the other
    ScrollTop = (document.body.parentElement)? document.body.parentElement.scrollTop: 0;
    }
    ScrollTop return;
    }

    function getWindowHeight()
    {
    var y = 0;
    If {(self.innerHeight)
    y = self.innerHeight;
    } Else if (document.documentElement & & document.documentElement.clientHeight) {}
    y = document.documentElement.clientHeight;
    } Else if (document.body) {}
    y = document.body.clientHeight;
    }
    Return y;
    }

    Found a solution for this. CallLater() appeared the problem in Safari. Once I deleted CallLater and directly called my function, the problem has been resolved.

  • In FLex and Flash action script

    Please give me advice.

    I understand just that flex and different flash actionscript?

    If so can you give me the reference material action script in flex?

    ActionScript is the same in flash & flex.   Think that flex is a framework actionscript for the flash player.

  • Applications created using Flex and their response time

    Hello

    I observe that Flex front-end Applications are very slow to be honest same Adobe site itself is slow .

    Please tell me what should be the size of a swf file so that the time which will be at least satisfactory.

    I don't think that every piece of the Flash on the site of Adobe's Flex and there is

    still a lot of HTML code on the site as well.

    You build an application, and the basic principles still apply.  Less

    code runs faster, the modularity allows to make to the code on demand, throw

    things you don't need.  Allows you to run a really small SWF file wrong and really

    bigger may well perform after the start.  It's all in how you write

    it.

  • Application modular Flex and BlazeDS serialization problem

    Hey there,
    I write modular Flex application using BlazeDS to communicate with managed by backend Java spring. I created Java objects on the server side and the relevant ActionScript objects in flex.

    I used RemoteClass metatag to serialize objects from flex to java. Everything works perfectly fine, when I work with the objects that first loaded module. I am able to serialize the form of objects as Java. But when I reload module or load another flex module I'm losing the types of objects serialized. I get this error message then:

    faultCode:Server.ResourceUnavailable faultString: 'Can't call method "updateProfile".' faultDetail: ' types of expected arguments are (com.konrady.cms.entity.User), but provided types have been (flex.messaging.io.amf.ASObject) and processed (null).

    I tried to invesigate this question, and I'm sure this is the problem with loading flex modules. When I insert ModuleA first of all, I am able to serialize the quant to Java objects. But when I load moduleB, I can't serialize objects and more. Loading moduleA again after that ModuleB are also not possible to serialize objects.
    When I load moduleB firstly I can serialize objects of it. Reloading flex modules brokes Serialization...

    Someone has encountered this problem before? I will be grateful for any piece of advice.

    Ouch, I hope that someone with a full understanding of these multi-application configurations will come to your front rescure I spoil completely.

    I would like to tell you of a long series of publications dealing with the complexity of such a request in the middle of the AIR [which is my case], but due to the mishandling of the code formatted in this forum tool, which deals as the thread to 'How to Test AIR 1.5' in the developer forum is almost impossible to follow and , at the end of the day, he never gave a "How-to" document as I had hoped.  Under "can someone Open the Black Box" in the Adobe AIR forum, there are some ideas that might be relevant.  To reduce the time of download of network for the scheme - not really reduce congestion of memory - I configured my use of SWFLoader in the AIR application to successfully benefit from the Flex Framework RSL.  I don't think that the possibility of using BlazeDS classes in the scheme is directly related to this difference, but it can be indirectly related.

    Following this line of thought, you could get the 'how to debug Actionscript to Java serialization problem' that I posted on the forum Configuration and commissioning, which can help, but it seems that you have found the information of stack trace good to help in your search for failures.

    The new information - or at least what I had not detected from your previous post - seems to be this:

    Home - or not properly accesses remote objects, I'm not clear.

    Load A sub-application successfully access Remote Objects.

    Load sub-application B fails when you try to access remote objects.

    This seems to make clear that "dumping" is not what is causing the failure.  I think, then, is that your problem has to do with loading, and now I have to expose my ignorance to the world and how it was that I finally managed to get my multi-application to subsequently work issues at stake.  If it helps your big case, or if only it gives off just using one or several of the teams in question Adobe - Flex SDK team, team air, BlazeDS team - then we all benefit.

    Somewhere that I can't find now, there is this big PDF file describing the scenarios to pump Flex of MashUps and other environments where a disconnnected development team may have to deal with different versions of RSL - done one or two side-notes on the AIR, it focuses on the Flex.  From there on, I won some glimmer of an idea of the ApplicationDomain class and class related SecurityDomain.  I could not, on a bet, give you a clear statement on the results of the use of the different options.  The code I use to achieve successfully the dynamic loading of my scheme via the SWFLoader is loaded with comments showing that I n "t got a clue.  I tried all combinations; This is what works for me:

    var context: LoaderContext = new LoaderContext();

    context.allowLoadBytesCodeExcecution = true;

    context.applicationDomain = ApplicationDomain.currentDomain;

    var swfLoader:SWFLoader = new SWFLoader();

    swfLoader.trustContent = true;

    swfLoader.loaderContext = context;

    swfLoader.source = byteArray;

    The byteArray was populated by readBytes() starting from a FileStream.  As I said, my use case is sub-appliciations Flex and/or air base running in an envelope of AIR.  Presumably, you get to the same place in pure Flex using SWFLoader.load () after you have configured the ApplicationDomain or SecurityDomain via the LoaderContext.

    All I can hope. After dragging you in all this rubbish is the link of the duration of the BlazeDS code begins to work for you, as it did for me.  In particular, which does not [even though I was debugging problems other than BlazeDS in time] was to set the LoaderContext this way:

    context.applicationDomain = new ApplicationDomain (ApplicationDomain.currentDomain);

    or was this another incantation:

    context.applicationDomain = new ApplicationDomain (null);

    These three variants have the world to do with the way the runtime detects and calls methods on classes in the application.  Only the first allows me to work successfully with RemoteObjects in any subsidiary application that happens to need support on the server side.

  • Upload file multiple with Flex and ColdFusion problem

    Hi all

    I'm trying to resize images after download using the "multiple".
    Upload with Flex and ColdFusion"to

    http://www.Adobe.com/devnet/coldfusion/articles/multifile_upload.html

    In fact, everyone has a script that resizes the images successfully
    After the download of the images with this method?

    The reason why I ask is that I can't work properly, I tried
    all I can think and ended up with the code below. Which
    resizes the images, but does not delete the original file. The error
    who gets dumped is:

    "ColdFusion could not remove the file C:\ColdFusion8\wwwroot.
    \MultiFileUpload\uploadedfiles\0040.jpg for a
    unknown reason. »

    That does not really help. So I try to delete the original files
    manually, but windows will not let me also and wrote its been used by an application.
    If I download files over that I can then delete the original files
    the previous download.

    To me, it seems that the flash drive is not release the file

    Any help would be greatly appretiated.

    Richard


    Do you have applied the latest patches? There was a problem with locked files after using imageResize.

    http://cfsearching.blogspot.com/2008/04/ColdFusion-801-patch-issue-image-files.html
    http://KB.Adobe.com/selfservice/viewContent.do?externalId=kb402604

  • Problems using rpc between Flex and CF

    Hello
    I have a problem to send objects between Flex and Coldfusion using the gateway of the AUTHORITY of the new Version of Coldfusion.
    The transfer of CFCS to Flex works, but I can't send a complex object to a CFC.

    The Error Message is:
    faultCode:Client.Message.Encoding faultString:' cannot create class of type 'flex. HotlineSystem.bin.cf.Category'. ' faultDetail: 'Type' flex. HotlineSystem.bin.cf.Category' not found. »

    Im going totally nuts... the transfer of CF to Flex works very well, the mapping between category.cfc and category.as work of ist. But if I try to send a Flex object category to my CFC is not.

    I hope someone can help.

    Thank you!

    CFC function:
    < cffunction "insertCategory" access = "public" returntype = name = "Sub" output = "false" >
    < cfargument = "category" type name = 'flex. HotlineSystem.bin.cf.Category"required ="true">

    < cfquery name = "insertCategory" datasource = "hotline_system" >
    INSERT INTO category (category_idCategory, name)
    VALUES (#category.getCategory_IdCategory () #, ' #trim (category.getName ()) #')
    < / cfquery >


    Category.CFC:

    < cfproperty displayname = 'Category' alias = 'flex. Index HotlineSystem.bin.cf.Category"=" I model a single category ">
    < name cfcomponent = "idCategory" type = "numeric" default = "0" >
    < name cfcomponent = "category_idCategory" type = "numeric" default = "0" >
    < name cfcomponent = "name" type = "string" default = "" >

    < cfscript >
    Initialize the SWC with the default property values.
    variables.idCategory = 0;
    variables.category_idCategory = 0;
    variables. Name = "";
    < / cfscript >

    < name cffunction = "init" output = "false" returntype = "flex. HotlineSystem.bin.cf.Category">
    < cfreturn this >
    < / cffunction >

    < name cffunction output = "getIdCategory" = "false" access = "public" returntype = "any" >
    < variable cfreturn. IdCategory >
    < / cffunction >

    < name cffunction output = "setIdCategory" = "false" access = "public" returntype = "Cancel" >
    < name cfargument = "val" required = "true" >
    < cfif (IsNumeric (arguments.val)) or (arguments.val EQ "") >
    < cfset variables. IdCategory = arguments.val >
    < cfelse >
    < cfthrow message = "' #arguments.val #' is not a valid numeric" / >
    < / cfif >
    < / cffunction >

    < name cffunction output = "getCategory_idCategory" = "false" access = "public" returntype = "any" >
    < variable cfreturn. Category_idCategory >
    < / cffunction >

    < name cffunction output = "setCategory_idCategory" = "false" access = "public" returntype = "Cancel" >
    < name cfargument = "val" required = "true" >
    < cfif (IsNumeric (arguments.val)) or (arguments.val EQ "") >
    < cfset variables. Category_idCategory = arguments.val >
    < cfelse >
    < cfthrow message = "' #arguments.val #' is not a valid numeric" / >
    < / cfif >
    < / cffunction >

    < name cffunction = output "getName" = "false" access = "public" returntype = "any" >
    < variable cfreturn. Name >
    < / cffunction >

    < name cffunction = output "setName" = "false" access = "public" returntype = "Cancel" >
    < name cfargument = "val" required = "true" >
    < cfset variables. Name = arguments.val >
    < / cffunction >
    < / cfproperty >

    Category.As:

    package classes
    {
    [Bindable]
    [RemoteClass (alias = "flex. HotlineSystem.bin.cf.Category")]
    dynamic public class
    {
    public var idCategory:int;
    public var category_idCategory:int;
    public var name: String;

    public void category() {}

    }

    public void fill(idCategory:int,_category_idCategory:int,_name:String):void {}
    this.idCategory = idCategory;
    This.category_idCategory = category_idCategory;
    myIdName = name;
    }


    public function getIdCategory (): int {}
    Return this.idCategory;
    }

    public function setIdCategory (): void {}
    this.idCategory = idCategory;
    }

    public function getCategory_IdCategory (): int {}
    Return this.category_idCategory;
    }

    public void setCategory_IdCategory(category_idCategory:int):void {}
    This.category_idCategory = category_idCategory;
    }

    public void setName(name:String):void {}
    myIdName = name;
    }

    public function getName (): String {}
    Return myIdName;
    }
    }
    }

    Problem solved:
    Apparently, it is not possible to transfer an object from a class action script for coldfusion.

    The solution is to encapsulate the object (in my example category) in a table.

    Strange... but it works.

    Best regards

  • Flex php XML return connection

    Hello! IM new to flex and I have a question I hope someone can answer. I have a flex application I'm building that needs to display a list of dynamic images, preferably with icons. I built the list of titles, but I do not know how to connect the HTTPService data to the list. the HTTPService returns XML data, it must be easy. but, as I said, Im really new. Please help me!

    "arthurlockman" wrote in message
    News:g7kk4g$177$1@forums. Macromedia.com...
    > Hello! IM new to flex and I have a question which I hope someone can
    > response. I have a flex application I'm building that needs a list
    > of
    > dynamic images, preferably with icons. I built the list, but I have no
    > soaps
    > How to connect the HTTPService data to the list. the HTTPService is
    > return
    > The XML data, so it must be easy. but, as I said, Im really new. Help, please
    > Me!
    >

    Depending on what you are willing to do, you can either use a Repeater with
    a picture or a custom component that contains an Image or you can use a list
    component to display an Image or a custom with a base Image component (or
    SwfLoader, or Loader) inside. It is literally a ton of stuff on it
    in the help. Here are a few places that you can try:

    Help > Flex Start Page > creating a Simple RIA
    Help > Help contents > User Interfaces
    -With the help of data providers and Collections
    -Controls
    -Image
    -SwfLoader
    -With the help of data-driven controls
    -With the help of converters point and section editors
    -Dynamically repeating controls and containers

    Here is an example that might get you quickly * if * you are not the type
    to read the docs:

    http://examples.Adobe.com/flex2/inproduct/SDK/PhotoViewer/PhotoViewer.html

    HTH;

    Amy

  • Flex and XML VRs. Database

    I want to build a Web site using flex that you display data on a Web site. All of the combined data will be large enough (about 120 000 questions 120 000 answers, ect... (about 8 database columns (or fields) in total). My question about xml is, if I'm not going to display the data when it is called (by a button) and display only 10 to 20 questions and answers at once and not add data to the database or an XML on the site, could I store data in several xml files or a large xml file? Or would it be better to put the data into a database? If yes why? Sammy

    If you use several smaller xml files and call them necessary, this is a good approach.

    Again, maintenance on all of these files is more difficult than with a database. But a DB means additional administration and requires an intermediate level.

    I did this both ways.

    Tracy

Maybe you are looking for