Book a Demo

Author Topic: dynamic class ... no correct generation  (Read 3568 times)

JohnDoe

  • EA User
  • **
  • Posts: 191
  • Karma: +0/-0
  • EA rocks !
    • View Profile
dynamic class ... no correct generation
« on: August 16, 2006, 06:03:51 am »
Hi,

in ActionScript, you can define classes as "dynamic" class, which means that methods and attributes can be added during runtime, which will not cause a runtime error (if you do not define a class as "dynamic" and try to add a method or attribute, it will result in a runtime error).
Now when I reverse enginer my class sources, model around in EA and generate source for all classes from EA, all "dynamic" prefixes are lost !

Does EA make use of the Actionscript-dynamic construct or is it something that is being lost during reverse egineering process ?

Thanks for clearing this up
Bernd

JohnDoe

  • EA User
  • **
  • Posts: 191
  • Karma: +0/-0
  • EA rocks !
    • View Profile
Re: dynamic class ... no correct generation
« Reply #1 on: August 16, 2006, 11:11:49 am »
Hi folks,

just digged a little deeper into the code generation templates of Actionscript. In the "class declaration" section seems to be a hint pointing to the solution:

[...]
%classTag:"dynamic" == "true" ? "dynamic"%
[...]

IMHO there should be a corresponding switch at the properties panel. But where is that "classTag"-switch located ?

Thanks for your help !
Bernd

JohnDoe

  • EA User
  • **
  • Posts: 191
  • Karma: +0/-0
  • EA rocks !
    • View Profile
Re: dynamic class ... no correct generation
« Reply #2 on: August 16, 2006, 11:42:56 am »
Sorry folks,

all cleared up. Needless to say, that I am a EA newbie, but a big big fan now.

Tagged values are to be found in the tabbed values panel, which means that dynamic can be easily configured there.

Thanks for listening ;)
Regards
Bernd

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: dynamic class ... no correct generation
« Reply #3 on: August 16, 2006, 03:09:20 pm »
Hi,

All the tagged values and stereotypes used for actionscript modeling are listed in the help.  The web version is available at http://www.sparxsystems.com.au/EAUserGuide/index.html?actionscript_conventions.htm