Book a Demo

Author Topic: auto import classes  (Read 2580 times)

asflash

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
auto import classes
« on: October 28, 2008, 01:34:34 pm »
Hi , I am trying the program because we need this software to make our UML for our projects.
We work based on Actionscript language so my question is , is there a way to "auto import" classes like MovieClip and also how can I extend my class to this one? because it doesn´t exist in model?

Thanks in advanced.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: auto import classes
« Reply #1 on: October 29, 2008, 08:54:09 am »
I don't know actionscript all that well, but from memory the library classes for actionscript are defined in an XML format.  EA currently doesn't have any method for importing this format.

The options for extending MovieClip would be:
  • Defining your own automation program to read the XML and add the classes to the model.
  • Manually adding the classes that you need.
  • The inheritance dialog (Element | Advanced | Set Parents and Interfaces) allows you to inherit from a type not in the model.
« Last Edit: October 29, 2008, 08:55:01 am by simonm »

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: auto import classes
« Reply #2 on: October 29, 2008, 10:27:11 am »
I know even less about Actionscript than Simon.  ;)  Not sure whether this will help or not, but here goes...

There is an Open Source Actionscript compiler called "Motion-Twin" (MTASC) that I think comes with some .as files describing standard classes like MovieClip.  From memory, I'm pretty sure these .as files were able to import into EA and you might be able to use these in your model.
See: http://www.mtasc.org/

HTH.