| 1 |
|
| 2 |
#file-cache C:\Documents and Settings\Owner\My Documents\mssp\classes\MsspResource.as |
| 3 |
package{public class MsspResource{protected var fileName : String;public function MsspResource ();/** |
| 4 |
* ファイルネームを返すメソッド |
| 5 |
*/ |
| 6 |
public function getFileName () : String;/** |
| 7 |
* ファイルネームをセットするメソッド |
| 8 |
*/ |
| 9 |
public function setFileName (_fileName:String) : void;}} |
| 10 |
#file-cache C:\Documents and Settings\Owner\My Documents\mssp\classes\Main.as |
| 11 |
package{import flash.display.Sprite;import flash.text.*;import flash.display.*;import flash.events.*;import flash.net.*;import flash.utils.*;import flash.media.*;import Picture;import Song;import caurina.transitions.*;import ui.*;/** |
| 12 |
* Multipurpose Slide Show Player |
| 13 |
* Prototype 1 |
| 14 |
*/ |
| 15 |
public class Main extends flash.display.Sprite{private static const SLIDE_TIMER_SPAN : int;private static const STATUS_STOPPING : int;private static const STATUS_PLAYING : int;private static const FADEIN_TIME : int;private var label : TextField;private var seekBar : SeekBar;private var Bar : Class;private var bar_pos_y : int;private var loader : URLLoader;private var picturePropatyArray : Array;private var pictureLoaderArray : Array;private var songList : Array;private var slideTimer : Timer;private var currentSlideNum : int;private var currentSlideTime : int;private var picHolder : MovieClip;private var sound : Sound;private var soundChannel : SoundChannel;private var autostart : Boolean;private var status : int;/** |
| 16 |
* メイン関数 |
| 17 |
*/ |
| 18 |
public function Main ();/** |
| 19 |
* 初期化関数 |
| 20 |
* |
| 21 |
* Flashが読み込まれて、最初に一度だけ呼び出されるメソッドです。 |
| 22 |
* 外部XMLファイルの読み込みなどを行います。 |
| 23 |
*/ |
| 24 |
private function init () : void;/** |
| 25 |
* 開発用 |
| 26 |
* |
| 27 |
* 開発用に適当な初期値を設定します |
| 28 |
*/ |
| 29 |
private function initForDebug () : void;/** |
| 30 |
* スライドショーの開始 |
| 31 |
* |
| 32 |
* スライドショーを開始します |
| 33 |
*/ |
| 34 |
private function start (position:Number = 0.0) : void;/** |
| 35 |
* タイマーイベントのハンドラ. |
| 36 |
* スライドを表示します. |
| 37 |
*/ |
| 38 |
private function slideTimerHandler (evt:TimerEvent) : void;/** |
| 39 |
* スライドショーの停止 |
| 40 |
* |
| 41 |
* スライドショーを停止します |
| 42 |
*/ |
| 43 |
private function stop () : void;/** |
| 44 |
* ユーザインターフェイスの初期化 |
| 45 |
* |
| 46 |
* ボタンなどのユーザインターフェイスを初期化するメソッドです。 |
| 47 |
* フラッシュ起動時に一回だけ呼び出されます。 |
| 48 |
*/ |
| 49 |
private function initUI () : void;/** |
| 50 |
* プレイリストの読み込み |
| 51 |
* |
| 52 |
* 画像・音楽のリストが記述されているプレイリストを読み込みます |
| 53 |
*/ |
| 54 |
private function loadPlaylist (playlist_file:String) : void;/** |
| 55 |
* プレイリストのXMLファイルが読み込まれたときに呼ばれる関数 |
| 56 |
* |
| 57 |
* 読み込まれたXMLファイルを解析して、画像・曲のリストを取得します |
| 58 |
*/ |
| 59 |
private function onPlaylistXMLLoaded (event:Event) : void;private function loadPicture (pictureName:String) : void;private function fadeOut (pic:Loader, fadeOutTime:int) : void;private function fadeIN (pic:Loader, fadeInTime:int) : void;private function onLoaded (event:Event) : void;private function soundHandler (event:Event) : void;}} |
| 60 |
#file-cache C:\Documents and Settings\Owner\My Documents\mssp\classes\Picture.as |
| 61 |
package{import MsspResource;/** |
| 62 |
* 画像データを保持するクラス |
| 63 |
* |
| 64 |
*/ |
| 65 |
public class Picture extends MsspResource{private var span : int;public function Picture ();/** |
| 66 |
* タイミングを返すメソッド |
| 67 |
*/ |
| 68 |
public function getSpan () : int;/** |
| 69 |
* タイミングをセットするメソッド |
| 70 |
*/ |
| 71 |
public function setSpan (_span:int) : void;}} |
| 72 |
#file-cache C:\Documents and Settings\Owner\My Documents\mssp\classes\Song.as |
| 73 |
package{import MsspResource;/** |
| 74 |
* 楽曲データを保持するクラス |
| 75 |
*/ |
| 76 |
public class Song extends MsspResource{private var title : String;public function Song (_title:String, _fileName:String);}} |
| 77 |
#file-cache C:\Documents and Settings\Owner\My Documents\mssp\classes\caurina\transitions\AuxFunctions.as |
| 78 |
package caurina.transitions{/** |
| 79 |
* Generic, auxiliary functions |
| 80 |
* |
| 81 |
* @author Zeh Fernando |
| 82 |
* @version 1.0.0 |
| 83 |
* @private |
| 84 |
*/ |
| 85 |
public class AuxFunctions{/** |
| 86 |
* Gets the R (xx0000) bits from a number |
| 87 |
* |
| 88 |
* @param p_num Number Color number (ie, 0xffff00) |
| 89 |
* @return Number The R value |
| 90 |
*/ |
| 91 |
public static function numberToR (p_num:Number) : Number;/** |
| 92 |
* Gets the G (00xx00) bits from a number |
| 93 |
* |
| 94 |
* @param p_num Number Color number (ie, 0xffff00) |
| 95 |
* @return Number The G value |
| 96 |
*/ |
| 97 |
public static function numberToG (p_num:Number) : Number;/** |
| 98 |
* Gets the B (0000xx) bits from a number |
| 99 |
* |
| 100 |
* @param p_num Number Color number (ie, 0xffff00) |
| 101 |
* @return Number The B value |
| 102 |
*/ |
| 103 |
public static function numberToB (p_num:Number) : Number;/** |
| 104 |
* Checks whether a string is on an array |
| 105 |
* |
| 106 |
* @param p_string String String to search for |
| 107 |
* @param p_array Array Array to be searched |
| 108 |
* @return Boolean Whether the array contains the string or not |
| 109 |
*/ |
| 110 |
public static function isInArray (p_string:String, p_array:Array) : Boolean;/** |
| 111 |
* Returns the number of properties an object has |
| 112 |
* |
| 113 |
* @param p_object Object Target object with a number of properties |
| 114 |
* @return Number Number of total properties the object has |
| 115 |
*/ |
| 116 |
public static function getObjectLength (p_object:Object) : uint;/** |
| 117 |
Takes 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 |
| 118 |
* @param args Object(s) A variable number of objects |
| 119 |
* @return Object An object with the sum of all paremeters added as properties. |
| 120 |
*/ |
| 121 |
public static function concatObjects (...args) : Object;}} |
| 122 |
#file-cache C:\Documents and Settings\Owner\My Documents\mssp\classes\caurina\transitions\Equations.as |
| 123 |
package caurina.transitions{public class Equations{/** |
| 124 |
* There's no constructor. |
| 125 |
* @private |
| 126 |
*/ |
| 127 |
public function Equations ();/** |
| 128 |
* Registers all the equations to the Tweener class, so they can be found by the direct string parameters. |
| 129 |
* This method doesn't actually have to be used - equations can always be referenced by their full function |
| 130 |
* names. But "registering" them make them available as their shorthand string names. |
| 131 |
*/ |
| 132 |
public static function init () : void;/** |
| 133 |
* Easing equation function for a simple linear tweening, with no easing. |
| 134 |
* |
| 135 |
* @param t Current time (in frames or seconds). |
| 136 |
* @param b Starting value. |
| 137 |
* @param c Change needed in value. |
| 138 |
* @param d Expected easing duration (in frames or seconds). |
| 139 |
* @return The correct value. |
| 140 |
*/ |
| 141 |
public static function easeNone (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 142 |
* Easing equation function for a quadratic (t^2) easing in: accelerating from zero velocity. |
| 143 |
* |
| 144 |
* @param t Current time (in frames or seconds). |
| 145 |
* @param b Starting value. |
| 146 |
* @param c Change needed in value. |
| 147 |
* @param d Expected easing duration (in frames or seconds). |
| 148 |
* @return The correct value. |
| 149 |
*/ |
| 150 |
public static function easeInQuad (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 151 |
* Easing equation function for a quadratic (t^2) easing out: decelerating to zero velocity. |
| 152 |
* |
| 153 |
* @param t Current time (in frames or seconds). |
| 154 |
* @param b Starting value. |
| 155 |
* @param c Change needed in value. |
| 156 |
* @param d Expected easing duration (in frames or seconds). |
| 157 |
* @return The correct value. |
| 158 |
*/ |
| 159 |
public static function easeOutQuad (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 160 |
* Easing equation function for a quadratic (t^2) easing in/out: acceleration until halfway, then deceleration. |
| 161 |
* |
| 162 |
* @param t Current time (in frames or seconds). |
| 163 |
* @param b Starting value. |
| 164 |
* @param c Change needed in value. |
| 165 |
* @param d Expected easing duration (in frames or seconds). |
| 166 |
* @return The correct value. |
| 167 |
*/ |
| 168 |
public static function easeInOutQuad (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 169 |
* Easing equation function for a quadratic (t^2) easing out/in: deceleration until halfway, then acceleration. |
| 170 |
* |
| 171 |
* @param t Current time (in frames or seconds). |
| 172 |
* @param b Starting value. |
| 173 |
* @param c Change needed in value. |
| 174 |
* @param d Expected easing duration (in frames or seconds). |
| 175 |
* @return The correct value. |
| 176 |
*/ |
| 177 |
public static function easeOutInQuad (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 178 |
* Easing equation function for a cubic (t^3) easing in: accelerating from zero velocity. |
| 179 |
* |
| 180 |
* @param t Current time (in frames or seconds). |
| 181 |
* @param b Starting value. |
| 182 |
* @param c Change needed in value. |
| 183 |
* @param d Expected easing duration (in frames or seconds). |
| 184 |
* @return The correct value. |
| 185 |
*/ |
| 186 |
public static function easeInCubic (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 187 |
* Easing equation function for a cubic (t^3) easing out: decelerating from zero velocity. |
| 188 |
* |
| 189 |
* @param t Current time (in frames or seconds). |
| 190 |
* @param b Starting value. |
| 191 |
* @param c Change needed in value. |
| 192 |
* @param d Expected easing duration (in frames or seconds). |
| 193 |
* @return The correct value. |
| 194 |
*/ |
| 195 |
public static function easeOutCubic (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 196 |
* Easing equation function for a cubic (t^3) easing in/out: acceleration until halfway, then deceleration. |
| 197 |
* |
| 198 |
* @param t Current time (in frames or seconds). |
| 199 |
* @param b Starting value. |
| 200 |
* @param c Change needed in value. |
| 201 |
* @param d Expected easing duration (in frames or seconds). |
| 202 |
* @return The correct value. |
| 203 |
*/ |
| 204 |
public static function easeInOutCubic (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 205 |
* Easing equation function for a cubic (t^3) easing out/in: deceleration until halfway, then acceleration. |
| 206 |
* |
| 207 |
* @param t Current time (in frames or seconds). |
| 208 |
* @param b Starting value. |
| 209 |
* @param c Change needed in value. |
| 210 |
* @param d Expected easing duration (in frames or seconds). |
| 211 |
* @return The correct value. |
| 212 |
*/ |
| 213 |
public static function easeOutInCubic (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 214 |
* Easing equation function for a quartic (t^4) easing in: accelerating from zero velocity. |
| 215 |
* |
| 216 |
* @param t Current time (in frames or seconds). |
| 217 |
* @param b Starting value. |
| 218 |
* @param c Change needed in value. |
| 219 |
* @param d Expected easing duration (in frames or seconds). |
| 220 |
* @return The correct value. |
| 221 |
*/ |
| 222 |
public static function easeInQuart (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 223 |
* Easing equation function for a quartic (t^4) easing out: decelerating from zero velocity. |
| 224 |
* |
| 225 |
* @param t Current time (in frames or seconds). |
| 226 |
* @param b Starting value. |
| 227 |
* @param c Change needed in value. |
| 228 |
* @param d Expected easing duration (in frames or seconds). |
| 229 |
* @return The correct value. |
| 230 |
*/ |
| 231 |
public static function easeOutQuart (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 232 |
* Easing equation function for a quartic (t^4) easing in/out: acceleration until halfway, then deceleration. |
| 233 |
* |
| 234 |
* @param t Current time (in frames or seconds). |
| 235 |
* @param b Starting value. |
| 236 |
* @param c Change needed in value. |
| 237 |
* @param d Expected easing duration (in frames or seconds). |
| 238 |
* @return The correct value. |
| 239 |
*/ |
| 240 |
public static function easeInOutQuart (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 241 |
* Easing equation function for a quartic (t^4) easing out/in: deceleration until halfway, then acceleration. |
| 242 |
* |
| 243 |
* @param t Current time (in frames or seconds). |
| 244 |
* @param b Starting value. |
| 245 |
* @param c Change needed in value. |
| 246 |
* @param d Expected easing duration (in frames or seconds). |
| 247 |
* @return The correct value. |
| 248 |
*/ |
| 249 |
public static function easeOutInQuart (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 250 |
* Easing equation function for a quintic (t^5) easing in: accelerating from zero velocity. |
| 251 |
* |
| 252 |
* @param t Current time (in frames or seconds). |
| 253 |
* @param b Starting value. |
| 254 |
* @param c Change needed in value. |
| 255 |
* @param d Expected easing duration (in frames or seconds). |
| 256 |
* @return The correct value. |
| 257 |
*/ |
| 258 |
public static function easeInQuint (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 259 |
* Easing equation function for a quintic (t^5) easing out: decelerating from zero velocity. |
| 260 |
* |
| 261 |
* @param t Current time (in frames or seconds). |
| 262 |
* @param b Starting value. |
| 263 |
* @param c Change needed in value. |
| 264 |
* @param d Expected easing duration (in frames or seconds). |
| 265 |
* @return The correct value. |
| 266 |
*/ |
| 267 |
public static function easeOutQuint (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 268 |
* Easing equation function for a quintic (t^5) easing in/out: acceleration until halfway, then deceleration. |
| 269 |
* |
| 270 |
* @param t Current time (in frames or seconds). |
| 271 |
* @param b Starting value. |
| 272 |
* @param c Change needed in value. |
| 273 |
* @param d Expected easing duration (in frames or seconds). |
| 274 |
* @return The correct value. |
| 275 |
*/ |
| 276 |
public static function easeInOutQuint (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 277 |
* Easing equation function for a quintic (t^5) easing out/in: deceleration until halfway, then acceleration. |
| 278 |
* |
| 279 |
* @param t Current time (in frames or seconds). |
| 280 |
* @param b Starting value. |
| 281 |
* @param c Change needed in value. |
| 282 |
* @param d Expected easing duration (in frames or seconds). |
| 283 |
* @return The correct value. |
| 284 |
*/ |
| 285 |
public static function easeOutInQuint (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 286 |
* Easing equation function for a sinusoidal (sin(t)) easing in: accelerating from zero velocity. |
| 287 |
* |
| 288 |
* @param t Current time (in frames or seconds). |
| 289 |
* @param b Starting value. |
| 290 |
* @param c Change needed in value. |
| 291 |
* @param d Expected easing duration (in frames or seconds). |
| 292 |
* @return The correct value. |
| 293 |
*/ |
| 294 |
public static function easeInSine (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 295 |
* Easing equation function for a sinusoidal (sin(t)) easing out: decelerating from zero velocity. |
| 296 |
* |
| 297 |
* @param t Current time (in frames or seconds). |
| 298 |
* @param b Starting value. |
| 299 |
* @param c Change needed in value. |
| 300 |
* @param d Expected easing duration (in frames or seconds). |
| 301 |
* @return The correct value. |
| 302 |
*/ |
| 303 |
public static function easeOutSine (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 304 |
* Easing equation function for a sinusoidal (sin(t)) easing in/out: acceleration until halfway, then deceleration. |
| 305 |
* |
| 306 |
* @param t Current time (in frames or seconds). |
| 307 |
* @param b Starting value. |
| 308 |
* @param c Change needed in value. |
| 309 |
* @param d Expected easing duration (in frames or seconds). |
| 310 |
* @return The correct value. |
| 311 |
*/ |
| 312 |
public static function easeInOutSine (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 313 |
* Easing equation function for a sinusoidal (sin(t)) easing out/in: deceleration until halfway, then acceleration. |
| 314 |
* |
| 315 |
* @param t Current time (in frames or seconds). |
| 316 |
* @param b Starting value. |
| 317 |
* @param c Change needed in value. |
| 318 |
* @param d Expected easing duration (in frames or seconds). |
| 319 |
* @return The correct value. |
| 320 |
*/ |
| 321 |
public static function easeOutInSine (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 322 |
* Easing equation function for an exponential (2^t) easing in: accelerating from zero velocity. |
| 323 |
* |
| 324 |
* @param t Current time (in frames or seconds). |
| 325 |
* @param b Starting value. |
| 326 |
* @param c Change needed in value. |
| 327 |
* @param d Expected easing duration (in frames or seconds). |
| 328 |
* @return The correct value. |
| 329 |
*/ |
| 330 |
public static function easeInExpo (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 331 |
* Easing equation function for an exponential (2^t) easing out: decelerating from zero velocity. |
| 332 |
* |
| 333 |
* @param t Current time (in frames or seconds). |
| 334 |
* @param b Starting value. |
| 335 |
* @param c Change needed in value. |
| 336 |
* @param d Expected easing duration (in frames or seconds). |
| 337 |
* @return The correct value. |
| 338 |
*/ |
| 339 |
public static function easeOutExpo (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 340 |
* Easing equation function for an exponential (2^t) easing in/out: acceleration until halfway, then deceleration. |
| 341 |
* |
| 342 |
* @param t Current time (in frames or seconds). |
| 343 |
* @param b Starting value. |
| 344 |
* @param c Change needed in value. |
| 345 |
* @param d Expected easing duration (in frames or seconds). |
| 346 |
* @return The correct value. |
| 347 |
*/ |
| 348 |
public static function easeInOutExpo (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 349 |
* Easing equation function for an exponential (2^t) easing out/in: deceleration until halfway, then acceleration. |
| 350 |
* |
| 351 |
* @param t Current time (in frames or seconds). |
| 352 |
* @param b Starting value. |
| 353 |
* @param c Change needed in value. |
| 354 |
* @param d Expected easing duration (in frames or seconds). |
| 355 |
* @return The correct value. |
| 356 |
*/ |
| 357 |
public static function easeOutInExpo (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 358 |
* Easing equation function for a circular (sqrt(1-t^2)) easing in: accelerating from zero velocity. |
| 359 |
* |
| 360 |
* @param t Current time (in frames or seconds). |
| 361 |
* @param b Starting value. |
| 362 |
* @param c Change needed in value. |
| 363 |
* @param d Expected easing duration (in frames or seconds). |
| 364 |
* @return The correct value. |
| 365 |
*/ |
| 366 |
public static function easeInCirc (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 367 |
* Easing equation function for a circular (sqrt(1-t^2)) easing out: decelerating from zero velocity. |
| 368 |
* |
| 369 |
* @param t Current time (in frames or seconds). |
| 370 |
* @param b Starting value. |
| 371 |
* @param c Change needed in value. |
| 372 |
* @param d Expected easing duration (in frames or seconds). |
| 373 |
* @return The correct value. |
| 374 |
*/ |
| 375 |
public static function easeOutCirc (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 376 |
* Easing equation function for a circular (sqrt(1-t^2)) easing in/out: acceleration until halfway, then deceleration. |
| 377 |
* |
| 378 |
* @param t Current time (in frames or seconds). |
| 379 |
* @param b Starting value. |
| 380 |
* @param c Change needed in value. |
| 381 |
* @param d Expected easing duration (in frames or seconds). |
| 382 |
* @return The correct value. |
| 383 |
*/ |
| 384 |
public static function easeInOutCirc (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 385 |
* Easing equation function for a circular (sqrt(1-t^2)) easing out/in: deceleration until halfway, then acceleration. |
| 386 |
* |
| 387 |
* @param t Current time (in frames or seconds). |
| 388 |
* @param b Starting value. |
| 389 |
* @param c Change needed in value. |
| 390 |
* @param d Expected easing duration (in frames or seconds). |
| 391 |
* @return The correct value. |
| 392 |
*/ |
| 393 |
public static function easeOutInCirc (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 394 |
* Easing equation function for an elastic (exponentially decaying sine wave) easing in: accelerating from zero velocity. |
| 395 |
* |
| 396 |
* @param t Current time (in frames or seconds). |
| 397 |
* @param b Starting value. |
| 398 |
* @param c Change needed in value. |
| 399 |
* @param d Expected easing duration (in frames or seconds). |
| 400 |
* @param a Amplitude. |
| 401 |
* @param p Period. |
| 402 |
* @return The correct value. |
| 403 |
*/ |
| 404 |
public static function easeInElastic (t:Number, b:Number, c:Number, d:Number, a:Number = Number.NaN, p:Number = Number.NaN) : Number;/** |
| 405 |
* Easing equation function for an elastic (exponentially decaying sine wave) easing out: decelerating from zero velocity. |
| 406 |
* |
| 407 |
* @param t Current time (in frames or seconds). |
| 408 |
* @param b Starting value. |
| 409 |
* @param c Change needed in value. |
| 410 |
* @param d Expected easing duration (in frames or seconds). |
| 411 |
* @param a Amplitude. |
| 412 |
* @param p Period. |
| 413 |
* @return The correct value. |
| 414 |
*/ |
| 415 |
public static function easeOutElastic (t:Number, b:Number, c:Number, d:Number, a:Number = Number.NaN, p:Number = Number.NaN) : Number;/** |
| 416 |
* Easing equation function for an elastic (exponentially decaying sine wave) easing in/out: acceleration until halfway, then deceleration. |
| 417 |
* |
| 418 |
* @param t Current time (in frames or seconds). |
| 419 |
* @param b Starting value. |
| 420 |
* @param c Change needed in value. |
| 421 |
* @param d Expected easing duration (in frames or seconds). |
| 422 |
* @param a Amplitude. |
| 423 |
* @param p Period. |
| 424 |
* @return The correct value. |
| 425 |
*/ |
| 426 |
public static function easeInOutElastic (t:Number, b:Number, c:Number, d:Number, a:Number = Number.NaN, p:Number = Number.NaN) : Number;/** |
| 427 |
* Easing equation function for an elastic (exponentially decaying sine wave) easing out/in: deceleration until halfway, then acceleration. |
| 428 |
* |
| 429 |
* @param t Current time (in frames or seconds). |
| 430 |
* @param b Starting value. |
| 431 |
* @param c Change needed in value. |
| 432 |
* @param d Expected easing duration (in frames or seconds). |
| 433 |
* @param a Amplitude. |
| 434 |
* @param p Period. |
| 435 |
* @return The correct value. |
| 436 |
*/ |
| 437 |
public static function easeOutInElastic (t:Number, b:Number, c:Number, d:Number, a:Number = Number.NaN, p:Number = Number.NaN) : Number;/** |
| 438 |
* Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing in: accelerating from zero velocity. |
| 439 |
* |
| 440 |
* @param t Current time (in frames or seconds). |
| 441 |
* @param b Starting value. |
| 442 |
* @param c Change needed in value. |
| 443 |
* @param d Expected easing duration (in frames or seconds). |
| 444 |
* @param s 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). |
| 445 |
* @return The correct value. |
| 446 |
*/ |
| 447 |
public static function easeInBack (t:Number, b:Number, c:Number, d:Number, s:Number = Number.NaN) : Number;/** |
| 448 |
* Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing out: decelerating from zero velocity. |
| 449 |
* |
| 450 |
* @param t Current time (in frames or seconds). |
| 451 |
* @param b Starting value. |
| 452 |
* @param c Change needed in value. |
| 453 |
* @param d Expected easing duration (in frames or seconds). |
| 454 |
* @param s 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). |
| 455 |
* @return The correct value. |
| 456 |
*/ |
| 457 |
public static function easeOutBack (t:Number, b:Number, c:Number, d:Number, s:Number = Number.NaN) : Number;/** |
| 458 |
* Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing in/out: acceleration until halfway, then deceleration. |
| 459 |
* |
| 460 |
* @param t Current time (in frames or seconds). |
| 461 |
* @param b Starting value. |
| 462 |
* @param c Change needed in value. |
| 463 |
* @param d Expected easing duration (in frames or seconds). |
| 464 |
* @param s 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). |
| 465 |
* @return The correct value. |
| 466 |
*/ |
| 467 |
public static function easeInOutBack (t:Number, b:Number, c:Number, d:Number, s:Number = Number.NaN) : Number;/** |
| 468 |
* Easing equation function for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing out/in: deceleration until halfway, then acceleration. |
| 469 |
* |
| 470 |
* @param t Current time (in frames or seconds). |
| 471 |
* @param b Starting value. |
| 472 |
* @param c Change needed in value. |
| 473 |
* @param d Expected easing duration (in frames or seconds). |
| 474 |
* @param s 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). |
| 475 |
* @return The correct value. |
| 476 |
*/ |
| 477 |
public static function easeOutInBack (t:Number, b:Number, c:Number, d:Number, s:Number = Number.NaN) : Number;/** |
| 478 |
* Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in: accelerating from zero velocity. |
| 479 |
* |
| 480 |
* @param t Current time (in frames or seconds). |
| 481 |
* @param b Starting value. |
| 482 |
* @param c Change needed in value. |
| 483 |
* @param d Expected easing duration (in frames or seconds). |
| 484 |
* @return The correct value. |
| 485 |
*/ |
| 486 |
public static function easeInBounce (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 487 |
* Easing equation function for a bounce (exponentially decaying parabolic bounce) easing out: decelerating from zero velocity. |
| 488 |
* |
| 489 |
* @param t Current time (in frames or seconds). |
| 490 |
* @param b Starting value. |
| 491 |
* @param c Change needed in value. |
| 492 |
* @param d Expected easing duration (in frames or seconds). |
| 493 |
* @return The correct value. |
| 494 |
*/ |
| 495 |
public static function easeOutBounce (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 496 |
* Easing equation function for a bounce (exponentially decaying parabolic bounce) easing in/out: acceleration until halfway, then deceleration. |
| 497 |
* |
| 498 |
* @param t Current time (in frames or seconds). |
| 499 |
* @param b Starting value. |
| 500 |
* @param c Change needed in value. |
| 501 |
* @param d Expected easing duration (in frames or seconds). |
| 502 |
* @return The correct value. |
| 503 |
*/ |
| 504 |
public static function easeInOutBounce (t:Number, b:Number, c:Number, d:Number) : Number;/** |
| 505 |
* Easing equation function for a bounce (exponentially decaying parabolic bounce) easing out/in: deceleration until halfway, then acceleration. |
| 506 |
* |
| 507 |
* @param t Current time (in frames or seconds). |
| 508 |
* @param b Starting value. |
| 509 |
* @param c Change needed in value. |
| 510 |
* @param d Expected easing duration (in frames or seconds). |
| 511 |
* @return The correct value. |
| 512 |
*/ |
| 513 |
public static function easeOutInBounce (t:Number, b:Number, c:Number, d:Number) : Number;}} |
| 514 |
#file-cache C:\Documents and Settings\Owner\My Documents\mssp\classes\caurina\transitions\PropertyInfoObj.as |
| 515 |
package caurina.transitions{/** |
| 516 |
* PropertyInfoObj |
| 517 |
* An object containing the updating info for a given property (its starting value, and its final value) |
| 518 |
* |
| 519 |
* @author Zeh Fernando |
| 520 |
* @version 1.0.0 |
| 521 |
* @private |
| 522 |
*/ |
| 523 |
public class PropertyInfoObj{public var valueStart : Number;public var valueComplete : Number;public var hasModifier : Boolean;public var modifierFunction : Function;public var modifierParameters : Array;/** |
| 524 |
* Initializes the basic PropertyInfoObj. |
| 525 |
* |
| 526 |
* @param p_valueStart Number Starting value of the tweening (null if not started yet) |
| 527 |
* @param p_valueComplete Number Final (desired) property value |
| 528 |
*/ |
| 529 |
internal function PropertyInfoObj (p_valueStart:Number, p_valueComplete:Number, p_modifierFunction:Function, p_modifierParameters:Array);/** |
| 530 |
* Clones this property info and returns the new PropertyInfoObj |
| 531 |
* |
| 532 |
* @param omitEvents Boolean Whether or not events such as onStart (and its parameters) should be omitted |
| 533 |
* @return TweenListObj A copy of this object |
| 534 |
*/ |
| 535 |
public function clone () : PropertyInfoObj;/** |
| 536 |
* Returns this object described as a String. |
| 537 |
* |
| 538 |
* @return String The description of this object. |
| 539 |
*/ |
| 540 |
public function toString () : String;}} |
| 541 |
#file-cache C:\Documents and Settings\Owner\My Documents\mssp\classes\caurina\transitions\SpecialPropertiesDefault.as |
| 542 |
package caurina.transitions{import flash.filters.BitmapFilter;import flash.filters.BlurFilter;import flash.geom.ColorTransform;import flash.media.SoundTransform;/** |
| 543 |
* SpecialPropertiesDefault |
| 544 |
* List of default special properties for the Tweener class |
| 545 |
* The function names are strange/inverted because it makes for easier debugging (alphabetic order). They're only for internal use (on this class) anyways. |
| 546 |
* |
| 547 |
* @author Zeh Fernando, Nate Chatellier |
| 548 |
* @version 1.0.1 |
| 549 |
* @private |
| 550 |
*/ |
| 551 |
public class SpecialPropertiesDefault{/** |
| 552 |
* There's no constructor. |
| 553 |
*/ |
| 554 |
public function SpecialPropertiesDefault ();/** |
| 555 |
* Registers all the special properties to the Tweener class, so the Tweener knows what to do with them. |
| 556 |
*/ |
| 557 |
public static function init () : void;/** |
| 558 |
* Splits the _color parameter into specific color variables |
| 559 |
* |
| 560 |
* @param p_value Number The original _color value |
| 561 |
* @return Array An array containing the .name and .value of all new properties |
| 562 |
*/ |
| 563 |
public static function _color_splitter (p_value:*, p_parameters:Array) : Array;/** |
| 564 |
* Splits the _colorTransform parameter into specific color variables |
| 565 |
* |
| 566 |
* @param p_value Number The original _colorTransform value |
| 567 |
* @return Array An array containing the .name and .value of all new properties |
| 568 |
*/ |
| 569 |
public static function _colorTransform_splitter (p_value:*, p_parameters:Array) : Array;public static function _scale_splitter (p_value:Number, p_parameters:Array) : Array;/** |
| 570 |
* Splits the _filter, _blur, etc parameter into specific filter variables |
| 571 |
* |
| 572 |
* @param p_value BitmapFilter A BitmapFilter instance |
| 573 |
* @return Array An array containing the .name and .value of all new properties |
| 574 |
*/ |
| 575 |
public static function _filter_splitter (p_value:BitmapFilter, p_parameters:Array) : Array;/** |
| 576 |
* Returns the current frame number from the movieclip timeline |
| 577 |
* |
| 578 |
* @param p_obj Object MovieClip object |
| 579 |
* @return Number The current frame |
| 580 |
*/ |
| 581 |
public static function frame_get (p_obj:Object) : Number;/** |
| 582 |
* Sets the timeline frame |
| 583 |
* |
| 584 |
* @param p_obj Object MovieClip object |
| 585 |
* @param p_value Number New frame number |
| 586 |
*/ |
| 587 |
public static function frame_set (p_obj:Object, p_value:Number) : void;/** |
| 588 |
* Returns the current sound volume |
| 589 |
* |
| 590 |
* @param p_obj Object Sound object |
| 591 |
* @return Number The current volume |
| 592 |
*/ |
| 593 |
public static function _sound_volume_get (p_obj:Object) : Number;/** |
| 594 |
* Sets the sound volume |
| 595 |
* |
| 596 |
* @param p_obj Object Sound object |
| 597 |
* @param p_value Number New volume |
| 598 |
*/ |
| 599 |
public static function _sound_volume_set (p_obj:Object, p_value:Number) : void;/** |
| 600 |
* Returns the current sound pan |
| 601 |
* |
| 602 |
* @param p_obj Object Sound object |
| 603 |
* @return Number The current pan |
| 604 |
*/ |
| 605 |
public static function _sound_pan_get (p_obj:Object) : Number;/** |
| 606 |
* Sets the sound volume |
| 607 |
* |
| 608 |
* @param p_obj Object Sound object |
| 609 |
* @param p_value Number New pan |
| 610 |
*/ |
| 611 |
public static function _sound_pan_set (p_obj:Object, p_value:Number) : void;/** |
| 612 |
* _color_* |
| 613 |
* Generic function for the ra/rb/ga/gb/ba/bb/aa/ab components of the colorTransform object |
| 614 |
*/ |
| 615 |
public 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;/** |
| 616 |
* Returns the current alpha |
| 617 |
* |
| 618 |
* @param p_obj Object MovieClip or Textfield object |
| 619 |
* @return Number The current alpha |
| 620 |
*/ |
| 621 |
public static function _autoAlpha_get (p_obj:Object) : Number;/** |
| 622 |
* Sets the current autoAlpha |
| 623 |
* |
| 624 |
* @param p_obj Object MovieClip or Textfield object |
| 625 |
* @param p_value Number New alpha |
| 626 |
*/ |
| 627 |
public static function _autoAlpha_set (p_obj:Object, p_value:Number) : void;/** |
| 628 |
* (filters) |
| 629 |
* Generic function for the properties of filter objects |
| 630 |
*/ |
| 631 |
public 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;/** |
| 632 |
* Given the parameter object passed to this special property, return an array listing the properties that should be modified, and their parameters |
| 633 |
* |
| 634 |
* @param p_obj Object Parameter passed to this property |
| 635 |
* @return Array Array listing name and parameter of each property |
| 636 |
*/ |
| 637 |
public static function _bezier_modifier (p_obj:*) : Array;/** |
| 638 |
* Given tweening specifications (beging, end, t), applies the property parameter to it, returning new t |
| 639 |
* |
| 640 |
* @param b Number Beginning value of the property |
| 641 |
* @param e Number Ending (desired) value of the property |
| 642 |
* @param t Number Current t of this tweening (0-1), after applying the easing equation |
| 643 |
* @param p Array Array of parameters passed to this specific property |
| 644 |
* @return Number New t, with the p parameters applied to it |
| 645 |
*/ |
| 646 |
public static function _bezier_get (b:Number, e:Number, t:Number, p:Array) : Number;}} |
| 647 |
#file-cache C:\Documents and Settings\Owner\My Documents\mssp\classes\caurina\transitions\SpecialProperty.as |
| 648 |
package caurina.transitions{/** |
| 649 |
* SpecialProperty |
| 650 |
* A kind of a getter/setter for special properties |
| 651 |
* |
| 652 |
* @author Zeh Fernando |
| 653 |
* @version 1.0.0 |
| 654 |
* @private |
| 655 |
*/ |
| 656 |
public class SpecialProperty{public var getValue : Function;public var setValue : Function;public var parameters : Array;/** |
| 657 |
* Builds a new special property object. |
| 658 |
* |
| 659 |
* @param p_getFunction Function Reference to the function used to get the special property value |
| 660 |
* @param p_setFunction Function Reference to the function used to set the special property value |
| 661 |
*/ |
| 662 |
public function SpecialProperty (p_getFunction:Function, p_setFunction:Function, p_parameters:Array = null);/** |
| 663 |
* Converts the instance to a string that can be used when trace()ing the object |
| 664 |
*/ |
| 665 |
public function toString () : String;}} |
| 666 |
#file-cache C:\Documents and Settings\Owner\My Documents\mssp\classes\caurina\transitions\SpecialPropertyModifier.as |
| 667 |
package caurina.transitions{/** |
| 668 |
* SpecialPropertyModifier |
| 669 |
* A special property which actually acts on other properties |
| 670 |
* |
| 671 |
* @author Zeh Fernando |
| 672 |
* @version 1.0.0 |
| 673 |
* @private |
| 674 |
*/ |
| 675 |
public class SpecialPropertyModifier{public var modifyValues : Function;public var getValue : Function;/** |
| 676 |
* Builds a new special property modifier object. |
| 677 |
* |
| 678 |
* @param p_modifyFunction Function Function that returns the modifider parameters. |
| 679 |
*/ |
| 680 |
public function SpecialPropertyModifier (p_modifyFunction:Function, p_getFunction:Function);/** |
| 681 |
* Converts the instance to a string that can be used when trace()ing the object |
| 682 |
*/ |
| 683 |
public function toString () : String;}} |
| 684 |
#file-cache C:\Documents and Settings\Owner\My Documents\mssp\classes\caurina\transitions\SpecialPropertySplitter.as |
| 685 |
package caurina.transitions{/** |
| 686 |
* SpecialPropertySplitter |
| 687 |
* A proxy setter for special properties |
| 688 |
* |
| 689 |
* @author Zeh Fernando |
| 690 |
* @version 1.0.0 |
| 691 |
* @private |
| 692 |
*/ |
| 693 |
public class SpecialPropertySplitter{public var parameters : Array;public var splitValues : Function;/** |
| 694 |
* Builds a new group special property object. |
| 695 |
* |
| 696 |
* @param p_splitFunction Function Reference to the function used to split a value |
| 697 |
*/ |
| 698 |
public function SpecialPropertySplitter (p_splitFunction:Function, p_parameters:Array);/** |
| 699 |
* Converts the instance to a string that can be used when trace()ing the object |
| 700 |
*/ |
| 701 |
public function toString () : String;}} |
| 702 |
#file-cache C:\Documents and Settings\Owner\My Documents\mssp\classes\caurina\transitions\Tweener.as |
| 703 |
package caurina.transitions{import flash.display.*;import flash.events.Event;import flash.utils.getTimer;public class Tweener{private static var __tweener_controller__ : MovieClip;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;/** |
| 704 |
* There's no constructor. |
| 705 |
* @private |
| 706 |
*/ |
| 707 |
public function Tweener ();/** |
| 708 |
* Adds a new tweening. |
| 709 |
* |
| 710 |
* @param (first-n param) Object Object that should be tweened: a movieclip, textfield, etc.. OR an array of objects |
| 711 |
* @param (last param) Object Object containing the specified parameters in any order, as well as the properties that should be tweened and their values |
| 712 |
* @param .time Number Time in seconds or frames for the tweening to take (defaults 2) |
| 713 |
* @param .delay Number Delay time (defaults 0) |
| 714 |
* @param .useFrames Boolean Whether to use frames instead of seconds for time control (defaults false) |
| 715 |
* @param .transition String/Function Type of transition equation... (defaults to "easeoutexpo") |
| 716 |
* @param .onStart Function * Direct property, See the TweenListObj class |
| 717 |
* @param .onUpdate Function * Direct property, See the TweenListObj class |
| 718 |
* @param .onComplete Function * Direct property, See the TweenListObj class |
| 719 |
* @param .onOverwrite Function * Direct property, See the TweenListObj class |
| 720 |
* @param .onStartParams Array * Direct property, See the TweenListObj class |
| 721 |
* @param .onUpdateParams Array * Direct property, See the TweenListObj class |
| 722 |
* @param .onCompleteParams Array * Direct property, See the TweenListObj class |
| 723 |
* @param .onOverwriteParams Array * Direct property, See the TweenListObj class |
| 724 |
* @param .rounded Boolean * Direct property, See the TweenListObj class |
| 725 |
* @param .skipUpdates Number * Direct property, See the TweenListObj class |
| 726 |
* @return Boolean TRUE if the tween was successfully added, FALSE if otherwise |
| 727 |
*/ |
| 728 |
public static function addTween (p_arg1:Object = null, p_arg2:Object = null) : Boolean;/** |
| 729 |
* Adds a new caller tweening. |
| 730 |
* |
| 731 |
* @param (first-n param) Object that should be tweened: a movieclip, textfield, etc.. OR an array of objects |
| 732 |
* @param (last param) Object containing the specified parameters in any order, as well as the properties that should be tweened and their values |
| 733 |
* @param .time Number Time in seconds or frames for the tweening to take (defaults 2) |
| 734 |
* @param .delay Number Delay time (defaults 0) |
| 735 |
* @param .count Number Number of times this caller should be called |
| 736 |
* @param .transition String/Function Type of transition equation... (defaults to "easeoutexpo") |
| 737 |
* @param .onStart Function Event called when tween starts |
| 738 |
* @param .onUpdate Function Event called when tween updates |
| 739 |
* @param .onComplete Function Event called when tween ends |
| 740 |
* @param .waitFrames Boolean Whether to wait (or not) one frame for each call |
| 741 |
* @return <code>true</code> if the tween was successfully added, <code>false</code> if otherwise. |
| 742 |
*/ |
| 743 |
public static function addCaller (p_arg1:Object = null, p_arg2:Object = null) : Boolean;/** |
| 744 |
* Remove an specified tweening of a specified object the tweening list, if it conflicts with the given time. |
| 745 |
* |
| 746 |
* @param p_scope Object List of objects affected |
| 747 |
* @param p_properties Object List of properties affected (PropertyInfoObj instances) |
| 748 |
* @param p_timeStart Number Time when the new tween starts |
| 749 |
* @param p_timeComplete Number Time when the new tween ends |
| 750 |
* @return Boolean Whether or not it actually deleted something |
| 751 |
*/ |
| 752 |
public static function removeTweensByTime (p_scope:Object, p_properties:Object, p_timeStart:Number, p_timeComplete:Number) : Boolean;/** |
| 753 |
* Remove tweenings from a given object from the tweening list. |
| 754 |
* |
| 755 |
* @param p_tween Object Object that must have its tweens removed |
| 756 |
* @param (2nd-last params) Object Property(ies) that must be removed |
| 757 |
* @return Boolean Whether or not it successfully removed this tweening |
| 758 |
*/ |
| 759 |
public static function removeTweens (p_scope:Object, ...args) : Boolean;/** |
| 760 |
* Remove all tweenings from the engine. |
| 761 |
* |
| 762 |
* @return <code>true</code> if it successfully removed any tweening, <code>false</code> if otherwise. |
| 763 |
*/ |
| 764 |
public static function removeAllTweens () : Boolean;/** |
| 765 |
* Pause tweenings for a given object. |
| 766 |
* |
| 767 |
* @param p_scope Object that must have its tweens paused |
| 768 |
* @param (2nd-last params) Property(ies) that must be paused |
| 769 |
* @return <code>true</code> if it successfully paused any tweening, <code>false</code> if otherwise. |
| 770 |
*/ |
| 771 |
public static function pauseTweens (p_scope:Object, ...args) : Boolean;/** |
| 772 |
* Pause all tweenings on the engine. |
| 773 |
* |
| 774 |
* @return <code>true</code> if it successfully paused any tweening, <code>false</code> if otherwise. |
| 775 |
* @see #resumeAllTweens() |
| 776 |
*/ |
| 777 |
public static function pauseAllTweens () : Boolean;/** |
| 778 |
* Resume tweenings from a given object. |
| 779 |
* |
| 780 |
* @param p_scope Object Object that must have its tweens resumed |
| 781 |
* @param (2nd-last params) Object Property(ies) that must be resumed |
| 782 |
* @return Boolean Whether or not it successfully resumed something |
| 783 |
*/ |
| 784 |
public static function resumeTweens (p_scope:Object, ...args) : Boolean;/** |
| 785 |
* Resume all tweenings on the engine. |
| 786 |
* |
| 787 |
* @return <code>true</code> if it successfully resumed any tweening, <code>false</code> if otherwise. |
| 788 |
* @see #pauseAllTweens() |
| 789 |
*/ |
| 790 |
public static function resumeAllTweens () : Boolean;/** |
| 791 |
* Do some generic action on specific tweenings (pause, resume, remove, more?) |
| 792 |
* |
| 793 |
* @param p_function Function Function to run on the tweenings that match |
| 794 |
* @param p_scope Object Object that must have its tweens affected by the function |
| 795 |
* @param p_properties Array Array of strings that must be affected |
| 796 |
* @return Boolean Whether or not it successfully affected something |
| 797 |
*/ |
| 798 |
private static function affectTweens (p_affectFunction:Function, p_scope:Object, p_properties:Array) : Boolean;/** |
| 799 |
* Splits a tweening in two |
| 800 |
* |
| 801 |
* @param p_tween Number Object that must have its tweens split |
| 802 |
* @param p_properties Array Array of strings containing the list of properties that must be separated |
| 803 |
* @return Number The index number of the new tween |
| 804 |
*/ |
| 805 |
public static function splitTweens (p_tween:Number, p_properties:Array) : uint;/** |
| 806 |
* Updates all existing tweenings. |
| 807 |
* |
| 808 |
* @return Boolean FALSE if no update was made because there's no tweening (even delayed ones) |
| 809 |
*/ |
| 810 |
private static function updateTweens () : Boolean;/** |
| 811 |
* Remove a specific tweening from the tweening list. |
| 812 |
* |
| 813 |
* @param p_tween Number Index of the tween to be removed on the tweenings list |
| 814 |
* @return Boolean Whether or not it successfully removed this tweening |
| 815 |
*/ |
| 816 |
public static function removeTweenByIndex (i:Number, p_finalRemoval:Boolean = false) : Boolean;/** |
| 817 |
* Pauses a specific tween. |
| 818 |
* |
| 819 |
* @param p_tween Number Index of the tween to be paused |
| 820 |
* @return Boolean Whether or not it successfully paused this tweening |
| 821 |
*/ |
| 822 |
public static function pauseTweenByIndex (p_tween:Number) : Boolean;/** |
| 823 |
* Resumes a specific tween. |
| 824 |
* |
| 825 |
* @param p_tween Number Index of the tween to be resumed |
| 826 |
* @return Boolean Whether or not it successfully resumed this tweening |
| 827 |
*/ |
| 828 |
public static function resumeTweenByIndex (p_tween:Number) : Boolean;/** |
| 829 |
* Updates a specific tween. |
| 830 |
* |
| 831 |
* @param i Number Index (from the tween list) of the tween that should be updated |
| 832 |
* @return Boolean FALSE if it's already finished and should be deleted, TRUE if otherwise |
| 833 |
*/ |
| 834 |
private static function updateTweenByIndex (i:Number) : Boolean;/** |
| 835 |
* Initiates the Tweener--should only be ran once. |
| 836 |
*/ |
| 837 |
public static function init (p_object:* = null) : void;/** |
| 838 |
* Adds a new function to the available transition list "shortcuts". |
| 839 |
* |
| 840 |
* @param p_name String Shorthand transition name |
| 841 |
* @param p_function Function The proper equation function |
| 842 |
*/ |
| 843 |
public static function registerTransition (p_name:String, p_function:Function) : void;/** |
| 844 |
* Adds a new special property to the available special property list. |
| 845 |
* |
| 846 |
* @param p_name Name of the "special" property. |
| 847 |
* @param p_getFunction Function that gets the value. |
| 848 |
* @param p_setFunction Function that sets the value. |
| 849 |
*/ |
| 850 |
public static function registerSpecialProperty (p_name:String, p_getFunction:Function, p_setFunction:Function, p_parameters:Array = null) : void;/** |
| 851 |
* Adds a new special property modifier to the available modifier list. |
| 852 |
* |
| 853 |
* @param p_name Name of the "special" property modifier. |
| 854 |
* @param p_modifyFunction Function that modifies the value. |
| 855 |
* @param p_getFunction Function that gets the value. |
| 856 |
*/ |
| 857 |
public static function registerSpecialPropertyModifier (p_name:String, p_modifyFunction:Function, p_getFunction:Function) : void;/** |
| 858 |
* Adds a new special property splitter to the available splitter list. |
| 859 |
* |
| 860 |
* @param p_name Name of the "special" property splitter. |
| 861 |
* @param p_splitFunction Function that splits the value. |
| 862 |
*/ |
| 863 |
public static function registerSpecialPropertySplitter (p_name:String, p_splitFunction:Function, p_parameters:Array = null) : void;/** |
| 864 |
* Starts the Tweener class engine. It is supposed to be running every time a tween exists. |
| 865 |
*/ |
| 866 |
private static function startEngine () : void;/** |
| 867 |
* Stops the Tweener class engine. |
| 868 |
*/ |
| 869 |
private static function stopEngine () : void;/** |
| 870 |
* Gets a property value from an object. |
| 871 |
* |
| 872 |
* @param p_obj Object Any given object |
| 873 |
* @param p_prop String The property name |
| 874 |
* @return Number The value |
| 875 |
*/ |
| 876 |
private static function getPropertyValue (p_obj:Object, p_prop:String) : Number;/** |
| 877 |
* Sets the value of an object property. |
| 878 |
* |
| 879 |
* @param p_obj Object Any given object |
| 880 |
* @param p_prop String The property name |
| 881 |
* @param p_value Number The new value |
| 882 |
*/ |
| 883 |
private static function setPropertyValue (p_obj:Object, p_prop:String, p_value:Number) : void;/** |
| 884 |
* Updates the time to enforce time grid-based updates. |
| 885 |
*/ |
| 886 |
public static function updateTime () : void;/** |
| 887 |
* Ran once every frame. It's the main engine; updates all existing tweenings. |
| 888 |
*/ |
| 889 |
public static function onEnterFrame (e:Event) : void;/** |
| 890 |
* Sets the new time scale. |
| 891 |
* |
| 892 |
* @param p_time Number New time scale (0.5 = slow, 1 = normal, 2 = 2x fast forward, etc) |
| 893 |
*/ |
| 894 |
public static function setTimeScale (p_time:Number) : void;/** |
| 895 |
* Finds whether or not an object has any tweening. |
| 896 |
* |
| 897 |
* @param p_scope Target object. |
| 898 |
* @return <code>true</code> if there's a tweening occuring on this object (paused, delayed, or active), <code>false</code> if otherwise. |
| 899 |
*/ |
| 900 |
public static function isTweening (p_scope:Object) : Boolean;/** |
| 901 |
* Returns an array containing a list of the properties being tweened for this object. |
| 902 |
* |
| 903 |
* @param p_scope Target object. |
| 904 |
* @return Total number of properties being tweened (including delayed or paused tweens). |
| 905 |
*/ |
| 906 |
public static function getTweens (p_scope:Object) : Array;/** |
| 907 |
* Returns the number of properties being tweened for a given object. |
| 908 |
* |
| 909 |
* @param p_scope Target object. |
| 910 |
* @return Total number of properties being tweened (including delayed or paused tweens). |
| 911 |
*/ |
| 912 |
public static function getTweenCount (p_scope:Object) : Number;/** |
| 913 |
Handles errors when Tweener executes any callbacks (onStart, onUpdate, etc) |
| 914 |
* 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. |
| 915 |
*/ |
| 916 |
private static function handleError (pTweening:TweenListObj, pError:Error, pCallBackName:String) : void;/** |
| 917 |
* Returns the current tweener version. |
| 918 |
* @return The identification string of the current Tweener version, composed of an identification of the platform version ("AS2", "AS2_FL7", or "AS3") followed by space and then the version number. |
| 919 |
* @example The following code returns the current used version of Tweener: |
| 920 |
* <listing version="3.0"> |
| 921 |
* import caurina.transitions.Tweener; |
| 922 |
* |
| 923 |
* var tVersion:String = Tweener.getVersion(); |
| 924 |
* trace ("Using Tweener version " + tVersion + "."); // Outputs: "Using Tweener version AS3 1.24.47."</listing> |
| 925 |
*/ |
| 926 |
public static function getVersion () : String;/** |
| 927 |
* Lists all existing tweenings. |
| 928 |
* |
| 929 |
* @return A string containing the list of all tweenings that currently exist inside the engine. |
| 930 |
*/ |
| 931 |
public static function debug_getList () : String;}} |
| 932 |
#file-cache C:\Documents and Settings\Owner\My Documents\mssp\classes\caurina\transitions\TweenListObj.as |
| 933 |
package caurina.transitions{import caurina.transitions.AuxFunctions;/** |
| 934 |
* The tween list object. Stores all of the properties and information that pertain to individual tweens. |
| 935 |
* |
| 936 |
* @author Nate Chatellier, Zeh Fernando |
| 937 |
* @version 1.0.4 |
| 938 |
* @private |
| 939 |
*/ |
| 940 |
public class 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;/** |
| 941 |
* Initializes the basic TweenListObj. |
| 942 |
* |
| 943 |
* @param p_scope Object Object affected by this tweening |
| 944 |
* @param p_timeStart Number Time when this tweening should start |
| 945 |
* @param p_timeComplete Number Time when this tweening should end |
| 946 |
* @param p_useFrames Boolean Whether or not to use frames instead of time |
| 947 |
* @param p_transition Function Equation to control the transition animation |
| 948 |
*/ |
| 949 |
internal function TweenListObj (p_scope:Object, p_timeStart:Number, p_timeComplete:Number, p_useFrames:Boolean, p_transition:Function);/** |
| 950 |
* Clones this tweening and returns the new TweenListObj |
| 951 |
* |
| 952 |
* @param omitEvents Boolean Whether or not events such as onStart (and its parameters) should be omitted |
| 953 |
* @return TweenListObj A copy of this object |
| 954 |
*/ |
| 955 |
public function clone (omitEvents:Boolean) : TweenListObj;/** |
| 956 |
* Returns this object described as a String. |
| 957 |
* |
| 958 |
* @return String The description of this object. |
| 959 |
*/ |
| 960 |
public function toString () : String;/** |
| 961 |
* Checks if p_obj "inherits" properties from other objects, as set by the "base" property. Will create a new object, leaving others intact. |
| 962 |
* 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 |
| 963 |
* indexes overwritting smaller ones. Does not modify any of the passed objects, but makes a shallow copy of all properties. |
| 964 |
* |
| 965 |
* @param p_obj Object Object that should be tweened: a movieclip, textfield, etc.. OR an array of objects |
| 966 |
* @return Object A new object with all properties from the p_obj and p_obj.base. |
| 967 |
*/ |
| 968 |
public static function makePropertiesChain (p_obj:Object) : Object;}} |
| 969 |
#file-cache C:\Documents and Settings\Owner\My Documents\mssp\classes\ui\SeekBar.as |
| 970 |
package ui{import flash.display.*;import flash.display.SimpleButton;public class SeekBar extends Sprite{private var DarkBar : Class;private var RedBar : Class;private var progressBar : DisplayObject;public var seekButton : SimpleButton;public function SeekBar ();public function setProgressBarWidth (new_width:int) : void;}} |