Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Flex XML

    I am trying this a long time now.
    I want to make variable settings for a fileupload.
    Via a XML file i want to define the label texts for the buttons.

    But how can i do this?
    I have searched and tried a long time. All the tutorials i have read are about
    arraylists and load xml in a datagrid etc.
    But how can i do it just simpel and read out 1 line of XML and set this to a
    label?

    [DNA] Guest

  2. Similar Questions and Discussions

    1. Flex 2 Project in Flex 3 Swf File Size Increase?
      I have imported my Flex 2 Projects into Flex 3, when I compile my code the resulting swf file is 100-200K larger. Why is that? I thought Flex 3 made...
    2. Support document for Migration of application fro flex 2o flex 3
      Support document for Migration of application fro flex 2 o flex 3
    3. Not Flex JSP tag lib def in flex-bootstrap.jar (Flex 2Beta 2)
      Hi, The taglib.tld file that was in the Flex 1.5 flex-bootstrap.jar isn't present in the Flex2 Beta2 version of that jar. The interfaces are there...
    4. Is the newest version of flex framework enough good fordeveloping flex rpc services?
      Hallo guys, I've already installed the newest version of flex framework (flex2 beta2 version). I already used beta1 version for developing Rpc...
    5. Cannot find Flex server when running app in Flex Builder1.5
      :confused; After installing Flex and FlexBuilder 1.5 and setting up the "Sites" as described in the tutorials when running a flex ap in Flex...
  3. #2

    Default Re: Flex XML

    Perhaps a more complete, but still very simple example of how you are trying to actually access and apply the data would make this easier to resolve.
    Greg Lafrance Guest

  4. #3

    Default Re: Flex XML

    In actionscript use the URLRequest() and URLLoader() classes to load data from
    an external file and then parse the xml within actionscript. Sorry I haven't
    got time to write a more complex example of how to accomplish this.

    ddgasdgr Guest

  5. #4

    Default Re: Flex XML

    After a long time, i have now a working code.

    however. The XML url via flashvars isnt working.
    Even if i set the flashvars before the httpservice is sent.

    MXML:
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
    creationComplete="initApp();dataFinder.send();">

    <mx:Script source="FlexFileUpload_cb.as"/>
    <mx:HTTPService
    id="dataFinder"
    url="{xmlFile}"
    resultFormat="e4x"
    />


    AS:
    public var xmlFile:String = "";
    public function initApp():void{
    xmlFile = Application.application.parameters.xmlFile;
    }

    [DNA] Guest

  6. #5

    Default Re: Flex XML

    Have you used trace() to verify the flashvar url is coming in okay?
    Greg Lafrance Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139