Book a Demo

Author Topic: Element attributes & Property Implementation .  (Read 3057 times)

juanPablos

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Element attributes & Property Implementation .
« on: July 04, 2008, 05:37:06 pm »
Hello,

A question about attributes and property accessors.

Once you've created an attribute for a class, you have the option to check the Property box on the Attributes > General tab.
(circled in red in the following image):



If you check the Property box, you then get the following window:



Does anyone know if it's possible, and how, to add another language to the options in this window. I want to add ActionScript to the language selection, but am also happy enough to modify the Java settings.

I want to adapt the default Java get and set methods for ActionScript, and if possible create another get method that uses a lite singleton pattern.

Can anyone advise on this please.

It might also be able to create a macro or such for class attributes? Is this possible if the above isn't?

Thanks.
« Last Edit: July 04, 2008, 05:45:01 pm by juanPablos »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Element attributes & Property Implementation .
« Reply #1 on: July 04, 2008, 10:22:14 pm »
I really don't know.

You can create your own dialect for data types and such, but I do not think it will extend to this dialog (or anything like it). You could do some of the necessary work with an MDG add-in, which would intercept the events related to your class and allow you to create your own dialogs. Not exactly simple, but it's been known to work.

A few of the forum members have been doing some interesting work in the ActionScript domain. Search the forum for suggestions, of which there may be many.

I also suggest you mark this thread to alert you to new posts (look for the Notify check boxes), in case one of the forum members posts back here with ideas.

David
No, you can't have it!

juanPablos

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Element attributes & Property Implementation .
« Reply #2 on: July 05, 2008, 06:42:11 pm »
Thanks David - will do.

I'll mark this thread and search the forums for AS3 content.

Also, I'm going to create a new thread for this question and pose it differently (and shorter).

Cheers.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Element attributes & Property Implementation .
« Reply #3 on: July 07, 2008, 08:41:25 am »
Currently that dialog can't be extended to other langauge types, we are aware of it and will add support when we get the chance.

juanPablos

  • EA Novice
  • *
  • Posts: 16
  • Karma: +0/-0
    • View Profile
Re: Element attributes & Property Implementation .
« Reply #4 on: July 08, 2008, 02:53:38 pm »
Thanks Simon M.