0 Replies Latest reply on Sep 18, 2012 4:54 AM by ngc1251

    Spark button event record.

    ngc1251

      Hi,

      I've the issue about record event in automation framework. A mouse events (double click, click, mouseDown) do not recording method which listen the event, i.e. automationManager.addEventListener(AutomationRecordEvent.RECORD, recordHandler, false, 0, true) but events from keyboard such as SPACE or ENTER is successfull recorded.

      This is snippet of xml environment files with event for spark button:

       

       

      <ClassInfo Name="SparkButton" Extends="SparkButtonBase" SupportsTabularData="false">

              <Implementation class="spark.components::Button"/>

       

              <Events>

       

                  <Event Name="Click"   >

                  <Implementation class="flash.events::MouseEvent" Type="click"/>

                      <Property Name="triggerEvent"  DefaultValue="1">

                          <PropertyType Type="Enumeration" Codec="event"/>                  

                      </Property>

                      <Property Name="ctrlKey"  DefaultValue="false">

                        <PropertyType Type="Boolean"/>

                      </Property>

                      <Property Name="altKey"  DefaultValue="false">

                        <PropertyType Type="Boolean"/>

                      </Property>

                      <Property Name="shiftKey"  DefaultValue="false">

                        <PropertyType Type="Boolean"/>

                      </Property>

                  </Event>

       

       

                  <Event Name="TypeSpark" >

                      <Implementation class="flash.events::KeyboardEvent" Type="keyPress"/>

                      <Property Name="keyCode" >

                          <PropertyType Type="String" Codec="keyCode" DefaultValue="ENTER"/>               

                      </Property>  

                  </Event>

            </Events>

      </ClassInfo>

       

      In what may be the cause?

      Thanks.