topical media & game development

talk show tell print

lib-flex-animation-code-10-org-as3lib-kitchensync-action-KSSetProperty.ax

lib-flex-animation-code-10-org-as3lib-kitchensync-action-KSSetProperty.ax (swf ) [ flash ] flex


  package org.as3lib.kitchensync.action
  {        
          
SynchronizedAction to set a property for any object to a specified value.

  
          public class @ax-lib-flex-animation-code-10-org-as3lib-kitchensync-action-KSSetProperty extends KSFunction
          {
                  

parameter: target - The object whose property you want to modify.
parameter: key - The name of the property to modify.
parameter: value - The new value of the property.
parameter: delay - The delay before the action executes.

   
                  public function @ax-lib-flex-animation-code-10-org-as3lib-kitchensync-action-KSSetProperty(target:Object, key:String, value:*, delay:* = 0)
                  {
                          super(delay, setProperty, target, key, value);
                  }
                  
                  
This is the function that will be called to set the property.

  
                  protected function setProperty(target:Object, key:String, value:*):void {
                          target[key] = value;        
                  }
          }
  }


(C) Æliens 19/08/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.