topical media & game development

talk show tell print

student-ar-org-papervision3d-core-animation-channel-SinglePropertyChannel3D.ax

student-ar-org-papervision3d-core-animation-channel-SinglePropertyChannel3D.ax [swf] flex


  package org.papervision3d.core.animation.channel {
          import org.papervision3d.objects.DisplayObject3D;        
  
          

author: Tim Knip

   
          public class @ax-student-ar-org-papervision3d-core-animation-channel-SinglePropertyChannel3D extends AbstractChannel3D
          {
                  public var targetProperty:String;
                  
                  
Constructor. @param target @param targetProperty @param name

   
                  public function @ax-student-ar-org-papervision3d-core-animation-channel-SinglePropertyChannel3D(target:DisplayObject3D, targetProperty:String, name:String=null)
                  {
                          super(target, name);
                          this.targetProperty = targetProperty;
                  }
                  
                  
Updates this channel. @param keyframe @param target

   
                  override public function updateToFrame(keyframe:uint):void
                  {
                          super.updateToFrame(keyframe);        
                          
                          if(!target[this.targetProperty])
                                  return;
                                  
                          target[this.targetProperty] = currentKeyFrame.output[0];
                  }        
          }
  }


(C) Æliens 04/09/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.