UNPKG

@flashport/flashport

Version:

FlashPort is a TypeScript 2D graphics library that largely replicates the Flash ActionScript 3.0 library

62 lines (61 loc) 2.49 kB
/** * properties.DisplayShortcuts.as * List of default special MovieClip properties (normal and splitter properties) for the Tweener class * The function names are strange/inverted because it makes for easier debugging (alphabetic order). They're only for internal use (on this class) anyways. * * @author Zeh Fernando, Nate Chatellier, Arthur Debert * @version 1.0.0 */ import { Rectangle } from "../../../flash/geom/Rectangle"; export declare class DisplayShortcuts { /** * There's no constructor. */ constructor(); /** * Registers all the special properties to the Tweener class, so the Tweener knows what to do with them. */ static init: () => void; static _scale_splitter: (p_value: number, p_parameters: any[]) => any[]; /** * Splits the _scrollRect parameter into specific scrollRect variables * * @param p_value Rectangle The original _scrollRect rectangle * @return Array An array containing the .name and .value of all new properties */ static _scrollRect_splitter: (p_value: Rectangle, p_parameters: any[], p_extra?: any) => any[]; /** * Returns the current frame number from the movieclip timeline * * @param p_obj Object MovieClip object * @return Number The current frame */ static _frame_get: (p_obj: any, p_parameters: any[], p_extra?: any) => number; /** * Sets the timeline frame * * @param p_obj Object MovieClip object * @param p_value Number New frame number */ static _frame_set: (p_obj: any, p_value: number, p_parameters: any[], p_extra?: any) => void; /** * Returns the current alpha * * @param p_obj Object MovieClip or Textfield object * @return Number The current alpha */ static _autoAlpha_get: (p_obj: any, p_parameters: any[], p_extra?: any) => number; /** * Sets the current autoAlpha * * @param p_obj Object MovieClip or Textfield object * @param p_value Number New alpha */ static _autoAlpha_set: (p_obj: any, p_value: number, p_parameters: any[], p_extra?: any) => void; /** * _scrollRect_* * Generic function for the properties of the scrollRect object */ static _scrollRect_property_get: (p_obj: any, p_parameters: any[], p_extra?: any) => number; static _scrollRect_property_set: (p_obj: any, p_value: number, p_parameters: any[], p_extra?: any) => void; }