예제 #1
0
 /// <summary>
 /// This will take a MovieClip, and add its frames and labels to this builder.
 /// Labels will be added as an animation running from the label index to the next label.
 /// For example, if there is a label named "foo" at frame 0 and a label named "bar" at frame 10, in a MovieClip with 15 frames,
 /// it will add an animation named "foo" that runs from frame index 0 to 9, and an animation named "bar" that runs from frame index 10 to 14. 
 /// Note that this will iterate through the full MovieClip with actionsEnabled set to false, ending on the last frame.
 /// </summary>
 /// <param name="source">The source MovieClip to add to the sprite sheet.</param>
 /// <param name="sourceRect">Optional. A rectangle defining the portion of the source to draw to the frame.
 /// If not specified, it will look for a getBounds method, frameBounds array, bounds property, or nominalBounds property on the source to use.
 /// If one is not found, the MovieClip will be skipped.</param>
 public void addMovieClip(MovieClip source, Rectangle sourceRect) { }
예제 #2
0
 /// <summary>
 /// This will take a MovieClip, and add its frames and labels to this builder.
 /// Labels will be added as an animation running from the label index to the next label.
 /// For example, if there is a label named "foo" at frame 0 and a label named "bar" at frame 10, in a MovieClip with 15 frames,
 /// it will add an animation named "foo" that runs from frame index 0 to 9, and an animation named "bar" that runs from frame index 10 to 14. 
 /// Note that this will iterate through the full MovieClip with actionsEnabled set to false, ending on the last frame.
 /// </summary>
 /// <param name="source">The source MovieClip to add to the sprite sheet.</param>
 /// <param name="sourceRect">Optional. A rectangle defining the portion of the source to draw to the frame.
 /// If not specified, it will look for a getBounds method, frameBounds array, bounds property, or nominalBounds property on the source to use.
 /// If one is not found, the MovieClip will be skipped.</param>
 /// <param name="scale">Optional. The scale to draw the movie clip at. Default is 1.</param>
 public void addMovieClip(MovieClip source, Rectangle sourceRect, JsNumber scale) { }
예제 #3
0
 /// <summary>
 /// Adds a frame to the sprite sheet. Note that the frame will not be drawn until you call build.
 /// The optional setup params allow you to have a function run immediately before the draw occurs.
 /// For example, this allows you to add a single source multiple times, but manipulate it or it's children to change it to generate different frames. 
 /// Note that the source's transformations (x,y,scale,rotate,alpha) will be ignored, except for regX/Y.
 /// To apply transforms to a source object and have them captured in the sprite sheet, simply place it into a Container and pass in the Container as the source.
 /// </summary>
 /// <param name="source">The source display object to draw as the frame.</param>
 /// <param name="sourceRect">Optional. A rectangle defining the portion of the source to draw to the frame. If not specified, it will look for a getBounds method,
 /// bounds property, or nominalBounds property on the source to use. If one is not found, the frame will be skipped.</param>
 /// <param name="scale">Optional. The scale to draw this frame at. Default is 1.</param>
 /// <param name="setupFunction">Optional. A function to call immediately before drawing this frame.</param>
 /// <returns>The index of the frame that was just added, or null if a sourceRect could not be determined.</returns>
 public JsNumber addFrame(DisplayObject source, Rectangle sourceRect, JsNumber scale, JsAction setupFunction) { return null; }
예제 #4
0
 /// <summary>
 /// Adds a frame to the sprite sheet. Note that the frame will not be drawn until you call build.
 /// The optional setup params allow you to have a function run immediately before the draw occurs.
 /// For example, this allows you to add a single source multiple times, but manipulate it or it's children to change it to generate different frames. 
 /// Note that the source's transformations (x,y,scale,rotate,alpha) will be ignored, except for regX/Y.
 /// To apply transforms to a source object and have them captured in the sprite sheet, simply place it into a Container and pass in the Container as the source.
 /// </summary>
 /// <param name="source">The source display object to draw as the frame.</param>
 /// <param name="sourceRect">Optional. A rectangle defining the portion of the source to draw to the frame. If not specified, it will look for a getBounds method,
 /// bounds property, or nominalBounds property on the source to use. If one is not found, the frame will be skipped.</param>
 /// <returns>The index of the frame that was just added, or null if a sourceRect could not be determined.</returns>
 public JsNumber addFrame(DisplayObject source, Rectangle sourceRect) { return null; }
예제 #5
0
 /// <summary>
 /// Adds a frame to the sprite sheet. Note that the frame will not be drawn until you call build.
 /// The optional setup params allow you to have a function run immediately before the draw occurs.
 /// For example, this allows you to add a single source multiple times, but manipulate it or it's children to change it to generate different frames. 
 /// Note that the source's transformations (x,y,scale,rotate,alpha) will be ignored, except for regX/Y.
 /// To apply transforms to a source object and have them captured in the sprite sheet, simply place it into a Container and pass in the Container as the source.
 /// </summary>
 /// <param name="source">The source display object to draw as the frame.</param>
 /// <param name="sourceRect">Optional. A rectangle defining the portion of the source to draw to the frame. If not specified, it will look for a getBounds method,
 /// bounds property, or nominalBounds property on the source to use. If one is not found, the frame will be skipped.</param>
 /// <param name="scale">Optional. The scale to draw this frame at. Default is 1.</param>
 /// <param name="setupFunction">Optional. A function to call immediately before drawing this frame.</param>
 /// <param name="setupParams">Optional. Parameters to pass to the setup function.</param>
 /// <param name="setupScope">Optional. The scope to call the setupFunction in.</param>
 /// <returns>The index of the frame that was just added, or null if a sourceRect could not be determined.</returns>
 public JsNumber addFrame(DisplayObject source, Rectangle sourceRect, JsNumber scale, JsAction setupFunction, JsArray setupParams, object setupScope) { return null; }