Book a Demo

Author Topic: Default name for assiciated atrib  (Read 2089 times)

panel

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • Actionscript 3
    • View Profile
Default name for assiciated atrib
« on: November 09, 2007, 05:32:20 am »
Hi

We can change default name for assiciated atrib but still it has some limitations.

Default conversion is m_ClassName (m_$LinkClass) for instance name.
Typicly I am using lower cale convention so example name of instance would be className.

var m_ClassName:Classname; //now
var className:Classname //possible?

Is there any way to do it automaticly? something like $LinkClass variable but containing class name where first letter is lower case? or mabye it's possible to use some macro/expression?
« Last Edit: November 09, 2007, 05:50:37 am by panel »

panel

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • Actionscript 3
    • View Profile
Re: Default name for assiciated atrib
« Reply #1 on: November 12, 2007, 02:22:49 am »
I made one step. I have edited code generate templates -> linked attribute template declaration and variable name is generated As I wanted.

Unfortunetly now each time when I'm generating code new line with variable declaration is added to code  ??? (As EA could't compare variables with changed name to tell that it is allready exist in code and generate it again). Any Ideas?