source: code/Website/open-flash-chart/.FlashDevelop_AS3_cache@ 7849

Last change on this file since 7849 was 7849, checked in by dennisw, 15 years ago
File size: 71.1 KB
RevLine 
[7849]1
2#file-cache C:\Users\John\Documents\flex\open-flash-chart\Tooltip.as
3package{import caurina.transitions.Tweener;import caurina.transitions.Equations;import flash.display.Sprite;import flash.text.TextField;import flash.text.TextFormat;import flash.filters.DropShadowFilter;import ChartObjects.*;public class Tooltip extends Sprite{private var title : TextField;private var text : TextField;public function Tooltip ();public function draw (p:ChartObjects.Point) : void;public function hide () : void;}}
4#file-cache C:\Users\John\Documents\flex\open-flash-chart\XAxisLabels.as
5package{import fl.controls.TextArea;import flash.display.Sprite;import flash.text.TextField;import flash.display.DisplayObject;public class XAxisLabels extends Sprite{public var labels : Array;internal function XAxisLabels (lv:Array, minmax:MinMax);public function add (label:String) : void;public function get () : String;internal function i () : Number;public function del () : void;public function show_label (label:String, name:String) : void;public function count () : Number;public function get_height () : Number;public function resize (sc:ScreenCoords, yPos:Number) : void;public function last_label_width () : Number;public function first_label_width () : Number;}}
6#file-cache C:\Users\John\Documents\flex\open-flash-chart\main.as
7package{import flash.events.Event;import flash.events.MouseEvent;import flash.display.Sprite;import org.flashdevelop.utils.FlashConnect;import flash.net.URLLoader;import flash.net.URLRequest;import flash.display.StageAlign;import flash.display.StageScaleMode;import labels.*;import ChartObjects.*;import string.Utils;import global.Global;public class main extends Sprite{private static var EMBEDDED_FONT : String;private var t : Title;private var x_labels : XAxisLabels;private var y_labels : YAxisLabels;private var x_axis : XAxis;private var x_legend : XLegend;private var y_axis : YAxis;private var y_legend : YLegend;private var minmax : MinMax;private var keys : Keys;private var obs : ObjectCollection;public var tool_tip_wrapper : String;private var sc : ScreenCoords;private var tooltip : Tooltip;public function main ();public function get_x_legend () : XLegend;private function set_the_stage () : void;private function mouseMove (event:Event) : void;private function activateHandler (event:Event) : void;private function resizeHandler (event:Event) : void;private function resize () : void;private function mouseOut (event:Event) : void;private function xmlLoaded (event:Event) : void;private function clean_data (data:String) : Array;public function format_y_axis_label (val:Number) : String;}}
8#file-cache C:\Users\John\Documents\flex\open-flash-chart\labels\BaseLabel.as
9package labels{import flash.display.Sprite;import flash.display.Stage;import flash.text.TextField;import flash.text.TextFieldType;import flash.text.TextFormat;import flash.text.StyleSheet;import flash.events.Event;import flash.text.TextFieldAutoSize;import org.flashdevelop.utils.FlashConnect;public class BaseLabel extends Sprite{public var text : String;protected var css : StyleSheet;protected var style : String;protected var tf : TextField;public function BaseLabel ();protected function build (text:String) : void;protected function tag_wrapper (text:String) : String;}}
10#file-cache C:\Users\John\Documents\flex\open-flash-chart\ChartObjects\PointBar.as
11package ChartObjects{import flash.events.Event;import flash.events.MouseEvent;import flash.display.Sprite;public class PointBar extends ChartObjects.Point{public var _width : Number;public var bar_bottom : Number;public var colour : Number;public function PointBar (x:Number, y:Number, width:Number, bar_bottom:Number, colour:Number);private function mouseOver (event:Event) : void;public function resize (sc:ScreenCoords) : void;public function get_tip_pos () : Object;}}
12#file-cache C:\Users\John\Documents\flex\open-flash-chart\tr.as
13package{import org.flashdevelop.utils.FlashConnect;public class tr{public static function ace (o:Object) : void;}}
14#file-cache C:\Users\John\Documents\flex\open-flash-chart\ScreenCoords.as
15package{import org.flashdevelop.utils.FlashConnect;public class ScreenCoords{public var top : Number;public var left : Number;public var right : Number;public var bottom : Number;public var width : Number;public var height : Number;public var tick_offset : Number;public var count : Number;private var minmax : MinMax;private var x_offset : Boolean;public function ScreenCoords (top:Number, left:Number, right:Number, bottom:Number, minmax:MinMax, x_left_label_width:Number, x_right_label_width:Number, count:Number, jiggle:Boolean, three_d:Boolean, x_offset:Boolean);public function jiggle (left:Number, right:Number, x_label_width:Number, count:Number) : Number;public function shrink_left (left:Number, right:Number, x_label_width:Number, count:Number) : Number;public function getYbottom (right_axis:Boolean = false) : Number;public function getY_old (i:Number, right_axis:Boolean) : Number;public function getY (i:Number, right_axis:Boolean = false) : Number;public function width_ () : Number;private function left_ () : Number;public function get_x_pos_of_val (i:Number) : Number;public function get_x_pos (i:Number) : Number;public function get_x_tick_pos (i:Number) : Number;public function make_point_2 (x:Number, y:Number, right_axis:Boolean) : Point;public function make_point_bar (x:Number, y:Number, right_axis:Boolean, group:Number, group_count:Number) : PointBar;public function make_point_candle (x:Number, high:Number, open:Number, close:Number, low:Number, right_axis:Boolean, group:Number, group_count:Number) : PointCandle;public function makePointHLC (x:Number, high:Number, close:Number, low:Number, right_axis:Boolean, group:Number, group_count:Number) : PointHLC;}}
16#file-cache C:\Users\John\Documents\flex\open-flash-chart\ChartObjects\Line.as
17package ChartObjects{import flash.events.Event;import flash.events.MouseEvent;import ChartObjects.Point;import string.Utils;import global.Global;public class Line extends Base{public function Line (val:Array);private function make_highlight_dot () : void;public function make () : void;public function resize (sc:ScreenCoords) : void;public function highlight_value () : void;private function rollOver () : void;public function closest (x:Number, y:Number) : Object;public function make_dot (col:Number, bg:Number, tool_tip_title:String, tool_tip_value:String) : void;public function mouseOut (event:Event) : void;public function move_dot (val:ChartObjects.Point, mc:Object) : void;public function is_over (x:Number, y:Number) : Boolean;private function pulse (t:Object) : void;}}
18#file-cache C:\Users\John\Documents\flex\open-flash-chart\ChartObjects\Factory.as
19package ChartObjects{public class Factory{public var styles : Array;private var attach_right : Array;public static function MakeChart (lv:Array, x_axis_labels:XAxisLabels) : ObjectCollection;private static function makeObject (lv:Array, name:String, c:Number) : Base;private function parseVal (val:String) : Array;public function _count_bars () : Number;private function is_right (y2lines:Array, line:Number) : Boolean;public function mouse_move (x:Number, y:Number) : void;}}
20#file-cache C:\Users\John\Documents\flex\open-flash-chart\BarGlassStyle.as
21package{internal class BarGlassStyle extends BarStyle{public var is_bar : Boolean;public var outline_colour : Number;public function BarGlassStyle (lv:Object, name:String);public function parse (val:String);private function glass (mc:MovieClip, val:PointBar);private function bg (mc:MovieClip, val:PointBar);public function draw_bar (val:PointBar, i:Number);}}
22#file-cache C:\Users\John\Documents\flex\open-flash-chart\labels\_Verdana.as
23package labels{import flash.display.Sprite;public class _Verdana extends Sprite{public static var _Verdana : Class;}}
24#file-cache C:\Users\John\Documents\flex\open-flash-chart\labels\YLegend.as
25package labels{import org.flashdevelop.utils.FlashConnect;import flash.display.Sprite;import flash.display.Stage;import flash.text.*;import flash.events.Event;import flash.text.TextFieldAutoSize;import flash.display.Loader;import flash.events.Event;import flash.net.URLRequest;public class YLegend extends Sprite{private var right : Boolean;private var text : String;protected var css : StyleSheet;protected var style : String;protected var tf : TextField;private static var EMBEDDED_FONT : String;public function YLegend (lv:Array, right:Boolean);private function build (text:String) : void;/**
26*
27 * dynamic loading of fonts at run time:
28 *
29 private function loadFont(url:String):void {
30 var loader:Loader = new Loader();
31 loader.contentLoaderInfo.addEventListener(Event.COMPLETE, fontLoaded);
32 loader.load(new URLRequest(url));
33 }
34
35 private function fontLoaded(event:Event):void {
36 var FontLibrary:Class = event.target.applicationDomain.getDefinition("_Verdana") as Class;
37 Font.registerFont(FontLibrary._Verdana);
38 this.build( this.tag_wrapper( this.text ) );
39 }
40*/
41protected function tag_wrapper (text:String) : String;public function resize () : void;public function get_width () : Number;}}
42#file-cache C:\Users\John\Documents\flex\open-flash-chart\NumberFormat.as
43package{public class NumberFormat{public static var DEFAULT_NUM_DECIMALS : Number;public var numDecimals : Number;public var isFixedNumDecimalsForced : Boolean;public var isDecimalSeparatorComma : Boolean;public var isThousandSeparatorDisabled : Boolean;private static var _instance : NumberFormat;private static var _instanceY2 : NumberFormat;public function NumberFormat (numDecimals:Number, isFixedNumDecimalsForced:Boolean, isDecimalSeparatorComma:Boolean, isThousandSeparatorDisabled:Boolean);public static function getInstance (lv:Array) : NumberFormat;public static function getInstanceY2 (lv:Array) : NumberFormat;}}
44#file-cache C:\Users\John\Documents\flex\open-flash-chart\YAxisLabels.as
45package{import flash.display.Sprite;import flash.text.TextField;import org.flashdevelop.utils.FlashConnect;public class YAxisLabels extends Sprite{public var labels : Array;private var steps : Number;private var right : Boolean;public function YAxisLabels (y_label_style:YLabelStyle, min:Number, max:Number, steps:Number, nr:Number, lv:Array);private function yAxisLabel (title:String, y_label_style:YLabelStyle) : TextField;public function resize (left:Number, box:ScreenCoords) : void;public function get_width () : Number;}}
46#file-cache C:\Users\John\Documents\flex\open-flash-chart\XAxis.as
47package{import flash.display.Sprite;import flash.geom.Matrix;import org.flashdevelop.utils.FlashConnect;public class XAxis extends Sprite{private var tick : Number;private var grid_colour : Number;private var axis_colour : Number;private var grid_count : Number;private var steps : Number;private var alt_axis_colour : Number;private var alt_axis_step : Number;private var three_d : Boolean;private var three_d_height : Number;internal function XAxis (tick:Number, lv:Array);public function set_grid_count (val:Number) : void;public function get_grid_count () : Number;public function resize (sc:ScreenCoords) : void;public function three_d_axis (sc:ScreenCoords) : void;public function two_d_axis (sc:ScreenCoords) : void;public function height_ () : Number;public function get_height () : Number;}}
48#file-cache C:\Users\John\Documents\flex\open-flash-chart\Parser.as
49package{public class Parser{public static function isEmptyValue (value:Object) : Boolean;public static function getStringValue (value:Object, defaultValue:String, isEmptyStringValid:Boolean) : String;public static function getNumberValue (value:Object, defaultValue:Number, isZeroValueValid:Boolean, isNegativeValueValid:Boolean) : Number;public static function getBooleanValue (value:Object, defaultValue:Boolean) : Boolean;public static function runTests () : void;}}
50#file-cache C:\Users\John\Documents\flex\open-flash-chart\Loading.as
51package{import flash.display.Sprite;public class Loading extends Sprite{public function Loading ();internal function done ();}}
52#file-cache C:\Users\John\Documents\flex\open-flash-chart\string\Utils.as
53package string{public class Utils{public static var tooltip : String;public function Utils ();public static function get_colour (col:String) : Number;}}
54#file-cache C:\Users\John\Documents\flex\open-flash-chart\InnerBackground.as
55package{import flash.display.Sprite;internal class InnerBackground extends Sprite{private var colour : Number;private var colour_2 : Number;private var angle : Number;internal function InnerBackground (lv:Array);internal function move (box:Box);}}
56#file-cache C:\Users\John\Documents\flex\open-flash-chart\MinMax.as
57package{public class MinMax{public var y_min : Number;public var y_max : Number;public var y2_min : Number;public var y2_max : Number;public var x_min : Number;public var x_max : Number;public var has_x_range : Boolean;public function MinMax (lv:Array);public function range (right:Boolean) : Number;public function min (right:Boolean) : Number;}}
58#file-cache C:\Users\John\Documents\flex\open-flash-chart\NumberUtils.as
59package{public class NumberUtils{public static function formatNumber (i:Number) : String;public static function formatNumberY2 (i:Number) : String;public static function format (i:Number, numDecimals:Number, isFixedNumDecimalsForced:Boolean, isDecimalSeparatorComma:Boolean, isThousandSeparatorDisabled:Boolean) : String;public static function toDecimalSeperatorComma (value:String) : String;}}
60#file-cache C:\Users\John\Documents\flex\open-flash-chart\Point.as
61package{public class Point{public var x : Number;public var y : Number;public var tooltip : String;public var is_tip : Boolean;public function Point (x:Number, y:Number);public function make_tooltip (tip:String, key:String, val:Number, x_legend:String, x_axis_label:String, tip_set:String) : void;public function get_tip_pos () : Object;public function toString () : String;}}
62#file-cache C:\Users\John\Documents\flex\open-flash-chart\PointBar.as
63package{public class PointBar extends Point{public var width : Number;public var bar_bottom : Number;public function PointBar (x:Number, y:Number, width:Number, bar_bottom:Number);public function get_tip_pos () : Object;}}
64#file-cache C:\Users\John\Documents\flex\open-flash-chart\PointCandle.as
65package{public class PointCandle extends Point{public var width : Number;public var bar_bottom : Number;public var high : Number;public var open : Number;public var close : Number;public var low : Number;public function PointCandle (x:Number, high:Number, open:Number, close:Number, low:Number, tooltip:Number, width:Number);public function make_tooltip (tip:String, key:String, val:Number, x_legend:String, x_axis_label:String, tip_set:String) : void;public function get_tip_pos () : Object;}}
66#file-cache C:\Users\John\Documents\flex\open-flash-chart\PointHLC.as
67package{public class PointHLC extends Point{public var width : Number;public var bar_bottom : Number;public var high : Number;public var close : Number;public var low : Number;public function PointHLC (x:Number, high:Number, close:Number, low:Number, tooltip:Number, width:Number);public function make_tooltip (tip:String, key:String, val:Number, x_legend:String, x_axis_label:String, tip_set:String) : void;public function get_tip_pos () : Object;}}
68#file-cache C:\Users\John\Documents\flex\open-flash-chart\YLabelStyle.as
69package{import string.Utils;public class YLabelStyle{public var size : Number;public var colour : Number;public var show_labels : Boolean;public var show_y2 : Boolean;public function YLabelStyle (lv:Array, nr:Number, parent:main);}}
70#file-cache C:\Users\John\Documents\flex\open-flash-chart\YTicks.as
71package{public class YTicks{public var big : Number;public var small : Number;public var steps : Number;public function YTicks (lv:Array);}}
72#file-cache C:\Users\John\Documents\flex\open-flash-chart\YAxis.as
73package{import flash.display.Sprite;import string.Utils;public class YAxis extends Sprite{private var _width : Number;private var ticks : YTicks;private var grid_colour : Number;private var axis_colour : Number;private var line_width : Number;private var min : Number;private var max : Number;private var steps : Number;private var right : Boolean;internal function YAxis (y_ticks:YTicks, lv:Array, min:Number, max:Number, steps:Number, nr:Number);public function resize (box:ScreenCoords) : void;private function _move_left (box:ScreenCoords) : void;private function _move_right (box:ScreenCoords) : void;public function get_width () : Number;}}
74#file-cache C:\Users\John\Documents\flex\open-flash-chart\labels\Title.as
75package labels{import flash.display.Sprite;import flash.display.Stage;import flash.text.TextField;import flash.text.TextFieldType;import flash.text.TextFormat;import flash.text.StyleSheet;import flash.events.Event;import flash.text.TextFieldAutoSize;import org.flashdevelop.utils.FlashConnect;public class Title extends BaseLabel{public var colour : Number;public var size : Number;private var top_padding : Number;public function Title (lv:Array);protected function tag_wrapper (text:String) : String;public function resize () : void;public function get_height () : Number;}}
76#file-cache C:\Users\John\Documents\flex\open-flash-chart\labels\XLegend.as
77package labels{import org.flashdevelop.utils.FlashConnect;public class XLegend extends BaseLabel{public function XLegend (lv:Array);protected function tag_wrapper (text:String) : String;public function resize () : void;public function get_height () : Number;}}
78#file-cache C:\Users\John\Documents\flex\open-flash-chart\Keys.as
79package{import flash.display.Sprite;import flash.text.TextField;import flash.text.TextFormat;import org.flashdevelop.utils.FlashConnect;public class Keys extends Sprite{private var _height : Number;public var left : Number;public var top : Number;private var count : Number;public function Keys (left:Number, top:Number, styles:Array);public function del () : void;private function make_key (st:Object, c:Number) : void;public function resize () : void;public function get_height () : Number;}}
80#file-cache C:\Users\John\Documents\flex\open-flash-chart\caurina\transitions\AuxFunctions.as
81/**
82* Generic, auxiliary functions
83 *
84 * @author Zeh Fernando
85 * @version 1.0.0
86*/
87internal class caurina.transitions.AuxFunctions{/**
88* Gets the R (xx0000) bits from a number
89 *
90 * @param p_num Number Color number (ie, 0xffff00)
91 * @return Number The R value
92*/
93public static function numberToR (p_num:Number) : Number;/**
94* Gets the G (00xx00) bits from a number
95 *
96 * @param p_num Number Color number (ie, 0xffff00)
97 * @return Number The G value
98*/
99public static function numberToG (p_num:Number) : Number;/**
100* Gets the B (0000xx) bits from a number
101 *
102 * @param p_num Number Color number (ie, 0xffff00)
103 * @return Number The B value
104*/
105public static function numberToB (p_num:Number) : Number;/**
106* Checks whether a string is on an array
107 *
108 * @param p_string String String to search for
109 * @param p_array Array Array to be searched
110 * @return Boolean Whether the array contains the string or not
111*/
112public static function isInArray (p_string:String, p_array:Array) : Boolean;/**
113* Returns the number of properties an object has
114 *
115 * @param p_object Object Target object with a number of properties
116 * @return Number Number of total properties the object has
117*/
118public static function getObjectLength (p_object:Object) : Number;/**
119Takes a variable number of objects as parameters and "adds" their properties, form left to right. If a latter object defines a property as null, it will be removed from the final object
120 * @param args Object(s) A variable number of objects
121 * @return Object An object with the sum of all paremeters added as properties.
122*/
123public static function concatObjects () : Object;}
124#file-cache C:\Users\John\Documents\flex\open-flash-chart\caurina\transitions\Equations.as
125import caurina.transitions.Tweener;/**
126Disclaimer for Robert Penner's Easing Equations license:
127
128TERMS OF USE - EASING EQUATIONS
129
130Open source under the BSD License.
131
132Copyright ᅵ 2001 Robert Penner
133All rights reserved.
134
135Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
136
137 * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
138 * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
139 * Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission.
140
141THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
142*/
143internal class caurina.transitions.Equations{/**
144* There's no constructor.
145*/
146public function Equations ();/**
147* Registers all the equations to the Tweener class, so they can be found by the direct string parameters.
148 * This method doesn't actually have to be used - equations can always be referenced by their full function
149 * names. But "registering" them make them available as their shorthand string names.
150*/
151public static function init () : Void;/**
152* Easing equation function for a simple linear tweening, with no easing
153 *
154 * @param t Number Current time (in frames or seconds)
155 * @param b Number Starting value
156 * @param c Number Change needed in value
157 * @param d Number Expected easing duration (in frames or seconds)
158 * @return Number The correct value
159*/
160public static function easeNone (t:Number, b:Number, c:Number, d:Number) : Number;/**
161* Easing equation function for a quadratic (t^2) easing in: accelerating from zero velocity
162 *
163 * @param t Number Current time (in frames or seconds)
164 * @param b Number Starting value
165 * @param c Number Change needed in value
166 * @param d Number Expected easing duration (in frames or seconds)
167 * @return Number The correct value
168*/
169public static function easeInQuad (t:Number, b:Number, c:Number, d:Number) : Number;/**
170* Easing equation function for a quadratic (t^2) easing out: decelerating to zero velocity
171 *
172 * @param t Number Current time (in frames or seconds)
173 * @param b Number Starting value
174 * @param c Number Change needed in value
175 * @param d Number Expected easing duration (in frames or seconds)
176 * @return Number The correct value
177*/
178public static function easeOutQuad (t:Number, b:Number, c:Number, d:Number) : Number;/**
179* Easing equation function for a quadratic (t^2) easing in/out: acceleration until halfway, then deceleration
180 *
181 * @param t Number Current time (in frames or seconds)
182 * @param b Number Starting value
183 * @param c Number Change needed in value
184 * @param d Number Expected easing duration (in frames or seconds)
185 * @return Number The correct value
186*/
187public static function easeInOutQuad (t:Number, b:Number, c:Number, d:Number) : Number;/**
188* Easing equation function for a quadratic (t^2) easing out/in: deceleration until halfway, then acceleration
189 *
190 * @param t Number Current time (in frames or seconds)
191 * @param b Number Starting value
192 * @param c Number Change needed in value
193 * @param d Number Expected easing duration (in frames or seconds)
194 * @return Number The correct value
195*/
196public static function easeOutInQuad (t:Number, b:Number, c:Number, d:Number) : Number;/**
197* Easing equation function for a cubic (t^3) easing in: accelerating from zero velocity
198 *
199 * @param t Number Current time (in frames or seconds)
200 * @param b Number Starting value
201 * @param c Number Change needed in value
202 * @param d Number Expected easing duration (in frames or seconds)
203 * @return Number The correct value
204*/
205public static function easeInCubic (t:Number, b:Number, c:Number, d:Number) : Number;/**
206* Easing equation function for a cubic (t^3) easing out: decelerating from zero velocity
207 *
208 * @param t Number Current time (in frames or seconds)
209 * @param b Number Starting value
210 * @param c Number Change needed in value
211 * @param d Number Expected easing duration (in frames or seconds)
212 * @return Number The correct value
213*/
214public static function easeOutCubic (t:Number, b:Number, c:Number, d:Number) : Number;/**
215* Easing equation function for a cubic (t^3) easing in/out: acceleration until halfway, then deceleration
216 *
217 * @param t Number Current time (in frames or seconds)
218 * @param b Number Starting value
219 * @param c Number Change needed in value
220 * @param d Number Expected easing duration (in frames or seconds)
221 * @return Number The correct value
222*/
223public static function easeInOutCubic (t:Number, b:Number, c:Number, d:Number) : Number;/**
224* Easing equation function for a cubic (t^3) easing out/in: deceleration until halfway, then acceleration
225 *
226 * @param t Number Current time (in frames or seconds)
227 * @param b Number Starting value
228 * @param c Number Change needed in value
229 * @param d Number Expected easing duration (in frames or seconds)
230 * @return Number The correct value
231*/
232public static function easeOutInCubic (t:Number, b:Number, c:Number, d:Number) : Number;/**
233* Easing equation function for a quartic (t^4) easing in: accelerating from zero velocity
234 *
235 * @param t Number Current time (in frames or seconds)
236 * @param b Number Starting value
237 * @param c Number Change needed in value
238 * @param d Number Expected easing duration (in frames or seconds)
239 * @return Number The correct value
240*/
241public static function easeInQuart (t:Number, b:Number, c:Number, d:Number) : Number;/**
242* Easing equation function for a quartic (t^4) easing out: decelerating from zero velocity
243 *
244 * @param t Number Current time (in frames or seconds)
245 * @param b Number Starting value
246 * @param c Number Change needed in value
247 * @param d Number Expected easing duration (in frames or seconds)
248 * @return Number The correct value
249*/
250public static function easeOutQuart (t:Number, b:Number, c:Number, d:Number) : Number;/**
251* Easing equation function for a quartic (t^4) easing in/out: acceleration until halfway, then deceleration
252 *
253 * @param t Number Current time (in frames or seconds)
254 * @param b Number Starting value
255 * @param c Number Change needed in value
256 * @param d Number Expected easing duration (in frames or seconds)
257 * @return Number The correct value
258*/
259public static function easeInOutQuart (t:Number, b:Number, c:Number, d:Number) : Number;/**
260* Easing equation function for a quartic (t^4) easing out/in: deceleration until halfway, then acceleration
261 *
262 * @param t Number Current time (in frames or seconds)
263 * @param b Number Starting value
264 * @param c Number Change needed in value
265 * @param d Number Expected easing duration (in frames or seconds)
266 * @return Number The correct value
267*/
268public static function easeOutInQuart (t:Number, b:Number, c:Number, d:Number) : Number;/**
269* Easing equation function for a quintic (t^5) easing in: accelerating from zero velocity
270 *
271 * @param t Number Current time (in frames or seconds)
272 * @param b Number Starting value
273 * @param c Number Change needed in value
274 * @param d Number Expected easing duration (in frames or seconds)
275 * @return Number The correct value
276*/
277public static function easeInQuint (t:Number, b:Number, c:Number, d:Number) : Number;/**
278* Easing equation function for a quintic (t^5) easing out: decelerating from zero velocity
279 *
280 * @param t Number Current time (in frames or seconds)
281 * @param b Number Starting value
282 * @param c Number Change needed in value
283 * @param d Number Expected easing duration (in frames or seconds)
284 * @return Number The correct value
285*/
286public static function easeOutQuint (t:Number, b:Number, c:Number, d:Number) : Number;/**
287* Easing equation function for a quintic (t^5) easing in/out: acceleration until halfway, then deceleration
288 *
289 * @param t Number Current time (in frames or seconds)
290 * @param b Number Starting value
291 * @param c Number Change needed in value
292 * @param d Number Expected easing duration (in frames or seconds)
293 * @return Number The correct value
294*/
295public static function easeInOutQuint (t:Number, b:Number, c:Number, d:Number) : Number;/**
296* Easing equation function for a quintic (t^5) easing out/in: deceleration until halfway, then acceleration
297 *
298 * @param t Number Current time (in frames or seconds)
299 * @param b Number Starting value
300 * @param c Number Change needed in value
301 * @param d Number Expected easing duration (in frames or seconds)
302 * @return Number The correct value
303*/
304public static function easeOutInQuint (t:Number, b:Number, c:Number, d:Number) : Number;/**
305* Easing equation function for a sinusoidal (sin(t)) easing in: accelerating from zero velocity
306 *
307 * @param t Number Current time (in frames or seconds)
308 * @param b Number Starting value
309 * @param c Number Change needed in value
310 * @param d Number Expected easing duration (in frames or seconds)
311 * @return Number The correct value
312*/
313public static function easeInSine (t:Number, b:Number, c:Number, d:Number) : Number;/**
314* Easing equation function for a sinusoidal (sin(t)) easing out: decelerating from zero velocity
315 *
316 * @param t Number Current time (in frames or seconds)
317 * @param b Number Starting value
318 * @param c Number Change needed in value
319 * @param d Number Expected easing duration (in frames or seconds)
320 * @return Number The correct value
321*/
322public static function easeOutSine (t:Number, b:Number, c:Number, d:Number) : Number;/**
323* Easing equation function for a sinusoidal (sin(t)) easing in/out: acceleration until halfway, then deceleration
324 *
325 * @param t Number Current time (in frames or seconds)
326 * @param b Number Starting value
327 * @param c Number Change needed in value
328 * @param d Number Expected easing duration (in frames or seconds)
329 * @return Number The correct value
330*/
331public static function easeInOutSine (t:Number, b:Number, c:Number, d:Number) : Number;/**
332* Easing equation function for a sinusoidal (sin(t)) easing out/in: deceleration until halfway, then acceleration
333 *
334 * @param t Number Current time (in frames or seconds)
335 * @param b Number Starting value
336 * @param c Number Change needed in value
337 * @param d Number Expected easing duration (in frames or seconds)
338 * @return Number The correct value
339*/
340public static function easeOutInSine (t:Number, b:Number, c:Number, d:Number) : Number;/**
341* Easing equation function for an exponential (2^t) easing in: accelerating from zero velocity
342 *
343 * @param t Number Current time (in frames or seconds)
344 * @param b Number Starting value
345 * @param c Number Change needed in value
346 * @param d Number Expected easing duration (in frames or seconds)
347 * @return Number The correct value
348*/
349public static function easeInExpo (t:Number, b:Number, c:Number, d:Number) : Number;/**
350* Easing equation function for an exponential (2^t) easing out: decelerating from zero velocity
351 *
352 * @param t Number Current time (in frames or seconds)
353 * @param b Number Starting value
354 * @param c Number Change needed in value
355 * @param d Number Expected easing duration (in frames or seconds)
356 * @return Number The correct value
357*/
358public static function easeOutExpo (t:Number, b:Number, c:Number, d:Number) : Number;/**
359* Easing equation function for an exponential (2^t) easing in/out: acceleration until halfway, then deceleration
360 *
361 * @param t Number Current time (in frames or seconds)
362 * @param b Number Starting value
363 * @param c Number Change needed in value
364 * @param d Number Expected easing duration (in frames or seconds)
365 * @return Number The correct value
366*/
367public static function easeInOutExpo (t:Number, b:Number, c:Number, d:Number) : Number;/**
368* Easing equation function for an exponential (2^t) easing out/in: deceleration until halfway, then acceleration
369 *
370 * @param t Number Current time (in frames or seconds)
371 * @param b Number Starting value
372 * @param c Number Change needed in value
373 * @param d Number Expected easing duration (in frames or seconds)
374 * @return Number The correct value
375*/
376public static function easeOutInExpo (t:Number, b:Number, c:Number, d:Number) : Number;/**
377* Easing equation function for a circular (sqrt(1-t^2)) easing in: accelerating from zero velocity
378 *
379 * @param t Number Current time (in frames or seconds)
380 * @param b Number Starting value
381 * @param c Number Change needed in value
382 * @param d Number Expected easing duration (in frames or seconds)
383 * @return Number The correct value
384*/
385public static function easeInCirc (t:Number, b:Number, c:Number, d:Number) : Number;/**
386* Easing equation function for a circular (sqrt(1-t^2)) easing out: decelerating from zero velocity
387 *
388 * @param t Number Current time (in frames or seconds)
389 * @param b Number Starting value
390 * @param c Number Change needed in value
391 * @param d Number Expected easing duration (in frames or seconds)
392 * @return Number The correct value
393*/
394public static function easeOutCirc (t:Number, b:Number, c:Number, d:Number) : Number;/**
395* Easing equation function for a circular (sqrt(1-t^2)) easing in/out: acceleration until halfway, then deceleration
396 *
397 * @param t Number Current time (in frames or seconds)
398 * @param b Number Starting value
399 * @param c Number Change needed in value
400 * @param d Number Expected easing duration (in frames or seconds)
401 * @return Number The correct value
402*/
403public static function easeInOutCirc (t:Number, b:Number, c:Number, d:Number) : Number;/**
404* Easing equation function for a circular (sqrt(1-t^2)) easing out/in: deceleration until halfway, then acceleration
405 *
406 * @param t Number Current time (in frames or seconds)
407 * @param b Number Starting value
408 * @param c Number Change needed in value
409 * @param d Number Expected easing duration (in frames or seconds)
410 * @return Number The correct value
411*/
412public static function easeOutInCirc (t:Number, b:Number, c:Number, d:Number) : Number;/**
413* Easing equation function for an elastic (exponentially decaying sine wave) easing in: accelerating from zero velocity
414 *
415 * @param t Number Current time (in frames or seconds)
416 * @param b Number Starting value
417 * @param c Number Change needed in value
418 * @param d Number Expected easing duration (in frames or seconds)
419 * @param a Number Amplitude
420 * @param p Number Period
421 * @return Number The correct value
422*/
423public static function easeInElastic (t:Number, b:Number, c:Number, d:Number, a:Number, p:Number) : Number;/**
424* Easing equation function for an elastic (exponentially decaying sine wave) easing out: decelerating from zero velocity
425 *
426 * @param t Number Current time (in frames or seconds)
427 * @param b Number Starting value
428 * @param c Number Change needed in value
429 * @param d Number Expected easing duration (in frames or seconds)
430 * @param a Number Amplitude
431 * @param p Number Period
432 * @return Number The correct value
433*/
434public static function easeOutElastic (t:Number, b:Number, c:Number, d:Number, a:Number, p:Number) : Number;/**
435* Easing equation function for an elastic (exponentially decaying sine wave) easing in/out: acceleration until halfway, then deceleration
436 *
437 * @param t Number Current time (in frames or seconds)
438 * @param b Number Starting value
439 * @param c Number Change needed in value
440 * @param d Number Expected easing duration (in frames or seconds)
441 * @param a Number Amplitude
442 * @param p Number Period
443 * @return Number The correct value
444*/
445public static function easeInOutElastic (t:Number, b:Number, c:Number, d:Number, a:Number, p:Number) : Number;/**
446* Easing equation function for an elastic (exponentially decaying sine wave) easing out/in: deceleration until halfway, then acceleration
447 *
448 * @param t Number Current time (in frames or seconds)
449 * @param b Number Starting value
450 * @param c Number Change needed in value
451 * @param d Number Expected easing duration (in frames or seconds)
452 * @param a Number Amplitude
453 * @param p Number Period
454 * @return Number The correct value
455*/
456public static function easeOutInElastic (t:Number, b:Number, c:Number, d:Number, a:Number, p:Number) : Number;/**
457* Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing in: accelerating from zero velocity
458 *
459 * @param t Number Current time (in frames or seconds)
460 * @param b Number Starting value
461 * @param c Number Change needed in value
462 * @param d Number Expected easing duration (in frames or seconds)
463 * @param s Number Overshoot ammount: higher s means greater overshoot (0 produces cubic easing with no overshoot, and the default value of 1.70158 produces an overshoot of 10 percent)
464 * @return Number The correct value
465*/
466public static function easeInBack (t:Number, b:Number, c:Number, d:Number, s:Number) : Number;/**
467* Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing out: decelerating from zero velocity
468 *
469 * @param t Number Current time (in frames or seconds)
470 * @param b Number Starting value
471 * @param c Number Change needed in value
472 * @param d Number Expected easing duration (in frames or seconds)
473 * @param s Number Overshoot ammount: higher s means greater overshoot (0 produces cubic easing with no overshoot, and the default value of 1.70158 produces an overshoot of 10 percent)
474 * @return Number The correct value
475*/
476public static function easeOutBack (t:Number, b:Number, c:Number, d:Number, s:Number) : Number;/**
477* Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing in/out: acceleration until halfway, then deceleration
478 *
479 * @param t Number Current time (in frames or seconds)
480 * @param b Number Starting value
481 * @param c Number Change needed in value
482 * @param d Number Expected easing duration (in frames or seconds)
483 * @param s Number Overshoot ammount: higher s means greater overshoot (0 produces cubic easing with no overshoot, and the default value of 1.70158 produces an overshoot of 10 percent)
484 * @return Number The correct value
485*/
486public static function easeInOutBack (t:Number, b:Number, c:Number, d:Number, s:Number) : Number;/**
487* Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing out/in: deceleration until halfway, then acceleration
488 *
489 * @param t Number Current time (in frames or seconds)
490 * @param b Number Starting value
491 * @param c Number Change needed in value
492 * @param d Number Expected easing duration (in frames or seconds)
493 * @param s Number Overshoot ammount: higher s means greater overshoot (0 produces cubic easing with no overshoot, and the default value of 1.70158 produces an overshoot of 10 percent)
494 * @return Number The correct value
495*/
496public static function easeOutInBack (t:Number, b:Number, c:Number, d:Number, s:Number) : Number;/**
497* Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in: accelerating from zero velocity
498 *
499 * @param t Number Current time (in frames or seconds)
500 * @param b Number Starting value
501 * @param c Number Change needed in value
502 * @param d Number Expected easing duration (in frames or seconds)
503 * @return Number The correct value
504*/
505public static function easeInBounce (t:Number, b:Number, c:Number, d:Number) : Number;/**
506* Easing equation function for a bounce (exponentially decaying parabolic bounce) easing out: decelerating from zero velocity
507 *
508 * @param t Number Current time (in frames or seconds)
509 * @param b Number Starting value
510 * @param c Number Change needed in value
511 * @param d Number Expected easing duration (in frames or seconds)
512 * @return Number The correct value
513*/
514public static function easeOutBounce (t:Number, b:Number, c:Number, d:Number) : Number;/**
515* Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in/out: acceleration until halfway, then deceleration
516 *
517 * @param t Number Current time (in frames or seconds)
518 * @param b Number Starting value
519 * @param c Number Change needed in value
520 * @param d Number Expected easing duration (in frames or seconds)
521 * @return Number The correct value
522*/
523public static function easeInOutBounce (t:Number, b:Number, c:Number, d:Number) : Number;/**
524* Easing equation function for a bounce (exponentially decaying parabolic bounce) easing out/in: deceleration until halfway, then acceleration
525 *
526 * @param t Number Current time (in frames or seconds)
527 * @param b Number Starting value
528 * @param c Number Change needed in value
529 * @param d Number Expected easing duration (in frames or seconds)
530 * @return Number The correct value
531*/
532public static function easeOutInBounce (t:Number, b:Number, c:Number, d:Number) : Number;}
533#file-cache C:\Users\John\Documents\flex\open-flash-chart\caurina\transitions\PropertyInfoObj.as
534/**
535* PropertyInfoObj
536 * An object containing the updating info for a given property (its starting value, and its final value)
537 *
538 * @author Zeh Fernando
539 * @version 1.0.0
540 * @private
541*/
542internal class caurina.transitions.PropertyInfoObj{public var valueStart : Number;public var valueComplete : Number;public var hasModifier : Boolean;public var modifierFunction : Function;public var modifierParameters : Array;/**
543* Initializes the basic PropertyInfoObj.
544 *
545 * @param p_valueStart Number Starting value of the tweening (null if not started yet)
546 * @param p_valueComplete Number Final (desired) property value
547*/
548internal function PropertyInfoObj (p_valueStart:Number, p_valueComplete:Number, p_modifierFunction:Function, p_modifierParameters:Array);/**
549* Clones this property info and returns the new PropertyInfoObj
550 *
551 * @param omitEvents Boolean Whether or not events such as onStart (and its parameters) should be omitted
552 * @return TweenListObj A copy of this object
553*/
554public function clone () : PropertyInfoObj;/**
555* Returns this object described as a String.
556 *
557 * @return String The description of this object.
558*/
559public function toString () : String;}
560#file-cache C:\Users\John\Documents\flex\open-flash-chart\caurina\transitions\SpecialPropertiesDefault.as
561import caurina.transitions.Tweener;import caurina.transitions.AuxFunctions;import flash.filters.BitmapFilter;import flash.filters.BlurFilter;/**
562* SpecialPropertiesDefault
563 * List of default special properties (normal and splitter properties) for the Tweener class
564 * The function names are strange/inverted because it makes for easier debugging (alphabetic order). They're only for internal use (on this class) anyways.
565 *
566 * @author Zeh Fernando, Nate Chatellier
567 * @version 1.0.2
568*/
569internal class caurina.transitions.SpecialPropertiesDefault{/**
570* There's no constructor.
571*/
572public function SpecialPropertiesDefault ();/**
573* Registers all the special properties to the Tweener class, so the Tweener knows what to do with them.
574*/
575public static function init () : Void;/**
576* Splits the _color parameter into specific color variables
577 *
578 * @param p_value Number The original _color value
579 * @return Array An array containing the .name and .value of all new properties
580*/
581public static function _color_splitter (p_value:Number) : Array;/**
582* Splits the _colorTransform parameter into specific color variables
583 *
584 * @param p_value Number The original _colorTransform value
585 * @return Array An array containing the .name and .value of all new properties
586*/
587public static function _colorTransform_splitter (p_value:Object) : Array;public static function _scale_splitter (p_value:Number) : Array;/**
588* Splits the _filter, _blur, etc parameter into specific filter variables
589 *
590 * @param p_value BitmapFilter A BitmapFilter instance
591 * @return Array An array containing the .name and .value of all new properties
592*/
593public static function _filter_splitter (p_value:BitmapFilter) : Array;/**
594* Returns the current frame number from the movieclip timeline
595 *
596 * @param p_obj Object MovieClip object
597 * @return Number The current frame
598*/
599public static function _frame_get (p_obj:Object) : Number;/**
600* Sets the timeline frame
601 *
602 * @param p_obj Object MovieClip object
603 * @param p_value Number New frame number
604*/
605public static function _frame_set (p_obj:Object, p_value:Number) : Void;/**
606* Returns the current sound volume
607 *
608 * @param p_obj Object Sound object
609 * @return Number The current volume
610*/
611public static function _sound_volume_get (p_obj:Object) : Number;/**
612* Sets the sound volume
613 *
614 * @param p_obj Object Sound object
615 * @param p_value Number New volume
616*/
617public static function _sound_volume_set (p_obj:Object, p_value:Number) : Void;/**
618* Returns the current sound pan
619 *
620 * @param p_obj Object Sound object
621 * @return Number The current pan
622*/
623public static function _sound_pan_get (p_obj:Object) : Number;/**
624* Sets the sound volume
625 *
626 * @param p_obj Object Sound object
627 * @param p_value Number New pan
628*/
629public static function _sound_pan_set (p_obj:Object, p_value:Number) : Void;/**
630* _color_*
631 * Generic function for the ra/rb/ga/gb/ba/bb/aa/ab components of the colorTransform object
632*/
633public static function _color_property_get (p_obj:Object, p_parameters:Array) : Number;public static function _color_property_set (p_obj:Object, p_value:Number, p_parameters:Array) : Void;/**
634* Returns the current alpha
635 *
636 * @param p_obj Object MovieClip or Textfield object
637 * @return Number The current alpha
638*/
639public static function _autoAlpha_get (p_obj:Object) : Number;/**
640* Sets the current autoAlpha
641 *
642 * @param p_obj Object MovieClip or Textfield object
643 * @param p_value Number New alpha
644*/
645public static function _autoAlpha_set (p_obj:Object, p_value:Number) : Void;/**
646* (filters)
647 * Generic function for the properties of filter objects
648*/
649public static function _filter_property_get (p_obj:Object, p_parameters:Array) : Number;public static function _filter_property_set (p_obj:Object, p_value:Number, p_parameters:Array) : Void;/**
650* Given the parameter object passed to this special property, return an array listing the properties that should be modified, and their parameters
651 *
652 * @param p_obj Object Parameter passed to this property
653 * @return Array Array listing name and parameter of each property
654*/
655public static function _bezier_modifier (p_obj:Object) : Array;/**
656* Given tweening specifications (beging, end, t), applies the property parameter to it, returning new t
657 *
658 * @param b Number Beginning value of the property
659 * @param e Number Ending (desired) value of the property
660 * @param t Number Current t of this tweening (0-1), after applying the easing equation
661 * @param p Array Array of parameters passed to this specific property
662 * @return Number New t, with the p parameters applied to it
663*/
664public static function _bezier_get (b:Number, e:Number, t:Number, p:Array) : Number;}
665#file-cache C:\Users\John\Documents\flex\open-flash-chart\caurina\transitions\SpecialProperty.as
666/**
667* SpecialProperty
668 * A kind of a getter/setter for special properties
669 *
670 * @author Zeh Fernando
671 * @version 1.0.1
672*/
673internal class caurina.transitions.SpecialProperty{private var parameters : Array;/**
674* Builds a new special property object.
675 *
676 * @param p_getFunction Function Reference to the function used to get the special property value
677 * @param p_setFunction Function Reference to the function used to set the special property value
678 * @param p_parameters Array Additional parameters that should be passed to the function when executing (so the same function can apply to different special properties)
679*/
680public function SpecialProperty (p_getFunction:Function, p_setFunction:Function, p_parameters:Array);/**
681* Empty shell for the function that gets the value.
682*/
683public function getValue (p_obj:Object, p_parameters:Array) : Number;/**
684* Empty shell for the function that sets the value.
685*/
686public function setValue (p_obj:Object, p_value:Number, p_parameters:Array) : Void;/**
687* Converts the instance to a string that can be used when trace()ing the object
688*/
689public function toString () : String;}
690#file-cache C:\Users\John\Documents\flex\open-flash-chart\caurina\transitions\SpecialPropertyModifier.as
691/**
692* SpecialPropertyModifier
693 * A special property which actually acts on other properties
694 *
695 * @author Zeh Fernando
696 * @version 1.0.0
697 * @private
698*/
699internal class caurina.transitions.SpecialPropertyModifier{public var modifyValues : Function;public var getValue : Function;/**
700* Builds a new special property modifier object.
701 *
702 * @param p_modifyFunction Function Function that returns the modifider parameters.
703*/
704public function SpecialPropertyModifier (p_modifyFunction:Function, p_getFunction:Function);/**
705* Converts the instance to a string that can be used when trace()ing the object
706*/
707public function toString () : String;}
708#file-cache C:\Users\John\Documents\flex\open-flash-chart\caurina\transitions\SpecialPropertySplitter.as
709/**
710* SpecialPropertySplitter
711 * A proxy setter for special properties
712 *
713 * @author Zeh Fernando
714 * @version 1.0.0
715*/
716internal class caurina.transitions.SpecialPropertySplitter{public var parameters : Array;/**
717* Builds a new splitter special propery object.
718 *
719 * @param p_splitFunction Function Reference to the function used to split a value
720*/
721public function SpecialPropertySplitter (p_splitFunction:Function, p_parameters:Array);/**
722* Empty shell for the function that receives the value (usually just a Number), and splits it in new property names and values
723 * Must return an array containing .name and .value
724*/
725public function splitValues (p_value:Object, p_parameters:Array) : Array;/**
726* Converts the instance to a string that can be used when trace()ing the object
727*/
728public function toString () : String;}
729#file-cache C:\Users\John\Documents\flex\open-flash-chart\caurina\transitions\Tweener.as
730import caurina.transitions.Equations;import caurina.transitions.AuxFunctions;import caurina.transitions.SpecialPropertiesDefault;import caurina.transitions.SpecialProperty;import caurina.transitions.SpecialPropertyModifier;import caurina.transitions.SpecialPropertySplitter;import caurina.transitions.TweenListObj;import caurina.transitions.PropertyInfoObj;/**
731Licensed under the MIT License
732
733Copyright (c) 2006-2007 Zeh Fernando and Nate Chatellier
734
735Permission is hereby granted, free of charge, to any person obtaining a copy of
736this software and associated documentation files (the "Software"), to deal in
737the Software without restriction, including without limitation the rights to
738use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
739the Software, and to permit persons to whom the Software is furnished to do so,
740subject to the following conditions:
741
742The above copyright notice and this permission notice shall be included in all
743copies or substantial portions of the Software.
744
745THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
746IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
747FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
748COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
749IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
750CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
751
752http://code.google.com/p/tweener/
753http://code.google.com/p/tweener/wiki/License
754*/
755internal class caurina.transitions.Tweener{private static var _engineExists : Boolean;private static var _inited : Boolean;private static var _currentTime : Number;private static var _tweenList : Array;private static var _timeScale : Number;private static var _transitionList : Object;private static var _specialPropertyList : Object;private static var _specialPropertyModifierList : Object;private static var _specialPropertySplitterList : Object;/**
756* There's no constructor.
757*/
758public function Tweener ();/**
759* Adds a new tweening
760 *
761 * @param (first-n param) Object Object that should be tweened: a movieclip, textfield, etc.. OR an array of objects
762 * @param (last param) Object Object containing the specified parameters in any order, as well as the properties that should be tweened and their values
763 * @param .time Number Time in seconds or frames for the tweening to take (defaults 2)
764 * @param .delay Number Delay time (defaults 0)
765 * @param .useFrames Boolean Whether to use frames instead of seconds for time control (defaults false)
766 * @param .transition String/Function Type of transition equation... (defaults to "easeoutexpo")
767 * @param .onStart Function * Direct property, See the TweenListObj class
768 * @param .onUpdate Function * Direct property, See the TweenListObj class
769 * @param .onComplete Function * Direct property, See the TweenListObj class
770 * @param .onOverwrite Function * Direct property, See the TweenListObj class
771 * @param .onStartParams Array * Direct property, See the TweenListObj class
772 * @param .onUpdateParams Array * Direct property, See the TweenListObj class
773 * @param .onCompleteParams Array * Direct property, See the TweenListObj class
774 * @param .onOverwriteParams Array * Direct property, See the TweenListObj class
775 * @param .rounded Boolean * Direct property, See the TweenListObj class
776 * @param .skipUpdates Number * Direct property, See the TweenListObj class
777 * @return Boolean TRUE if the tween was successfully added, FALSE if otherwise
778*/
779public static function addTween () : Boolean;/**
780* Adds a new *caller* tweening
781 *
782 * @param (first-n param) Object Object that should be tweened: a movieclip, textfield, etc.. OR an array of objects
783 * @param (last param) Object Object containing the specified parameters in any order, as well as the properties that should be tweened and their values
784 * @param .time Number Time in seconds or frames for the tweening to take (defaults 2)
785 * @param .delay Number Delay time (defaults 0)
786 * @param .count Number Number of times this caller should be called
787 * @param .transition String/Function Type of transition equation... (defaults to "easeoutexpo")
788 * @param .onStart Function Event called when tween starts
789 * @param .onUpdate Function Event called when tween updates
790 * @param .onComplete Function Event called when tween ends
791 * @param .waitFrames Boolean Whether to wait (or not) one frame for each call
792 * @return Boolean TRUE if the tween was successfully added, FALSE if otherwise
793*/
794public static function addCaller () : Boolean;/**
795* Remove an specified tweening of a specified object the tweening list, if it conflicts with the given time
796 *
797 * @param p_scope Object List of objects affected
798 * @param p_properties Object List of properties affected (PropertyInfoObj instances)
799 * @param p_timeStart Number Time when the new tween starts
800 * @param p_timeComplete Number Time when the new tween ends
801 * @return Boolean Whether or not it actually deleted something
802*/
803public static function removeTweensByTime (p_scope:Object, p_properties:Object, p_timeStart:Number, p_timeComplete:Number) : Boolean;/**
804* Remove tweenings from a given object from the tweening list
805 *
806 * @param p_tween Object Object that must have its tweens removed
807 * @param (2nd-last params) Object Property(ies) that must be removed
808 * @return Boolean Whether or not it successfully removed this tweening
809*/
810public static function removeTweens (p_scope:Object) : Boolean;/**
811* Remove all tweenings from the engine
812 *
813 * @return Boolean Whether or not it successfully removed a tweening
814*/
815public static function removeAllTweens () : Boolean;/**
816* Pause tweenings from a given object
817 *
818 * @param p_scope Object Object that must have its tweens paused
819 * @param (2nd-last params) Object Property(ies) that must be paused
820 * @return Boolean Whether or not it successfully paused something
821*/
822public static function pauseTweens (p_scope:Object) : Boolean;/**
823* Pause all tweenings on the engine
824 *
825 * @return Boolean Whether or not it successfully paused a tweening
826*/
827public static function pauseAllTweens () : Boolean;/**
828* Resume tweenings from a given object
829 *
830 * @param p_scope Object Object that must have its tweens resumed
831 * @param (2nd-last params) Object Property(ies) that must be resumed
832 * @return Boolean Whether or not it successfully resumed something
833*/
834public static function resumeTweens (p_scope:Object) : Boolean;/**
835* Resume all tweenings on the engine
836 *
837 * @return Boolean Whether or not it successfully resumed a tweening
838*/
839public static function resumeAllTweens () : Boolean;/**
840* Do some generic action on specific tweenings (pause, resume, remove, more?)
841 *
842 * @param p_function Function Function to run on the tweenings that match
843 * @param p_scope Object Object that must have its tweens affected by the function
844 * @param p_properties Array Array of strings that must be affected
845 * @return Boolean Whether or not it successfully affected something
846*/
847private static function affectTweens (p_affectFunction:Function, p_scope:Object, p_properties:Array) : Boolean;/**
848* Splits a tweening in two
849 *
850 * @param p_tween Number Object that must have its tweens split
851 * @param p_properties Array Array of strings containing the list of properties that must be separated
852 * @return Number The index number of the new tween
853*/
854public static function splitTweens (p_tween:Number, p_properties:Array) : Number;/**
855* Updates all existing tweenings
856 *
857 * @return Boolean FALSE if no update was made because there's no tweening (even delayed ones)
858*/
859private static function updateTweens () : Boolean;/**
860* Remove an specific tweening from the tweening list
861 *
862 * @param p_tween Number Index of the tween to be removed on the tweenings list
863 * @return Boolean Whether or not it successfully removed this tweening
864*/
865public static function removeTweenByIndex (p_tween:Number, p_finalRemoval:Boolean) : Boolean;/**
866* Pauses an specific tween
867 *
868 * @param p_tween Number Index of the tween to be paused
869 * @return Boolean Whether or not it successfully paused this tweening
870*/
871public static function pauseTweenByIndex (p_tween:Number) : Boolean;/**
872* Resumes an specific tween
873 *
874 * @param p_tween Number Index of the tween to be resumed
875 * @return Boolean Whether or not it successfully resumed this tweening
876*/
877public static function resumeTweenByIndex (p_tween:Number) : Boolean;/**
878* Updates an specific tween
879 *
880 * @param i Number Index (from the tween list) of the tween that should be updated
881 * @return Boolean FALSE if it's already finished and should be deleted, TRUE if otherwise
882*/
883private static function updateTweenByIndex (i:Number) : Boolean;/**
884* Initiates the Tweener. Should only be ran once
885*/
886private static function init () : Void;/**
887* Adds a new function to the available transition list "shortcuts"
888 *
889 * @param p_name String Shorthand transition name
890 * @param p_function Function The proper equation function
891*/
892public static function registerTransition (p_name:String, p_function:Function) : Void;/**
893* Adds a new special property to the available special property list.
894 *
895 * @param p_name Name of the "special" property.
896 * @param p_getFunction Function that gets the value.
897 * @param p_setFunction Function that sets the value.
898*/
899public static function registerSpecialProperty (p_name:String, p_getFunction:Function, p_setFunction:Function, p_parameters:Array) : Void;/**
900* Adds a new special property modifier to the available modifier list.
901 *
902 * @param p_name Name of the "special" property modifier.
903 * @param p_modifyFunction Function that modifies the value.
904 * @param p_getFunction Function that gets the value.
905*/
906public static function registerSpecialPropertyModifier (p_name:String, p_modifyFunction:Function, p_getFunction:Function) : Void;/**
907* Adds a new special property splitter to the available splitter list.
908 *
909 * @param p_name Name of the "special" property splitter.
910 * @param p_splitFunction Function that splits the value.
911*/
912public static function registerSpecialPropertySplitter (p_name:String, p_splitFunction:Function, p_parameters:Array) : Void;/**
913* Starts the Tweener class engine. It is supposed to be running every time a tween exists
914*/
915private static function startEngine () : Void;/**
916* Stops the Tweener class engine
917*/
918private static function stopEngine () : Void;/**
919* Gets a property value from an object
920 *
921 * @param p_obj Object Any given object
922 * @param p_prop String The property name
923 * @return Number The value
924*/
925private static function getPropertyValue (p_obj:Object, p_prop:String) : Number;/**
926* Sets the value of an object property
927 *
928 * @param p_obj Object Any given object
929 * @param p_prop String The property name
930 * @param p_value Number The new value
931*/
932private static function setPropertyValue (p_obj:Object, p_prop:String, p_value:Number) : Void;/**
933* Updates the time to enforce time grid-based updates
934*/
935public static function updateTime () : Void;/**
936* Ran once every frame. It's the main engine, updates all existing tweenings.
937*/
938public static function onEnterFrame () : Void;/**
939* Sets the new time scale.
940 *
941 * @param p_time Number New time scale (0.5 = slow, 1 = normal, 2 = 2x fast forward, etc)
942*/
943public static function setTimeScale (p_time:Number) : Void;/**
944* Finds whether or not an object has any tweening
945 *
946 * @param p_scope Object Target object
947 * @return Boolean Whether or not there's a tweening occuring on this object (paused, delayed, or active)
948*/
949public static function isTweening (p_scope:Object) : Boolean;/**
950* Return an array containing a list of the properties being tweened for this object
951 *
952 * @param p_scope Object Target object
953 * @return Array List of strings with properties being tweened (including delayed or paused)
954*/
955public static function getTweens (p_scope:Object) : Array;/**
956* Return the number of properties being tweened for this object
957 *
958 * @param p_scope Object Target object
959 * @return Number Total count of properties being tweened (including delayed or paused)
960*/
961public static function getTweenCount (p_scope:Object) : Number;/**
962Handles errors when Tweener executes any callbacks (onStart, onUpdate, etc)
963 * If the TweenListObj specifies an <code>onError</code> callback it well get called, passing the <code>Error</code> object and the current scope as parameters. If no <code>onError</code> callback is specified, it will trace a stackTrace.
964*/
965private static function handleError (pTweening:Object, pError:Error, pCallBackName:String) : Void;/**
966* Return the current tweener version
967 *
968 * @return String The number of the current Tweener version
969*/
970public static function getVersion () : String;/**
971* Return the name for the controller movieclip
972 *
973 * @return String The number of the current Tweener version
974*/
975public static function getControllerName () : String;public static function debug_getList () : String;}
976#file-cache C:\Users\John\Documents\flex\open-flash-chart\caurina\transitions\TweenListObj.as
977import caurina.transitions.AuxFunctions;/**
978* The tween list object. Stores all of the properties and information that pertain to individual tweens.
979 *
980 * @author Nate Chatellier, Zeh Fernando
981 * @version 1.0.4
982*/
983internal class caurina.transitions.TweenListObj{public var scope : Object;public var properties : Object;public var auxProperties : Object;public var timeStart : Number;public var timeComplete : Number;public var useFrames : Boolean;public var transition : Function;public var onStart : Function;public var onUpdate : Function;public var onComplete : Function;public var onOverwrite : Function;public var onError : Function;public var onStartParams : Array;public var onUpdateParams : Array;public var onCompleteParams : Array;public var onOverwriteParams : Array;public var rounded : Boolean;public var isPaused : Boolean;public var timePaused : Number;public var isCaller : Boolean;public var count : Number;public var timesCalled : Number;public var waitFrames : Boolean;public var skipUpdates : Number;public var updatesSkipped : Number;public var hasStarted : Boolean;/**
984* Initializes the basic TweenListObj
985 *
986 * @param p_scope Object Object affected by this tweening
987 * @param p_timeStart Number Time when this tweening should start
988 * @param p_timeComplete Number Time when this tweening should end
989 * @param p_useFrames Boolean Whether or not to use frames instead of time
990 * @param p_transition Function Equation to control the transition animation
991*/
992internal function TweenListObj (p_scope:Object, p_timeStart:Number, p_timeComplete:Number, p_useFrames:Boolean, p_transition:Function);/**
993* Clones this tweening and returns the new TweenListObj
994 *
995 * @param omitEvents Boolean Whether or not events such as onStart (and its parameters) should be omitted
996 * @return TweenListObj A copy of this object
997*/
998public function clone (omitEvents:Boolean) : TweenListObj;/**
999* Returns this object described as a String.
1000 *
1001 * @return String The description of this object.
1002*/
1003public function toString () : String;/**
1004* Checks if p_obj "inherits" properties from other objects, as set by the "base" property. Will create a new object, leaving others intact.
1005 * o_bj.base can be an object or an array of objects. Properties are collected from the first to the last element of the "base" filed, with higher
1006 * indexes overwritting smaller ones. Does not modify any of the passed objects, but makes a shallow copy of all properties.
1007 *
1008 * @param p_obj Object Object that should be tweened: a movieclip, textfield, etc.. OR an array of objects
1009 * @return Object A new object with all properties from the p_obj and p_obj.base.
1010*/
1011public static function makePropertiesChain (p_obj:Object) : Object;}
1012#file-cache C:\Users\John\Documents\flex\open-flash-chart\ChartObjects\Base.as
1013package ChartObjects{import flash.display.Sprite;import org.flashdevelop.utils.FlashConnect;public class Base extends Sprite{public var key : String;public var font_size : Number;public var colour : Number;public var line_width : Number;public var circle_size : Number;public var is_bar : Boolean;public var values : Array;public var ExPoints : Array;private var links : Array;internal var tooltips : Array;public function Base ();public function set_values (v:Array) : void;public function add (val:String, tool_tip:String) : void;public function del () : void;public function get_length () : Number;public function resize (sc:ScreenCoords) : void;public function draw (val:String, mc:Object) : void;public function highlight_value () : void;public function closest (x:Number, y:Number) : Object;public function set_links (links:String) : void;public function set_tooltips (tooltips:String) : void;}}
1014#file-cache C:\Users\John\Documents\flex\open-flash-chart\ChartObjects\ObjectCollection.as
1015package ChartObjects{public class ObjectCollection{public var sets : Array;public function ObjectCollection ();public function add (set:Base) : void;public function length () : Number;public function resize (sc:ScreenCoords) : void;public function mouse_move (x:Number, y:Number) : ChartObjects.Point;}}
1016#file-cache C:\Users\John\Documents\flex\open-flash-chart\ChartObjects\Point.as
1017package ChartObjects{import flash.display.Sprite;public class Point extends Sprite{public var _x : Number;public var _y : Number;public var screen_x : Number;public var screen_y : Number;public var tooltip : String;public var is_tip : Boolean;public function Point (x:Number, y:Number);public function screen_pos (x:Number, y:Number) : void;public function set_tip (b:Boolean) : void;public function make_tooltip (tip:String, key:String, val:Number, x_legend:String, x_axis_label:String, tip_set:String) : void;public function get_tip_pos () : Object;public function toString () : String;}}
1018#file-cache C:\Users\John\Documents\flex\open-flash-chart\ChartObjects\Bar.as
1019package ChartObjects{import ChartObjects.PointBar;import string.Utils;import global.Global;public class Bar extends Base{public function Bar (lv:Object);public function parse_bar (val:String) : void;/**
1020private function set_mcs( count:Number )
1021 {
1022 // delete the old movie clips
1023 // this should be in the deconstructor...
1024 if( this.bar_mcs!=undefined )
1025 {
1026 for( var i:Number=0; i<this.bar_mcs.length; i++ )
1027 {
1028 _root.removeMovieClip( this.bar_mcs[i]._name );
1029 }
1030 }
1031
1032 // make an empty array to hold each bar MovieClip:
1033 this.bar_mcs = new Array(count);
1034
1035 for( var i:Number=0; i < count; i++ )
1036 {
1037 var mc:MovieClip = _root.createEmptyMovieClip( this.name+'_'+i, _root.getNextHighestDepth() );
1038 mc._is_over = false;
1039
1040 // add the MovieClip to our array:
1041 this.bar_mcs[i] = mc;
1042 }
1043 }
1044*/
1045private function parse_list (val:String) : Array;/**
1046public function is_over( x:Number, y:Number )
1047 {
1048 for( var i:Number=0; i < this.bar_mcs.length; i++ )
1049 {
1050 var tmp:MovieClip = this.bar_mcs[i];
1051 if( tmp.hitTest(x,y) )
1052 {
1053 if( !tmp._is_over )
1054 {
1055 tmp._is_over = true;
1056
1057 if( this.links[i] != undefined )
1058 {
1059 // tell _root that the mouse is over us,
1060 // and if it is clicked do this link
1061 _root.is_over( this.links[i] );
1062 }
1063 var t:Tween = new Tween(this.bar_mcs[i], "_alpha", Elastic.easeOut, this.bar_mcs[i]._alpha_original, 100, 60, false);
1064 }
1065 }
1066 else
1067 {
1068 if( tmp._is_over )
1069 {
1070 tmp._is_over = false;
1071 _root.is_out();
1072 var t:Tween = new Tween(this.bar_mcs[i], "_alpha", Elastic.easeOut, 100, this.bar_mcs[i]._alpha_original, 60, false);
1073 }
1074 }
1075 }
1076 }
1077*/
1078public function make () : void;public function resize (sc:ScreenCoords) : void;/**
1079+-----+
1080 | B |
1081 | | +-----+
1082 | | | C |
1083 | | | |
1084 +-----+---+-----+
1085 1 2
1086*/
1087public function closest (x:Number, y:Number) : Object;}}
1088#file-cache C:\Users\John\Documents\flex\open-flash-chart\global\Global.as
1089package global{public class Global{private static var instance : Global;private static var allowInstantiation : Boolean;public var x_labels : XAxisLabels;public function Global ();public static function getInstance () : Global;}}
Note: See TracBrowser for help on using the repository browser.