Book a Demo

Author Topic: Actionscript 3 and MXML  (Read 6133 times)

original1

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Actionscript 3 and MXML
« on: February 16, 2007, 06:49:37 am »
Guys are there any plans to support Actionscript 3 and MXML the tag based langauge of Flex?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Actionscript 3 and MXML
« Reply #1 on: February 19, 2007, 01:34:51 pm »
Actionscript 3 code engineering is supported already.  See http://www.sparxsystems.com.au/EAUserGuide/index.html?actionscript_conventions.htm

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Actionscript 3 and MXML
« Reply #2 on: February 19, 2007, 02:35:38 pm »
You need to go to Tools | Options | Source Code Engineering | Actionscript. At the top of the dialog you'll see Default Version. By default (no pun intended) this is set to 2.0. You need to change it to 3.0, which at present (build 804) is the only available setting. This is a drop-down list, although it does not appear to be until you actually click on it.

As to Flex, I have no idea. Perhaps you can write an add-in, though I don't know how big a job this would be.

HTH, David
No, you can't have it!

djbowser

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Actionscript 3 and MXML
« Reply #3 on: March 02, 2007, 12:16:05 pm »
I am also very interested in the support for ActionScript 3. I  came to this tool because it has some support for AS3. However, I would sure appreciate knowing more about what this support this is and what our options are for enhancing it. Can anyone expound at all on how this really works? Are there any examples of using this to build anything for Flex anywhere?

In general, with Enterprise Architect can multiple output files be created for a given class definition? For example, I would want to create server java files and matching client actionscript files and possibly mxml files for some classes. Any thoughts about that?

Thanks so much!

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Actionscript 3 and MXML
« Reply #4 on: March 02, 2007, 12:40:36 pm »
Quote
In general, with Enterprise Architect can multiple output files be created for a given class definition? For example, I would want to create server java files and matching client actionscript files and possibly mxml files for some classes. Any thoughts about that?

Thanks so much!
In general, only one file may be associated to an object for code generation purposes.

That's partly why EA is having problems with partial classes - classes spread across multiple files (in another post).

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Actionscript 3 and MXML
« Reply #5 on: March 04, 2007, 12:56:09 pm »
Quote
In general, with Enterprise Architect can multiple output files be created for a given class definition? For example, I would want to create server java files and matching client actionscript files and possibly mxml files for some classes. Any thoughts about that?

This is supported by defining transformations to generate a model for each of your targets.