Dynamic content creation

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

  1. #1

    Default Dynamic content creation

    I'm rather a newbie to flex, at the stage of considering it it is worth my time
    to get to know to it (or maybe laszlo...).

    I have this question: is flex app capable of generating the UI on-the-fly
    based on the mxml retrieved from servlet/webservice? Or do I have to parse the
    xml manually and build the UI using ActionScript?

    Thanks

    demboos Guest

  2. Similar Questions and Discussions

    1. dynamic xml creation
      How can I make XML dynamically inside tha Flash using AS? Basicly i need to make structure like these one: <root> <item></item> ......
    2. dynamic tag creation
      Looking for a way to dynamically evaluate a tag from a string. eg: <cfset tmp = '<cfset myRslt = "Hello">'> <cfoutput> #tmp# </cfoutput> ...
    3. Dynamic Page Creation
      I would like to be able to create pages dynamicly. The page name would dynamicly appear in the menu with a link to the page. All pages would work...
    4. dynamic object creation
      If I have something like this: s="Array" How whould I get something like this: aObject=s.new In "plain" english I am asking if I have a...
    5. High Definition content creation using Macromedia Flash
      I'm very happy to announce that I've added two new whitepapers about "HD" to our website. They are titled: -- Create HD Content Using Macromedia...
  3. #2

    Default Re: Dynamic content creation

    Basically Flex is a set of server side servlets and filters that grab a
    request for an MXML file, convert the calls in MXML to ActionScript,
    automatically generates the ActionScript, compiles it, creates a SWF,
    and returns the SWF.

    MXML lets you use a simple XML syntax to define the UI, and the compiles
    handle turning that all into AS and the SWF.

    Dave Wolf
    Cynergy Systems
    [url]http://www.cynergysystems.com[/url]

    demboos wrote:
    > I'm rather a newbie to flex, at the stage of considering it it is worth my time
    > to get to know to it (or maybe laszlo...).
    >
    > I have this question: is flex app capable of generating the UI on-the-fly
    > based on the mxml retrieved from servlet/webservice? Or do I have to parse the
    > xml manually and build the UI using ActionScript?
    >
    > Thanks
    >
    Dave Wolf Guest

  4. #3

    Default Re: Dynamic content creation

    I get the basic idea behind FLEX, but my question touches another topics:

    1. Is it possible to generate the mxlm file dynamicly on server side (by
    servlet/jsp) and then have it compiled to swf on every client request?

    2. Let's assume I;ve got some flex app, which at some point asks the server
    (using http/webservices) for some xml data, which describes (in MXML format)
    the UI my app should render dynamicly. This XML data should be parsed on client
    side. Is it possible to achieve in flex?


    demboos Guest

  5. #4

    Default Re: Dynamic content creation

    1. I don't see why not provided you set the content type appropriately but
    I've never tried this so I can't say for certain.

    2. The MXML is never parsed on the client side but you can pass parameters
    to a JSP which has an MXML tag on the page. With this construct, the JSP
    can pass arguments to the MXML application which the application can use to
    affect the runtime invocation of the Flex application.


    Carson

    ________________________________

    Carson Hager
    Cynergy Systems, Inc.
    [url]http://www.cynergysystems.com[/url]


    "demboos" <webforumsuser@macromedia.com> wrote in message
    news:cv36vr$ipu$1@forums.macromedia.com...
    >I get the basic idea behind FLEX, but my question touches another topics:
    >
    > 1. Is it possible to generate the mxlm file dynamicly on server side (by
    > servlet/jsp) and then have it compiled to swf on every client request?
    >
    > 2. Let's assume I;ve got some flex app, which at some point asks the
    > server
    > (using http/webservices) for some xml data, which describes (in MXML
    > format)
    > the UI my app should render dynamicly. This XML data should be parsed on
    > client
    > side. Is it possible to achieve in flex?
    >
    >

    Carson Hager Guest

  6. #5

    Default Re: Dynamic content creation

    Right, you can't interpret mxml text on the client and render a UI.

    You can achieve dynamic UIs by dynamically instantiating components on the
    client, and you can dynamically create mxml on the server using the JSP flex
    taglib.

    Tracy

    ntsiii 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