SlickBoard | CSS/XML Timeline (new) | XML/SWF Charts | Timeline Eons

 < previousnext > 

 

Interface

 

<action>

     <item type='string' target='string' />
     ...
   
</action>
             


Description

The action tags can be added to an object and enclose any number of items, each executes an action when triggered by an event:

 

  • type: The type of action to execute. The type values that execute interface functions are:

    • click: If the target object has a hit area that responds to the mouse, then this action simulates a click as if the object was clicked by a user.

    • check: Check a checkbox and execute its check events. If the checkbox is already checked, then this action has no effect.

    • uncheck: Uncheck a checkbox and execute its uncheck events. If the checkbox is already unchecked, then this action has no effect.

    • select: Select a radio button.

    • deselect: Deselect a radio button.


  • target: The ID of the object to apply this action to. If this attribute is omitted, then the object that encloses this action is targeted.

 

Example

<slickboard>
   
   <object id='music_checkbox'>
      
      <!-- a simple checkbox with either "Play" or "Pause" text -->
      <rect x='200' y='80' width='100' height='40' fill_color='FF6600' shadow='default' state='hit' />    
      <text x='200' y='90' width='100' align_h='center' alpha='.7' shadow='default' state='unchecked'>Play</text>   
      <text x='200' y='90' width='100' align_h='center' alpha='.7' shadow='default' state='checked'>Pause</text>
      
      <action>
         <!-- play a sound when the checkbox is checked -->
         <item type='sound_play' target='music' event='check' />

         <!-- pause the sound when the checkbox is unchecked -->
         <item type='sound_pause' target='music' event='uncheck' />

         <!-- when the sound ends, uncheck the checkbox to reset it and diplsay the "Play" text -->
         <item type='uncheck' target='music_checkbox' event='sound_end' />
         
      </action>
      
   </object>    


   <sound>
      <clip id='music' url="sounds/slow.mp3" />
   </sound>

   <filter>
      <shadow id='default' />
   </filter>

   
</slickboard>

 

 < previousnext > 


Copyright © 2010-2017, maani.us