ActionScript vs. MXML

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

  1. #1

    Default ActionScript vs. MXML

    Hello. Just curious if there is any difference in building components with
    straight Actionscript as opposed to a mix of MXML and Actionscript? What I
    mean is does one compile/run faster than another? Thanks, Michael

    heybluez Guest

  2. Similar Questions and Discussions

    1. How does on Sharing data between main.mxml and a renderer.mxml
      I have a value set in my main mxml file. public var calDate:Date = new Date(); How can I use this value in my renderer mxml file? if...
    2. synchronous actionscript vs mxml
      Hi for making synchronous call with java method from as file i got example from http://www.adobe.com/devnet/flex/articles/flexfaq.html link 31Q. But...
    3. using MXML in ActionScript
      Hello, There are many chapters describing how to use 'ActionScript in MXML' but I have found none about the opposite : how to perform the...
    4. Opening .mxml components via ActionScript
      I am working on a dynamic TabBar that will populate a datagrid under each tab with reports from a document archive. I want to build my datagrid in a...
    5. HTTPService Proxy in ActionScript doesn't work but doesin MXML
      I have an http service defined in MXML to use the proxy services and it works fine. However if I create the http service in an action script it...
  3. #2

    Default Re: ActionScript vs. MXML

    I guess AS will take a better speed
    sshwsfc11 Guest

  4. #3

    Default Re: ActionScript vs. MXML

    sshwsfc11 wrote:
    > I guess AS will take a better speed
    Flex takes the MXML and generates ActionScript from the mx tags. So in
    the end, it all becomes ActionScript. The question is whether you
    believe you own AS is faster then the code generated AS.

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

    Dave Wolf Guest

  5. #4

    Default Re: ActionScript vs. MXML

    Any speed diference will be minor and occur only when the app is compiled, and
    will have no effect at the client. Remember that the Flex server takes the
    mxml and builds AS classes out of everything anyway.

    It is more a matter of which is best from a functionality and ease of
    development standpoint.

    I use mxml components if I want to combine several standard components, since
    that is much easier than dynamically creating components. It is conceptually
    easier to understand as well, and is probably easier to maintain for a
    mid-level developer.

    I use AS components if I want to modify the functionality of a single
    component.

    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