2

I'm trying to change the default event handler code generator, so that it generates the name of the function as onComponentidEventname For example:

<s:Button id="myButton" 
          click="onMyButtonClick(event)" />

The code template I use is:

${namespace} ${modifiers}function ${:method_name('on${component_id}${event_name}')}(${event}:${event_type}):${return_type}{${cursor}}

But the result is onmyButtonclick instead of onMyButtonClick.

Any ideas if that is possible and how to do that?

Thanks in advance,

Blaze

Anton Petrov
  • 684
  • 5
  • 14

1 Answers1

1

It's not possible to apply transformations on the code variables...you can submit a feature request if you really need it - go to http://bugs.adobe.com/jira/browse/FB/component/10660 and click on "Feature Request" (you need to be logged in for that).

Cornel Creanga
  • 5,311
  • 1
  • 22
  • 28