STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
231344
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2623 · P5245

<div style="position:absolute;top:-99px;left:-99px;"><img src="https://tools.swfchan.com/stathit.asp?noj=FRM77121105-5DC&rnd=77121105" width="1" height="1"></div>

The Last Good Night Game.swf

This is the info page for
Flash #47710

(Click the ID number above for more basic data on this flash file.)


Text
10

ELY'S
KEYBOARD!

MIKE'S
GUITAR !

SKEETER'S
DRUM !

LEIF'S
BASS!

ANTON'S
GUITAR!

KURTIS'S
MICROPHONE!

LEIF !

KURTIS !

SKEETER!

MIKE !

ELY !

ANTON !

GRAB THIS

GRAB THIS

0

40

SCORE

TIME

add to facebook

<object width="508" height="525"><param value="http://thelastgoodnight-facebook.capitolmusic.com/game.swf" name="movie"/><embed width="508" height="525" type="application/x-shockwave-flash" src="http://thelastgoodnight-facebook.capitolmusic.com/game.swf"/></object>

USE THIS CODE ON YOUR PAGE

X CLOSE

ADD TO

-20

GET READY!

LET'S
GO !

LEVEL 1
COMPLETE !

0

40

0

ANTON

THANKS FOR
PICKING US UP!

MIKE

CAN YOU
HELP FIND OUR
GEAR?

HELP THE LAST
GOODNIGHT
PICK UP THEIR GEAR!

LEVEL 2
COMPLETE

0

0

!

E

U

N

V

H

T

O

G

LEIF

NOW WE HAVE TO
GET TO THE SHOW !

KURTIS

YEAH DO YOU
KNOW WHERE
THE VEN UE IS?

HELP FIND THE RIGHT WAY TO THE
VENUE, BE CAREFUL YOU HAVE TO
STAY ON THE ROAD!

LEVEL 3

0

FINAL SCORE

Y O U  W I N !

YOU WIN !

YOU HAVE UNLOCKED VIDEOS !

ENTER YOUR HIGH SCORE!

STAY BEAUTIFUL

STAY BEAUTIFUL

EXCLUSIVE BEHIND THE SCENES

EXCLUSIVE BEHIND THE SCENES

NAME

EMAIL

ZIP CODE

SEND TO A FRIEND

0

FINAL SCORE

SUBMIT

JOIN MAILING LIST

BACK

BACK

ActionScript [AS1/AS2]

Frame 1
loadingbar.onEnterFrame = function () { if (_root.getBytesLoaded() >= _root.getBytesTotal()) { _root.gotoAndPlay("init"); } else { this._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; } }; stop();
Frame 5
function WorldToScreen(world_x, world_y, world_z) { x = Math.round((world_x * 7) + ((world_z * 5) * 1.4)); y = Math.round(((-(world_z * 5)) + ((world_x * 7) * 0.71426)) - (world_y * 5)); return([x, y]); } loadMovieNum ("http://thelastgoodnight-facebook.capitolmusic.com/music.swf", 5); var Snd_hit = new Sound(); Snd_hit.attachSound("bass"); var Snd_hit2 = new Sound(); Snd_hit2.attachSound("beep"); var Snd_hit3 = new Sound(); Snd_hit3.attachSound("power"); var Snd_hit4 = new Sound(); Snd_hit4.attachSound("snake"); var B = new Object(); B.clip = "tile_blktop"; B.oktodrive = true; B.effects = new Object(); B.effects.bumpy = 0; B.effects.drag = 0; var P = new Object(); P.clip = "tile_pothole"; P.oktodrive = true; P.effects = new Object(); P.effects.bumpy = 5; P.effects.drag = 0.08; var G = new Object(); G.clip = "grass"; G.oktodrive = true; G.effects = new Object(); G.effects.bumpy = 8; G.effects.drag = 0.05; var Z = new Object(); Z.clip = "halfgrass"; Z.oktodrive = true; Z.effects = new Object(); Z.effects.bumpy = 12; Z.effects.drag = 0.02; var Y = new Object(); Y.clip = "grasstop"; Y.oktodrive = true; Y.effects = new Object(); Y.effects.bumpy = 12; Y.effects.drag = 0.02; var L = new Object(); L.clip = "obj_lightpole"; L.doWhenHit = function (speed, angle, tile) { if (Math.abs(_root.game.player.speed) >= 0.5) { _root.Snd_hit.start(); } _root.game.player.car_x = _root.game.player.car_x + ((-speed) * Math.sin((angle * Math.PI) / 180)); _root.game.player.car_z = _root.game.player.car_z + ((-speed) * Math.cos((angle * Math.PI) / 180)); _root.game.player.speed = -(_root.game.player.speed * 0.8); }; var H = new Object(); H.clip = "obj_hydrant"; H.doWhenHit = function (speed, angle, tile) { if (Math.abs(_root.game.player.speed) >= 0.5) { _root.Snd_hit.start(); } _root.game.player.car_x = _root.game.player.car_x + ((-speed) * Math.sin((angle * Math.PI) / 180)); _root.game.player.car_z = _root.game.player.car_z + ((-speed) * Math.cos((angle * Math.PI) / 180)); _root.game.player.speed = -(_root.game.player.speed * 0.8); }; var S = new Object(); S.clip = "obj_sp_cone"; S.doWhenHit = function (speed, angle, tile) { _root.Snd_hit4.start(); _root.score = _root.score - 20; _root.cones_hit++; this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; S.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var C = new Object(); C.clip = "obj_cone"; C.doWhenHit = function (speed, angle, tile) { _root.Snd_hit2.start(); _root.score = _root.score + 10; _root.cones_hit++; this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; C.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var A = new Object(); A.clip = "anton"; A.doWhenHit = function (speed, angle, tile) { _root.Snd_hit3.start(); _root.score = _root.score + 100; _root.cones_hit++; _root.chanton.gotoAndPlay("yeah"); this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; A.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var K = new Object(); K.clip = "kurt"; K.doWhenHit = function (speed, angle, tile) { _root.Snd_hit3.start(); _root.score = _root.score + 100; _root.cones_hit++; _root.chkurt.gotoAndPlay("yeah"); this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; K.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var R = new Object(); R.clip = "skeeter"; R.doWhenHit = function (speed, angle, tile) { _root.Snd_hit3.start(); _root.score = _root.score + 100; _root.cones_hit++; _root.chskeeter.gotoAndPlay("yeah"); this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; R.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var F = new Object(); F.clip = "leif"; F.doWhenHit = function (speed, angle, tile) { _root.Snd_hit3.start(); _root.score = _root.score + 100; _root.cones_hit++; _root.chleif.gotoAndPlay("yeah"); this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; F.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var M = new Object(); M.clip = "mike"; M.doWhenHit = function (speed, angle, tile) { _root.Snd_hit3.start(); _root.score = _root.score + 100; _root.cones_hit++; _root.chmike.gotoAndPlay("yeah"); this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; M.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var E = new Object(); E.clip = "ely"; E.doWhenHit = function (speed, angle, tile) { _root.Snd_hit3.start(); _root.score = _root.score + 100; _root.cones_hit++; _root.chely.gotoAndPlay("yeah"); this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; E.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var map = new Array(); map[0] = [G, G, G, G, G, G, G, G, G, G, G, G, G, G, G, G]; map[1] = [G, G, G, G, G, G, G, G, G, G, G, G, Y, Y, Y, G]; map[2] = [G, G, G, G, G, G, Y, Y, Y, Y, Y, Y, B, B, B, G]; map[3] = [G, G, G, G, G, G, B, P, B, B, B, B, B, G, G, G]; map[4] = [G, Y, Y, Y, Y, Y, B, B, B, B, B, G, G, G, G, G]; map[5] = [G, B, B, B, B, B, B, B, B, B, G, G, G, G, G, G]; map[6] = [G, G, G, G, G, B, B, B, B, B, G, G, G, G, G, G]; map[7] = [G, G, G, G, B, B, Z, Z, Z, B, P, G, G, G, G, G]; map[8] = [G, G, G, B, B, B, G, G, G, B, B, Y, Y, Y, Y, G]; map[9] = [G, G, G, P, B, B, G, G, G, B, B, B, B, B, B, G]; map[10] = [G, G, G, Z, Z, B, B, B, B, B, B, B, B, B, B, G]; map[11] = [G, G, G, G, G, Z, Z, Z, Z, Z, Z, Z, Z, Z, Z, G]; map[12] = [G, G, G, G, G, G, G, G, G, G, G, G, G, G, G, G]; var objects = new Array(); objects[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; objects[1] = [0, S, 0, C, 0, 0, 0, 0, 0, S, 0, 0, 0, 0, 0, 0, 0]; objects[2] = [0, C, 0, S, A, 0, 0, 0, C, 0, 0, 0, 0, 0, E, 0, 0]; objects[3] = [0, 0, 0, 0, L, 0, C, 0, 0, 0, C, 0, 0, 0, 0, 0, 0]; objects[4] = [0, 0, 0, 0, C, S, 0, 0, 0, C, C, 0, 0, 0, 0, 0, 0]; objects[5] = [0, K, C, 0, 0, 0, 0, 0, 0, 0, 0, S, 0, 0, C, 0, 0]; objects[6] = [0, 0, 0, 0, 0, C, C, 0, 0, 0, L, 0, 0, 0, C, 0, 0]; objects[7] = [0, 0, 0, 0, 0, 0, 0, C, 0, 0, 0, M, 0, 0, 0, 0, 0]; objects[8] = [0, 0, 0, 0, 0, 0, 0, 0, C, 0, C, C, 0, 0, 0, 0, 0]; objects[9] = [0, 0, S, C, 0, C, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; objects[10] = [0, 0, C, 0, F, 0, C, S, 0, 0, 0, 0, 0, 0, R, 0, 0]; objects[11] = [0, C, C, 0, 0, S, C, 0, C, 0, 0, 0, L, 0, 0, 0, 0]; objects[12] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; var world = new Object(); world.tile_width = 10; world.tile_height = 10; world.totaldepth = world.tile_height * map.length; world.totalwidth = world.tile_width * map[0].length; var screen = new Object(); screen.scroll_x = 0; screen.scroll_y = 0; screen.keepplayerat_x = 200; screen.keepplayerat_y = 200; var player = new Object(); player.car_x = 55; player.car_y = 0; player.car_z = 55; player.speed = 0; player.maxspeed = 2; player.accelrate = 0.2; player.decelrate = 0.9; player.angle = 0; player.anglechange = 0; player.maxanglechange = 10; player.anglechangerate = 7; player.allowturns = true; stop();
Frame 12
var lives = 3; var score = 0; var row = 0; while (row < _root.map.length) { var col = 0; while (col < _root.map[row].length) { if ((!_root.map[row][col]) || (_root.map[row][col] == 0)) { } else { var the_tile = ((("tile_" + row) + "_") + col); var world_x = (world.tile_width * col); var world_y = 0; var world_z = (world.tile_height * row); var newdepth = Math.floor(((world.totaldepth - world_z) * 1000) + world_x); _root.game.attachMovie(_root.map[row][col].clip, the_tile, newdepth, _root.map[row][col]); var temp = _root.WorldToScreen(world_x, world_y, world_z); _root.game[the_tile]._x = temp[0]; _root.game[the_tile]._y = temp[1]; _root.game[the_tile].swapDepths(temp[1] + temp[0]); if ((!_root.objects[row][col]) || (_root.objects[row][col] == 0)) { } else { var the_object = ((("object_" + row) + "_") + col); var world_x = ((world.tile_width * col) + (world.tile_width / 2)); var world_y = 0; var world_z = ((world.tile_height * row) + (world.tile_height / 2)); var newdepth = Math.floor(((world.totaldepth - world_z) * 1000) + world_x); _root.game.attachMovie(_root.objects[row][col].clip, the_object, newdepth, _root.objects[row][col]); var temp = _root.WorldToScreen(world_x, world_y, world_z); _root.game[the_object]._x = temp[0]; _root.game[the_object]._y = temp[1]; _root.game[the_object].pos_x = world_x; _root.game[the_object].pos_z = world_z; _root.game[the_tile].object = _root.game[the_object]; } } col++; } row++; } var newdepth = Math.floor(((world.totaldepth - player.car_z) * 1000) + player.car_x); game.attachMovie("player", "player", newdepth, player); var temp = WorldToScreen(player.car_x, player.car_y, player.car_z); game.player._x = temp[0]; game.player._y = temp[1]; game.player.stop(); game.player.car_collider.stop(); game.player.car_collider._visible = false; game.player._width = 218; game.player._height = 218; _root.focus_x = temp[0]; _root.focus_y = temp[1]; game.onEnterFrame = function () { var _local4 = _root.screen.keepplayerat_x - _root.focus_x; var _local3 = _root.screen.keepplayerat_y - _root.focus_y; var _local6 = Math.floor(this._x + ((_local4 - this._x) * 0.2)); var _local5 = Math.floor(this._y + ((_local3 - this._y) * 0.2)); this._x = _local6; this._y = _local5; }; stop(); _root.chmike.gotoAndStop(1); _root.chely.gotoAndStop(1); _root.chleif.gotoAndStop(1); _root.chskeeter.gotoAndStop(1); _root.chkurt.gotoAndStop(1); _root.chanton.gotoAndStop(1);
Frame 21
timer.gameStartTime = getTimer(); timer.gameDuration = 40000; timer.gameTimerStarted = false; timer.display = 40; timer.onEnterFrame = function () { gameTimeLeft = this.gameDuration - (getTimer() - this.gameStartTime); if (gameTimeLeft <= 0) { timer.display = 0; this._xscale = 0; _root.timer.onEnterFrame = null; _root.game.player.onEnterFrame = null; _root.gotoAndPlay("game_over"); } else { secondsleft = Math.ceil(gameTimeLeft / 1000); timer.display = secondsleft; this._xscale = ((secondsleft * 1000) / this.gameDuration) * 100; } }; game.player.onEnterFrame = function () { if (Key.isDown(38)) { this.speed = Math.min(this.maxspeed, this.speed + this.accelrate); } else if (Key.isDown(40)) { this.speed = Math.max(-this.maxspeed, this.speed - this.accelrate); } else if (Math.abs(this.speed) <= 0.1) { this.speed = 0; } else { this.speed = this.speed * this.decelrate; } if (this.car_tile.effects.drag) { this.speed = this.speed - (this.speed * this.car_tile.effects.drag); } if (Key.isDown(39) && (this.allowturns == true)) { this.speedpercent = this.speed / this.maxspeed; this.anglechange = Math.min(this.maxanglechange, this.maxanglechange * this.speedpercent); this.angle = this.angle + this.anglechange; } else if (Key.isDown(37) && (this.allowturns == true)) { this.speedpercent = this.speed / this.maxspeed; this.anglechange = Math.max(-this.maxanglechange, (-this.maxanglechange) * this.speedpercent); this.angle = this.angle + this.anglechange; } if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; this.stepfactor_x = Math.sin((this.angle * Math.PI) / 180); this.stepfactor_z = Math.cos((this.angle * Math.PI) / 180); this.t_car_x = this.car_x + (this.speed * this.stepfactor_x); this.t_car_z = this.car_z + (this.speed * this.stepfactor_z); if (this.speed >= 0) { this.t_bumper_x = this.t_car_x + (6 * this.stepfactor_x); this.t_bumper_z = this.t_car_z + (6 * this.stepfactor_z); } else { this.t_bumper_x = this.t_car_x + (-6 * this.stepfactor_x); this.t_bumper_z = this.t_car_z + (-6 * this.stepfactor_z); } this.t_car_row = Math.floor(this.t_car_z / _root.world.tile_height); this.t_car_col = Math.floor(this.t_car_x / _root.world.tile_width); this.t_car_tile = _root.game[(("tile_" + this.t_car_row) + "_") + this.t_car_col]; this.t_bumper_row = Math.floor(this.t_bumper_z / _root.world.tile_height); this.t_bumper_col = Math.floor(this.t_bumper_x / _root.world.tile_width); this.t_bumper_tile = _root.game[(("tile_" + this.t_bumper_row) + "_") + this.t_bumper_col]; this.t_bumper_object = this.t_bumper_tile.object; if (!this.t_bumper_tile.oktodrive) { this.speed = -(this.speed * 0.8); this.allowturns = false; clearInterval(intervalID); var intervalID = setInterval(function () { _root.game.player.allowturns = true; clearInterval(intervalID); }, 250); return(undefined); } this.car_x = this.t_car_x; this.car_z = this.t_car_z; this.bumper_x = this.t_bumper_x; this.bumper_z = this.t_bumper_z; this.car_row = this.t_car_row; this.car_col = this.t_car_col; this.car_tile = this.t_car_tile; this.bumper_row = this.t_bumper_row; this.bumper_col = this.t_bumper_col; this.bumper_tile = this.t_bumper_tile; this.bumper_object = this.t_bumper_object; this.bumper_local_x = this.bumper_x % _root.world.tile_width; this.bumper_local_z = this.bumper_z % _root.world.tile_height; if (this.bumper_object) { var _local3 = WorldToScreen(this.bumper_object.pos_x, 0, this.bumper_object.pos_z); if (this.car_collider.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.bumper_object.doWhenHit(this.speed, this.angle, this.bumper_tile); } } this.pan_pos_x = this.car_x + ((7 * this.speed) * this.stepfactor_x); this.pan_pos_z = this.car_z + ((7 * this.speed) * this.stepfactor_z); var _local3 = WorldToScreen(this.pan_pos_x, 0, this.pan_pos_z); _root.focus_x = _local3[0]; _root.focus_y = _local3[1]; _local3 = WorldToScreen(this.car_x, this.car_y, this.car_z); var _local5 = Math.floor(((world.totaldepth - this.car_z) * 1000) + this.car_x); this.swapDepths(_local5); var _local4 = Math.round(this.angle * 0.1) + 1; this.gotoAndStop(_local4); this.car_collider.gotoAndStop(_local4); this._x = _local3[0]; this._y = _local3[1] + random(this.car_tile.effects.bumpy * Math.abs(this.speed)); }; stop();
Frame 39
stop();
Frame 40
gotoAndPlay (41); timer.display = 0; _root.timer.onEnterFrame = null;
Frame 88
gotoAndPlay (89);
Frame 89
Frame 97
function WorldToScreen(world_x, world_y, world_z) { x = Math.round((world_x * 7) + ((world_z * 5) * 1.4)); y = Math.round(((-(world_z * 5)) + ((world_x * 7) * 0.71426)) - (world_y * 5)); return([x, y]); } var Snd_hit = new Sound(); Snd_hit.attachSound("bass"); var Snd_hit2 = new Sound(); Snd_hit2.attachSound("beep"); var Snd_hit3 = new Sound(); Snd_hit3.attachSound("power"); var Snd_hit4 = new Sound(); Snd_hit4.attachSound("snake"); var B = new Object(); B.clip = "tile_blktop"; B.oktodrive = true; B.effects = new Object(); B.effects.bumpy = 0; B.effects.drag = 0; var P = new Object(); P.clip = "tile_pothole"; P.oktodrive = true; P.effects = new Object(); P.effects.bumpy = 5; P.effects.drag = 0.08; var G = new Object(); G.clip = "grass"; G.oktodrive = true; G.effects = new Object(); G.effects.bumpy = 8; G.effects.drag = 0.05; var Z = new Object(); Z.clip = "halfgrass"; Z.oktodrive = true; Z.effects = new Object(); Z.effects.bumpy = 12; Z.effects.drag = 0.02; var Y = new Object(); Y.clip = "grasstop"; Y.oktodrive = true; Y.effects = new Object(); Y.effects.bumpy = 12; Y.effects.drag = 0.02; var L = new Object(); L.clip = "obj_lightpole"; L.doWhenHit = function (speed, angle, tile) { if (Math.abs(_root.game.player.speed) >= 0.5) { _root.Snd_hit.start(); } _root.game.player.car_x = _root.game.player.car_x + ((-speed) * Math.sin((angle * Math.PI) / 180)); _root.game.player.car_z = _root.game.player.car_z + ((-speed) * Math.cos((angle * Math.PI) / 180)); _root.game.player.speed = -(_root.game.player.speed * 0.8); }; var H = new Object(); H.clip = "obj_hydrant"; H.doWhenHit = function (speed, angle, tile) { if (Math.abs(_root.game.player.speed) >= 0.5) { _root.Snd_hit.start(); } _root.game.player.car_x = _root.game.player.car_x + ((-speed) * Math.sin((angle * Math.PI) / 180)); _root.game.player.car_z = _root.game.player.car_z + ((-speed) * Math.cos((angle * Math.PI) / 180)); _root.game.player.speed = -(_root.game.player.speed * 0.8); }; var S = new Object(); S.clip = "obj_sp_cone"; S.doWhenHit = function (speed, angle, tile) { _root.Snd_hit4.start(); _root.score = _root.score - 20; _root.cones_hit++; this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; S.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var C = new Object(); C.clip = "obj_cone"; C.doWhenHit = function (speed, angle, tile) { _root.Snd_hit2.start(); _root.score = _root.score + 10; _root.cones_hit++; this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; C.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var A = new Object(); A.clip = "microphone"; A.doWhenHit = function (speed, angle, tile) { _root.Snd_hit3.start(); _root.score = _root.score + 100; _root.cones_hit++; _root.iconmic.gotoAndPlay("yeah"); this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; A.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var K = new Object(); K.clip = "blueguitar"; K.doWhenHit = function (speed, angle, tile) { _root.Snd_hit3.start(); _root.score = _root.score + 100; _root.cones_hit++; _root.iconblueguitar.gotoAndPlay("yeah"); this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; K.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var R = new Object(); R.clip = "redguitar"; R.doWhenHit = function (speed, angle, tile) { _root.Snd_hit3.start(); _root.score = _root.score + 100; _root.cones_hit++; _root.iconbass.gotoAndPlay("yeah"); this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; R.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var F = new Object(); F.clip = "drum"; F.doWhenHit = function (speed, angle, tile) { _root.Snd_hit3.start(); _root.score = _root.score + 100; _root.cones_hit++; _root.icondrum.gotoAndPlay("yeah"); this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; F.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var M = new Object(); M.clip = "yellowguitar"; M.doWhenHit = function (speed, angle, tile) { _root.Snd_hit3.start(); _root.score = _root.score + 100; _root.cones_hit++; _root.iconyellowguitar.gotoAndPlay("yeah"); this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; M.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var E = new Object(); E.clip = "keyboard"; E.doWhenHit = function (speed, angle, tile) { _root.Snd_hit3.start(); _root.score = _root.score + 100; _root.cones_hit++; _root.iconkeyboard.gotoAndPlay("yeah"); this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; E.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var map = new Array(); map[0] = [G, G, G, G, G, G, G, G, G, G, G, G, G, G, G, G]; map[1] = [G, G, B, B, G, G, G, G, G, G, G, G, G, G, G, G]; map[2] = [G, G, B, B, G, G, G, G, Y, Y, Y, Y, Y, Y, Y, G]; map[3] = [G, G, B, B, G, G, G, G, B, B, B, B, B, B, B, G]; map[4] = [G, Y, B, B, Y, Y, G, G, B, B, B, G, G, B, B, G]; map[5] = [G, B, B, B, B, B, G, G, B, B, G, G, G, B, B, G]; map[6] = [G, B, B, G, G, B, Y, Y, B, B, B, B, B, B, B, G]; map[7] = [G, B, B, G, B, B, B, B, B, B, P, G, G, G, G, G]; map[8] = [G, B, B, B, B, B, G, G, G, B, B, Y, Y, Y, Y, G]; map[9] = [G, B, B, B, B, B, G, G, G, B, B, B, B, B, B, G]; map[10] = [G, G, G, Z, Z, B, B, B, B, B, B, B, B, B, B, G]; map[11] = [G, G, G, G, G, Z, Z, Z, Z, Z, Z, Z, Z, Z, Z, G]; map[12] = [G, G, G, G, G, G, G, G, G, G, G, G, G, G, G, G]; var objects = new Array(); objects[0] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, S, 0]; objects[1] = [0, A, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, S, C, 0]; objects[2] = [0, S, S, S, 0, 0, K, 0, C, 0, 0, 0, 0, 0, L, C, 0]; objects[3] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, R, 0, 0, 0, 0]; objects[4] = [0, 0, 0, 0, C, S, 0, 0, F, 0, 0, C, 0, 0, 0, 0, 0]; objects[5] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, O, S, 0, 0, C, C, 0]; objects[6] = [0, 0, C, C, 0, C, 0, 0, 0, 0, C, 0, 0, 0, C, 0, 0]; objects[7] = [0, 0, C, C, 0, C, 0, C, 0, 0, 0, 0, 0, 0, 0, 0, 0]; objects[8] = [0, M, 0, 0, C, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; objects[9] = [0, 0, S, C, 0, C, 0, 0, 0, 0, 0, 0, 0, S, 0, 0, 0]; objects[10] = [0, 0, C, C, 0, 0, C, S, C, 0, 0, 0, 0, 0, E, 0, 0]; objects[11] = [0, C, C, 0, 0, S, 0, 0, 0, 0, 0, 0, C, C, C, C, 0]; objects[12] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; var world = new Object(); world.tile_width = 10; world.tile_height = 10; world.totaldepth = world.tile_height * map.length; world.totalwidth = world.tile_width * map[0].length; var screen = new Object(); screen.scroll_x = 0; screen.scroll_y = 0; screen.keepplayerat_x = 200; screen.keepplayerat_y = 200; var player = new Object(); player.car_x = 55; player.car_y = 0; player.car_z = 55; player.speed = 0; player.maxspeed = 2; player.accelrate = 0.2; player.decelrate = 0.9; player.angle = 0; player.anglechange = 0; player.maxanglechange = 10; player.anglechangerate = 7; player.allowturns = true; stop();
Frame 104
var lives = 3; var row = 0; while (row < _root.map.length) { var col = 0; while (col < _root.map[row].length) { if ((!_root.map[row][col]) || (_root.map[row][col] == 0)) { } else { var the_tile = ((("tile_" + row) + "_") + col); var world_x = (world.tile_width * col); var world_y = 0; var world_z = (world.tile_height * row); var newdepth = Math.floor(((world.totaldepth - world_z) * 1000) + world_x); _root.game.attachMovie(_root.map[row][col].clip, the_tile, newdepth, _root.map[row][col]); var temp = _root.WorldToScreen(world_x, world_y, world_z); _root.game[the_tile]._x = temp[0]; _root.game[the_tile]._y = temp[1]; _root.game[the_tile].swapDepths(temp[1] + temp[0]); if ((!_root.objects[row][col]) || (_root.objects[row][col] == 0)) { } else { var the_object = ((("object_" + row) + "_") + col); var world_x = ((world.tile_width * col) + (world.tile_width / 2)); var world_y = 0; var world_z = ((world.tile_height * row) + (world.tile_height / 2)); var newdepth = Math.floor(((world.totaldepth - world_z) * 1000) + world_x); _root.game.attachMovie(_root.objects[row][col].clip, the_object, newdepth, _root.objects[row][col]); var temp = _root.WorldToScreen(world_x, world_y, world_z); _root.game[the_object]._x = temp[0]; _root.game[the_object]._y = temp[1]; _root.game[the_object].pos_x = world_x; _root.game[the_object].pos_z = world_z; _root.game[the_tile].object = _root.game[the_object]; } } col++; } row++; } var newdepth = Math.floor(((world.totaldepth - player.car_z) * 1000) + player.car_x); game.attachMovie("player", "player", newdepth, player); var temp = WorldToScreen(player.car_x, player.car_y, player.car_z); game.player._x = temp[0]; game.player._y = temp[1]; game.player.stop(); game.player.car_collider.stop(); game.player.car_collider._visible = false; game.player._width = 218; game.player._height = 218; _root.focus_x = temp[0]; _root.focus_y = temp[1]; game.onEnterFrame = function () { var _local4 = _root.screen.keepplayerat_x - _root.focus_x; var _local3 = _root.screen.keepplayerat_y - _root.focus_y; var _local6 = Math.floor(this._x + ((_local4 - this._x) * 0.2)); var _local5 = Math.floor(this._y + ((_local3 - this._y) * 0.2)); this._x = _local6; this._y = _local5; }; stop(); _root.iconmic.gotoAndStop(1); _root.iconkeyboard.gotoAndStop(1); _root.iconyellowguitar.gotoAndStop(1); _root.icondrum.gotoAndStop(1); _root.iconblueguitar.gotoAndStop(1); _root.iconbass.gotoAndStop(1);
Frame 113
timer.gameStartTime = getTimer(); timer.gameDuration = 40000; timer.gameTimerStarted = false; timer.display = 40; timer.onEnterFrame = function () { gameTimeLeft = this.gameDuration - (getTimer() - this.gameStartTime); if (gameTimeLeft <= 0) { timer.display = 0; this._xscale = 0; _root.timer.onEnterFrame = null; _root.game.player.onEnterFrame = null; _root.gotoAndPlay("over"); } else { secondsleft = Math.ceil(gameTimeLeft / 1000); timer.display = secondsleft; this._xscale = ((secondsleft * 1000) / this.gameDuration) * 100; } }; game.player.onEnterFrame = function () { if (Key.isDown(38)) { this.speed = Math.min(this.maxspeed, this.speed + this.accelrate); } else if (Key.isDown(40)) { this.speed = Math.max(-this.maxspeed, this.speed - this.accelrate); } else if (Math.abs(this.speed) <= 0.1) { this.speed = 0; } else { this.speed = this.speed * this.decelrate; } if (this.car_tile.effects.drag) { this.speed = this.speed - (this.speed * this.car_tile.effects.drag); } if (Key.isDown(39) && (this.allowturns == true)) { this.speedpercent = this.speed / this.maxspeed; this.anglechange = Math.min(this.maxanglechange, this.maxanglechange * this.speedpercent); this.angle = this.angle + this.anglechange; } else if (Key.isDown(37) && (this.allowturns == true)) { this.speedpercent = this.speed / this.maxspeed; this.anglechange = Math.max(-this.maxanglechange, (-this.maxanglechange) * this.speedpercent); this.angle = this.angle + this.anglechange; } if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; this.stepfactor_x = Math.sin((this.angle * Math.PI) / 180); this.stepfactor_z = Math.cos((this.angle * Math.PI) / 180); this.t_car_x = this.car_x + (this.speed * this.stepfactor_x); this.t_car_z = this.car_z + (this.speed * this.stepfactor_z); if (this.speed >= 0) { this.t_bumper_x = this.t_car_x + (6 * this.stepfactor_x); this.t_bumper_z = this.t_car_z + (6 * this.stepfactor_z); } else { this.t_bumper_x = this.t_car_x + (-6 * this.stepfactor_x); this.t_bumper_z = this.t_car_z + (-6 * this.stepfactor_z); } this.t_car_row = Math.floor(this.t_car_z / _root.world.tile_height); this.t_car_col = Math.floor(this.t_car_x / _root.world.tile_width); this.t_car_tile = _root.game[(("tile_" + this.t_car_row) + "_") + this.t_car_col]; this.t_bumper_row = Math.floor(this.t_bumper_z / _root.world.tile_height); this.t_bumper_col = Math.floor(this.t_bumper_x / _root.world.tile_width); this.t_bumper_tile = _root.game[(("tile_" + this.t_bumper_row) + "_") + this.t_bumper_col]; this.t_bumper_object = this.t_bumper_tile.object; if (!this.t_bumper_tile.oktodrive) { this.speed = -(this.speed * 0.8); this.allowturns = false; clearInterval(intervalID); var intervalID = setInterval(function () { _root.game.player.allowturns = true; clearInterval(intervalID); }, 250); return(undefined); } this.car_x = this.t_car_x; this.car_z = this.t_car_z; this.bumper_x = this.t_bumper_x; this.bumper_z = this.t_bumper_z; this.car_row = this.t_car_row; this.car_col = this.t_car_col; this.car_tile = this.t_car_tile; this.bumper_row = this.t_bumper_row; this.bumper_col = this.t_bumper_col; this.bumper_tile = this.t_bumper_tile; this.bumper_object = this.t_bumper_object; this.bumper_local_x = this.bumper_x % _root.world.tile_width; this.bumper_local_z = this.bumper_z % _root.world.tile_height; if (this.bumper_object) { var _local3 = WorldToScreen(this.bumper_object.pos_x, 0, this.bumper_object.pos_z); if (this.car_collider.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.bumper_object.doWhenHit(this.speed, this.angle, this.bumper_tile); } } this.pan_pos_x = this.car_x + ((7 * this.speed) * this.stepfactor_x); this.pan_pos_z = this.car_z + ((7 * this.speed) * this.stepfactor_z); var _local3 = WorldToScreen(this.pan_pos_x, 0, this.pan_pos_z); _root.focus_x = _local3[0]; _root.focus_y = _local3[1]; _local3 = WorldToScreen(this.car_x, this.car_y, this.car_z); var _local5 = Math.floor(((world.totaldepth - this.car_z) * 1000) + this.car_x); this.swapDepths(_local5); var _local4 = Math.round(this.angle * 0.1) + 1; this.gotoAndStop(_local4); this.car_collider.gotoAndStop(_local4); this._x = _local3[0]; this._y = _local3[1] + random(this.car_tile.effects.bumpy * Math.abs(this.speed)); }; stop();
Frame 131
stop();
Frame 132
gotoAndPlay (133); timer.display = 0; _root.timer.onEnterFrame = null;
Frame 183
gotoAndPlay ("load3");
Frame 184
Frame 192
function WorldToScreen(world_x, world_y, world_z) { x = Math.round((world_x * 7) + ((world_z * 5) * 1.4)); y = Math.round(((-(world_z * 5)) + ((world_x * 7) * 0.71426)) - (world_y * 5)); return([x, y]); } var Snd_hit = new Sound(); Snd_hit.attachSound("bass"); var Snd_hit2 = new Sound(); Snd_hit2.attachSound("beep"); var Snd_hit3 = new Sound(); Snd_hit3.attachSound("power"); var Snd_hit4 = new Sound(); Snd_hit4.attachSound("snake"); var B = new Object(); B.clip = "tile_blktop"; B.oktodrive = true; B.effects = new Object(); B.effects.bumpy = 0; B.effects.drag = 0; var P = new Object(); P.clip = "tile_pothole"; P.oktodrive = true; P.effects = new Object(); P.effects.bumpy = 5; P.effects.drag = 0.08; var G = new Object(); G.clip = "grass"; G.oktodrive = true; G.effects = new Object(); G.effects.bumpy = 8; G.effects.drag = 0.05; var Z = new Object(); Z.clip = "halfgrass"; Z.oktodrive = true; Z.effects = new Object(); Z.effects.bumpy = 12; Z.effects.drag = 0.02; var Y = new Object(); Y.clip = "grasstop"; Y.oktodrive = true; Y.effects = new Object(); Y.effects.bumpy = 12; Y.effects.drag = 0.02; var L = new Object(); L.clip = "pizza"; L.doWhenHit = function (speed, angle, tile) { if (Math.abs(_root.game.player.speed) >= 0.5) { _root.Snd_hit.start(); } _root.game.player.car_x = _root.game.player.car_x + ((-speed) * Math.sin((angle * Math.PI) / 180)); _root.game.player.car_z = _root.game.player.car_z + ((-speed) * Math.cos((angle * Math.PI) / 180)); _root.game.player.speed = -(_root.game.player.speed * 0.8); }; var K = new Object(); K.clip = "obj_lightpole"; K.doWhenHit = function (speed, angle, tile) { if (Math.abs(_root.game.player.speed) >= 0.5) { _root.Snd_hit.start(); } _root.game.player.car_x = _root.game.player.car_x + ((-speed) * Math.sin((angle * Math.PI) / 180)); _root.game.player.car_z = _root.game.player.car_z + ((-speed) * Math.cos((angle * Math.PI) / 180)); _root.game.player.speed = -(_root.game.player.speed * 0.8); }; var H = new Object(); H.clip = "signs"; H.doWhenHit = function (speed, angle, tile) { if (Math.abs(_root.game.player.speed) >= 0.5) { _root.Snd_hit.start(); } _root.game.player.car_x = _root.game.player.car_x + ((-speed) * Math.sin((angle * Math.PI) / 180)); _root.game.player.car_z = _root.game.player.car_z + ((-speed) * Math.cos((angle * Math.PI) / 180)); _root.game.player.speed = -(_root.game.player.speed * 0.8); }; var Q = new Object(); Q.clip = "noDrive"; Q.doWhenHit = function (speed, angle, tile) { if (Math.abs(_root.game.player.speed) >= 0.5) { _root.Snd_hit.start(); } _root.game.player.car_x = _root.game.player.car_x + ((-speed) * Math.sin((angle * Math.PI) / 180)); _root.game.player.car_z = _root.game.player.car_z + ((-speed) * Math.cos((angle * Math.PI) / 180)); _root.game.player.speed = -(_root.game.player.speed * 0.8); }; var S = new Object(); S.clip = "obj_cone"; S.doWhenHit = function (speed, angle, tile) { _root.Snd_hit2.start(); _root.score = _root.score + 10; _root.cones_hit++; this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; S.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var N = new Object(); N.clip = "obj_sp_cone"; N.doWhenHit = function (speed, angle, tile) { _root.Snd_hit4.start(); _root.score = _root.score - 20; _root.cones_hit++; this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; N.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var C = new Object(); C.clip = "club"; C.doWhenHit = function (speed, angle, tile) { _root.Snd_hit2.start(); _root.score = _root.score + 10; _root.cones_hit++; _root.gotoAndPlay("wingame"); this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; C.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var A = new Object(); A.clip = "clubroad"; A.doWhenHit = function (speed, angle, tile) { _root.Snd_hit3.start(); _root.score = _root.score + 100; _root.cones_hit++; _root.iconmic.gotoAndPlay("wingame"); this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; A.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var R = new Object(); R.clip = "redguitar"; R.doWhenHit = function (speed, angle, tile) { _root.Snd_hit3.start(); _root.score = _root.score + 100; _root.cones_hit++; _root.iconbass.gotoAndPlay("yeah"); this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; R.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var F = new Object(); F.clip = "drum"; F.doWhenHit = function (speed, angle, tile) { _root.Snd_hit3.start(); _root.score = _root.score + 100; _root.cones_hit++; _root.icondrum.gotoAndPlay("yeah"); this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; F.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var M = new Object(); M.clip = "yellowguitar"; M.doWhenHit = function (speed, angle, tile) { _root.Snd_hit3.start(); _root.score = _root.score + 100; _root.cones_hit++; _root.iconyellowguitar.gotoAndPlay("yeah"); this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; M.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var E = new Object(); E.clip = "keyboard"; E.doWhenHit = function (speed, angle, tile) { _root.Snd_hit3.start(); _root.score = _root.score + 100; _root.cones_hit++; _root.iconkeyboard.gotoAndPlay("yeah"); this.speed = speed * 1.8; this.angle = angle + (random(30) - 15); if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; var _local3 = "hit_" + (45 * Math.floor(this.angle / 45)); this.gotoAndStop(_local3); _root.game.player.speed = _root.game.player.speed * 0.8; this.onEnterFrame = this.doAfterHit; tile.object = null; }; E.doAfterHit = function () { if ((Math.abs(this.trans_x) + Math.abs(this.trans_z)) >= 0.01) { this.trans_x = this.speed * Math.sin((this.angle * Math.PI) / 180); this.trans_z = this.speed * Math.cos((this.angle * Math.PI) / 180); this.pos_x = this.pos_x + this.trans_x; this.pos_z = this.pos_z + this.trans_z; var _local3 = _root.WorldToScreen(this.pos_x, 0, this.pos_z); var _local4 = Math.floor(((world.totaldepth - (this.pos_z + 8)) * 1000) + this.pos_x); this.swapDepths(_local4); this._x = _local3[0]; this._y = _local3[1]; this.speed = this.speed * 0.8; this.t_row = Math.floor(this.pos_z / _root.world.tile_height); this.t_col = Math.floor(this.pos_x / _root.world.tile_width); this.t_tile = _root.game[(("tile_" + this.t_row) + "_") + this.t_col]; this.t_object = this.t_tile.object; if (this.t_object) { _local3 = WorldToScreen(this.t_object.pos_x, 0, this.t_object.pos_z); if (this.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.t_object = null; this.t_object.doWhenHit(this.speed, this.angle, this.t_tile); } } } else { this._alpha = this._alpha - 5; if (this._alpha <= 0) { this.removeMovieClip(); } } }; var map = new Array(); map[0] = [G, G, G, B, B, G, G, B, B, B, B, B, B, B, B, B, B]; map[1] = [G, G, G, B, B, G, G, B, B, B, B, B, P, B, B, B, B]; map[2] = [G, G, G, B, B, G, G, B, B, G, G, G, G, G, G, G, G]; map[3] = [B, P, B, B, B, B, B, P, B, B, B, B, B, B, B, B, B]; map[4] = [B, B, B, B, P, B, B, B, B, B, B, B, P, B, B, B, B]; map[5] = [G, G, G, G, G, B, B, B, G, G, G, G, G, G, G, G, G]; map[6] = [G, G, G, G, G, B, B, B, B, G, G, G, G, B, B, G, G]; map[7] = [G, G, G, G, G, G, G, B, B, B, G, G, G, B, B, G, G]; map[8] = [G, G, G, G, G, G, G, B, P, B, G, G, G, B, B, B, B]; map[9] = [G, G, B, B, B, B, B, B, B, B, G, G, B, B, B, B, B]; map[10] = [G, B, B, B, B, B, P, B, B, B, B, B, B, G, G, G, G]; map[11] = [G, B, P, G, G, G, G, B, B, B, P, B, B, G, G, G, G]; map[12] = [G, B, B, G, G, G, G, B, G, G, G, G, G, G, G, G, G]; var objects = new Array(); objects[0] = [Q, Q, Q, 0, 0, Q, Q, 0, 0, 0, 0, 0, 0, 0, S, 0, 0]; objects[1] = [L, Q, Q, 0, 0, Q, K, 0, 0, 0, N, 0, 0, S, S, 0, 0]; objects[2] = [Q, Q, Q, S, 0, Q, Q, 0, 0, Q, Q, Q, Q, Q, Q, Q, Q]; objects[3] = [0, Q, 0, S, 0, 0, 0, 0, 0, S, 0, 0, 0, 0, Q, Q, 0]; objects[4] = [S, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Q, 0]; objects[5] = [Q, Q, Q, Q, Q, 0, 0, 0, Q, Q, Q, Q, Q, Q, Q, Q, Q]; objects[6] = [Q, Q, H, Q, Q, S, 0, 0, 0, Q, Q, Q, Q, 0, 0, Q, Q]; objects[7] = [Q, N, Q, Q, Q, Q, Q, 0, 0, 0, Q, Q, Q, 0, C, Q, Q]; objects[8] = [Q, Q, Q, Q, Q, Q, Q, 0, S, 0, Q, Q, Q, 0, 0, 0, 0]; objects[9] = [Q, Q, 0, 0, S, 0, 0, 0, 0, 0, Q, Q, 0, 0, 0, 0, 0]; objects[10] = [Q, 0, 0, 0, S, 0, 0, S, S, 0, 0, 0, 0, Q, Q, Q, Q]; objects[11] = [Q, 0, S, Q, Q, Q, Q, 0, 0, 0, N, 0, 0, K, Q, Q, Q]; objects[12] = [K, N, N, Q, Q, Q, Q, 0, Q, Q, Q, Q, Q, Q, Q, N, Q]; var world = new Object(); world.tile_width = 10; world.tile_height = 10; world.totaldepth = world.tile_height * map.length; world.totalwidth = world.tile_width * map[0].length; var screen = new Object(); screen.scroll_x = 0; screen.scroll_y = 0; screen.keepplayerat_x = 200; screen.keepplayerat_y = 200; var player = new Object(); player.car_x = 55; player.car_y = 0; player.car_z = 55; player.speed = 0; player.maxspeed = 2; player.accelrate = 0.2; player.decelrate = 0.9; player.angle = 0; player.anglechange = 0; player.maxanglechange = 10; player.anglechangerate = 7; player.allowturns = true; stop();
Frame 199
var lives = 3; var row = 0; while (row < _root.map.length) { var col = 0; while (col < _root.map[row].length) { if ((!_root.map[row][col]) || (_root.map[row][col] == 0)) { } else { var the_tile = ((("tile_" + row) + "_") + col); var world_x = (world.tile_width * col); var world_y = 0; var world_z = (world.tile_height * row); var newdepth = Math.floor(((world.totaldepth - world_z) * 1000) + world_x); _root.game.attachMovie(_root.map[row][col].clip, the_tile, newdepth, _root.map[row][col]); var temp = _root.WorldToScreen(world_x, world_y, world_z); _root.game[the_tile]._x = temp[0]; _root.game[the_tile]._y = temp[1]; _root.game[the_tile].swapDepths(temp[1] + temp[0]); if ((!_root.objects[row][col]) || (_root.objects[row][col] == 0)) { } else { var the_object = ((("object_" + row) + "_") + col); var world_x = ((world.tile_width * col) + (world.tile_width / 2)); var world_y = 0; var world_z = ((world.tile_height * row) + (world.tile_height / 2)); var newdepth = Math.floor(((world.totaldepth - world_z) * 1000) + world_x); _root.game.attachMovie(_root.objects[row][col].clip, the_object, newdepth, _root.objects[row][col]); var temp = _root.WorldToScreen(world_x, world_y, world_z); _root.game[the_object]._x = temp[0]; _root.game[the_object]._y = temp[1]; _root.game[the_object].pos_x = world_x; _root.game[the_object].pos_z = world_z; _root.game[the_tile].object = _root.game[the_object]; } } col++; } row++; } var newdepth = Math.floor(((world.totaldepth - player.car_z) * 1000) + player.car_x); game.attachMovie("player", "player", newdepth, player); var temp = WorldToScreen(player.car_x, player.car_y, player.car_z); game.player._x = temp[0]; game.player._y = temp[1]; game.player.stop(); game.player.car_collider.stop(); game.player.car_collider._visible = false; game.player._width = 218; game.player._height = 218; _root.focus_x = temp[0]; _root.focus_y = temp[1]; game.onEnterFrame = function () { var _local4 = _root.screen.keepplayerat_x - _root.focus_x; var _local3 = _root.screen.keepplayerat_y - _root.focus_y; var _local6 = Math.floor(this._x + ((_local4 - this._x) * 0.2)); var _local5 = Math.floor(this._y + ((_local3 - this._y) * 0.2)); this._x = _local6; this._y = _local5; }; stop();
Frame 208
timer.gameStartTime = getTimer(); timer.gameDuration = 40000; timer.gameTimerStarted = false; timer.display = 40; timer.onEnterFrame = function () { gameTimeLeft = this.gameDuration - (getTimer() - this.gameStartTime); if (gameTimeLeft <= 0) { timer.display = 0; this._xscale = 0; _root.timer.onEnterFrame = null; _root.game.player.onEnterFrame = null; _root.gotoAndPlay("over3"); } else { secondsleft = Math.ceil(gameTimeLeft / 1000); timer.display = secondsleft; this._xscale = ((secondsleft * 1000) / this.gameDuration) * 100; } }; game.player.onEnterFrame = function () { if (Key.isDown(38)) { this.speed = Math.min(this.maxspeed, this.speed + this.accelrate); } else if (Key.isDown(40)) { this.speed = Math.max(-this.maxspeed, this.speed - this.accelrate); } else if (Math.abs(this.speed) <= 0.1) { this.speed = 0; } else { this.speed = this.speed * this.decelrate; } if (this.car_tile.effects.drag) { this.speed = this.speed - (this.speed * this.car_tile.effects.drag); } if (Key.isDown(39) && (this.allowturns == true)) { this.speedpercent = this.speed / this.maxspeed; this.anglechange = Math.min(this.maxanglechange, this.maxanglechange * this.speedpercent); this.angle = this.angle + this.anglechange; } else if (Key.isDown(37) && (this.allowturns == true)) { this.speedpercent = this.speed / this.maxspeed; this.anglechange = Math.max(-this.maxanglechange, (-this.maxanglechange) * this.speedpercent); this.angle = this.angle + this.anglechange; } if (this.angle < 0) { this.angle = 360 + this.angle; } this.angle = this.angle % 360; this.stepfactor_x = Math.sin((this.angle * Math.PI) / 180); this.stepfactor_z = Math.cos((this.angle * Math.PI) / 180); this.t_car_x = this.car_x + (this.speed * this.stepfactor_x); this.t_car_z = this.car_z + (this.speed * this.stepfactor_z); if (this.speed >= 0) { this.t_bumper_x = this.t_car_x + (6 * this.stepfactor_x); this.t_bumper_z = this.t_car_z + (6 * this.stepfactor_z); } else { this.t_bumper_x = this.t_car_x + (-6 * this.stepfactor_x); this.t_bumper_z = this.t_car_z + (-6 * this.stepfactor_z); } this.t_car_row = Math.floor(this.t_car_z / _root.world.tile_height); this.t_car_col = Math.floor(this.t_car_x / _root.world.tile_width); this.t_car_tile = _root.game[(("tile_" + this.t_car_row) + "_") + this.t_car_col]; this.t_bumper_row = Math.floor(this.t_bumper_z / _root.world.tile_height); this.t_bumper_col = Math.floor(this.t_bumper_x / _root.world.tile_width); this.t_bumper_tile = _root.game[(("tile_" + this.t_bumper_row) + "_") + this.t_bumper_col]; this.t_bumper_object = this.t_bumper_tile.object; if (!this.t_bumper_tile.oktodrive) { this.speed = -(this.speed * 0.8); this.allowturns = false; clearInterval(intervalID); var intervalID = setInterval(function () { _root.game.player.allowturns = true; clearInterval(intervalID); }, 250); return(undefined); } this.car_x = this.t_car_x; this.car_z = this.t_car_z; this.bumper_x = this.t_bumper_x; this.bumper_z = this.t_bumper_z; this.car_row = this.t_car_row; this.car_col = this.t_car_col; this.car_tile = this.t_car_tile; this.bumper_row = this.t_bumper_row; this.bumper_col = this.t_bumper_col; this.bumper_tile = this.t_bumper_tile; this.bumper_object = this.t_bumper_object; this.bumper_local_x = this.bumper_x % _root.world.tile_width; this.bumper_local_z = this.bumper_z % _root.world.tile_height; if (this.bumper_object) { var _local3 = WorldToScreen(this.bumper_object.pos_x, 0, this.bumper_object.pos_z); if (this.car_collider.hitTest(_local3[0] + _root.game._x, _local3[1] + _root.game._y, true)) { this.bumper_object.doWhenHit(this.speed, this.angle, this.bumper_tile); } } this.pan_pos_x = this.car_x + ((7 * this.speed) * this.stepfactor_x); this.pan_pos_z = this.car_z + ((7 * this.speed) * this.stepfactor_z); var _local3 = WorldToScreen(this.pan_pos_x, 0, this.pan_pos_z); _root.focus_x = _local3[0]; _root.focus_y = _local3[1]; _local3 = WorldToScreen(this.car_x, this.car_y, this.car_z); var _local5 = Math.floor(((world.totaldepth - this.car_z) * 1000) + this.car_x); this.swapDepths(_local5); var _local4 = Math.round(this.angle * 0.1) + 1; this.gotoAndStop(_local4); this.car_collider.gotoAndStop(_local4); this._x = _local3[0]; this._y = _local3[1] + random(this.car_tile.effects.bumpy * Math.abs(this.speed)); }; stop();
Frame 217
Frame 226
stop();
Frame 227
timer.display = 0; _root.timer.onEnterFrame = null;
Frame 263
function removeTagIndicators(pString) { var _local1 = pString; var _local2 = _local1.indexOf("<"); var _local4 = ""; var _local3 = ""; while (_local2 > -1) { _local4 = _local1.substr(0, _local2); _local3 = _local1.substr(_local2 + 1); _local1 = _local4 + _local3; _local2 = _local1.indexOf("<"); } _local2 = _local1.indexOf(">"); _local4 = ""; _local3 = ""; while (_local2 > -1) { _local4 = _local1.substr(0, _local2); _local3 = _local1.substr(_local2 + 1); _local1 = _local4 + _local3; _local2 = _local1.indexOf(">"); } return(_local1); } function submitHandler() { var _local4 = "breakpoint"; var _local3 = false; trace("In submitHandler"); textResult.htmlText = ""; textResult._visible = true; my_sb._visible = true; var _local2 = "<body>"; _local2 = _local2 + "<br><br>"; _local2 = _local2 + "Please wait ..."; _local2 = _local2 + "</body>"; textResult.htmlText = _local2; gArrScores = new Array(); gArrNames = new Array(); _local4 = "breakpoint"; if (!receiveMail_ch.selected) { trace("No information saved because receiveMail_ch was unchecked!"); gApproved = "F"; } else { gApproved = "T"; trace("Save email was approved"); } trace("gName = " + gName); if (gName.length == 0) { trace("gName has length == 0"); _local3 = true; } else { trace("gName has length > 0"); gName = removeTagIndicators(gName); trace("new gName = " + gName); } trace("gMail = " + gMail); if (gMail.length == 0) { trace("gMail has length == 0"); _local3 = true; } else { trace("gMail has length > 0"); gMail = removeTagIndicators(gMail); trace("new email = " + gMail); } trace("GZip = " + gZip); trace("holdscore = " + holdscore); if (!_local3) { if (gZip.length > 0) { gZip = removeTagIndicators(gZip); trace("new zip = " + gZip); } callWebService(e49ud228alt, gName, gMail, gZip, gApproved); } else { var _local1 = "<body>"; _local1 = _local1 + "<br><br>"; _local1 = _local1 + "You must enter an email and a name!<br>Please enter the required information<br>and click the submit button."; _local1 = _local1 + "</body>"; textResult.htmlText = _local1; } } stop(); var bEncrypt = false; Mouse.show(); var bpoint = "breakpoint"; var holdscore = 0; if (_root.Score < 0) { holdscore == 0; } else { holdscore = _root.score; } if (bEncrypt) { } else { var rgtu836 = holdscore.toString(); } trace("rgtu836 = " + rgtu836); var gName = ""; var gMail = ""; var gZip = ""; var gApproved = "T"; name.text = gName; email.text = gMail; var e49ud228alt = rgtu836; zip.text = gZip; receiveMail_ch.selected = true; textResult.html = true; if (my_sb == null) { this.createClassObject(mx.controls.UIScrollBar, "my_sb", this.getNextHighestDepth()); trace("Created Scroll Bar"); } else { trace("Skipped creating scroll bar"); } my_sb.setScrollTarget(textResult); my_sb.setSize(4, textResult._height); my_sb.move(textResult._x + textResult._width, textResult._y); my_sb.setScrollTarget(textResult); my_sb._visible = false; textResult._visible = false; name.onChanged = function () { gName = name.text; }; email.onChanged = function () { gMail = email.text; }; zip.onChanged = function () { gZip = zip.text; }; btnSubmit.onRelease = function () { trace("Released btnSubmit"); submitHandler(); }; btnPlay.onRelease = function () { life = 100; gotoAndStop (191); my_sb._visible = false; }; btnSend.onRelease = function () { loadMovieNum ("friend.swf", 20); }; callWebService = function (usid928311sk, pName, pMail, pZip, pApproved) { breakpoint = "breakpoint"; var _local15 = new mx.services.WebService("http://www.thesyn.com/games/LastGoodnight/LastGoodnightGame_205.asmx?wsdl"); resultObj = _local15.updateScore(usid928311sk, pName, pMail, pZip, pApproved); resultObj.onResult = function (result) { var _local15 = "breakpoint"; trace("In onResult"); btnPlayAgain._visible = true; var _local12 = result; var _local6 = -1; var _local4 = -1; _local6 = _local12.indexOf("<HasTopScore>"); _local4 = _local12.indexOf("</HasTopScore>"); if (_local6 == -1) { trace("ERROR: pos1 == -1"); } var _local14 = _local12.substr(_local6 + 13, 1); var _local1 = _local12.substr(_local4 + 14); var _local9 = 0; _local6 = _local1.indexOf("<score"); _local4 = _local1.indexOf(">"); var _local5 = _local1.indexOf("</score>"); var _local3 = _local1.indexOf("\""); var _local8 = _local1.indexOf("\"", _local3 + 1); var _local10 = _local5 - (_local4 + 1); var _local11 = (_local8 - 1) - _local3; while (_local6 > -1) { _local9++; if (_local9 < 11) { gArrScores.push(_local1.substr(_local4 + 1, _local10)); gArrNames.push(_local1.substr(_local3 + 1, _local11)); _local1 = _local1.substr(_local5 + 8); _local6 = _local1.indexOf("<score"); _local4 = _local1.indexOf(">"); _local5 = _local1.indexOf("</score>"); _local3 = _local1.indexOf("\""); _local8 = _local1.indexOf("\"", _local3 + 1); _local10 = _local5 - (_local4 + 1); _local11 = (_local8 - 1) - _local3; } else { break; } } trace("HasTopScore = " + _local14); var _local2 = 0; while (_local2 < gArrScores.length) { trace((("gArrScores[" + _local2) + "] = ") + gArrScores[_local2]); _local2++; } trace((((((("pos1 = " + _local6) + " -- hasTopScore = ") + _local14) + " --- ") + _local12) + " --- mod_XML = ") + _local1); var _local7 = "<body>"; _local7 = _local7 + "<textformat tabstops='[150, 175]'>"; var _local13 = ""; if (_local14 == "n") { _local7 = _local7 + "Not The High Score. Play Again!.\n"; _local13 = "Previous top ten scores:\n"; } else if (_local14 == "y") { _local7 = _local7 + (("Congratulations, " + gName) + "!\n"); _local7 = _local7 + "You achieved the top score so far.\n"; _local13 = "Top ten scores at this time:\n"; } else { _local13 = _local13 + "The previous top ten scores could not be retrieved."; } _local7 = _local7 + (("Your score was " + holdscore) + "\n\n"); _local7 = _local7 + _local13; _local2 = 0; while (_local2 < gArrScores.length) { _local7 = _local7 + (((gArrNames[_local2] + "<tab> Score: ") + gArrScores[_local2]) + newline); _local2++; } _local7 = _local7 + "</textformat>"; _local7 = _local7 + "</body>"; textResult.htmlText = _local7; trace("scores_text = " + _local7); }; codeResultObj.onFault = function (fault) { trace((fault.faultCode + ", ") + fault.faultstring); }; };
Instance of Symbol 183 MovieClip [CheckBox] "receiveMail_ch" in Frame 263
//component parameters onClipEvent (construct) { label = "Sign up for the maining list"; labelPlacement = "right"; selected = false; }
Frame 264
stop();
Instance of Symbol 123 MovieClip [FLVPlayback] in Frame 264
//component parameters onClipEvent (construct) { autoPlay = true; autoRewind = true; autoSize = false; bufferTime = 0.1; contentPath = "http://thelastgoodnight-facebook.capitolmusic.com/musicvideo.flv"; isLive = false; maintainAspectRatio = true; skin = "SteelExternalPlaySeekMute.swf"; skinAutoHide = false; totalTime = 0; version_1_0_2 = ""; volume = 100; }
Frame 265
stop();
Instance of Symbol 123 MovieClip [FLVPlayback] in Frame 265
//component parameters onClipEvent (construct) { autoPlay = true; autoRewind = true; autoSize = false; bufferTime = 0.1; contentPath = "http://thelastgoodnight-facebook.capitolmusic.com/making.flv"; isLive = false; maintainAspectRatio = true; skin = "SteelExternalPlaySeekMute.swf"; skinAutoHide = false; totalTime = 0; version_1_0_2 = ""; volume = 100; }
Symbol 11 MovieClip [signs] Frame 1
stop();
Symbol 11 MovieClip [signs] Frame 21
gotoAndPlay ("hit_0");
Symbol 17 MovieClip [pizza] Frame 1
stop();
Symbol 17 MovieClip [pizza] Frame 21
gotoAndPlay ("hit_0");
Symbol 20 MovieClip [club] Frame 1
stop();
Symbol 20 MovieClip [club] Frame 21
gotoAndPlay ("hit_0");
Symbol 26 MovieClip [keyboard] Frame 1
stop();
Symbol 26 MovieClip [keyboard] Frame 21
chanton.gotoAndPlay("yeah"); gotoAndPlay ("hit_0");
Symbol 30 MovieClip [yellowguitar] Frame 1
stop();
Symbol 30 MovieClip [yellowguitar] Frame 21
chanton.gotoAndPlay("yeah"); gotoAndPlay ("hit_0");
Symbol 34 MovieClip [drum] Frame 1
stop();
Symbol 34 MovieClip [drum] Frame 21
chanton.gotoAndPlay("yeah"); gotoAndPlay ("hit_0");
Symbol 38 MovieClip [redguitar] Frame 1
stop();
Symbol 38 MovieClip [redguitar] Frame 21
chanton.gotoAndPlay("yeah"); gotoAndPlay ("hit_0");
Symbol 42 MovieClip [blueguitar] Frame 1
stop();
Symbol 42 MovieClip [blueguitar] Frame 21
chanton.gotoAndPlay("yeah"); gotoAndPlay ("hit_0");
Symbol 46 MovieClip [microphone] Frame 1
stop();
Symbol 46 MovieClip [microphone] Frame 21
chanton.gotoAndPlay("yeah"); gotoAndPlay ("hit_0");
Symbol 51 MovieClip [iconbass] Frame 1
stop();
Symbol 51 MovieClip [iconbass] Frame 2
_root.nextlevel2.nextFrame(); stop();
Symbol 56 MovieClip [icondrum] Frame 1
stop();
Symbol 56 MovieClip [icondrum] Frame 2
_root.nextlevel2.nextFrame(); stop();
Symbol 61 MovieClip [iconblueguitar] Frame 1
stop();
Symbol 61 MovieClip [iconblueguitar] Frame 2
_root.nextlevel2.nextFrame(); stop();
Symbol 66 MovieClip [iconyellowguitar] Frame 1
stop();
Symbol 66 MovieClip [iconyellowguitar] Frame 2
_root.nextlevel2.nextFrame(); stop();
Symbol 71 MovieClip [iconkeyboard] Frame 1
stop();
Symbol 71 MovieClip [iconkeyboard] Frame 2
_root.nextlevel2.nextFrame(); stop();
Symbol 76 MovieClip [iconmic] Frame 1
stop();
Symbol 76 MovieClip [iconmic] Frame 2
_root.nextlevel2.nextFrame(); stop();
Symbol 89 MovieClip [leif] Frame 1
stop();
Symbol 89 MovieClip [leif] Frame 21
gotoAndPlay ("hit_0");
Symbol 93 MovieClip [kurt] Frame 1
stop();
Symbol 93 MovieClip [kurt] Frame 21
gotoAndPlay ("hit_0");
Symbol 97 MovieClip [skeeter] Frame 1
stop();
Symbol 97 MovieClip [skeeter] Frame 21
gotoAndPlay ("hit_0");
Symbol 101 MovieClip [mike] Frame 1
stop();
Symbol 101 MovieClip [mike] Frame 21
gotoAndPlay ("hit_0");
Symbol 105 MovieClip [ely] Frame 1
stop();
Symbol 105 MovieClip [ely] Frame 21
gotoAndPlay ("hit_0");
Symbol 109 MovieClip [anton] Frame 1
stop();
Symbol 109 MovieClip [anton] Frame 21
chanton.gotoAndPlay("yeah"); gotoAndPlay ("hit_0");
Symbol 114 MovieClip [chanton] Frame 1
stop();
Symbol 114 MovieClip [chanton] Frame 2
_root.nextlevel.nextFrame(); stop();
Symbol 119 MovieClip [VideoPlayer] Frame 1
#initclip 63 Object.registerClass("VideoPlayer", mx.video.VideoPlayer); #endinitclip
Symbol 123 MovieClip [FLVPlayback] Frame 1
#initclip 64 Object.registerClass("FLVPlayback", mx.video.FLVPlayback); #endinitclip stop();
Symbol 144 MovieClip [CheckThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 155 MovieClip [CheckBoxAssets] Frame 1
#initclip 65 mx.controls.CheckBox.prototype.adjustFocusRect = function () { var _local4 = this._parent.focus_mc; var _local2 = this.iconName; var _local3 = this.getStyle("themeColor"); if (_local3 == undefined) { _local3 = 8453965 /* 0x80FF4D */; } var _local8 = _local2._width + 4; var _local5 = _local2._height + 4; _local4.setSize(_local8, _local5, 0, 100, _local3); var _local7 = _local2._x; var _local6 = _local2._y; _local4.move((this.x - 2) + _local7, (this.y + _local6) - 2); }; #endinitclip
Symbol 157 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 159 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 162 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 164 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 167 MovieClip [Defaults] Frame 1
#initclip 66 Object.registerClass("Defaults", mx.skins.halo.Defaults); #endinitclip
Symbol 168 MovieClip [UIObjectExtensions] Frame 1
#initclip 67 Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions); #endinitclip
Symbol 169 MovieClip [UIObject] Frame 1
#initclip 68 Object.registerClass("UIObject", mx.core.UIObject); #endinitclip stop();
Symbol 172 Button
on (keyPress "<Tab>") { this.tabHandler(); }
Symbol 173 MovieClip Frame 1
#initclip 69 Object.registerClass("FocusManager", mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--); } #endinitclip
Symbol 174 MovieClip [FocusRect] Frame 1
#initclip 70 Object.registerClass("FocusRect", mx.skins.halo.FocusRect); #endinitclip
Symbol 175 MovieClip [FocusManager] Frame 1
#initclip 71 Object.registerClass("FocusManager", mx.managers.FocusManager); #endinitclip stop();
Symbol 176 MovieClip [UIComponentExtensions] Frame 1
#initclip 72 Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions); #endinitclip
Symbol 177 MovieClip [UIComponent] Frame 1
#initclip 73 Object.registerClass("UIComponent", mx.core.UIComponent); #endinitclip stop();
Symbol 178 MovieClip [SimpleButton] Frame 1
#initclip 74 Object.registerClass("SimpleButton", mx.controls.SimpleButton); #endinitclip stop();
Symbol 179 MovieClip [Border] Frame 1
#initclip 75 Object.registerClass("Border", mx.skins.Border); #endinitclip stop();
Symbol 180 MovieClip [RectBorder] Frame 1
#initclip 76 mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder)); Object.registerClass("RectBorder", mx.skins.halo.RectBorder); #endinitclip stop();
Symbol 181 MovieClip [ButtonSkin] Frame 1
#initclip 77 Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin); #endinitclip
Symbol 182 MovieClip [Button] Frame 1
#initclip 78 Object.registerClass("Button", mx.controls.Button); #endinitclip stop();
Instance of Symbol 178 MovieClip [SimpleButton] in Symbol 182 MovieClip [Button] Frame 2
//component parameters onClipEvent (initialize) { selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 183 MovieClip [CheckBox] Frame 1
#initclip 79 Object.registerClass("CheckBox", mx.controls.CheckBox); #endinitclip stop();
Instance of Symbol 182 MovieClip [Button] in Symbol 183 MovieClip [CheckBox] Frame 2
//component parameters onClipEvent (initialize) { icon = ""; label = "Button"; labelPlacement = "right"; selected = false; toggle = false; enabled = true; visible = true; minHeight = 0; minWidth = 0; }
Symbol 216 MovieClip Frame 1
stop();
Symbol 216 MovieClip Frame 2
_root.nextlevel.nextFrame(); stop();
Symbol 221 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 2
_root.nextlevel.nextFrame(); stop();
Symbol 226 MovieClip Frame 1
stop();
Symbol 226 MovieClip Frame 2
_root.nextlevel.nextFrame(); stop();
Symbol 231 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 2
_root.nextlevel.nextFrame(); stop();
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 2
_root.nextlevel.nextFrame(); stop();
Symbol 242 Button
on (release) { grab.gotoAndPlay(2); }
Symbol 253 Button
on (release) { getURL ("http://apps.facebook.com/thelastgoodnightgame/", "_blank"); }
Symbol 259 Button
on (release) { gotoAndPlay (1); }
Symbol 260 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 2
stop();
Symbol 264 Button
on (release) { getURL ("http://apps.facebook.com/thelastgoodnightgame/", "_blank"); }
Symbol 478 MovieClip [__Packages.mx.services.WebService] Frame 0
class mx.services.WebService { var _name, _portName, _description, _proxyURI, _endpointReplacementURI, _timeout, gotWSDL, stub, __resolve; function WebService (wsdlLocation, logObj, proxyURI, endpointProxyURI, serviceName, portName) { mx.services.Namespace.setup(); _name = serviceName; _portName = portName; _description = null; _proxyURI = proxyURI; _endpointReplacementURI = endpointProxyURI; _timeout = -1; gotWSDL = false; stub = new mx.services.WebServiceProxy(this, wsdlLocation, logObj); __resolve = function (methodName) { return(function () { return(this.stub.invokeOperation(methodName, arguments)); }); }; } function getCall(operationName) { return(stub.getCall(operationName)); } function onLoad(wsdl) { } function onFault(fault) { } }
Symbol 479 MovieClip [__Packages.mx.services.WebServiceProxy] Frame 0
class mx.services.WebServiceProxy { var log, service, wsdlURI, wsdl, _servicePortMappings, activePort, waitingOps, callQueue; function WebServiceProxy (webservice, wsdlLocation, logObj) { log = logObj; log.logInfo("Creating stub for " + wsdlLocation, mx.services.Log.VERBOSE); service = webservice; var _local3; if (_local3 == undefined) { _local3 = service._proxyURI; } if (_local3 != undefined) { wsdlLocation = (buildURL(_local3) + "?target=") + escape(wsdlLocation); } wsdlURI = buildURL(wsdlLocation); var _local2 = new mx.services.Log(log.level, "WSDL"); _local2._parentLog = log; _local2.onLog = function (txt) { this._parentLog.onLog(txt); }; wsdl = new mx.services.WSDL(wsdlURI, this, _local2); wsdl.onLoad = function () { this.serviceProxy.onWSDL(); }; log.logInfo("Created stub for " + wsdlURI, mx.services.Log.VERBOSE); } function buildURL(url) { var _local2 = url; if ((url.indexOf("http://") == -1) && (url.indexOf("https://") == -1)) { var _local4 = _root._url.indexOf("/", 8); if (_local4 != -1) { _local2 = _root._url.substring(0, _local4) + url; } } return(_local2); } function onWSDL() { var _local12 = wsdl.fault; if (_local12 == undefined) { var _local8 = new Object(); var _local10 = wsdl.services; var _local7 = 0; var _local5 = null; var _local6 = null; for (var _local9 in _local10) { var _local4 = new Object(); var _local3 = wsdl.services[_local9].ports; for (var _local11 in _local3) { var _local2 = createCallsFromPort(_local3[_local11]); _local4[_local11] = _local2; if (_local5 == undefined) { _local5 = _local11; _local6 = _local9; } _local7++; } _local8[_local9] = _local4; } _servicePortMappings = _local8; var _local9 = service._name; var _local11 = service._portName; if ((_local9 == undefined) && (_local11 == undefined)) { if (_local7 == 1) { _local9 = _local6; _local11 = _local5; } else if (_local7 == 0) { _local12 = new mx.services.SOAPFault("WSDL.NoPorts", "There are no valid services/ports in the WSDL file!"); } else { _local12 = new mx.services.SOAPFault("WSDL.MultiplePorts", "There are multiple possible ports in the WSDL file; please specify a service name and port name!"); } } if (_local12 == undefined) { if (_local9 == undefined) { _local9 = _local6; } if (_local11 == undefined) { _local11 = _local5; } var _local13 = setPort(_local11, _local9); if (_local13 == undefined) { return(undefined); } log.logInfo((("Set active port in service stub: " + _local9) + " : ") + _local11, mx.services.Log.VERBOSE); service.gotWSDL = true; service.onLoad.call(service, wsdl.document); } } if (_local12 != undefined) { service.onFault.call(service, _local12); log.logDebug("Service stub found fault upon receiving WSDL: " + _local12.faultstring); } service.__resolve = function (operationName) { var callback = (new mx.services.PendingCall()); callback.genSingleConcurrencyFault = function () { clearInterval(this.timerID); var _local2 = new mx.services.SOAPFault("Client.NoSuchMethod", ("Couldn't find method '" + operationName) + "' in service!"); this.__handleFault(_local2); this.onFault(_local2); }; callback.timerID = setInterval(function () { callback.genSingleConcurrencyFault(); }, 50); return(callback); }; unEnqueueCalls(_local12); } function setPort(portName, serviceName) { var _local4 = ((serviceName == undefined) ? (service._name) : (serviceName)); var service = _servicePortMappings[_local4]; if (service == undefined) { service.onFault(new mx.services.SOAPFault("Client.NoSuchService", ("Couldn't find service '" + _local4) + "'")); return(undefined); } var _local3 = _servicePortMappings[_local4][portName]; if (_local3 == undefined) { service.onFault(new mx.services.SOAPFault("Client.NoSuchPort", ((("Couldn't find a matching port (service = '" + _local4) + "', port = '") + portName) + "')")); return(undefined); } for (var _local5 in activePort) { service[_local5] = undefined; } for (var _local5 in _local3) { service[_local5] = function () { return(this.stub.invokeOperation(arguments.callee.name, arguments)); }; service[_local5].name = _local5; } activePort = _local3; service._name = _local4; service._description = _servicePortMappings[_local4].description; return(activePort); } function createCallsFromPort(wsdlPort) { var _local17 = new Object(); var _local20 = wsdlPort.binding; var _local19 = _local20.portType; var _local16 = _local19.operations; var _local13 = wsdlPort.endpointURI; if (service._endpointReplacementURI != undefined) { var _local21 = _local13.indexOf("/", 7); _local13 = service._endpointReplacementURI + _local13.substring(_local21); } var _local23; var _local18 = wsdl.schemas; var _local14 = service._proxyURI; if (_local14 != undefined) { _local14 = buildURL(_local14); } var _local15 = waitingOps; var _local4; for (_local4 in _local16) { var _local3 = _local16[_local4]; var _local8 = _local3.actionURI; var _local12 = _local3.style; var _local6 = _local3.inputEncoding; var _local9 = _local6.use; var _local10 = _local6.namespaceURI; var _local11 = _local6.encodingStyle; var _local5 = new mx.services.Log(log.level, "SOAP"); _local5._parentLog = log; _local5.onLog = function (txt) { this._parentLog.onLog(txt); }; var _local7 = _local13; if (_local14 != undefined) { _local7 = (((_local14 + "?transport=SoapHttp&action=") + escape(_local8)) + "&target=") + escape(_local13); } var _local2 = _local15[_local4]; if (_local2 != undefined) { delete _local15[_local4]; } else { _local2 = new mx.services.SOAPCall(_local4); } _local2.targetNamespace = _local10; _local2.endpointURI = _local7; _local2.log = _local5; _local2.operationStyle = _local12; _local2.useStyle = _local9; _local2.encodingStyle = _local11; _local2.actionURI = _local8; _local2.schemaContext = _local18; _local2.wsdlOperation = _local3; if (_local3.description != undefined) { _local2.description = _local3.description; } _local17[_local4] = _local2; log.logInfo("Made SOAPCall for operation " + _local4, mx.services.Log.BRIEF); } return(_local17); } function invokeOperation(operationName, args) { var _local2; if (wsdl.fault != undefined) { if (wsdl.fault.faultcode == mx.services.SOAPConstants.DISCONNECTED_FAULT_CODE) { _local2 = enqueueCall(operationName, args); } else { service.onFault.call(service, wsdl.fault); } } else if ((wsdl.rootWSDL.xmlDoc == undefined) || (!wsdl.rootWSDL.xmlDoc.loaded)) { _local2 = enqueueCall(operationName, args); log.logInfo("Queing call " + operationName); } else { _local2 = invokeCall(operationName, args); if (_local2 == undefined) { var _local5 = new mx.services.SOAPFault("Client.NoSuchMethod", ("Couldn't find method '" + operationName) + "' in service!"); service.onFault.call(service, _local5); return(undefined); } log.logInfo("Invoking call " + operationName); } return(_local2); } function getCall(operationName) { if ((wsdl.rootWSDL.xmlDoc != undefined) && (wsdl.rootWSDL.xmlDoc.loaded)) { return(activePort[operationName]); } var _local2 = waitingOps; if (_local2 == undefined) { _local2 = new Object(); waitingOps = _local2; } var _local3 = _local2[operationName]; if (_local3 == undefined) { _local3 = new mx.services.SOAPCall(operationName); _local2[operationName] = _local3; } return(_local3); } function invokeCall(operationName, parameters) { var _local2 = activePort[operationName]; if (_local2 == undefined) { return(undefined); } if (service._timeout != -1) { _local2.timeout = service._timeout; } var _local3 = _local2.asyncInvoke(parameters, "onLoad"); return(_local3); } function enqueueCall(operationName, args) { if (callQueue == undefined) { callQueue = new Array(); } var _local2 = new Object(); _local2.operationName = operationName; _local2.args = args; _local2.cancel = function () { this.cancelled = true; }; callQueue.push(_local2); return(_local2); } function unEnqueueCalls(fault) { var _local7 = waitingOps; if (_local7 != undefined) { for (var _local10 in _local7) { var _local6 = _local7[_local10]; if (fault != undefined) { _local6.onFault(fault); continue; } var _local3 = activePort[_local10]; if (_local3 == undefined) { _local6.onFault(new mx.services.SOAPFault("Client.NoSuchMethod", ("Couldn't find method '" + _local10) + "' in service!")); continue; } } } var _local8 = callQueue; if (_local8 != undefined) { var _local9 = _local8.length; var _local4 = 0; while (_local4 < _local9) { var _local2 = _local8[_local4]; if (_local2.cancelled) { } else if (fault != undefined) { log.logInfo("Faulting previously queued call " + _local2.operationName); _local2.onFault(fault); } else { log.logInfo("Invoking previously queued call " + _local2.operationName); var _local3 = invokeCall(_local2.operationName, _local2.args); if (_local3 == undefined) { fault = new mx.services.SOAPFault("Client.NoSuchMethod", ("Couldn't find method '" + _local2.operationName) + "' in service!"); _local2.onFault(fault); return(undefined); } _local3.originalPromise = _local2; _local2.myCall = _local3.myCall; _local3.timerObj = _local2.timerObj; _local3.onResult = function (result, response) { this.originalPromise.request = this.request; this.originalPromise.response = this.response; this.originalPromise.onResult(result, response); }; _local3.onFault = function (fault) { this.originalPromise.request = this.request; this.originalPromise.response = this.response; this.originalPromise.onFault(fault); }; _local3.__handleResult = function (result, response) { this.originalPromise.request = this.request; this.originalPromise.response = this.response; this.originalPromise.__handleResult(result, response); }; _local3.__handleFault = function (fault) { this.originalPromise.request = this.request; this.originalPromise.response = this.response; this.originalPromise.__handleFault(fault); }; _local3.onHeaders = function (headers, response) { this.originalPromise.request = this.request; this.originalPromise.response = this.response; this.originalPromise.onHeaders(headers, response); }; } _local4++; } } } }
Symbol 480 MovieClip [__Packages.mx.services.Log] Frame 0
class mx.services.Log { var level, name; function Log (logLevel, name) { level = ((logLevel == undefined) ? (BRIEF) : (logLevel)); this.name = ((name == undefined) ? "" : (name)); } function logInfo(msg, level) { if (level == undefined) { level = BRIEF; } if (level <= this.level) { if (level == DEBUG) { onLog((((getDateString() + " [DEBUG] ") + name) + ": ") + msg); } else { onLog((((getDateString() + " [INFO] ") + name) + ": ") + msg); } } } function logDebug(msg) { logInfo(msg, DEBUG); } function getDateString() { var _local1 = new Date(); return(((((((((_local1.getMonth() + 1) + "/") + _local1.getDate()) + " ") + _local1.getHours()) + ":") + _local1.getMinutes()) + ":") + _local1.getSeconds()); } function onLog(message) { trace(message); } static var NONE = -1; static var BRIEF = 0; static var VERBOSE = 1; static var DEBUG = 2; }
Symbol 481 MovieClip [__Packages.mx.services.WSDL] Frame 0
class mx.services.WSDL { var log, serviceProxy, wsdlURI, wsdlDocs, constants, schemas, unresolvedImports, document, startTime, fault, targetNamespace, rootWSDL, onLoad, services; function WSDL (wsdlURI, serviceProxy, logObj, wsdlVersion) { log = logObj; log.logInfo("Creating WSDL object for " + wsdlURI, mx.services.Log.VERBOSE); this.serviceProxy = serviceProxy; this.wsdlURI = wsdlURI; wsdlDocs = new Object(); var _local4 = ((wsdlVersion == undefined) ? 0 : (wsdlVersion)); constants = mx.services.WSDLConstants.getConstants(_local4); var _local3 = new mx.services.Log(log.level, "XMLSchema"); _local3._parentLog = log; _local3.onLog = function (txt) { this._parentLog.onLog(txt); }; schemas = new mx.services.SchemaContext(_local3); mx.services.SchemaContext.RegisterStandardTypes(schemas); unresolvedImports = 1; var _local2 = new XML(); _local2.ignoreWhite = true; _local2.wsdl = this; _local2.location = wsdlURI; _local2.isRootWSDL = true; document = _local2; startTime = new Date(); fetchDocument(_local2); log.logInfo("Successfully created WSDL object", mx.services.Log.VERBOSE); } function fetchDocument(document) { document.onData = function (src) { if (src != undefined) { var _local3 = new Date(); this.wsdl.log.logInfo("Received WSDL document from the remote service", mx.services.Log.VERBOSE); this.parseXML(src); this.loaded = true; var _local2 = Math.round(new Date() - _local3); this.wsdl.log.logInfo(("Parsed WSDL XML [" + _local2) + " millis]", mx.services.Log.VERBOSE); } this.wsdl.parseDocument(this); delete this.wsdl; }; document.load(document.location, "GET"); } function parseDocument(document) { if (!document.loaded) { fault = new mx.services.SOAPFault(mx.services.SOAPConstants.DISCONNECTED_FAULT_CODE, "Could not load WSDL", ("Unable to load WSDL, if currently online, please verify the URI and/or format of the WSDL (" + wsdlURI) + ")"); log.logDebug("Unable to receive WSDL file"); } else { unresolvedImports--; processImports(document); } if ((unresolvedImports == 0) || (fault != undefined)) { parseCompleted(); } } function buildURL(locationURL, contextURL) { if ((locationURL.substr(0, 7) == "http://") || (locationURL.substr(0, 8) == "https://")) { return(locationURL); } var _local3 = contextURL.lastIndexOf("/"); contextURL = contextURL.substr(0, _local3 + 1); return(contextURL + locationURL); } function processImports(document) { var _local12 = document.firstChild; var _local13 = constants; var _local15 = _local12.getQName(); if (!_local15.equals(_local13.definitionsQName)) { if (_local15.localPart == "schema") { schemas.registerSchemaNode(_local12); return(undefined); } fault = new mx.services.SOAPFault("Server", "Faulty WSDL format", "Definitions must be the first element in a WSDL document"); var _local7 = document.firstChild; if (_local7.nodeName == "soapenv:Envelope") { _local7 = _local7.firstChild; if (_local7.nodeName == "soapenv:Body") { _local7 = _local7.firstChild; if (_local7.nodeName == "soapenv:Fault") { var _local11; var _local10; var _local9; var _local2 = _local7.firstChild; while (_local2 != null) { if (_local2.nodeName == "faultcode") { _local11 = _local2.firstChild; } else if (_local2.nodeName == "faultstring") { _local10 = _local2.firstChild; } else if (_local2.nodeName == "detail") { _local9 = _local2.firstChild; } _local2 = _local2.nextSibling; } fault = new mx.services.SOAPFault(_local11, _local10, _local9); } } } return(undefined); } var _local16 = _local12.attributes.targetNamespace; var _local14 = new mx.services.WSDLDocument(document, this); wsdlDocs[_local16] = _local14; if (document.isRootWSDL) { targetNamespace = _local16; rootWSDL = _local14; } var _local5 = _local12.getElementsByQName(_local13.importQName); if (_local5 != undefined) { var _local3 = 0; while (_local3 < _local5.length) { var _local4 = _local5[_local3].attributes.location; _local4 = buildURL(_local4, document.location); var _local6 = _local5[_local3].attributes.namespace; importDocument(_local4, _local6); _local3++; } } } function importDocument(location, namespaceURI) { var _local2 = new XML(); _local2.ignoreWhite = true; _local2.wsdl = this; _local2.namespace = namespaceURI; _local2.location = location; unresolvedImports++; fetchDocument(_local2); } function parseCompleted() { if (fault == undefined) { parseServices(); } if (fault == undefined) { var _local2 = Math.floor(new Date() - startTime); } onLoad(); } function parseServices() { log.logDebug("Parsing definitions"); var _local6 = constants; var _local3 = rootWSDL.serviceElements; if (_local3 == undefined) { fault = new mx.services.SOAPFault("Server.NoServicesInWSDL", "Could not load WSDL", ("No <wsdl:service> elements found in WSDL at " + wsdlURI) + "."); log.logDebug("No <service> elements in WSDL file"); return(undefined); } var _local4 = new Object(); for (var _local5 in _local3) { var _local2 = parseService(_local3[_local5]); _local4[_local2.name] = _local2; } services = _local4; log.logDebug("Completed WSDL parsing"); } function parseSchemas(typesNode) { log.logDebug("Parsing schemas"); var _local3 = typesNode.childNodes; var _local4 = _local3.length; var _local2 = 0; while (_local2 < _local4) { schemas.registerSchemaNode(_local3[_local2]); _local2++; } log.logDebug("Done parsing schemas."); } function parseService(serviceElement) { log.logDebug("Parsing service: " + serviceElement.nodeName); var _local11 = new Object(); _local11.ports = new Object(); var _local8 = constants; _local11.name = serviceElement.attributes.name; var _local12 = serviceElement.childNodes; var _local13 = _local12.length; var _local7 = 0; while ((_local7 < _local13) && (fault == undefined)) { var _local2 = _local12[_local7]; var _local9 = _local2.getQName(); if (_local9.equals(_local8.documentationQName)) { _local11.description = _local2.firstChild; } else if (_local9.equals(_local8.portQName)) { var _local4 = new Object(); var _local3 = 0; while (_local3 < _local2.childNodes.length) { var _local5 = _local2.childNodes[_local3]; var _local6 = _local5.getQName(); if (_local6.equals(_local8.soapAddressQName)) { _local4.endpointURI = _local5.attributes.location; break; } _local3++; } if (_local4.endpointURI != undefined) { _local4.name = _local2.attributes.name; var _local10 = _local2.getQNameFromString(_local2.attributes.binding); _local4.binding = parseBinding(_local10); _local11.ports[_local4.name] = _local4; } } _local7++; } return(_local11); } function parseBinding(bindingName) { log.logDebug("Parsing binding: " + bindingName); var _local10 = new Object(); var _local4 = constants; var _local25 = wsdlDocs[bindingName.namespaceURI]; if (_local25 == undefined) { fault = new mx.services.SOAPFault("WSDL.UnrecognizedNamespace", ("The WSDL parser had no registered document for the namespace '" + bindingName.namespaceURI) + "'"); return(undefined); } var _local19 = _local25.getBindingElement(bindingName.localPart); if (_local19 == undefined) { fault = new mx.services.SOAPFault("WSDL.UnrecognizedBindingName", ((("The WSDL parser couldn't find a binding named '" + bindingName.localPart) + "' in namespace '") + bindingName.namespaceURI) + "'"); return(undefined); } var _local26 = _local19.getQNameFromString(_local19.attributes.type); _local10.portType = parsePortType(_local26); if (fault != undefined) { return(undefined); } var _local23 = _local19.childNodes; var _local24 = _local23.length; var _local13 = 0; while (_local13 < _local24) { var _local11 = _local23[_local13]; var _local17 = _local11.getQName(); if (_local17.equals(_local4.soapBindingQName)) { _local10.style = _local11.attributes.style; if (_local10.style == undefined) { _local10.style = mx.services.WSDLConstants.DEFAULT_STYLE; } _local10.transport = _local11.attributes.transport; } else if (_local17.equals(_local4.operationQName)) { var _local20 = _local11.attributes.name; var _local6 = _local10.portType.operations[_local20]; var _local14 = _local11.childNodes; var _local18 = _local14.length; var _local5 = 0; while (_local5 < _local18) { var _local3 = _local14[_local5]; var _local7 = _local3.getQName(); if (_local7.equals(_local4.soapOperationQName)) { var _local12 = _local3.attributes.soapAction; _local6.actionURI = _local12; var _local9 = _local3.attributes.style; if (_local9 == undefined) { _local9 = _local10.style; } _local6.style = _local9; } else if (_local7.equals(_local4.inputQName)) { var _local8 = _local3.getElementsByQName(_local4.soapBodyQName)[0]; var _local2 = new Object(); _local2.use = _local8.attributes.use; _local2.namespaceURI = _local8.attributes.namespace; if (_local2.namespaceURI == undefined) { _local2.namespaceURI = targetNamespace; } _local2.encodingStyle = _local8.attributes.encodingStyle; _local6.inputEncoding = _local2; } else if (_local7.equals(_local4.outputQName)) { var _local8 = _local3.getElementsByQName(_local4.soapBodyQName)[0]; var _local2 = new Object(); _local2.use = _local8.attributes.use; _local2.namespaceURI = _local8.attributes.namespace; if (_local2.namespaceURI == undefined) { _local2.namespaceURI = targetNamespace; } _local2.encodingStyle = _local8.attributes.encodingStyle; _local6.outputEncoding = _local2; } _local5++; } } _local13++; } var _local21 = document.getElementsByQName(_local4.bindingQName); var _local15 = 0; while (_local15 < _local21.length) { _local19 = _local21[_local15]; var _local16 = _local19.attributes.name; if (bindingName != _local16) { } else { _local10.name = _local16; } _local15++; } return(_local10); } function parsePortType(portTypeName, document) { log.logDebug("Parsing portType: " + portTypeName); var _local19 = wsdlDocs[portTypeName.namespaceURI]; if (_local19 == undefined) { fault = new mx.services.SOAPFault("WSDL.UnrecognizedNamespace", ("The WSDL parser had no registered document for the namespace '" + portTypeName.namespaceURI) + "'"); return(undefined); } var _local18 = _local19.getPortTypeElement(portTypeName.localPart); if (_local18 == undefined) { fault = new mx.services.SOAPFault("WSDL.UnrecognizedPortTypeName", ((("The WSDL parser couldn't find a portType named '" + portTypeName.localPart) + "' in namespace '") + portTypeName.namespaceURI) + "'"); return(undefined); } var _local13 = new Object(); var _local7 = constants; _local13.name = _local18.attributes.name; _local13.operations = new Object(); var _local14 = _local18.getElementsByQName(_local7.operationQName); var _local15 = _local14.length; var _local9 = 0; while (_local9 < _local15) { var _local11 = _local14[_local9]; var _local2 = new mx.services.WSDLOperation(_local11.attributes.name, this, document); var _local10 = _local11.childNodes; var _local12 = _local10.length; var _local5 = 0; while (_local5 < _local12) { var _local3 = _local10[_local5]; var _local4 = _local3.getQName(); if (_local4.equals(_local7.documentationQName)) { _local2.documentation = _local3.childNodes[0]; } else { var _local8 = _local3.attributes.message; var _local6 = _local3.getQNameFromString(_local8); if (_local4.equals(_local7.inputQName)) { _local2.inputMessage = _local6; } else if (_local4.equals(_local7.outputQName)) { _local2.outputMessage = _local6; } } _local5++; } if (_local13.operations[_local2.name] != undefined) { fault = new mx.services.SOAPFault("WSDL.OverloadedOperation", ("The WSDL contains an overloaded operation (" + _local2.name) + ") - we do not currently support this usage."); return(undefined); } _local13.operations[_local2.name] = _local2; _local9++; } return(_local13); } function parseMessage(messageName, operationName, mode, document) { log.logDebug("Parsing message: " + messageName); var _local22 = wsdlDocs[messageName.namespaceURI]; if (_local22 == undefined) { fault = new mx.services.SOAPFault("WSDL.UnrecognizedNamespace", ("The WSDL parser had no registered document for the namespace '" + messageName.namespaceURI) + "'"); return(undefined); } var _local21 = _local22.getMessageElement(messageName.localPart); if (_local21 == undefined) { fault = new mx.services.SOAPFault("WSDL.UnrecognizedMessageName", ((("The WSDL parser couldn't find a message named '" + messageName.localPart) + "' in namespace '") + messageName.namespaceURI) + "'"); return(undefined); } var _local23 = constants; var _local3 = new Object(); _local3.name = _local21.attributes.name; if (_local3.name == undefined) { if (mode == mx.services.SOAPConstants.MODE_IN) { _local3.name = operationName + "Request"; } else { _local3.name == (operationName + "Response"); } } log.logDebug("Message name is " + _local3.name); var _local18 = _local21.getElementsByQName(_local23.parameterQName); var _local16 = _local18.length; _local3.parameters = new Array(); var _local8 = 0; while (_local8 < _local16) { var _local5 = _local18[_local8]; var _local14 = _local5.attributes.name; var _local2; var _local12; if (_local5.attributes.element != undefined) { var _local10 = _local5.attributes.element; var _local13 = _local5.getQNameFromString(_local10); var _local7 = schemas.getElementByQName(_local13); if (schemas.fault != undefined) { fault = schemas.fault; return(undefined); } if (_local7 == undefined) { fault = new mx.services.SOAPFault("WSDL.BadElement", ("Element " + _local10) + " not resolvable"); return(undefined); } _local2 = _local7.schemaType; _local12 = _local13; if ((_local16 == 1) && (operationName == _local13.localPart)) { for (var _local17 in _local2.partTypes) { var _local4 = _local2.partTypes[_local17]; var _local6 = new mx.services.QName(_local17, _local4.namespace); var _local15 = new mx.services.SOAPParameter(_local17, _local4.schemaType, mode, _local6); _local3.parameters.push(_local15); _local3.targetNamespace = _local13.namespaceURI; } _local3.isWrapped = true; if (_local7.form == "qualified") { _local3.isQualified = true; } break; } } else { var _local9 = _local5.attributes.type; var _local13 = _local5.getQNameFromString(_local9); _local2 = schemas.getTypeByQName(_local13); if (schemas.fault != undefined) { fault = schemas.fault; return(undefined); } if (_local2 == undefined) { fault = new mx.services.SOAPFault("WSDL.BadType", ("Type " + _local9) + " not resolvable"); return(undefined); } } var _local15 = new mx.services.SOAPParameter(_local14, _local2, mode, _local12); _local3.parameters.push(_local15); _local8++; } return(_local3); } }
Symbol 482 MovieClip [__Packages.mx.services.WSDLConstants] Frame 0
class mx.services.WSDLConstants { function WSDLConstants () { } static function getConstants(versionNumber) { var _local1 = new Object(); _local1.definitionsQName = new mx.services.QName("definitions", WSDL_URI); _local1.typesQName = new mx.services.QName("types", WSDL_URI); _local1.messageQName = new mx.services.QName("message", WSDL_URI); _local1.portTypeQName = new mx.services.QName("portType", WSDL_URI); _local1.bindingQName = new mx.services.QName("binding", WSDL_URI); _local1.serviceQName = new mx.services.QName("service", WSDL_URI); _local1.importQName = new mx.services.QName("import", WSDL_URI); _local1.documentationQName = new mx.services.QName("documentation", WSDL_URI); _local1.portQName = new mx.services.QName("port", WSDL_URI); _local1.soapAddressQName = new mx.services.QName("address", WSDL_SOAP_URI); _local1.bindingQName = new mx.services.QName("binding", WSDL_URI); _local1.soapBindingQName = new mx.services.QName("binding", WSDL_SOAP_URI); _local1.operationQName = new mx.services.QName("operation", WSDL_URI); _local1.soapOperationQName = new mx.services.QName("operation", WSDL_SOAP_URI); _local1.documentationQName = new mx.services.QName("documentation", WSDL_URI); _local1.soapBodyQName = new mx.services.QName("body", WSDL_SOAP_URI); _local1.inputQName = new mx.services.QName("input", WSDL_URI); _local1.outputQName = new mx.services.QName("output", WSDL_URI); _local1.parameterQName = new mx.services.QName("part", WSDL_URI); return(_local1); } static var WSDL_URI = "http://schemas.xmlsoap.org/wsdl/"; static var WSDL_SOAP_URI = "http://schemas.xmlsoap.org/wsdl/soap/"; static var SOAP_ENVELOPE_URI = "http://schemas.xmlsoap.org/soap/envelope/"; static var SOAP_ENCODING_URI = "http://schemas.xmlsoap.org/wsdl/soap/encoding/"; static var HTTP_WSDL_URI = "http://schemas.xmlsoap.org/wsdl/http/"; static var HTTP_SOAP_URI = "http://schemas.xmlsoap.org/soap/http"; static var MACROMEDIA_SOAP_URI = "http://www.macromedia.com/soap/"; static var DEFAULT_STYLE = "document"; }
Symbol 483 MovieClip [__Packages.mx.services.QName] Frame 0
class mx.services.QName { var localPart, namespaceURI; function QName (localPart, namespaceURI) { this.localPart = ((localPart == undefined) ? "" : (localPart)); this.namespaceURI = ((namespaceURI == undefined) ? "" : (namespaceURI)); } function equals(qname) { return((namespaceURI == qname.namespaceURI) && (localPart == qname.localPart)); } }
Symbol 484 MovieClip [__Packages.mx.services.SchemaContext] Frame 0
class mx.services.SchemaContext { var log, schemas, schemaVersion, unresolvedImports; function SchemaContext (logObj) { log = logObj; schemas = new Object(); } static function RegisterSchemaTypes(schemaObj, schemaVersion) { var _local1 = schemaVersion.xsdURI; schemaObj.registerType(new mx.services.DataType("boolean", mx.services.DataType.BOOLEAN_TYPE, _local1)); schemaObj.registerType(new mx.services.DataType("string", mx.services.DataType.STRING_TYPE, _local1)); schemaObj.registerType(new mx.services.DataType("decimal", mx.services.DataType.NUMBER_TYPE, _local1)); schemaObj.registerType(new mx.services.DataType("integer", mx.services.DataType.NUMBER_TYPE, _local1)); schemaObj.registerType(new mx.services.DataType("negativeInteger", mx.services.DataType.NUMBER_TYPE, _local1)); schemaObj.registerType(new mx.services.DataType("nonNegativeInteger", mx.services.DataType.NUMBER_TYPE, _local1)); schemaObj.registerType(new mx.services.DataType("positiveInteger", mx.services.DataType.NUMBER_TYPE, _local1)); schemaObj.registerType(new mx.services.DataType("nonPositiveInteger", mx.services.DataType.NUMBER_TYPE, _local1)); schemaObj.registerType(new mx.services.DataType("long", mx.services.DataType.NUMBER_TYPE, _local1)); schemaObj.registerType(new mx.services.DataType("int", mx.services.DataType.NUMBER_TYPE, _local1)); schemaObj.registerType(new mx.services.DataType("short", mx.services.DataType.NUMBER_TYPE, _local1)); schemaObj.registerType(new mx.services.DataType("byte", mx.services.DataType.NUMBER_TYPE, _local1)); schemaObj.registerType(new mx.services.DataType("unsignedLong", mx.services.DataType.NUMBER_TYPE, _local1)); schemaObj.registerType(new mx.services.DataType("unsignedInt", mx.services.DataType.NUMBER_TYPE, _local1)); schemaObj.registerType(new mx.services.DataType("unsignedShort", mx.services.DataType.NUMBER_TYPE, _local1)); schemaObj.registerType(new mx.services.DataType("unsignedByte", mx.services.DataType.NUMBER_TYPE, _local1)); schemaObj.registerType(new mx.services.DataType("float", mx.services.DataType.NUMBER_TYPE, _local1)); schemaObj.registerType(new mx.services.DataType("double", mx.services.DataType.NUMBER_TYPE, _local1)); schemaObj.registerType(new mx.services.DataType("date", mx.services.DataType.DATE_TYPE, _local1)); var _local3 = new mx.services.DataType("dateTime", mx.services.DataType.DATE_TYPE, _local1); schemaVersion.dateTimeType = _local3; schemaObj.registerType(_local3); schemaObj.registerType(new mx.services.DataType("time", mx.services.DataType.DATE_TYPE, _local1)); schemaObj.registerType(new mx.services.DataType("base64Binary", mx.services.DataType.OBJECT_TYPE, _local1)); schemaObj.registerType(new mx.services.DataType("hexBinary", mx.services.DataType.OBJECT_TYPE, _local1)); schemaObj.registerType(new mx.services.DataType("token", mx.services.DataType.STRING_TYPE, _local1)); schemaObj.registerType(new mx.services.DataType("normalizedString", mx.services.DataType.STRING_TYPE, _local1)); schemaObj.registerType(new mx.services.DataType("anyType", mx.services.DataType.ANY_TYPE, _local1)); if (_local1 == mx.services.SchemaVersion.XSD_URI_1999) { schemaObj.registerType(new mx.services.DataType("timeInstant", mx.services.DataType.DATE_TYPE, _local1)); } } static function RegisterStandardTypes(schemaObj) { RegisterSchemaTypes(schemaObj, mx.services.SchemaVersion.getSchemaVersion(mx.services.SchemaVersion.XSD_URI_1999)); RegisterSchemaTypes(schemaObj, mx.services.SchemaVersion.getSchemaVersion(mx.services.SchemaVersion.XSD_URI_2000)); RegisterSchemaTypes(schemaObj, mx.services.SchemaVersion.getSchemaVersion(mx.services.SchemaVersion.XSD_URI_2001)); schemaObj.registerType(new mx.services.DataType("string", mx.services.DataType.STRING_TYPE, mx.services.SchemaVersion.SOAP_ENCODING_URI)); schemaObj.registerType(new mx.services.DataType("int", mx.services.DataType.NUMBER_TYPE, mx.services.SchemaVersion.SOAP_ENCODING_URI)); schemaObj.registerType(new mx.services.DataType("integer", mx.services.DataType.NUMBER_TYPE, mx.services.SchemaVersion.SOAP_ENCODING_URI)); schemaObj.registerType(new mx.services.DataType("long", mx.services.DataType.NUMBER_TYPE, mx.services.SchemaVersion.SOAP_ENCODING_URI)); schemaObj.registerType(new mx.services.DataType("short", mx.services.DataType.NUMBER_TYPE, mx.services.SchemaVersion.SOAP_ENCODING_URI)); schemaObj.registerType(new mx.services.DataType("byte", mx.services.DataType.NUMBER_TYPE, mx.services.SchemaVersion.SOAP_ENCODING_URI)); schemaObj.registerType(new mx.services.DataType("decimal", mx.services.DataType.NUMBER_TYPE, mx.services.SchemaVersion.SOAP_ENCODING_URI)); schemaObj.registerType(new mx.services.DataType("float", mx.services.DataType.NUMBER_TYPE, mx.services.SchemaVersion.SOAP_ENCODING_URI)); schemaObj.registerType(new mx.services.DataType("base64", mx.services.DataType.NUMBER_TYPE, mx.services.SchemaVersion.SOAP_ENCODING_URI)); schemaObj.registerType(new mx.services.DataType("double", mx.services.DataType.NUMBER_TYPE, mx.services.SchemaVersion.SOAP_ENCODING_URI)); schemaObj.registerType(new mx.services.DataType("boolean", mx.services.DataType.BOOLEAN_TYPE, mx.services.SchemaVersion.SOAP_ENCODING_URI)); var _local2 = new mx.services.DataType("Array", mx.services.DataType.ARRAY_TYPE, mx.services.SchemaVersion.SOAP_ENCODING_URI); _local2.arrayType = new mx.services.DataType("any", mx.services.DataType.ANY_TYPE, mx.services.SchemaVersion.SOAP_ENCODING_URI); _local2.arrayDimensions = 1; _local2.isEncodedArray = true; _local2.itemElement = new mx.services.QName("item"); schemaObj.registerType(_local2); schemaObj.registerType(new mx.services.DataType("Map", mx.services.DataType.MAP_TYPE, mx.services.SchemaVersion.APACHESOAP_URI)); schemaObj.registerType(new mx.services.DataType("RowSet", mx.services.DataType.ROWSET_TYPE, mx.services.SchemaVersion.APACHESOAP_URI)); schemaObj.registerType(new mx.services.DataType("QueryBean", mx.services.DataType.QBEAN_TYPE, mx.services.SchemaVersion.CF_RPC_URI)); } function registerSchemaNode(rootElement, document) { var _local4 = rootElement.getQName(); if (_local4.localPart != "schema") { return(undefined); } var _local2 = mx.services.SchemaVersion.getSchemaVersion(_local4.namespaceURI); if (_local2 == undefined) { return(undefined); } schemaVersion = _local2; if (rootElement.getQName().equals(_local2.schemaQName)) { var _local5 = rootElement.attributes.targetNamespace; processImports(rootElement, _local2, document); return(registerNamespace(_local5, rootElement)); } } function processImports(rootElement, schemaVersion, document) { var _local4 = rootElement.getElementsByQName(schemaVersion.importQName); if (_local4 != undefined) { var _local3 = 0; while (_local3 < _local4.length) { var _local2 = _local4[_local3].attributes.schemaLocation; if (_local2 != undefined) { _local2 = buildURL(_local2, document.location); var _local5 = _local4[_local3].attributes.namespace; importDocument(_local2, _local5); } _local3++; } } } function importDocument(location, namespaceURI) { var _local2 = new XML(); _local2.ignoreWhite = true; _local2.schemaContext = this; _local2.namespace = namespaceURI; _local2.location = location; unresolvedImports++; fetchDocument(_local2); } function fetchDocument(document) { document.onData = function (src) { if (src == undefined) { this.fault = new mx.services.SOAPFault(mx.services.SOAPConstants.DISCONNECTED_FAULT_CODE, "Could not load imported schema", ("Unable to load schema, if currently online, please verify the URI and/or format of the schema at (" + this.schemaURI) + ")"); this.log.logDebug("Unable to receive WSDL file"); } else { this.unresolvedImports--; this.registerSchemaNode(document.firstChild, document); } }; document.load(document.location, "GET"); } function buildURL(locationURL, contextURL) { if ((locationURL.substr(0, 7) == "http://") || (locationURL.substr(0, 8) == "https://")) { return(locationURL); } var _local3 = contextURL.lastIndexOf("/"); contextURL = contextURL.substr(0, _local3 + 1); return(contextURL + locationURL); } function registerNamespace(namespaceURI, rootElement) { log.logInfo("Registering schema namespace: " + namespaceURI, mx.services.Log.VERBOSE); if (schemas[namespaceURI] != undefined) { log.logInfo("Duplicate namespace!"); return(undefined); } var _local2 = new mx.services.Schema(namespaceURI, rootElement, this); schemas[namespaceURI] = _local2; var _local4 = rootElement.attributes.elementFormDefault; if ((_local4 != undefined) && (_local4 == "qualified")) { _local2.elementFormDefault = "qualified"; } return(_local2); } function registerType(dtype) { var _local4 = dtype.namespaceURI; var _local2 = schemas[_local4]; if (_local2 == undefined) { _local2 = registerNamespace(_local4); } if (_local2.types[dtype.name] == undefined) { _local2.types[dtype.name] = dtype; } } function registerElement(elemObj) { var _local4 = elemObj.namespaceURI; var _local2 = schemas[_local4]; if (_local2 == undefined) { _local2 = registerNamespace(_local4); } if (elemObj.form == undefined) { elemObj.form = _local2.elementFormDefault; } _local2.elements[elemObj.name] = elemObj; } function getElementByQName(elQName) { var _local3 = schemas[elQName.namespaceURI]; if (_local3 != undefined) { var _local2 = _local3.elements[elQName.localPart]; if (_local2 == undefined) { _local2 = _local3.parseElement(elQName.localPart); if (_local2 == undefined) { } } return(_local2); } } function getTypeByQName(typeQName) { var _local13 = schemas[typeQName.namespaceURI]; if (_local13 != undefined) { var _local11 = typeQName.localPart; var _local14 = _local11.indexOf("["); if (_local14 != -1) { var _local15 = _local11.substring(0, _local14); var _local9 = getTypeByQName(new mx.services.QName(_local15, typeQName.namespaceURI)); var _local4 = _local11.substring(_local14); var _local2 = 0; while (_local2 != -1) { var _local6 = new Array(); _local2++; var _local3 = _local4.indexOf(",", _local2); while (_local3 != -1) { var _local8 = Number(_local4.substring(_local2, _local3)); _local6.push(_local8); _local2 = _local3 + 1; _local3 = _local4.indexOf(",", _local2); } var _local7 = _local4.indexOf("]", _local2); if (_local7 == -1) { } if (_local7 == _local2) { _local6.push(-1); } else { var _local10 = Number(_local4.substring(_local2, _local7)); _local6.push(_local10); } var _local5 = new mx.services.DataType(_local9.name, mx.services.DataType.ARRAY_TYPE, _local9.namespaceURI); _local5.isEncodedArray = true; _local5.arrayType = _local9; _local5.itemElement = new mx.services.QName("item"); _local5.dimensions = _local6; _local9 = _local5; _local2 = _local4.indexOf("[", _local7); } return(_local9); } var _local12 = _local13.types[_local11]; if (_local12 != undefined) { return(_local12); } _local12 = _local13.parseType(_local11); if (_local12 == undefined) { } return(_local12); } } function getType(qualifiedName, node) { var _local4 = ""; var _local5 = qualifiedName; var _local2 = qualifiedName.indexOf(":"); if (_local2 != -1) { _local4 = qualifiedName.substring(0, _local2); _local5 = qualifiedName.substring(_local2 + 1); } var _local6 = node.getNamespaceForPrefix(_local4); return(getTypeByQName(_local5, _local6, node)); } }
Symbol 485 MovieClip [__Packages.mx.services.DataType] Frame 0
class mx.services.DataType { var name, typeType, namespaceURI, qname, isAnonymous, deserializer; function DataType (name, typeType, xmlns, deserializer) { this.name = name; this.typeType = ((typeType == undefined) ? (OBJECT_TYPE) : (typeType)); namespaceURI = ((xmlns == undefined) ? (mx.services.SchemaVersion.XML_SCHEMA_URI) : (xmlns)); qname = new mx.services.QName(this.name, namespaceURI); isAnonymous = false; this.deserializer = deserializer; } static var NUMBER_TYPE = 0; static var STRING_TYPE = 1; static var OBJECT_TYPE = 2; static var DATE_TYPE = 3; static var BOOLEAN_TYPE = 4; static var XML_TYPE = 5; static var ARRAY_TYPE = 6; static var MAP_TYPE = 7; static var ANY_TYPE = 8; static var COLL_TYPE = 10; static var ROWSET_TYPE = 11; static var QBEAN_TYPE = 12; static var objectType = new mx.services.DataType("", OBJECT_TYPE, ""); }
Symbol 486 MovieClip [__Packages.mx.services.SchemaVersion] Frame 0
class mx.services.SchemaVersion { static var version2001, version2000, version1999; var xsdURI, xsiURI, schemaQName, allQName, complexTypeQName, elementTypeQName, importQName, simpleTypeQName, complexContentQName, sequenceQName, simpleContentQName, restrictionQName, attributeQName, extensionQName, nilQName; function SchemaVersion (xsdURI, xsiURI) { this.xsdURI = xsdURI; this.xsiURI = xsiURI; schemaQName = new mx.services.QName("schema", xsdURI); allQName = new mx.services.QName("all", xsdURI); complexTypeQName = new mx.services.QName("complexType", xsdURI); elementTypeQName = new mx.services.QName("element", xsdURI); importQName = new mx.services.QName("import", xsdURI); simpleTypeQName = new mx.services.QName("simpleType", xsdURI); complexContentQName = new mx.services.QName("complexContent", xsdURI); sequenceQName = new mx.services.QName("sequence", xsdURI); simpleContentQName = new mx.services.QName("simpleContent", xsdURI); restrictionQName = new mx.services.QName("restriction", xsdURI); attributeQName = new mx.services.QName("attribute", xsdURI); extensionQName = new mx.services.QName("extension", xsdURI); var _local3 = "nil"; if (xsdURI == XSD_URI_1999) { _local3 = "null"; } nilQName = new mx.services.QName(_local3, xsiURI); } static function getSchemaVersion(xsdURI) { if (xsdURI == XSD_URI_2001) { if (version2001 == undefined) { version2001 = new mx.services.SchemaVersion(XSD_URI_2001, XSI_URI_2001); } return(version2001); } if (xsdURI == XSD_URI_2000) { if (version2000 == undefined) { version2000 = new mx.services.SchemaVersion(XSD_URI_2000, XSI_URI_2000); } return(version2000); } if (xsdURI == XSD_URI_1999) { if (version1999 == undefined) { version1999 = new mx.services.SchemaVersion(XSD_URI_1999, XSI_URI_1999); } return(version1999); } } static var XML_SCHEMA_URI = "http://www.w3.org/2001/XMLSchema"; static var SOAP_ENCODING_URI = "http://schemas.xmlsoap.org/soap/encoding/"; static var XSD_URI_1999 = "http://www.w3.org/1999/XMLSchema"; static var XSD_URI_2000 = "http://www.w3.org/2000/10/XMLSchema"; static var XSD_URI_2001 = "http://www.w3.org/2001/XMLSchema"; static var XSI_URI_1999 = "http://www.w3.org/1999/XMLSchema-instance"; static var XSI_URI_2000 = "http://www.w3.org/2000/10/XMLSchema-instance"; static var XSI_URI_2001 = "http://www.w3.org/2001/XMLSchema-instance"; static var APACHESOAP_URI = "http://xml.apache.org/xml-soap"; static var CF_RPC_URI = "http://rpc.xml.coldfusion"; }
Symbol 487 MovieClip [__Packages.mx.services.SOAPFault] Frame 0
class mx.services.SOAPFault { var faultcode, faultstring, detail, element, faultNamespaceURI, faultactor; function SOAPFault (fcode, fstring, detail, element, faultNS, faultactor) { faultcode = fcode; faultstring = fstring; this.detail = detail; this.element = element; faultNamespaceURI = faultNS; this.faultactor = faultactor; } }
Symbol 488 MovieClip [__Packages.mx.services.SOAPConstants] Frame 0
class mx.services.SOAPConstants { static var soap11Constants, soap12Constants; var contentType, ENVELOPE_URI, ENCODING_URI, envelopeQName, headerQName, bodyQName, faultQName, actorQName, soapencArrayQName, soapencArrayTypeQName, soapencRefQName; function SOAPConstants () { } static function getConstants(versionNumber) { if (versionNumber < 2) { if (soap11Constants == undefined) { soap11Constants = new mx.services.SOAPConstants(); soap11Constants.setSOAP11(); } return(soap11Constants); } if (soap12Constants == undefined) { soap12Constants = new mx.services.SOAPConstants(); soap12Constants.setSOAP12(); } return(soap12Constants); } function setSOAP11() { contentType = "text/xml; charset=utf-8"; ENVELOPE_URI = "http://schemas.xmlsoap.org/soap/envelope/"; ENCODING_URI = "http://schemas.xmlsoap.org/soap/encoding/"; setupConstants(); } function setSOAP12() { contentType = "application/soap+xml; charset=utf-8"; ENVELOPE_URI = "http://www.w3.org/2002/12/soap-envelope"; ENCODING_URI = "http://www.w3.org/2002/12/soap-encoding"; setupConstants(); } function setupConstants() { envelopeQName = new mx.services.QName("Envelope", ENVELOPE_URI); headerQName = new mx.services.QName("Header", ENVELOPE_URI); bodyQName = new mx.services.QName("Body", ENVELOPE_URI); faultQName = new mx.services.QName("Fault", ENVELOPE_URI); actorQName = new mx.services.QName("Actor", ENVELOPE_URI); soapencArrayQName = new mx.services.QName("Array", ENCODING_URI); soapencArrayTypeQName = new mx.services.QName("arrayType", ENCODING_URI); soapencRefQName = new mx.services.QName("multiRef", ENCODING_URI); } static var DEFAULT_VERSION = 0; static var XML_DECLARATION = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r"; static var RPC_STYLE = "rpc"; static var DOC_STYLE = "document"; static var WRAPPED_STYLE = "wrapped"; static var USE_ENCODED = "encoded"; static var USE_LITERAL = "literal"; static var DEFAULT_OPERATION_STYLE = RPC_STYLE; static var DEFAULT_USE = USE_ENCODED; static var SOAP_ENV_PREFIX = "SOAP-ENV"; static var SOAP_ENC_PREFIX = "soapenc"; static var XML_SCHEMA_PREFIX = "xsd"; static var XML_SCHEMA_INSTANCE_PREFIX = "xsi"; static var XML_SCHEMA_URI = "http://www.w3.org/2001/XMLSchema"; static var XML_SCHEMA_INSTANCE_URI = "http://www.w3.org/2001/XMLSchema-instance"; static var SCHEMA_INSTANCE_TYPE = XML_SCHEMA_INSTANCE_PREFIX + ":type"; static var ARRAY_PQNAME = SOAP_ENC_PREFIX + ":Array"; static var ARRAY_TYPE_PQNAME = SOAP_ENC_PREFIX + ":arrayType"; static var MODE_IN = 0; static var MODE_OUT = 1; static var MODE_INOUT = 2; static var DISCONNECTED_FAULT_CODE = "Client.Disconnected"; }
Symbol 489 MovieClip [__Packages.mx.services.Schema] Frame 0
class mx.services.Schema { var targetNamespace, rootElement, context, schemaVersion, types, elements, elementFormDefault; function Schema (targetNamespace, rootElement, schemaContext) { this.targetNamespace = targetNamespace; this.rootElement = rootElement; context = schemaContext; schemaVersion = schemaContext.schemaVersion; types = new Object(); elements = new Object(); } static function getSchemas(xmlDocument) { var _local1 = new Array(); return(_local1); } function registerType(dtype) { if (types[dtype.name] == undefined) { types[dtype.name] = dtype; } } function registerElement(elementObj) { elements[elementObj.name] = elementObj; } function parseType(localPart) { var _local2 = rootElement.getElementsByReferencedName(localPart, schemaVersion.complexTypeQName)[0]; if (_local2 != undefined) { return(parseComplexType(_local2)); } _local2 = rootElement.getElementsByReferencedName(localPart, schemaVersion.simpleTypeQName)[0]; if (_local2 != undefined) { return(parseSimpleType(_local2)); } } function parseElement(name) { var _local3 = rootElement.getElementsByReferencedName(name, schemaVersion.elementTypeQName)[0]; if (_local3 != undefined) { var _local2 = parseElementDecl(_local3); registerElement(_local2); return(_local2); } } function parseComplexType(typeNode, isAnonymous) { var _local4 = new mx.services.DataType(); var _local8 = typeNode.attributes.name; if (!isAnonymous) { _local4.name = _local8; _local4.namespaceURI = targetNamespace; _local4.qname = new mx.services.QName(_local8, targetNamespace); registerType(_local4); } else { _local4.isAnonymous = true; } var _local6 = typeNode.childNodes; var _local7 = _local6.length; var _local5 = 0; while ((_local5 < _local7) && (context.fault == undefined)) { var _local2 = _local6[_local5]; var _local3 = _local2.getQName(); if (_local3.equals(schemaVersion.allQName)) { parseAll(_local2, _local4); } else if (_local3.equals(schemaVersion.complexContentQName)) { parseComplexContent(_local2, _local4); } else if (_local3.equals(schemaVersion.simpleContentQName)) { parseSimpleContent(_local2, _local4); } else if (_local3.equals(schemaVersion.sequenceQName)) { parseSequence(_local2, _local4); } else if (_local3.equals(schemaVersion.attributeQName)) { parseAttribute(_local2, _local4); } _local5++; } typeNode.parsed = 1; return(_local4); } function parseSimpleType(typeNode, isAnonymous) { var _local8 = new mx.services.DataType(); var _local11 = typeNode.attributes.name; if (!isAnonymous) { _local8.name = _local11; _local8.namespaceURI = targetNamespace; _local8.qname = new mx.services.QName(_local11, targetNamespace); registerType(_local8); } else { _local8.isAnonymous = true; } var _local9 = typeNode.childNodes; var _local10 = _local9.length; var _local3 = 0; while (_local3 < _local10) { var _local2 = _local9[_local3]; var _local4 = _local2.getQName(); if (_local4.equals(schemaVersion.restrictionQName)) { var _local5 = _local2.attributes.base; var _local6 = _local2.getQNameFromString(_local5); var _local7 = context.getTypeByQName(_local6); _local8.typeType = _local7.typeType; } _local3++; } typeNode.parsed = 1; return(_local8); } function parseAll(allNode, typeObj) { return(parseSequence(allNode, typeObj)); } function parseElementDecl(elementNode) { var _local2 = new mx.services.ElementDecl(); var _local6; if (elementNode.attributes.ref != undefined) { var _local11 = elementNode.attributes.ref; var _local9 = elementNode.getQNameFromString(_local11); var _local5 = context.getElementByQName(_local9); _local2.name = _local5.name; _local2.schemaType = _local5.schemaType; _local2.form = _local5.form; _local2.namespace = _local5.namespace; _local2.minOccurs = elementNode.attributes.minOccurs; _local2.maxOccurs = elementNode.attributes.maxOccurs; return(_local2); } var _local12 = elementNode.attributes.name; _local2.name = _local12; if (elementNode.attributes.type != undefined) { var _local10 = elementNode.getQNameFromString(elementNode.attributes.type, true); _local6 = context.getTypeByQName(_local10); } else { var _local8 = elementNode.getElementsByQName(schemaVersion.complexTypeQName)[0]; if (_local8 != null) { _local6 = parseComplexType(_local8, true); } else { var _local7 = elementNode.getElementsByQName(schemaVersion.simpleTypeQName)[0]; if (_local7 != null) { _local6 = parseSimpleType(_local7, true); } } } _local2.schemaType = _local6; _local2.minOccurs = elementNode.attributes.minOccurs; _local2.maxOccurs = elementNode.attributes.maxOccurs; var _local4 = elementNode.attributes.form; if (_local4 == undefined) { _local4 = elementFormDefault; } _local2.form = _local4; if (_local4 == "qualified") { _local2.namespace = targetNamespace; } else { _local2.namespace = ""; } return(_local2); } function parseAttribute(attrNode, typeObj) { var _local3 = attrNode.attributes.name; var _local6 = new Object(); _local6.name = _local3; var _local4 = attrNode.attributes.type; if (_local4 != undefined) { var _local7 = attrNode.getQNameFromString(_local4, true); var _local5 = context.getTypeByQName(_local7); if (_local5 != undefined) { if (typeObj.partTypes == undefined) { typeObj.partTypes = new Object(); } var _local2 = new Object(); _local2.isAttribute = true; _local2.schemaType = _local5; typeObj.partTypes[_local3] = _local2; } } } function parseSequence(sequenceNode, dtype) { var _local9 = sequenceNode.childNodes; var _local8 = _local9.length; var _local5 = _local8 - 1; while (_local5 > -1) { var _local7 = _local9[_local5]; var _local2 = parseElementDecl(_local7); var _local4 = _local2; if ((_local8 == 1) && (_local2.maxOccurs == "unbounded")) { dtype.name = "array"; dtype.typeType = mx.services.DataType.ARRAY_TYPE; dtype.arrayType = _local4.schemaType; dtype.itemElement = new mx.services.QName(_local2.name, _local2.namespace); } else { if (_local2.maxOccurs == "unbounded") { var _local6 = new mx.services.DataType("array", mx.services.DataType.ARRAY_TYPE); _local6.arrayType = _local4.schemaType; _local4 = _local6; _local4.itemElement = new mx.services.QName(_local2.name, _local2.namespace); } if (dtype.partTypes == undefined) { dtype.partTypes = new Object(); } dtype.partTypes[_local2.name] = _local4; } _local5--; } return(dtype); } function parseSimpleContent(contentNode, typeObj) { var _local5 = contentNode.firstChild; if (!_local5.getQName().equals(schemaVersion.extensionQName)) { return(undefined); } var _local6 = _local5.attributes.base; var _local7 = _local5.getQNameFromString(_local6, true); var _local8 = context.getTypeByQName(_local7); if (typeObj.partTypes == undefined) { typeObj.partTypes = new Object(); } typeObj.simpleValue = _local8; var _local3 = _local5.childNodes; var _local2 = 0; while (_local2 < _local3.length) { parseAttribute(_local3[_local2], typeObj); _local2++; } } function parseComplexContent(contentNode, typeObj) { var _local6 = contentNode.childNodes; var _local7 = _local6.length; var _local3 = 0; while ((_local3 < _local7) && (context.fault == undefined)) { var _local2 = _local6[_local3]; var _local4 = _local2.getQName(); if (_local4.equals(schemaVersion.restrictionQName)) { return(parseRestriction(_local2, typeObj)); } if (_local4.equals(schemaVersion.extensionQName)) { return(parseExtension(_local2, typeObj)); } _local3++; } } function parseExtension(extensionNode, typeObj) { var _local11 = extensionNode.attributes.base; var _local12 = extensionNode.getQNameFromString(_local11); var _local5 = context.getTypeByQName(_local12); typeObj.typeType = _local5.typeType; typeObj.partTypes = new Object(); for (var _local9 in _local5.partTypes) { typeObj.partTypes[_local9] = _local5.partTypes[_local9]; } var _local7 = extensionNode.childNodes; var _local8 = _local7.length; var _local2 = 0; while ((_local2 < _local8) && (context.fault == undefined)) { var _local3 = _local7[_local2]; var _local4 = _local3.getQName(); if (_local4.equals(schemaVersion.sequenceQName)) { return(parseSequence(_local3, typeObj)); } _local2++; } } function parseRestriction(restrictionNode, derivedType) { var _local13 = restrictionNode.attributes.base; var _local14 = restrictionNode.getQNameFromString(_local13); var _local12 = context.getTypeByQName(_local14); derivedType.name = "derived" + _local12.name; derivedType.typeType = _local12.typeType; derivedType.namespaceURI = _local12.namespaceURI; if (_local12.typeType == mx.services.DataType.ARRAY_TYPE) { derivedType.isEncodedArray = _local12.isEncodedArray; derivedType.itemElement = _local12.itemElement; } var _local10 = restrictionNode.getElementsByQName(schemaVersion.attributeQName); var _local9 = 0; while (_local9 < _local10.length) { var _local5 = _local10[_local9]; var _local7 = _local5.attributes.ref; if (_local7.indexOf(":") != -1) { _local7 = _local7.substring(_local7.indexOf(":") + 1); } for (var _local11 in _local5.attributes) { var _local2 = _local11; if (_local2.indexOf(":") != -1) { _local2 = _local2.substring(_local2.indexOf(":") + 1); } if (_local2 == _local7) { var _local6 = _local5.attributes[_local11]; var _local8 = _local5.getQNameFromString(_local6, true); var _local3 = context.getTypeByQName(_local8); if (_local3 != undefined) { derivedType[_local2] = _local3[_local2]; derivedType.name = _local3.name; derivedType.qname = _local3.qname; derivedType.namespaceURI = _local3.namespaceURI; } else { derivedType[_local2] = _local6; } } } _local9++; } return(derivedType); } }
Symbol 490 MovieClip [__Packages.mx.services.ElementDecl] Frame 0
class mx.services.ElementDecl { function ElementDecl () { } }
Symbol 491 MovieClip [__Packages.mx.services.WSDLDocument] Frame 0
class mx.services.WSDLDocument { var xmlDoc, targetNamespace, bindingElements, portTypeElements, messageElements, serviceElements; function WSDLDocument (document, wsdl) { xmlDoc = document; var _local8 = document.firstChild; var _local6 = wsdl.constants; var _local9 = _local8.getQName(); if (!_local9.equals(_local6.definitionsQName)) { wsdl.fault = new mx.services.SOAPFault("Server", "Faulty WSDL format", "Definitions must be the first element in a WSDL document"); return; } targetNamespace = _local8.attributes.targetNamespace; bindingElements = new Object(); portTypeElements = new Object(); messageElements = new Object(); serviceElements = new Object(); var _local3 = _local8.childNodes; var _local2 = 0; while (_local2 < _local3.length) { var _local4 = _local3[_local2].getQName(); var _local5 = _local3[_local2].attributes.name; if (_local4.equals(_local6.bindingQName)) { bindingElements[_local5] = _local3[_local2]; } else if (_local4.equals(_local6.portTypeQName)) { portTypeElements[_local5] = _local3[_local2]; } else if (_local4.equals(_local6.messageQName)) { messageElements[_local5] = _local3[_local2]; } else if (_local4.equals(_local6.serviceQName)) { serviceElements[_local5] = _local3[_local2]; } else if (_local4.equals(_local6.typesQName)) { wsdl.parseSchemas(_local3[_local2]); } _local2++; } } function getBindingElement(name) { return(bindingElements[name]); } function getMessageElement(name) { return(messageElements[name]); } function getPortTypeElement(name) { return(portTypeElements[name]); } function getServiceElement(name) { return(serviceElements[name]); } }
Symbol 492 MovieClip [__Packages.mx.services.WSDLOperation] Frame 0
class mx.services.WSDLOperation { var name, wsdl, document, input, inputMessage, output, outputMessage; function WSDLOperation (name, wsdl, document) { this.name = name; this.wsdl = wsdl; this.document = document; } function parseMessages() { var _local2 = wsdl; input = _local2.parseMessage(inputMessage, name, mx.services.SOAPConstants.MODE_IN, document); output = _local2.parseMessage(outputMessage, name, mx.services.SOAPConstants.MODE_OUT, document); } }
Symbol 493 MovieClip [__Packages.mx.services.SOAPParameter] Frame 0
class mx.services.SOAPParameter { var name, schemaType, mode, qname; function SOAPParameter (name, schemaType, mode, qname) { this.name = name; this.schemaType = schemaType; this.mode = ((mode == undefined) ? (mx.services.SOAPConstants.MODE_IN) : (mode)); this.qname = qname; } }
Symbol 494 MovieClip [__Packages.mx.services.PendingCall] Frame 0
class mx.services.PendingCall { var myCall, soapConstants, log, timeoutFunc, timerID, request, requestHeaders, _multiRefs, fault, response, __handleFault, onFault, responseHeaders, onHeaders, onResult, __handleResult, bodyNode, onHeader; function PendingCall (myCall) { this.myCall = myCall; soapConstants = myCall.soapConstants; log = myCall.log; doLazyDecoding = myCall.doLazyDecoding; doDecoding = myCall.doDecoding; } function setTimeout(timeoutMS) { timeoutFunc = function () { clearInterval(this.timerID); this.timerID = undefined; var _local2 = new mx.services.SOAPFault("Timeout", ("Timeout while calling method " + this.myCall.operationName) + "!"); this.onFault(_local2); }; timerID = setInterval(this, "timeoutFunc", timeoutMS); } function cancel() { if (timerID != undefined) { clearInterval(timerID); } cancelled = true; } function encode() { log.logInfo("Encoding SOAPCall request", mx.services.Log.VERBOSE); encodeHTTPRequest(); encodeSOAPEnvelope(); } function encodeHTTPRequest() { log.logDebug("Creating HTTP request object"); var _local2 = new XML(); _local2.ignoreWhite = true; _local2.contentType = soapConstants.contentType; _local2.xmlDecl = mx.services.SOAPConstants.XML_DECLARATION; _local2.addRequestHeader("SOAPAction", ("\"" + myCall.actionURI) + "\""); request = _local2; } function encodeSOAPEnvelope() { log.logDebug("Encoding SOAP request envelope"); var _local3 = request; var _local4 = myCall.schemaVersion; var _local5 = soapConstants.envelopeQName; var _local2 = _local3.createElement((mx.services.SOAPConstants.SOAP_ENV_PREFIX + ":") + _local5.localPart); _local2.attributes["xmlns:" + mx.services.SOAPConstants.SOAP_ENV_PREFIX] = soapConstants.ENVELOPE_URI; _local2.attributes["xmlns:" + mx.services.SOAPConstants.XML_SCHEMA_PREFIX] = _local4.xsdURI; _local2.attributes["xmlns:" + mx.services.SOAPConstants.XML_SCHEMA_INSTANCE_PREFIX] = _local4.xsiURI; _local3.appendChild(_local2); _local3.soapEnvelope = _local2; encodeSOAPHeader(); encodeSOAPBody(); } function encodeSOAPHeader() { var _local7 = request; var _local6 = request.soapEnvelope; var _local3 = requestHeaders; if (_local3.length > 0) { var _local4 = _local7.createElement((mx.services.SOAPConstants.SOAP_ENV_PREFIX + ":") + soapConstants.headerQName.localPart); _local6.appendChild(_local4); var _local5 = _local3.length; var _local2 = 0; while (_local2 < _local5) { _local4.appendChild(_local3[_local2].element); _local2++; } } } function encodeSOAPBody() { log.logDebug("Encoding SOAP request body"); var _local2 = request; var _local3 = myCall; var _local5 = _local3.operationName; var _local7 = _local3.targetNamespace; var _local6 = _local3.soapConstants; var _local9 = _local2.soapEnvelope; _local2.soapEnvelope = null; var _local8 = _local6.bodyQName; var _local4 = _local2.createElement((mx.services.SOAPConstants.SOAP_ENV_PREFIX + ":") + _local8.localPart); _local9.appendChild(_local4); if (!_local3.useLiteralBody) { if (_local3.operationStyle != mx.services.SOAPConstants.DOC_STYLE) { if ((_local3.operationStyle == mx.services.SOAPConstants.WRAPPED_STYLE) && (_local3.elementFormQualified)) { _local2.soapOperation = _local2.createElement(_local5); _local2.soapOperation.attributes.xmlns = _local7; } else { var _local10 = getStringFromQName(_local4, new mx.services.QName(_local5, _local7)); _local2.soapOperation = _local2.createElement(_local10); if (_local3.useStyle == mx.services.SOAPConstants.USE_ENCODED) { _local2.soapOperation.attributes[mx.services.SOAPConstants.SOAP_ENV_PREFIX + ":encodingStyle"] = _local6.ENCODING_URI; } } _local4.appendChild(_local2.soapOperation); } else { _local2.soapOperation = _local4; } } } function addHeader(headerElement) { log.logDebug("Adding header: " + headerElement.nodeName); if (requestHeaders == undefined) { requestHeaders = new Array(); } requestHeaders.push(new mx.services.SOAPHeader(headerElement)); } function getOrCreatePrefix(node, namespaceURI, preferredPrefix) { if ((namespaceURI == undefined) || (namespaceURI == "")) { var _local5 = node.getNamespaceForPrefix(""); if ((_local5 != undefined) && (_local5 != "")) { node.attributes.xmlns = ""; node.registerNamespace("", ""); } return(""); } var _local2 = node.getPrefixForNamespace(namespaceURI); var _local6 = false; if (_local2 == undefined) { if (preferredPrefix == undefined) { request.nscount++; _local2 = "ns" + request.nscount; } else { _local2 = preferredPrefix; } _local6 = true; } if (_local6) { if (_local2 != "") { node.attributes["xmlns:" + _local2] = namespaceURI; } else { node.attributes.xmlns = namespaceURI; } node.registerPrefix(_local2, namespaceURI); } return(_local2); } function getStringFromQName(node, qname) { var _local2 = getOrCreatePrefix(node, qname.namespaceURI); if (_local2 != "") { return((_local2 + ":") + qname.localPart); } return(qname.localPart); } function encodeParam(paramName, paramType, parentNode, qname) { var _local2; var _local4 = request; var _local12 = mx.services.SOAPConstants.SCHEMA_INSTANCE_TYPE; if (paramType.typeType == mx.services.DataType.ARRAY_TYPE) { if (myCall.useStyle == mx.services.SOAPConstants.USE_ENCODED) { _local2 = _local4.createElement((mx.services.SOAPConstants.SOAP_ENC_PREFIX + ":") + paramName); _local2.attributes["xmlns:" + mx.services.SOAPConstants.SOAP_ENC_PREFIX] = soapConstants.ENCODING_URI; parentNode.appendChild(_local2); _local2.nodeName = paramName; var _local6 = paramType.arrayType; var _local8 = mx.services.SOAPConstants.ARRAY_TYPE_PQNAME; var _local11 = getOrCreatePrefix(_local2, _local6.namespaceURI); _local2.attributes[_local8] = (_local11 + ":") + _local6.name; } else { _local2 = _local4.createElement(paramName); parentNode.appendChild(_local2); if (qname != undefined) { _local2.nodeName = getStringFromQName(_local2, qname); } } } else if (myCall.useStyle == mx.services.SOAPConstants.USE_ENCODED) { var _local9 = getStringFromQName(parentNode, new mx.services.QName(paramName, paramType.namespaceURI)); _local2 = _local4.createElement(_local9); parentNode.appendChild(_local2); _local2.nodeName = paramName; } else { _local2 = _local4.createElement(paramName); parentNode.appendChild(_local2); if (qname != undefined) { _local2.nodeName = getStringFromQName(_local2, qname); } } return(_local2); } function encodeParamValue(valueObj, valueType, elementNode, document) { var _local28 = mx.services.SOAPConstants.SCHEMA_INSTANCE_TYPE; if (valueType.typeType == mx.services.DataType.ARRAY_TYPE) { var _local20 = valueType.arrayType; var _local19 = valueObj.length; if ((myCall.useStyle == mx.services.SOAPConstants.USE_ENCODED) && (valueType.isEncodedArray == true)) { var _local11 = valueType; var _local4 = ""; var _local21 = true; while (_local11.typeType == mx.services.DataType.ARRAY_TYPE) { var _local3 = _local11.dimensions; if (_local3.length > 1) { var _local9 = 0; while (_local9 < _local3.length) { if (_local9 > 0) { _local4 = _local4 + ","; } _local4 = _local4 + _local3[_local9]; _local9++; } } else if (_local21) { _local4 = _local4 + (("[" + _local19) + "]"); _local21 = false; } else { _local4 = _local4 + "[]"; } _local11 = _local11.arrayType; } elementNode.attributes[mx.services.SOAPConstants.ARRAY_TYPE_PQNAME] = getStringFromQName(elementNode, valueType.qname) + _local4; elementNode.attributes[_local28] = mx.services.SOAPConstants.ARRAY_PQNAME; } var _local9 = 0; while (_local9 < _local19) { var _local18 = getStringFromQName(elementNode, valueType.itemElement); var _local13 = document.createElement(_local18); var _local22 = elementNode.getPrefixForNamespace(_local20.namespaceURI); elementNode.appendChild(_local13); encodeParamValue(valueObj[_local9], _local20, _local13, document); _local9++; } return(undefined); } if (myCall.useStyle == mx.services.SOAPConstants.USE_ENCODED) { var _local26; var _local29 = true; if (valueType == undefined) { valueType = valueObj.__dataType; } if ((valueType == undefined) || (valueType.typeType == mx.services.DataType.ANY_TYPE)) { var _local27 = typeof(valueObj); var _local25; if (_local27 == "number") { _local25 = "double"; } else if (_local27 == "object") { if (valueObj instanceof Date) { _local25 = "dateTime"; valueType = myCall.schemaVersion.dateTimeType; } else { valueType = mx.services.DataType.objectType; _local29 = false; } } else { _local25 = "string"; } var _local30 = getOrCreatePrefix(elementNode, myCall.schemaVersion.xsdURI); _local26 = (_local30 + ":") + _local25; } else if (!valueType.isAnonymous) { var _local30 = getOrCreatePrefix(elementNode, valueType.namespaceURI); _local26 = (_local30 + ":") + valueType.name; } if (_local29 && (_local26 != undefined)) { elementNode.attributes[_local28] = _local26; } } if (valueType.typeType == mx.services.DataType.MAP_TYPE) { encodeMap(valueObj, elementNode, document); } else { if (valueType.partTypes != undefined) { for (var _local24 in valueType.partTypes) { var _local6 = valueType.partTypes[_local24]; var _local8 = valueObj[_local24]; var _local17 = new mx.services.QName(_local24, _local6.namespace); if (_local6.isAttribute) { elementNode.attributes[_local24] = _local8; } else { var _local16 = encodeParam(_local24, _local6.schemaType, elementNode, _local17); if (_local8 != undefined) { encodeParamValue(_local8, _local6.schemaType, _local16, document); } } } if (valueType.simpleValue != undefined) { var _local33 = document.createTextNode(valueObj._value); elementNode.appendChild(_local33); } return(undefined); } if (valueType.typeType == mx.services.DataType.DATE_TYPE) { var _local34 = encodeDate(valueObj, valueType); var _local31 = document.createTextNode(_local34); elementNode.appendChild(_local31); return(undefined); } if (valueType.typeType == mx.services.DataType.OBJECT_TYPE) { for (var _local23 in valueObj) { var _local14 = valueObj[_local23]; var _local12 = _local14.__dataType; var _local15 = encodeParam(_local23, _local12, elementNode); encodeParamValue(_local14, _local12, _local15, document); } return(undefined); } var _local32 = document.createTextNode(valueObj.toString()); elementNode.appendChild(_local32); } } function setupBodyXML(bodyXML) { request.appendChild(bodyXML); } function setupParams(inputParams) { var _local9 = myCall.parameters; var _local10 = _local9.length; var _local3 = 0; while (_local3 < _local10) { var _local2 = _local9[_local3]; var _local4 = _local2.schemaType; var _local6; if (_local2.mode != mx.services.SOAPConstants.MODE_OUT) { var _local8 = encodeParam(_local2.name, _local4, request.soapOperation, _local2.qname); if (inputParams instanceof Array) { _local6 = inputParams[_local3]; } else { _local6 = inputParams[_local2.name]; } var _local5 = _local4.schemaType; if (_local5 == undefined) { _local5 = _local4; } encodeParamValue(_local6, _local5, _local8, request); } _local3++; } request.soapOperation = null; _multiRefs = null; } function encodeMap(obj, mapNode, document) { for (var _local8 in obj) { var _local2 = document.createElement("item"); var _local4 = document.createElement("key"); _local2.appendChild(_local4); encodeParamValue(_local8, undefined, _local4, document); var _local5 = document.createElement("value"); _local2.appendChild(_local5); encodeParamValue(obj[_local8], undefined, _local5, document); mapNode.appendChild(_local2); } } function encodeDate(rawDate, dateType) { var _local1 = new String(); if ((dateType.name == "dateTime") || (dateType.name == "date")) { _local1 = _local1.concat(rawDate.getUTCFullYear(), "-"); var _local2 = rawDate.getUTCMonth() + 1; if (_local2 < 10) { _local1 = _local1.concat("0"); } _local1 = _local1.concat(_local2, "-"); _local2 = rawDate.getUTCDate(); if (_local2 < 10) { _local1 = _local1.concat("0"); } _local1 = _local1.concat(_local2); } if (dateType.name == "dateTime") { _local1 = _local1.concat("T"); } if ((dateType.name == "dateTime") || (dateType.name == "time")) { var _local2 = rawDate.getUTCHours(); if (_local2 < 10) { _local1 = _local1.concat("0"); } _local1 = _local1.concat(_local2, ":"); _local2 = rawDate.getUTCMinutes(); if (_local2 < 10) { _local1 = _local1.concat("0"); } _local1 = _local1.concat(_local2, ":"); _local2 = rawDate.getUTCSeconds(); if (_local2 < 10) { _local1 = _local1.concat("0"); } _local1 = _local1.concat(_local2, "."); _local2 = rawDate.getUTCMilliseconds(); if (_local2 < 10) { _local1 = _local1.concat("00"); } else if (_local2 < 100) { _local1 = _local1.concat("0"); } _local1 = _local1.concat(_local2); } _local1 = _local1.concat("Z"); return(_local1); } function decode(assert, response, callbackMethod) { log.logInfo("Decoding SOAPCall response", mx.services.Log.VERBOSE); var _local4; if (!assert) { var _local3 = new mx.services.SOAPFault(); _local3.faultcode = "Server.Connection"; _local3.faultstring = "Unable to connect to endpoint: " + myCall.endpointURI; _local3.faultactor = myCall.targetNamespace; fault = _local3; log.logDebug("No response received from remote service"); } else { _local4 = decodeSOAPEnvelope(response); if (log.level > mx.services.Log.BRIEF) { this.response._decodeTimeMark = new Date(); this.response._decodeTime = Math.round(this.response._decodeTimeMark - this.response._parseTimeMark); log.logInfo(("Decoded SOAP response into result [" + this.response._decodeTime) + " millis]"); } } if (fault != undefined) { __handleFault(fault); onFault(fault, response); myCall.onFault(fault, response); } else { if (responseHeaders != undefined) { onHeaders(responseHeaders, response); } onResult(_local4, response); myCall.onResult(_local4, response); __handleResult(_local4); } this[callbackMethod](_local4, response); } function decodeSOAPEnvelope(response) { log.logDebug("Decoding SOAP response envelope"); var _local4; var _local11 = soapConstants; var _local7 = response.firstChild; if (_local7.getNamespaceURI() != soapConstants.ENVELOPE_URI) { var _local12 = new mx.services.SOAPFault(); _local12.faultcode = "VersionMismatch"; _local12.faultstring = (("Request implements version: " + soapConstants.ENVELOPE_URI) + " Response implements version ") + _local7.getNamespaceURI(); fault = _local12; } else { var _local13 = _local7.getPrefixForNamespace(_local11.ENVELOPE_URI); var _local10 = _local7.getPrefixForNamespace(myCall.schemaVersion.xsiURI); var _local14 = _local7.getPrefixForNamespace(myCall.schemaVersion.xsdURI); var _local6 = new mx.services.PrefixedQName(_local13, _local11.headerQName); var _local8 = new mx.services.PrefixedQName(_local13, _local11.bodyQName); var _local15 = new mx.services.PrefixedQName(_local13, _local11.faultQName); var _local5 = _local7.childNodes; var _local9 = _local5.length; var _local3 = 0; while (_local3 < _local9) { var _local2 = _local5[_local3]; if (_local2.nodeName == _local6.qualifiedName) { responseHeaders = decodeSOAPHeaders(_local2); } else if ((fault == undefined) && (_local2.nodeName == _local8.qualifiedName)) { bodyNode = _local2; if (doDecoding) { _local4 = decodeSOAPBody(_local2, _local10); } else { _local4 = _local2.childNodes; } } _local3++; } } return(_local4); } function decodeSOAPHeaders(headerNode) { log.logDebug("Decoding SOAP response headers"); var _local6 = new Array(); var _local7 = headerNode.childNodes; var _local8 = _local7.length; var _local4 = 0; while (_local4 < _local8) { var _local2 = _local7[_local4]; var _local5 = _local2.attributes.mustUnderstand; if (_local5 == "1") { if (typeof(onHeader) != "function") { var _local3 = new mx.services.SOAPFault(); _local3.faultcode = "MustUnderstand"; _local3.faultstring = "No callback for header " + _local2.nodeName; fault = _local3; break; } } _local6.push(_local2); _local4++; } return(_local6); } function decodeSOAPBody(bodyNode, xsiPrefix) { log.logDebug("Decoding SOAP response body"); var _local6; var _local8 = bodyNode.childNodes[0]; if (_local8.getLocalName() == soapConstants.faultQName.localPart) { fault = decodeSOAPFault(_local8); } else if (myCall.useStyle == mx.services.SOAPConstants.USE_ENCODED) { var _local9 = _local8.childNodes; var _local10 = _local9.length; var _local2 = 0; while (_local2 < _local10) { var _local3 = _local9[_local2]; var _local7 = getOutputParameter(_local2); var _local4 = decodeResultNode(_local3, _local7.schemaType); _local7.value = _local4; if (_local2 == 0) { _local6 = _local4; } _local2++; } } else { var _local7 = getOutputParameterByQName(_local8.getQName()); if (myCall.operationStyle == mx.services.SOAPConstants.WRAPPED_STYLE) { for (var _local11 in _local7.schemaType.partTypes) { var _local5 = _local7.schemaType.partTypes[_local11]; var _local4 = decodeResultNode(_local8.childNodes[0], _local5.schemaType); _local6 = _local4; } } else { _local6 = decodeResultNode(_local8, _local7.schemaType); _local7.value = _local6; } } return(_local6); } function decodeResultNode(resultNode, schemaType, preExistingResult) { var _local5; var _local17 = resultNode.attributes.href; if (_local17 != undefined) { resultNode = decodeRef(bodyNode, _local17); if (resultNode == undefined) { } } var _local13 = myCall.schemaVersion; for (var _local15 in resultNode.attributes) { var _local10 = resultNode.getQNameFromString(_local15); if (_local13.nilQName.equals(_local10)) { var _local7 = resultNode.attributes[_local15]; if ((_local7 == "true") || (_local7 == "1")) { return(null); } } } if ((schemaType == undefined) || (schemaType.typeType == mx.services.DataType.ANY_TYPE)) { schemaType = getTypeFromNode(resultNode); } if (schemaType.typeType == mx.services.DataType.ARRAY_TYPE) { _local5 = decodeArrayNode(resultNode, schemaType.arrayType); } else if (schemaType.typeType == mx.services.DataType.COLL_TYPE) { _local5 = decodeCollectionNode(resultNode, schemaType.arrayType, preExistingResult); } else if (schemaType.typeType == mx.services.DataType.XML_TYPE) { _local5 = resultNode; } else if (schemaType.typeType == mx.services.DataType.MAP_TYPE) { _local5 = decodeMap(resultNode); } else if (schemaType.typeType == mx.services.DataType.ROWSET_TYPE) { _local5 = decodeRowSet(resultNode); } else if (schemaType.typeType == mx.services.DataType.QBEAN_TYPE) { _local5 = decodeQueryBean(resultNode); } else if (schemaType.partTypes != undefined) { _local5 = new Object(); var _local2; for (_local2 in schemaType.partTypes) { if (schemaType.partTypes[_local2].isAttribute) { _local5[_local2] = resultNode.attributes[_local2]; } } if (schemaType.simpleValue == undefined) { var _local12 = resultNode.childNodes; _local2 = 0; while (_local2 < _local12.length) { var _local8 = _local12[_local2]; var _local6 = _local8.getLocalName(); var _local9 = schemaType.partTypes[_local6]; if (_local9 == undefined) { } var _local11 = _local5[_local6]; _local5[_local6] = decodeResultNode(_local8, _local9.schemaType, _local11); _local2++; } } else { _local5._value = decodeResultNode(resultNode, schemaType.simpleValue); } } else if (resultNode.childNodes.length == 0) { if (schemaType.typeType == mx.services.DataType.STRING_TYPE) { _local5 = ""; } else { _local5 = null; } } else if ((resultNode.childNodes.length == 1) && (resultNode.childNodes[0].nodeType == 3)) { var _local14 = resultNode.childNodes[0]; var _local18 = schemaType.typeType; if (schemaType.typeType == mx.services.DataType.BOOLEAN_TYPE) { var _local16 = _local14.nodeValue; if ((_local16.toLowerCase() == "true") || (_local16 == "1")) { _local5 = true; } else { _local5 = false; } } else if (schemaType.typeType == mx.services.DataType.DATE_TYPE) { _local5 = decodeDate(_local14.nodeValue); } else if (schemaType.typeType == mx.services.DataType.NUMBER_TYPE) { _local5 = Number(_local14.nodeValue); } else { _local5 = _local14.nodeValue; } } else { _local5 = resultNode; } return(_local5); } function decodeRef(rootNode, id) { id = id.substring(1); if (_multiRefs == null) { _multiRefs = new Object(); var _local5 = rootNode.childNodes; var _local6 = _local5.length; var _local2 = 0; while (_local2 < _local6) { var _local3 = _local5[_local2]; var _local4 = _local3.attributes.id; if (_local4 != undefined) { _multiRefs[_local4] = _local3; } _local2++; } } return(_multiRefs[id]); } function decodeArrayNode(node, arrayType) { return(((myCall.useStyle == mx.services.SOAPConstants.USE_LITERAL) ? (decodeLiteralArrayNode(node, arrayType)) : (decodeSOAPArrayNode(node, arrayType)))); } function decodeLiteralArrayNode(node, arrayType) { if (doLazyDecoding) { return(new mx.services.ArrayProxy(node.childNodes, this, arrayType)); } var _local4 = new Array(); var _local3 = node.childNodes; var _local5 = _local3.length; var _local2 = 0; while (_local2 < _local5) { _local4.push(decodeResultNode(_local3[_local2], arrayType)); _local2++; } return(_local4); } function decodeCollectionNode(node, arrayType, arrayObj) { if (arrayObj == undefined) { arrayObj = new Array(); } arrayObj.push(decodeResultNode(node, arrayType)); return(arrayObj); } function decodeSOAPArrayNode(node, arrayType) { var _local9 = new Array(); var _local4 = node.getAttributeByQName(soapConstants.soapencArrayTypeQName); if (_local4 == undefined) { var _local7 = decodeLiteralArrayNode(node, arrayType); return(_local7); } var _local2 = myCall.schemaContext.getTypeByQName(node.getQNameFromString(_local4)); if (_local2 != undefined) { arrayType = _local2; } var _local6 = new Array(1); _local6[0] = 0; var _local8 = decodeArrayContents(node.childNodes, _local6, arrayType.dimensions, 0, arrayType); return(_local8); } function decodeArrayContents(arrayMemberNodes, linearIdxHolder, dimensions, dimensionIdx, arrayType) { var _local4 = dimensions[dimensionIdx]; var _local3 = new Array(); if (dimensionIdx == (dimensions.length - 1)) { var _local2 = 0; while (_local2 < _local4) { _local3[_local2] = decodeResultNode(arrayMemberNodes[linearIdxHolder[0]++], arrayType.arrayType); _local2++; } } else { var _local2 = 0; while (_local2 < _local4) { _local3[_local2] = decodeArrayContents(arrayMemberNodes, linearIdxHolder, dimensions, dimensionIdx + 1, arrayType.arrayType); _local2++; } } return(_local3); } function decodeRowSet(rowSetNode) { var _local10 = new Array(); var _local7 = new Array(); var _local6 = new Array(); var _local9 = rowSetNode.childNodes[0].childNodes; var _local12 = _local9.length; var _local2 = 0; while (_local2 < _local12) { var _local3 = _local9[_local2]; var _local5 = _local3.attributes.type; if (_local5 == undefined) { return(undefined); } var _local4 = _local3.getQNameFromString(_local5); if (_local4 == undefined) { return(undefined); } _local7[_local2] = myCall.schemaContext.getTypeByQName(_local4); _local6[_local2] = _local3.childNodes[0].nodeValue; _local2++; } var _local8 = rowSetNode.childNodes[1].childNodes; var _local11 = _local8.length; if (doLazyDecoding) { return(new mx.services.RowSetProxy(this, _local8, _local7, _local6)); } _local2 = 0; while (_local2 < _local11) { _local10[_local2] = decodeRowSetItem(_local8[_local2], _local7, _local6); _local2++; } return(_local10); } function decodeQueryBean(beanNode) { var _local10 = new Array(); var _local4 = new Array(); var _local9 = beanNode.getElementsByLocalName("columnList")[0]; if (_local9 == undefined) { return(undefined); } var _local11 = _local9.childNodes.length; var _local3 = 0; while (_local3 < _local11) { var _local7 = _local9.childNodes[_local3]; _local4[_local3] = _local7.childNodes[0].nodeValue; _local3++; } var _local12 = beanNode.getElementsByLocalName("data")[0]; if (_local12 == undefined) { return(undefined); } var _local8 = decodeSOAPArrayNode(_local12); _local3 = 0; while (_local3 < _local8.length) { var _local6 = _local8[_local3]; var _local5 = new Object(); var _local2 = 0; while (_local2 < _local4.length) { _local5[_local4[_local2]] = _local6[_local2]; _local2++; } _local10[_local3] = _local5; _local3++; } return(_local10); } function decodeRowSetItem(itemNode, types, fields) { var _local6 = itemNode.childNodes; var _local4 = new Object(); var _local5 = types.length; var _local2 = 0; while (_local2 < _local5) { var _local3 = _local6[_local2]; _local4[fields[_local2]] = decodeResultNode(_local3, types[_local2]); _local2++; } return(_local4); } function decodeMap(node) { var _local9 = new Object(); var _local8 = node.childNodes; var _local5 = 0; while (_local5 < _local8.length) { var _local4 = _local8[_local5].childNodes; var _local6; var _local7; var _local3 = 0; while (_local3 < _local4.length) { var _local2 = _local4[_local3]; if (_local2.nodeName == "key") { _local6 = decodeResultNode(_local2); } else if (_local2.nodeName == "value") { _local7 = decodeResultNode(_local2); } _local3++; } _local9[_local6] = _local7; _local5++; } return(_local9); } function getTypeFromNode(node) { var _local3 = node.attributes["xsi:type"]; if (_local3 == undefined) { return(undefined); } var _local2 = node.getQNameFromString(_local3); if (_local2 == undefined) { return(undefined); } return(myCall.schemaContext.getTypeByQName(_local2)); } function decodeDate(rawValue) { var _local4; var _local2; var _local1; var _local8 = rawValue.indexOf("T"); var _local14 = rawValue.indexOf(":"); var _local15 = rawValue.indexOf("-"); if (_local8 != -1) { _local2 = rawValue.substring(0, _local8); _local1 = rawValue.substring(_local8 + 1); } else if (_local14 != -1) { _local1 = rawValue; } else if (_local15 != -1) { _local2 = rawValue; } if (_local2 != undefined) { var _local13 = _local2.substring(0, _local2.indexOf("-")); var _local12 = _local2.substring(5, _local2.indexOf("-", 5)); var _local9 = _local2.substring(8, 10); _local4 = new Date(Date.UTC(_local13, _local12 - 1, _local9)); } else { _local4 = new Date(); } if (_local1 != undefined) { var _local3 = "Z"; var _local6 = 0; if (_local2.length > 10) { _local3 = _local2.substring(10); } else if (_local1.length > 12) { _local3 = _local1.substring(12); } if (_local3 != "Z") { var _local7 = _local3.length; _local6 = _local3.substring(_local7 - 5, _local7 - 3); if (_local3.charAt(_local7 - 6) == "+") { _local6 = -_local6; } } var _local16 = Number(_local1.substring(0, _local1.indexOf(":"))); var _local17 = _local1.substring(3, _local1.indexOf(":", 3)); var _local10 = _local1.substring(6, _local1.indexOf(".", 6)); var _local11 = _local1.substr(9, 3); _local4.setUTCHours(_local16, _local17, _local10, _local11); _local4 = new Date(_local4.getTime() + (_local6 * 3600000)); } return(_local4); } function decodeSOAPFault(faultNode) { log.logDebug("SOAP: Decoding SOAP response fault"); var _local4 = new mx.services.SOAPFault(); _local4.element = faultNode; var _local5 = faultNode.childNodes; var _local6 = _local5.length; var _local3 = 0; while (_local3 < _local6) { var _local2 = _local5[_local3]; if (_local2.nodeName == "faultcode") { _local4.faultcode = _local2.childNodes[0].toString(); } else if (_local2.nodeName == "faultstring") { _local4.faultstring = _local2.childNodes[0].toString(); } else if (_local2.nodeName == "faultactor") { _local4.faultactor = _local2.childNodes[0].toString(); } else if (_local2.nodeName == "detail") { _local4.detail = _local2; } _local3++; } return(_local4); } function getOutputParameter(index) { return(getOutputParameters()[index]); } function getOutputParameterByName(localName) { var _local4 = getOutputParameters(); var _local5 = _local4.length; var _local2 = 0; while (_local2 < _local5) { var _local3 = _local4[_local2]; if (_local3.name == localName) { return(_local3); } _local2++; } } function getOutputParameterByQName(qname) { var _local4 = getOutputParameters(); var _local6 = _local4.length; var _local2 = 0; while (_local2 < _local6) { var _local3 = _local4[_local2].qname; if (_local3 != undefined) { if ((_local3.localPart == qname.localPart) && (_local3.namespaceURI == qname.namespaceURI)) { return(_local4[_local2]); } } _local2++; } } function getOutputParameters() { var _local5 = new Array(); var _local4 = myCall.parameters; var _local6 = _local4.length; var _local2 = 0; while (_local2 < _local6) { var _local3 = _local4[_local2]; if (_local3.mode != mx.services.SOAPConstants.MODE_IN) { _local5.push(_local3); } _local2++; } return(_local5); } function getOutputValue(index) { return(getOutputValues()[index]); } function getOutputValues() { var _local5 = new Array(); var _local4 = myCall.parameters; var _local6 = _local4.length; var _local2 = 0; while (_local2 < _local6) { var _local3 = _local4[_local2]; if (_local3.mode != mx.services.SOAPConstants.MODE_IN) { _local5.push(_local3.value); } _local2++; } return(_local5); } function getInputParameter(index) { return(getInputParameters()[index]); } function getInputParameters() { var _local5 = new Array(); var _local4 = myCall.parameters; var _local6 = _local4.length; var _local2 = 0; while (_local2 < _local6) { var _local3 = _local4[_local2]; if (_local3.mode != mx.services.SOAPConstants.MODE_OUT) { _local5.push(_local3); } _local2++; } return(_local5); } var doLazyDecoding = true; var doDecoding = true; var cancelled = false; }
Symbol 495 MovieClip [__Packages.mx.services.SOAPCall] Frame 0
class mx.services.SOAPCall { var log, operationName, targetNamespace, endpointURI, parameters, concurrency, timeout, version, schemaContext, schemaVersion, soapConstants, doLazyDecoding, doDecoding, operationStyle, useStyle, encodingStyle, actionURI, request, wsdlOperation, elementFormQualified, currentlyActive; function SOAPCall (operationName, targetNamespace, endpointURI, logObj, operationStyle, useStyle, encodingStyle, soapAction, soapVersion, schemaContext) { log = logObj; log.logInfo("Creating SOAPCall for " + operationName, mx.services.Log.VERBOSE); log.logDebug("SOAPCall endpoint URI: " + endpointURI); this.operationName = operationName; this.targetNamespace = targetNamespace; this.endpointURI = endpointURI; parameters = new Array(); concurrency = MULTIPLE_CONCURRENCY; timeout = undefined; version = ((soapVersion == undefined) ? (mx.services.SOAPConstants.DEFAULT_VERSION) : (soapVersion)); this.schemaContext = schemaContext; var _local2 = schemaContext.schemaVersion; schemaVersion = ((_local2 == undefined) ? (mx.services.SchemaVersion.getSchemaVersion(mx.services.SchemaVersion.XSD_URI_2001)) : (_local2)); soapConstants = mx.services.SOAPConstants.getConstants(version); doLazyDecoding = true; doDecoding = true; this.operationStyle = ((operationStyle == undefined) ? (mx.services.SOAPConstants.DEFAULT_OPERATION_STYLE) : (operationStyle)); this.useStyle = ((useStyle == undefined) ? (mx.services.SOAPConstants.DEFAULT_USE) : (useStyle)); this.encodingStyle = ((encodingStyle == undefined) ? (soapConstants.ENCODING_URI) : (encodingStyle)); actionURI = (((soapAction == undefined) || (soapAction == "")) ? ((this.targetNamespace + "/") + this.operationName) : (soapAction)); log.logInfo("Successfully created SOAPCall", mx.services.Log.VERBOSE); } function addParameter(soapParam) { parameters.push(soapParam); } function invoke() { if (request == undefined) { return(undefined); } return(asyncInvoke(request, "onLoad")); } function asyncInvoke(args, callbackMethod) { var callback = (new mx.services.PendingCall(this)); if (!initialized) { wsdlOperation.parseMessages(); if (wsdlOperation.input.isWrapped) { operationStyle = mx.services.SOAPConstants.WRAPPED_STYLE; targetNamespace = wsdlOperation.input.targetNamespace; elementFormQualified = wsdlOperation.input.isQualified; } if (wsdlOperation.wsdl.fault != undefined) { triggerDelayedFault(callback, wsdlOperation.wsdl.fault); return(callback); } var _local4 = wsdlOperation.input.parameters; var _local7 = _local4.length; var _local2 = 0; while (_local2 < _local7) { addParameter(_local4[_local2]); _local2++; } var _local5 = wsdlOperation.output.parameters; var _local8 = _local5.length; _local2 = 0; while (_local2 < _local8) { addParameter(_local5[_local2]); _local2++; } initialized = true; } log.logInfo("Asynchronously invoking SOAPCall: " + operationName); var _local10; if (log.level > mx.services.Log.BRIEF) { _local10 = new Date(); } if ((concurrency != MULTIPLE_CONCURRENCY) && (currentlyActive != undefined)) { if (concurrency == SINGLE_CONCURRENCY) { var _local11 = new mx.services.SOAPFault("ConcurrencyError", ("Attempt to call method " + operationName) + " while another call is pending. Either change concurrency options or avoid multiple calls."); triggerDelayedFault(callback, _local11); return(callback); } currentlyActive.cancel(); } currentlyActive = callback; if (concurrency == SINGLE_CONCURRENCY) { callback.isSingleCall = true; } callback.encode(); callback.callbackMethod = callbackMethod; callback.setupParams(args); var _local6 = new XML(); _local6.ignoreWhite = true; _local6.callback = callback; _local6._startTimeMark = _local10; _local6.onData = function (src) { var _local2 = this.callback; delete this.callback; if (_local2.isSingleCall) { _local2.myCall.currentlyActive = undefined; } if (_local2.timerID != undefined) { clearInterval(_local2.timerID); _local2.timerID = undefined; } if (_local2.cancelled) { return(undefined); } var _local3 = _local2.log.level; if (_local3 > mx.services.Log.BRIEF) { this._networkTimeMark = new Date(); this._networkTime = Math.round(this._networkTimeMark - this._startTimeMark); _local2.log.logInfo(("Received SOAP response from network [" + this._networkTime) + " millis]"); } if (src != undefined) { this.parseXML(src); this.loaded = true; if (_local3 > mx.services.Log.BRIEF) { this._parseTimeMark = new Date(); this._parseTime = Math.round(this._parseTimeMark - this._networkTimeMark); _local2.log.logInfo(("Parsed SOAP response XML [" + this._parseTime) + " millis]"); } } else { this.loaded = false; } _local2.decode.call(_local2, this.loaded, this, _local2.callbackMethod); }; callback.response = _local6; if (timeout != undefined) { callback.setTimeout(timeout); } callback.request.sendAndLoad(endpointURI, _local6, "POST"); log.logInfo("Sent SOAP Request Message", mx.services.Log.VERBOSE); return(callback); } function triggerDelayedFault(callback, fault) { callback.fault = fault; callback.handleDelayedFault = function () { clearInterval(this.timerID); this.timerID = undefined; this.__handleFault(this.fault); this.onFault(this.fault); }; callback.timerID = setInterval(function () { callback.handleDelayedFault(); }, 50); } static var MULTIPLE_CONCURRENCY = 0; static var SINGLE_CONCURRENCY = 1; static var LAST_CONCURRENCY = 2; var initialized = false; var useLiteralBody = false; }
Symbol 496 MovieClip [__Packages.mx.services.SOAPHeader] Frame 0
class mx.services.SOAPHeader { var element; function SOAPHeader (element) { this.element = element; } }
Symbol 497 MovieClip [__Packages.mx.services.PrefixedQName] Frame 0
class mx.services.PrefixedQName { var prefix, qname, qualifiedName; function PrefixedQName (prefix, qname) { this.prefix = prefix; this.qname = qname; qualifiedName = prefix; if (prefix != "") { qualifiedName = qualifiedName + ":"; } qualifiedName = qualifiedName + qname.localPart; } }
Symbol 498 MovieClip [__Packages.mx.services.ArrayProxy] Frame 0
class mx.services.ArrayProxy extends Array { var xmlNodes, sCall, arrayType, length; function ArrayProxy (xmlNodes, sCall, arrayType) { super(); this.xmlNodes = xmlNodes; this.sCall = sCall; this.arrayType = arrayType; length = xmlNodes.length; } function __resolve(index) { index = Number(index); var _local2 = sCall.decodeResultNode(xmlNodes[index], arrayType); this[index] = _local2; return(_local2); } }
Symbol 499 MovieClip [__Packages.mx.services.RowSetProxy] Frame 0
class mx.services.RowSetProxy extends Array { var sCall, xmlNodes, types, fields, length, views; function RowSetProxy (sCall, xmlNodes, types, fields) { super(); this.sCall = sCall; this.xmlNodes = xmlNodes; this.types = types; this.fields = fields; length = xmlNodes.length; views = new Array(); } function __resolve(index) { index = Number(index); if ((index < 0) || (index > length)) { return(undefined); } var _local3 = sCall.decodeRowSetItem(xmlNodes[index], types, fields); this[index] = _local3; return(_local3); } function getColumnNames() { return(fields); } }
Symbol 500 MovieClip [__Packages.mx.services.Namespace] Frame 0
class mx.services.Namespace { function Namespace () { } static function setup() { if (alreadySetup) { return(undefined); } alreadySetup = true; var _local15 = XMLNode.prototype; if (_local15.getQName == undefined) { _local15.getQName = function () { if (this.prefixedQName != undefined) { return(this.prefixedQName.qname); } var _local2 = this.nodeName; var _local3 = ""; var _local4 = _local2.indexOf(":"); if (_local4 != -1) { _local3 = _local2.substring(0, _local4); _local2 = _local2.substring(_local4 + 1); } var _local6 = this.getNamespaceForPrefix(_local3); var _local5 = new mx.services.QName(_local2, _local6); this.prefixedQName = new mx.services.PrefixedQName(_local3, _local5); return(_local5); }; } if (_local15.setChildValue == undefined) { _local15.setChildValue = function (name, value) { var _local5 = this.attributes[name]; if (_local5 != undefined) { this.attributes[name] = value; return(undefined); } var _local2 = this.getElementsByLocalName(name)[0]; if (_local2 != undefined) { _local2.firstChild.removeNode(); var _local4 = mx.services.Namespace._doc.createTextNode(value); _local2.appendChild(_local4); } }; } if (_local15.setValue == undefined) { _local15.setValue = function (value) { trace("setting value to " + value); this.firstChild.removeNode(); var _local2 = mx.services.Namespace._doc.createTextNode(value); this.appendChild(_local2); }; } if (_local15.getQualifiedName == undefined) { _local15.getQualifiedName = function () { return(this.nodeName); }; } if (_local15.getPrefix == undefined) { _local15.getPrefix = function () { if (this.prefixedQName != undefined) { return(this.prefixedQName.prefix); } var _local2 = this.nodeName; var _local3 = ""; var _local4 = _local2.indexOf(":"); if (_local4 != -1) { _local3 = _local2.substring(0, _local4); } return(_local3); }; } if (_local15.getLocalName == undefined) { _local15.getLocalName = function () { if (this.prefixedQName != undefined) { return(this.prefixedQName.qname.localPart); } var _local2 = this.nodeName; var _local3 = _local2.indexOf(":"); if (_local3 != -1) { _local2 = _local2.substring(_local3 + 1); } return(_local2); }; } if (_local15.getNamespaceURI == undefined) { _local15.getNamespaceURI = function () { return(this.getQName().namespaceURI); }; } if (_local15.loadNSMappings == undefined) { _local15.loadNSMappings = function () { if (this.mappings == undefined) { this.mappings = new Object(); } for (var _local4 in this.attributes) { var _local2 = true; if (_local4.indexOf("xmlns") == 0) { if (_local4.charAt(5) == ":") { _local2 = false; } else if (_local4.length != 5) { continue; } var _local3 = this.attributes[_local4]; if (_local2) { this.mappings["<>defaultNamespace<>"] = _local3; } else { this.mappings[_local4.substring(6)] = _local3; } } } }; } if (_local15.getPrefixForNamespace == undefined) { _local15.getPrefixForNamespace = function (namespaceURI) { var _local3; if ((namespaceURI == undefined) || (namespaceURI == "")) { return(undefined); } if (this.mappings == undefined) { this.loadNSMappings(); } for (var _local5 in this.mappings) { var _local2 = this.mappings[_local5]; if (_local2 == namespaceURI) { _local3 = _local5; break; } } if ((_local3 == undefined) && (this.parentNode != undefined)) { _local3 = this.parentNode.getPrefixForNamespace(namespaceURI); } if (_local3 == "<>defaultNamespace<>") { _local3 = ""; } return(_local3); }; } if (_local15.getNamespaceForPrefix == undefined) { _local15.getNamespaceForPrefix = function (prefix) { if (prefix == "") { prefix = "<>defaultNamespace<>"; } if (this.mappings == undefined) { this.loadNSMappings(); } var _local2 = this.mappings[prefix]; if ((_local2 == undefined) && (this.parentNode != undefined)) { _local2 = this.parentNode.getNamespaceForPrefix(prefix); } return(_local2); }; } if (_local15.getElementsByQName == undefined) { _local15.getElementsByQName = function (qname) { var _local4 = new Array(); if (this.getQName().equals(qname)) { _local4.push(this); } var _local5 = this.childNodes.length; var _local2 = 0; while (_local2 < _local5) { var _local3 = this.childNodes[_local2]; if (_local3.getQName().equals(qname)) { _local4.push(_local3); } _local2++; } return(_local4); }; } if (_local15.getElementsByLocalName == undefined) { _local15.getElementsByLocalName = function (lname) { var _local4 = new Array(); if (this.getLocalName() == lname) { _local4.push(this); } var _local5 = this.childNodes.length; var _local2 = 0; while (_local2 < _local5) { var _local3 = this.childNodes[_local2]; if (_local3.getLocalName() == lname) { _local4.push(_local3); } _local2++; } return(_local4); }; } if (_local15.getElementsByReferencedName == undefined) { _local15.getElementsByReferencedName = function (nameValue, qname) { var _local6 = new Array(); var _local12 = this.attributes.name; if (_local12 == nameValue) { var _local10 = false; if (qname != undefined) { var _local11 = this.getQName(); if ((_local11.namespaceURI == qname.namespaceURI) && (_local11.localPart == qname.localPart)) { _local10 = true; } } else { _local10 = true; } if (_local10) { _local6.push(this); } } else { var _local8 = this.childNodes.length; var _local4 = 0; while (_local4 < _local8) { var _local3 = this.childNodes[_local4].getElementsByReferencedName(nameValue, qname); var _local5 = _local3.length; var _local2 = 0; while (_local2 < _local5) { _local6.push(_local3[_local2]); _local2++; } _local4++; } } return(_local6); }; } if (_local15.getAttributeByQName == undefined) { _local15.getAttributeByQName = function (qn) { for (var _local8 in this.attributes) { var _local5 = ""; var _local2 = _local8; var _local3 = _local8.indexOf(":"); if (_local3 != -1) { _local5 = _local8.substring(0, _local3); _local2 = _local8.substring(_local3 + 1); } var _local4 = this.getNamespaceForPrefix(_local5); var _local7 = new mx.services.QName(_local4, _local2); if ((_local2 == qn.localPart) && (_local4 == qn.namespaceURI)) { return(this.attributes[_local8]); } } }; } if (_local15.getQNameFromString == undefined) { _local15.getQNameFromString = function (prefixedName, useDefault) { var _local3 = prefixedName.indexOf(":"); var _local4 = ""; if ((_local3 == -1) && (!useDefault)) { return(new mx.services.QName(prefixedName)); } _local4 = prefixedName.substring(0, _local3); prefixedName = prefixedName.substring(_local3 + 1); return(new mx.services.QName(prefixedName, this.getNamespaceForPrefix(_local4))); }; } if (_local15.registerNamespace == undefined) { _local15.registerNamespace = function (prefix, namespaceURI) { if (this.mappings == undefined) { this.loadNSMappings(); } if (prefix == "") { prefix = "<>defaultNamespace<>"; } if (this.mappings[prefix] == undefined) { this.mappings[prefix] = namespaceURI; } }; } if (_local15.unregisterNamespace == undefined) { _local15.unregisterNamespace = function (prefix) { if (this.mappings != undefined) { if (prefix == "") { prefix = "<>defaultNamespace<>"; } this.mappings[prefix] = undefined; } }; } _local15 = XML.prototype; _local15.nscount = 0; _local15.getElementsByQName = function (qname) { return(this.firstChild.getElementsByQName(qname)); }; _local15.getElementsByReferencedName = function (tname, qname) { var _local2 = tname.indexOf(":"); var _local3 = ((_local2 != -1) ? (tname.substring(_local2 + 1)) : (tname)); return(this.firstChild.getElementsByReferencedName(_local3, qname)); }; _local15.getElementsByLocalName = function (lname) { return(this.firstChild.getElementsByLocalName(lname)); }; } static var alreadySetup = false; static var _doc = new XML(); }
Symbol 134 MovieClip [__Packages.mx.core.UIObject] Frame 0
class mx.core.UIObject extends MovieClip { var _width, _height, _x, _y, _parent, _minHeight, _minWidth, _visible, dispatchEvent, _xscale, _yscale, methodTable, onEnterFrame, tfList, __width, __height, moveTo, lineTo, createTextField, attachMovie, buildDepthTable, findNextAvailableDepth, idNames, childrenCreated, _name, createAccessibilityImplementation, _endInit, validateNow, hasOwnProperty, initProperties, stylecache, className, ignoreClassStyleDeclaration, _tf, fontFamily, fontSize, color, marginLeft, marginRight, fontStyle, fontWeight, textAlign, textIndent, textDecoration, embedFonts, styleName, enabled; function UIObject () { super(); constructObject(); } function get width() { return(_width); } function get height() { return(_height); } function get left() { return(_x); } function get x() { return(_x); } function get top() { return(_y); } function get y() { return(_y); } function get right() { return(_parent.width - (_x + width)); } function get bottom() { return(_parent.height - (_y + height)); } function getMinHeight(Void) { return(_minHeight); } function setMinHeight(h) { _minHeight = h; } function get minHeight() { return(getMinHeight()); } function set minHeight(h) { setMinHeight(h); //return(minHeight); } function getMinWidth(Void) { return(_minWidth); } function setMinWidth(w) { _minWidth = w; } function get minWidth() { return(getMinWidth()); } function set minWidth(w) { setMinWidth(w); //return(minWidth); } function setVisible(x, noEvent) { if (x != _visible) { _visible = x; if (noEvent != true) { dispatchEvent({type:(x ? "reveal" : "hide")}); } } } function get visible() { return(_visible); } function set visible(x) { setVisible(x, false); //return(visible); } function get scaleX() { return(_xscale); } function set scaleX(x) { _xscale = x; //return(scaleX); } function get scaleY() { return(_yscale); } function set scaleY(y) { _yscale = y; //return(scaleY); } function doLater(obj, fn) { if (methodTable == undefined) { methodTable = new Array(); } methodTable.push({obj:obj, fn:fn}); onEnterFrame = doLaterDispatcher; } function doLaterDispatcher(Void) { delete onEnterFrame; if (invalidateFlag) { redraw(); } var _local3 = methodTable; methodTable = new Array(); if (_local3.length > 0) { var _local2; while (_local2 = _local3.shift() , _local2 != undefined) { _local2.obj[_local2.fn](); } } } function cancelAllDoLaters(Void) { delete onEnterFrame; methodTable = new Array(); } function invalidate(Void) { invalidateFlag = true; onEnterFrame = doLaterDispatcher; } function invalidateStyle(Void) { invalidate(); } function redraw(bAlways) { if (invalidateFlag || (bAlways)) { invalidateFlag = false; var _local2; for (_local2 in tfList) { tfList[_local2].draw(); } draw(); dispatchEvent({type:"draw"}); } } function draw(Void) { } function move(x, y, noEvent) { var _local3 = _x; var _local2 = _y; _x = x; _y = y; if (noEvent != true) { dispatchEvent({type:"move", oldX:_local3, oldY:_local2}); } } function setSize(w, h, noEvent) { var _local3 = __width; var _local2 = __height; __width = w; __height = h; size(); if (noEvent != true) { dispatchEvent({type:"resize", oldWidth:_local3, oldHeight:_local2}); } } function size(Void) { _width = __width; _height = __height; } function drawRect(x1, y1, x2, y2) { moveTo(x1, y1); lineTo(x2, y1); lineTo(x2, y2); lineTo(x1, y2); lineTo(x1, y1); } function createLabel(name, depth, text) { createTextField(name, depth, 0, 0, 0, 0); var _local2 = this[name]; _local2._color = textColorList; _local2._visible = false; _local2.__text = text; if (tfList == undefined) { tfList = new Object(); } tfList[name] = _local2; _local2.invalidateStyle(); invalidate(); _local2.styleName = this; return(_local2); } function createObject(linkageName, id, depth, initobj) { return(attachMovie(linkageName, id, depth, initobj)); } function createClassObject(className, id, depth, initobj) { var _local3 = className.symbolName == undefined; if (_local3) { Object.registerClass(className.symbolOwner.symbolName, className); } var _local4 = mx.core.UIObject(createObject(className.symbolOwner.symbolName, id, depth, initobj)); if (_local3) { Object.registerClass(className.symbolOwner.symbolName, className.symbolOwner); } return(_local4); } function createEmptyObject(id, depth) { return(createClassObject(mx.core.UIObject, id, depth)); } function destroyObject(id) { var _local2 = this[id]; if (_local2.getDepth() < 0) { var _local4 = buildDepthTable(); var _local5 = findNextAvailableDepth(0, _local4, "up"); var _local3 = _local5; _local2.swapDepths(_local3); } _local2.removeMovieClip(); delete this[id]; } function getSkinIDName(tag) { return(idNames[tag]); } function setSkin(tag, linkageName, initObj) { if (_global.skinRegistry[linkageName] == undefined) { mx.skins.SkinElement.registerElement(linkageName, mx.skins.SkinElement); } return(createObject(linkageName, getSkinIDName(tag), tag, initObj)); } function createSkin(tag) { var _local2 = getSkinIDName(tag); createEmptyObject(_local2, tag); return(this[_local2]); } function createChildren(Void) { } function _createChildren(Void) { createChildren(); childrenCreated = true; } function constructObject(Void) { if (_name == undefined) { return(undefined); } init(); _createChildren(); createAccessibilityImplementation(); _endInit(); if (validateNow) { redraw(true); } else { invalidate(); } } function initFromClipParameters(Void) { var _local4 = false; var _local2; for (_local2 in clipParameters) { if (hasOwnProperty(_local2)) { _local4 = true; this["def_" + _local2] = this[_local2]; delete this[_local2]; } } if (_local4) { for (_local2 in clipParameters) { var _local3 = this["def_" + _local2]; if (_local3 != undefined) { this[_local2] = _local3; } } } } function init(Void) { __width = _width; __height = _height; if (initProperties == undefined) { initFromClipParameters(); } else { initProperties(); } if (_global.cascadingStyles == true) { stylecache = new Object(); } } function getClassStyleDeclaration(Void) { var _local4 = this; var _local3 = className; while (_local3 != undefined) { if (ignoreClassStyleDeclaration[_local3] == undefined) { if (_global.styles[_local3] != undefined) { return(_global.styles[_local3]); } } _local4 = _local4.__proto__; _local3 = _local4.className; } } function setColor(color) { } function __getTextFormat(tf, bAll) { var _local8 = stylecache.tf; if (_local8 != undefined) { var _local3; for (_local3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) { if (tf[_local3] == undefined) { tf[_local3] = _local8[_local3]; } } } return(false); } var _local6 = false; for (var _local3 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local3])) { if (tf[_local3] == undefined) { var _local5 = _tf[_local3]; if (_local5 != undefined) { tf[_local3] = _local5; } else if ((_local3 == "font") && (fontFamily != undefined)) { tf[_local3] = fontFamily; } else if ((_local3 == "size") && (fontSize != undefined)) { tf[_local3] = fontSize; } else if ((_local3 == "color") && (color != undefined)) { tf[_local3] = color; } else if ((_local3 == "leftMargin") && (marginLeft != undefined)) { tf[_local3] = marginLeft; } else if ((_local3 == "rightMargin") && (marginRight != undefined)) { tf[_local3] = marginRight; } else if ((_local3 == "italic") && (fontStyle != undefined)) { tf[_local3] = fontStyle == _local3; } else if ((_local3 == "bold") && (fontWeight != undefined)) { tf[_local3] = fontWeight == _local3; } else if ((_local3 == "align") && (textAlign != undefined)) { tf[_local3] = textAlign; } else if ((_local3 == "indent") && (textIndent != undefined)) { tf[_local3] = textIndent; } else if ((_local3 == "underline") && (textDecoration != undefined)) { tf[_local3] = textDecoration == _local3; } else if ((_local3 == "embedFonts") && (embedFonts != undefined)) { tf[_local3] = embedFonts; } else { _local6 = true; } } } } if (_local6) { var _local9 = styleName; if (_local9 != undefined) { if (typeof(_local9) != "string") { _local6 = _local9.__getTextFormat(tf, true, this); } else if (_global.styles[_local9] != undefined) { _local6 = _global.styles[_local9].__getTextFormat(tf, true, this); } } } if (_local6) { var _local10 = getClassStyleDeclaration(); if (_local10 != undefined) { _local6 = _local10.__getTextFormat(tf, true, this); } } if (_local6) { if (_global.cascadingStyles) { if (_parent != undefined) { _local6 = _parent.__getTextFormat(tf, false); } } } if (_local6) { _local6 = _global.style.__getTextFormat(tf, true, this); } return(_local6); } function _getTextFormat(Void) { var _local2 = stylecache.tf; if (_local2 != undefined) { return(_local2); } _local2 = new TextFormat(); __getTextFormat(_local2, true); stylecache.tf = _local2; if (enabled == false) { var _local3 = getStyle("disabledColor"); _local2.color = _local3; } return(_local2); } function getStyleName(Void) { var _local2 = styleName; if (_local2 != undefined) { if (typeof(_local2) != "string") { return(_local2.getStyleName()); } return(_local2); } if (_parent != undefined) { return(_parent.getStyleName()); } return(undefined); } function getStyle(styleProp) { var _local3; _global.getStyleCounter++; if (this[styleProp] != undefined) { return(this[styleProp]); } var _local6 = styleName; if (_local6 != undefined) { if (typeof(_local6) != "string") { _local3 = _local6.getStyle(styleProp); } else { var _local7 = _global.styles[_local6]; _local3 = _local7.getStyle(styleProp); } } if (_local3 != undefined) { return(_local3); } var _local7 = getClassStyleDeclaration(); if (_local7 != undefined) { _local3 = _local7[styleProp]; } if (_local3 != undefined) { return(_local3); } if (_global.cascadingStyles) { if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (mx.styles.StyleManager.isColorStyle(styleProp))) { var _local5 = stylecache; if (_local5 != undefined) { if (_local5[styleProp] != undefined) { return(_local5[styleProp]); } } if (_parent != undefined) { _local3 = _parent.getStyle(styleProp); } else { _local3 = _global.style[styleProp]; } if (_local5 != undefined) { _local5[styleProp] = _local3; } return(_local3); } } if (_local3 == undefined) { _local3 = _global.style[styleProp]; } return(_local3); } static function mergeClipParameters(o, p) { for (var _local3 in p) { o[_local3] = p[_local3]; } return(true); } static var symbolName = "UIObject"; static var symbolOwner = mx.core.UIObject; static var version = "2.0.2.127"; static var textColorList = {color:1, disabledColor:1}; var invalidateFlag = false; var lineWidth = 1; var lineColor = 0; var tabEnabled = false; var clipParameters = {visible:1, minHeight:1, minWidth:1, maxHeight:1, maxWidth:1, preferredHeight:1, preferredWidth:1}; }
Symbol 184 MovieClip [__Packages.mx.skins.SkinElement] Frame 0
class mx.skins.SkinElement extends MovieClip { var _visible, _x, _y, _width, _height; function SkinElement () { super(); } static function registerElement(name, className) { Object.registerClass(name, ((className == undefined) ? (mx.skins.SkinElement) : (className))); _global.skinRegistry[name] = true; } function __set__visible(visible) { _visible = visible; } function move(x, y) { _x = x; _y = y; } function setSize(w, h) { _width = w; _height = h; } }
Symbol 185 MovieClip [__Packages.mx.styles.CSSTextStyles] Frame 0
class mx.styles.CSSTextStyles { function CSSTextStyles () { } static function addTextStyles(o, bColor) { o.addProperty("textAlign", function () { return(this._tf.align); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.align = x; }); o.addProperty("fontWeight", function () { return(((this._tf.bold != undefined) ? ((this._tf.bold ? "bold" : "none")) : undefined)); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.bold = x == "bold"; }); if (bColor) { o.addProperty("color", function () { return(this._tf.color); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.color = x; }); } o.addProperty("fontFamily", function () { return(this._tf.font); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.font = x; }); o.addProperty("textIndent", function () { return(this._tf.indent); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.indent = x; }); o.addProperty("fontStyle", function () { return(((this._tf.italic != undefined) ? ((this._tf.italic ? "italic" : "none")) : undefined)); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.italic = x == "italic"; }); o.addProperty("marginLeft", function () { return(this._tf.leftMargin); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.leftMargin = x; }); o.addProperty("marginRight", function () { return(this._tf.rightMargin); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.rightMargin = x; }); o.addProperty("fontSize", function () { return(this._tf.size); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.size = x; }); o.addProperty("textDecoration", function () { return(((this._tf.underline != undefined) ? ((this._tf.underline ? "underline" : "none")) : undefined)); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.underline = x == "underline"; }); o.addProperty("embedFonts", function () { return(this._tf.embedFonts); }, function (x) { if (this._tf == undefined) { this._tf = new TextFormat(); } this._tf.embedFonts = x; }); } }
Symbol 187 MovieClip [__Packages.mx.styles.CSSStyleDeclaration] Frame 0
class mx.styles.CSSStyleDeclaration { var _tf; function CSSStyleDeclaration () { } function __getTextFormat(tf, bAll) { var _local5 = false; if (_tf != undefined) { var _local2; for (_local2 in mx.styles.StyleManager.TextFormatStyleProps) { if (bAll || (mx.styles.StyleManager.TextFormatStyleProps[_local2])) { if (tf[_local2] == undefined) { var _local3 = _tf[_local2]; if (_local3 != undefined) { tf[_local2] = _local3; } else { _local5 = true; } } } } } else { _local5 = true; } return(_local5); } function getStyle(styleProp) { var _local2 = this[styleProp]; var _local3 = mx.styles.StyleManager.getColorName(_local2); return(((_local3 == undefined) ? (_local2) : (_local3))); } static function classConstruct() { mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype, true); return(true); } static var classConstructed = classConstruct(); static var CSSTextStylesDependency = mx.styles.CSSTextStyles; }
Symbol 186 MovieClip [__Packages.mx.styles.StyleManager] Frame 0
class mx.styles.StyleManager { function StyleManager () { } static function registerInheritingStyle(styleName) { inheritingStyles[styleName] = true; } static function isInheritingStyle(styleName) { return(inheritingStyles[styleName] == true); } static function registerColorStyle(styleName) { colorStyles[styleName] = true; } static function isColorStyle(styleName) { return(colorStyles[styleName] == true); } static function registerColorName(colorName, colorValue) { colorNames[colorName] = colorValue; } static function isColorName(colorName) { return(colorNames[colorName] != undefined); } static function getColorName(colorName) { return(colorNames[colorName]); } static var inheritingStyles = {color:true, direction:true, fontFamily:true, fontSize:true, fontStyle:true, fontWeight:true, textAlign:true, textIndent:true}; static var colorStyles = {barColor:true, trackColor:true, borderColor:true, buttonColor:true, color:true, dateHeaderColor:true, dateRollOverColor:true, disabledColor:true, fillColor:true, highlightColor:true, scrollTrackColor:true, selectedDateColor:true, shadowColor:true, strokeColor:true, symbolBackgroundColor:true, symbolBackgroundDisabledColor:true, symbolBackgroundPressedColor:true, symbolColor:true, symbolDisabledColor:true, themeColor:true, todayIndicatorColor:true, shadowCapColor:true, borderCapColor:true, focusColor:true}; static var colorNames = {black:0, white:16777215, red:16711680, green:65280, blue:255, magenta:16711935, yellow:16776960, cyan:65535, haloGreen:8453965, haloBlue:2881013, haloOrange:16761344}; static var TextFormatStyleProps = {font:true, size:true, color:true, leftMargin:false, rightMargin:false, italic:true, bold:true, align:true, indent:true, underline:false, embedFonts:false}; static var TextStyleMap = {textAlign:true, fontWeight:true, color:true, fontFamily:true, textIndent:true, fontStyle:true, lineHeight:true, marginLeft:true, marginRight:true, fontSize:true, textDecoration:true, embedFonts:true}; }
Symbol 135 MovieClip [__Packages.mx.core.UIComponent] Frame 0
class mx.core.UIComponent extends mx.core.UIObject { var __width, __height, invalidate, stylecache, removeEventListener, dispatchEvent, drawFocus, addEventListener, _xscale, _yscale, _focusrect, watch, enabled; function UIComponent () { super(); } function get width() { return(__width); } function get height() { return(__height); } function setVisible(x, noEvent) { super.setVisible(x, noEvent); } function enabledChanged(id, oldValue, newValue) { setEnabled(newValue); invalidate(); delete stylecache.tf; return(newValue); } function setEnabled(enabled) { invalidate(); } function getFocus() { var selFocus = Selection.getFocus(); return(((selFocus === null) ? null : (eval (selFocus)))); } function setFocus() { Selection.setFocus(this); } function getFocusManager() { var _local2 = this; while (_local2 != undefined) { if (_local2.focusManager != undefined) { return(_local2.focusManager); } _local2 = _local2._parent; } return(undefined); } function onKillFocus(newFocus) { removeEventListener("keyDown", this); removeEventListener("keyUp", this); dispatchEvent({type:"focusOut"}); drawFocus(false); } function onSetFocus(oldFocus) { addEventListener("keyDown", this); addEventListener("keyUp", this); dispatchEvent({type:"focusIn"}); if (getFocusManager().bDrawFocus != false) { drawFocus(true); } } function findFocusInChildren(o) { if (o.focusTextField != undefined) { return(o.focusTextField); } if (o.tabEnabled == true) { return(o); } return(undefined); } function findFocusFromObject(o) { if (o.tabEnabled != true) { if (o._parent == undefined) { return(undefined); } if (o._parent.tabEnabled == true) { o = o._parent; } else if (o._parent.tabChildren) { o = findFocusInChildren(o._parent); } else { o = findFocusFromObject(o._parent); } } return(o); } function pressFocus() { var _local3 = findFocusFromObject(this); var _local2 = getFocus(); if (_local3 != _local2) { _local2.drawFocus(false); if (getFocusManager().bDrawFocus != false) { _local3.drawFocus(true); } } } function releaseFocus() { var _local2 = findFocusFromObject(this); if (_local2 != getFocus()) { _local2.setFocus(); } } function isParent(o) { while (o != undefined) { if (o == this) { return(true); } o = o._parent; } return(false); } function size() { } function init() { super.init(); _xscale = 100; _yscale = 100; _focusrect = _global.useFocusRect == false; watch("enabled", enabledChanged); if (enabled == false) { setEnabled(false); } } function dispatchValueChangedEvent(value) { dispatchEvent({type:"valueChanged", value:value}); } static var symbolName = "UIComponent"; static var symbolOwner = mx.core.UIComponent; static var version = "2.0.2.127"; static var kStretch = 5000; var focusEnabled = true; var tabEnabled = true; var origBorderStyles = {themeColor:16711680}; var clipParameters = {}; static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.core.UIComponent.prototype.clipParameters, mx.core.UIObject.prototype.clipParameters); }
Symbol 501 MovieClip [__Packages.mx.controls.scrollClasses.ScrollBar] Frame 0
class mx.controls.scrollClasses.ScrollBar extends mx.core.UIComponent { var isScrolling, scrollTrack_mc, scrollThumb_mc, __height, tabEnabled, focusEnabled, boundingBox_mc, setSkin, upArrow_mc, _minHeight, _minWidth, downArrow_mc, createObject, createClassObject, enabled, _height, dispatchEvent, minMode, maxMode, plusMode, minusMode, _parent, getStyle, scrolling, _ymouse; function ScrollBar () { super(); } function get scrollPosition() { return(_scrollPosition); } function set scrollPosition(pos) { _scrollPosition = pos; if (isScrolling != true) { pos = Math.min(pos, maxPos); pos = Math.max(pos, minPos); var _local3 = (((pos - minPos) * (scrollTrack_mc.height - scrollThumb_mc._height)) / (maxPos - minPos)) + scrollTrack_mc.top; scrollThumb_mc.move(0, _local3); } //return(scrollPosition); } function get pageScrollSize() { return(largeScroll); } function set pageScrollSize(lScroll) { largeScroll = lScroll; //return(pageScrollSize); } function set lineScrollSize(sScroll) { smallScroll = sScroll; //return(lineScrollSize); } function get lineScrollSize() { return(smallScroll); } function get virtualHeight() { return(__height); } function init(Void) { super.init(); _scrollPosition = 0; tabEnabled = false; focusEnabled = false; boundingBox_mc._visible = false; boundingBox_mc._width = (boundingBox_mc._height = 0); } function createChildren(Void) { if (scrollTrack_mc == undefined) { setSkin(skinIDTrack, scrollTrackName); } scrollTrack_mc.visible = false; var _local3 = new Object(); _local3.enabled = false; _local3.preset = mx.controls.SimpleButton.falseDisabled; _local3.initProperties = 0; _local3.autoRepeat = true; _local3.tabEnabled = false; var _local2; if (upArrow_mc == undefined) { _local2 = createButton(upArrowName, "upArrow_mc", skinIDUpArrow, _local3); } _local2.buttonDownHandler = onUpArrow; _local2.clickHandler = onScrollChanged; _minHeight = _local2.height; _minWidth = _local2.width; if (downArrow_mc == undefined) { _local2 = createButton(downArrowName, "downArrow_mc", skinIDDownArrow, _local3); } _local2.buttonDownHandler = onDownArrow; _local2.clickHandler = onScrollChanged; _minHeight = _minHeight + _local2.height; } function createButton(linkageName, id, skinID, o) { if (skinID == skinIDUpArrow) { o.falseUpSkin = upArrowUpName; o.falseDownSkin = upArrowDownName; o.falseOverSkin = upArrowOverName; } else { o.falseUpSkin = downArrowUpName; o.falseDownSkin = downArrowDownName; o.falseOverSkin = downArrowOverName; } var _local3 = createObject(linkageName, id, skinID, o); this[id].visible = false; this[id].useHandCursor = false; return(_local3); } function createThumb(Void) { var _local2 = new Object(); _local2.validateNow = true; _local2.tabEnabled = false; _local2.leftSkin = thumbTopName; _local2.middleSkin = thumbMiddleName; _local2.rightSkin = thumbBottomName; _local2.gripSkin = thumbGripName; createClassObject(mx.controls.scrollClasses.ScrollThumb, "scrollThumb_mc", skinIDThumb, _local2); } function setScrollProperties(pSize, mnPos, mxPos, ls) { var _local4; var _local2 = scrollTrack_mc; pageSize = pSize; largeScroll = (((ls != undefined) && (ls > 0)) ? (ls) : (pSize)); minPos = Math.max(mnPos, 0); maxPos = Math.max(mxPos, 0); _scrollPosition = Math.max(minPos, _scrollPosition); _scrollPosition = Math.min(maxPos, _scrollPosition); if (((maxPos - minPos) > 0) && (enabled)) { var _local5 = _scrollPosition; if (!initializing) { upArrow_mc.enabled = true; downArrow_mc.enabled = true; } _local2.onPress = (_local2.onDragOver = startTrackScroller); _local2.onRelease = releaseScrolling; _local2.onDragOut = (_local2.stopScrolling = stopScrolling); _local2.onReleaseOutside = releaseScrolling; _local2.useHandCursor = false; if (scrollThumb_mc == undefined) { createThumb(); } var _local3 = scrollThumb_mc; if (scrollTrackOverName.length > 0) { _local2.onRollOver = trackOver; _local2.onRollOut = trackOut; } _local4 = (pageSize / ((maxPos - minPos) + pageSize)) * _local2.height; if (_local4 < _local3.minHeight) { if (_local2.height < _local3.minHeight) { _local3.__set__visible(false); } else { _local4 = _local3.minHeight; _local3.__set__visible(true); _local3.setSize(_minWidth, _local3.minHeight + 0); } } else { _local3.__set__visible(true); _local3.setSize(_minWidth, _local4); } _local3.setRange(upArrow_mc.__get__height() + 0, (virtualHeight - downArrow_mc.__get__height()) - _local3.__get__height(), minPos, maxPos); _local5 = Math.min(_local5, maxPos); scrollPosition = (Math.max(_local5, minPos)); } else { scrollThumb_mc.__set__visible(false); if (!initializing) { upArrow_mc.enabled = false; downArrow_mc.enabled = false; } delete _local2.onPress; delete _local2.onDragOver; delete _local2.onRelease; delete _local2.onDragOut; delete _local2.onRollOver; delete _local2.onRollOut; delete _local2.onReleaseOutside; } if (initializing) { scrollThumb_mc.__set__visible(false); } } function setEnabled(enabledFlag) { super.setEnabled(enabledFlag); setScrollProperties(pageSize, minPos, maxPos, largeScroll); } function draw(Void) { if (initializing) { initializing = false; scrollTrack_mc.visible = true; upArrow_mc.__set__visible(true); downArrow_mc.__set__visible(true); } size(); } function size(Void) { if (_height == 1) { return(undefined); } if (upArrow_mc == undefined) { return(undefined); } var _local3 = upArrow_mc.__get__height(); var _local2 = downArrow_mc.__get__height(); upArrow_mc.move(0, 0); var _local4 = scrollTrack_mc; _local4._y = _local3; _local4._height = (virtualHeight - _local3) - _local2; downArrow_mc.move(0, virtualHeight - _local2); setScrollProperties(pageSize, minPos, maxPos, largeScroll); } function dispatchScrollEvent(detail) { dispatchEvent({type:"scroll", detail:detail}); } function isScrollBarKey(k) { if (k == 36) { if (scrollPosition != 0) { scrollPosition = (0); dispatchScrollEvent(minMode); } return(true); } if (k == 35) { if (scrollPosition < maxPos) { scrollPosition = (maxPos); dispatchScrollEvent(maxMode); } return(true); } return(false); } function scrollIt(inc, mode) { var _local3 = smallScroll; if (inc != "Line") { _local3 = ((largeScroll == 0) ? (pageSize) : (largeScroll)); } var _local2 = _scrollPosition + (mode * _local3); if (_local2 > maxPos) { _local2 = maxPos; } else if (_local2 < minPos) { _local2 = minPos; } if (scrollPosition != _local2) { scrollPosition = (_local2); var _local4 = ((mode < 0) ? (minusMode) : (plusMode)); dispatchScrollEvent(inc + _local4); } } function startTrackScroller(Void) { _parent.pressFocus(); if (_parent.scrollTrackDownName.length > 0) { if (_parent.scrollTrackDown_mc == undefined) { _parent.setSkin(skinIDTrackDown, scrollTrackDownName); } else { _parent.scrollTrackDown_mc.visible = true; } } _parent.trackScroller(); _parent.scrolling = setInterval(_parent, "scrollInterval", getStyle("repeatDelay"), "Page", -1); } function scrollInterval(inc, mode) { clearInterval(scrolling); if (inc == "Page") { trackScroller(); } else { scrollIt(inc, mode); } scrolling = setInterval(this, "scrollInterval", getStyle("repeatInterval"), inc, mode); } function trackScroller(Void) { if ((scrollThumb_mc._y + scrollThumb_mc.__get__height()) < _ymouse) { scrollIt("Page", 1); } else if (scrollThumb_mc._y > _ymouse) { scrollIt("Page", -1); } } function dispatchScrollChangedEvent(Void) { dispatchEvent({type:"scrollChanged"}); } function stopScrolling(Void) { clearInterval(_parent.scrolling); _parent.scrollTrackDown_mc.visible = false; } function releaseScrolling(Void) { _parent.releaseFocus(); stopScrolling(); _parent.dispatchScrollChangedEvent(); } function trackOver(Void) { if (_parent.scrollTrackOverName.length > 0) { if (_parent.scrollTrackOver_mc == undefined) { _parent.setSkin(skinIDTrackOver, scrollTrackOverName); } else { _parent.scrollTrackOver_mc.visible = true; } } } function trackOut(Void) { _parent.scrollTrackOver_mc.visible = false; } function onUpArrow(Void) { _parent.scrollIt("Line", -1); } function onDownArrow(Void) { _parent.scrollIt("Line", 1); } function onScrollChanged(Void) { _parent.dispatchScrollChangedEvent(); } static var symbolOwner = mx.core.UIComponent; var className = "ScrollBar"; var minPos = 0; var maxPos = 0; var pageSize = 0; var largeScroll = 0; var smallScroll = 1; var _scrollPosition = 0; var scrollTrackName = "ScrollTrack"; var scrollTrackOverName = ""; var scrollTrackDownName = ""; var upArrowName = "BtnUpArrow"; var upArrowUpName = "ScrollUpArrowUp"; var upArrowOverName = "ScrollUpArrowOver"; var upArrowDownName = "ScrollUpArrowDown"; var downArrowName = "BtnDownArrow"; var downArrowUpName = "ScrollDownArrowUp"; var downArrowOverName = "ScrollDownArrowOver"; var downArrowDownName = "ScrollDownArrowDown"; var thumbTopName = "ScrollThumbTopUp"; var thumbMiddleName = "ScrollThumbMiddleUp"; var thumbBottomName = "ScrollThumbBottomUp"; var thumbGripName = "ScrollThumbGripUp"; static var skinIDTrack = 0; static var skinIDTrackOver = 1; static var skinIDTrackDown = 2; static var skinIDUpArrow = 3; static var skinIDDownArrow = 4; static var skinIDThumb = 5; var idNames = new Array("scrollTrack_mc", "scrollTrackOver_mc", "scrollTrackDown_mc", "upArrow_mc", "downArrow_mc"); var clipParameters = {minPos:1, maxPos:1, pageSize:1, scrollPosition:1, lineScrollSize:1, pageScrollSize:1, visible:1, enabled:1}; static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.scrollClasses.ScrollBar.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters); var initializing = true; }
Symbol 199 MovieClip [__Packages.mx.skins.Border] Frame 0
class mx.skins.Border extends mx.core.UIObject { function Border () { super(); } function init(Void) { super.init(); } static var symbolName = "Border"; static var symbolOwner = mx.skins.Border; var className = "Border"; var tagBorder = 0; var idNames = new Array("border_mc"); }
Symbol 502 MovieClip [__Packages.mx.skins.CustomBorder] Frame 0
class mx.skins.CustomBorder extends mx.skins.Border { var __width, __height, l_mc, setSkin, minHeight, minWidth, m_mc, r_mc; function CustomBorder () { super(); } function get width() { return(__width); } function get height() { return(__height); } function init(Void) { super.init(); } function createChildren(Void) { } function draw(Void) { if (l_mc == undefined) { var _local2 = setSkin(tagL, leftSkin); if (horizontal) { minHeight = l_mc._height; minWidth = l_mc._width; } else { minHeight = l_mc._height; minWidth = l_mc._width; } } if (m_mc == undefined) { setSkin(tagM, middleSkin); if (horizontal) { minHeight = m_mc._height; minWidth = minWidth + m_mc._width; } else { minHeight = minHeight + m_mc._height; minWidth = m_mc._width; } } if (r_mc == undefined) { setSkin(tagR, rightSkin); if (horizontal) { minHeight = r_mc._height; minWidth = minWidth + r_mc._width; } else { minHeight = minHeight + r_mc._height; minWidth = r_mc._width; } } size(); } function size(Void) { l_mc.move(0, 0); if (horizontal) { r_mc.move(width - r_mc.width, 0); m_mc.move(l_mc.width, 0); m_mc.setSize(r_mc.x - m_mc.x, m_mc.height); } else { r_mc.move(0, height - r_mc.height, 0); m_mc.move(0, l_mc.height); m_mc.setSize(m_mc.width, r_mc.y - m_mc.y); } } static var symbolName = "CustomBorder"; static var symbolOwner = mx.skins.CustomBorder; static var version = "2.0.2.127"; var className = "CustomBorder"; static var tagL = 0; static var tagM = 1; static var tagR = 2; var idNames = new Array("l_mc", "m_mc", "r_mc"); var leftSkin = "F3PieceLeft"; var middleSkin = "F3PieceMiddle"; var rightSkin = "F3PieceRight"; var horizontal = true; }
Symbol 503 MovieClip [__Packages.mx.controls.scrollClasses.ScrollThumb] Frame 0
class mx.controls.scrollClasses.ScrollThumb extends mx.skins.CustomBorder { var useHandCursor, ymin, ymax, datamin, datamax, scrollMove, lastY, _ymouse, _y, _parent, onMouseMove, grip_mc, setSkin, gripSkin, __get__width, __get__height; function ScrollThumb () { super(); } function createChildren(Void) { super.createChildren(); useHandCursor = false; } function setRange(_ymin, _ymax, _datamin, _datamax) { ymin = _ymin; ymax = _ymax; datamin = _datamin; datamax = _datamax; } function dragThumb(Void) { scrollMove = _ymouse - lastY; scrollMove = scrollMove + _y; if (scrollMove < ymin) { scrollMove = ymin; } else if (scrollMove > ymax) { scrollMove = ymax; } _parent.isScrolling = true; _y = scrollMove; var _local2 = Math.round(((datamax - datamin) * (_y - ymin)) / (ymax - ymin)) + datamin; _parent.scrollPosition = _local2; _parent.dispatchScrollEvent("ThumbTrack"); updateAfterEvent(); } function stopDragThumb(Void) { _parent.isScrolling = false; _parent.dispatchScrollEvent("ThumbPosition"); _parent.dispatchScrollChangedEvent(); delete onMouseMove; } function onPress(Void) { _parent.pressFocus(); lastY = _ymouse; onMouseMove = dragThumb; super.onPress(); } function onRelease(Void) { _parent.releaseFocus(); stopDragThumb(); super.onRelease(); } function onReleaseOutside(Void) { _parent.releaseFocus(); stopDragThumb(); super.onReleaseOutside(); } function draw() { super.draw(); if (grip_mc == undefined) { setSkin(3, gripSkin); } } function size() { super.size(); grip_mc.move((__get__width() - grip_mc.width) / 2, (__get__height() - grip_mc.height) / 2); } static var symbolOwner = mx.skins.CustomBorder.symbolOwner; var className = "ScrollThumb"; var btnOffset = 0; var horizontal = false; var idNames = new Array("l_mc", "m_mc", "r_mc", "grip_mc"); }
Symbol 136 MovieClip [__Packages.mx.controls.SimpleButton] Frame 0
class mx.controls.SimpleButton extends mx.core.UIComponent { static var emphasizedStyleDeclaration; var preset, boundingBox_mc, useHandCursor, skinName, linkLength, iconName, destroyObject, __width, _width, __height, _height, __emphaticStyleName, styleName, enabled, invalidate, pressFocus, dispatchEvent, autoRepeat, interval, getStyle, releaseFocus, createLabel, invalidateStyle; function SimpleButton () { super(); } function init(Void) { super.init(); if (preset == undefined) { boundingBox_mc._visible = false; boundingBox_mc._width = (boundingBox_mc._height = 0); } useHandCursor = false; } function createChildren(Void) { if (preset != undefined) { var _local2 = this[idNames[preset]]; this[refNames[preset]] = _local2; skinName = _local2; if (falseOverSkin.length == 0) { rolloverSkin = fus; } if (falseOverIcon.length == 0) { rolloverIcon = fui; } initializing = false; } else if (__state == true) { setStateVar(true); } else { if (falseOverSkin.length == 0) { rolloverSkin = fus; } if (falseOverIcon.length == 0) { rolloverIcon = fui; } } } function setIcon(tag, linkageName) { return(setSkin(tag + 8, linkageName)); } function changeIcon(tag, linkageName) { linkLength = linkageName.length; var _local2 = stateNames[tag] + "Icon"; this[_local2] = linkageName; this[idNames[tag + 8]] = _local2; setStateVar(getState()); } function changeSkin(tag, linkageName) { var _local2 = stateNames[tag] + "Skin"; this[_local2] = linkageName; this[idNames[tag]] = _local2; setStateVar(getState()); } function viewIcon(varName) { var _local4 = varName + "Icon"; var _local3 = this[_local4]; if (typeof(_local3) == "string") { var _local5 = _local3; if (__emphasized) { if (this[_local3 + "Emphasized"].length > 0) { _local3 = _local3 + "Emphasized"; } } if (this[_local3].length == 0) { return(undefined); } _local3 = setIcon(tagMap[_local5], this[_local3]); if ((_local3 == undefined) && (_global.isLivePreview)) { _local3 = setIcon(0, "ButtonIcon"); } this[_local4] = _local3; } iconName._visible = false; iconName = _local3; iconName._visible = true; } function removeIcons() { var _local3 = 0; while (_local3 < 2) { var _local2 = 8; while (_local2 < 16) { destroyObject(idNames[_local2]); this[stateNames[_local2 - 8] + "Icon"] = ""; _local2++; } _local3++; } refresh(); } function setSkin(tag, linkageName, initobj) { var _local3 = super.setSkin(tag, linkageName, ((initobj != undefined) ? (initobj) : ({styleName:this}))); calcSize(tag, _local3); return(_local3); } function calcSize(Void) { __width = _width; __height = _height; } function viewSkin(varName, initObj) { var _local3 = varName + "Skin"; var _local2 = this[_local3]; if (typeof(_local2) == "string") { var _local4 = _local2; if (__emphasized) { if (this[_local2 + "Emphasized"].length > 0) { _local2 = _local2 + "Emphasized"; } } if (this[_local2].length == 0) { return(undefined); } _local2 = setSkin(tagMap[_local4], this[_local2], ((initObj != undefined) ? (initObj) : ({styleName:this}))); this[_local3] = _local2; } skinName._visible = false; skinName = _local2; skinName._visible = true; } function showEmphasized(e) { if (e && (!__emphatic)) { if (emphasizedStyleDeclaration != undefined) { __emphaticStyleName = styleName; styleName = emphasizedStyleDeclaration; } __emphatic = true; } else { if (__emphatic) { styleName = __emphaticStyleName; } __emphatic = false; } } function refresh(Void) { var _local2 = getState(); if (enabled == false) { viewIcon("disabled"); viewSkin("disabled"); } else { viewSkin(phase); viewIcon(phase); } setView(phase == "down"); iconName.enabled = enabled; } function setView(offset) { if (iconName == undefined) { return(undefined); } var _local2 = (offset ? (btnOffset) : 0); iconName._x = ((__width - iconName._width) / 2) + _local2; iconName._y = ((__height - iconName._height) / 2) + _local2; } function setStateVar(state) { if (state) { if (trueOverSkin.length == 0) { rolloverSkin = tus; } else { rolloverSkin = trs; } if (trueOverIcon.length == 0) { rolloverIcon = tui; } else { rolloverIcon = tri; } upSkin = tus; downSkin = tds; disabledSkin = dts; upIcon = tui; downIcon = tdi; disabledIcon = dti; } else { if (falseOverSkin.length == 0) { rolloverSkin = fus; } else { rolloverSkin = frs; } if (falseOverIcon.length == 0) { rolloverIcon = fui; } else { rolloverIcon = fri; } upSkin = fus; downSkin = fds; disabledSkin = dfs; upIcon = fui; downIcon = fdi; disabledIcon = dfi; } __state = state; } function setState(state) { if (state != __state) { setStateVar(state); invalidate(); } } function size(Void) { refresh(); } function draw(Void) { if (initializing) { initializing = false; skinName.visible = true; iconName.visible = true; } size(); } function getState(Void) { return(__state); } function setToggle(val) { __toggle = val; if (__toggle == false) { setState(false); } } function getToggle(Void) { return(__toggle); } function set toggle(val) { setToggle(val); //return(toggle); } function get toggle() { return(getToggle()); } function set value(val) { setSelected(val); //return(value); } function get value() { return(getSelected()); } function set selected(val) { setSelected(val); //return(selected); } function get selected() { return(getSelected()); } function setSelected(val) { if (__toggle) { setState(val); } else { setState((initializing ? (val) : (__state))); } } function getSelected() { return(__state); } function setEnabled(val) { if (enabled != val) { super.setEnabled(val); invalidate(); } } function onPress(Void) { pressFocus(); phase = "down"; refresh(); dispatchEvent({type:"buttonDown"}); if (autoRepeat) { interval = setInterval(this, "onPressDelay", getStyle("repeatDelay")); } } function onPressDelay(Void) { dispatchEvent({type:"buttonDown"}); if (autoRepeat) { clearInterval(interval); interval = setInterval(this, "onPressRepeat", getStyle("repeatInterval")); } } function onPressRepeat(Void) { dispatchEvent({type:"buttonDown"}); updateAfterEvent(); } function onRelease(Void) { releaseFocus(); phase = "rollover"; if (interval != undefined) { clearInterval(interval); delete interval; } if (getToggle()) { setState(!getState()); } else { refresh(); } dispatchEvent({type:"click"}); } function onDragOut(Void) { phase = "up"; refresh(); dispatchEvent({type:"buttonDragOut"}); } function onDragOver(Void) { if (phase != "up") { onPress(); return(undefined); } phase = "down"; refresh(); } function onReleaseOutside(Void) { releaseFocus(); phase = "up"; if (interval != undefined) { clearInterval(interval); delete interval; } } function onRollOver(Void) { phase = "rollover"; refresh(); } function onRollOut(Void) { phase = "up"; refresh(); } function getLabel(Void) { return(fui.text); } function setLabel(val) { if (typeof(fui) == "string") { createLabel("fui", 8, val); fui.styleName = this; } else { fui.text = val; } var _local4 = fui._getTextFormat(); var _local2 = _local4.getTextExtent2(val); fui._width = _local2.width + 5; fui._height = _local2.height + 5; iconName = fui; setView(__state); } function get emphasized() { return(__emphasized); } function set emphasized(val) { __emphasized = val; var _local2 = 0; while (_local2 < 8) { this[idNames[_local2]] = stateNames[_local2] + "Skin"; if (typeof(this[idNames[_local2 + 8]]) == "movieclip") { this[idNames[_local2 + 8]] = stateNames[_local2] + "Icon"; } _local2++; } showEmphasized(__emphasized); setStateVar(__state); invalidateStyle(); //return(emphasized); } function keyDown(e) { if (e.code == 32) { onPress(); } } function keyUp(e) { if (e.code == 32) { onRelease(); } } function onKillFocus(newFocus) { super.onKillFocus(); if (phase != "up") { phase = "up"; refresh(); } } static var symbolName = "SimpleButton"; static var symbolOwner = mx.controls.SimpleButton; static var version = "2.0.2.127"; var className = "SimpleButton"; var style3dInset = 4; var btnOffset = 1; var __toggle = false; var __state = false; var __emphasized = false; var __emphatic = false; static var falseUp = 0; static var falseDown = 1; static var falseOver = 2; static var falseDisabled = 3; static var trueUp = 4; static var trueDown = 5; static var trueOver = 6; static var trueDisabled = 7; var falseUpSkin = "SimpleButtonUp"; var falseDownSkin = "SimpleButtonIn"; var falseOverSkin = ""; var falseDisabledSkin = "SimpleButtonUp"; var trueUpSkin = "SimpleButtonIn"; var trueDownSkin = ""; var trueOverSkin = ""; var trueDisabledSkin = "SimpleButtonIn"; var falseUpIcon = ""; var falseDownIcon = ""; var falseOverIcon = ""; var falseDisabledIcon = ""; var trueUpIcon = ""; var trueDownIcon = ""; var trueOverIcon = ""; var trueDisabledIcon = ""; var phase = "up"; var fui = "falseUpIcon"; var fus = "falseUpSkin"; var fdi = "falseDownIcon"; var fds = "falseDownSkin"; var frs = "falseOverSkin"; var fri = "falseOverIcon"; var dfi = "falseDisabledIcon"; var dfs = "falseDisabledSkin"; var tui = "trueUpIcon"; var tus = "trueUpSkin"; var tdi = "trueDownIcon"; var tds = "trueDownSkin"; var trs = "trueOverSkin"; var tri = "trueOverIcon"; var dts = "trueDisabledSkin"; var dti = "trueDisabledIcon"; var rolloverSkin = mx.controls.SimpleButton.prototype.frs; var rolloverIcon = mx.controls.SimpleButton.prototype.fri; var upSkin = mx.controls.SimpleButton.prototype.fus; var downSkin = mx.controls.SimpleButton.prototype.fds; var disabledSkin = mx.controls.SimpleButton.prototype.dfs; var upIcon = mx.controls.SimpleButton.prototype.fui; var downIcon = mx.controls.SimpleButton.prototype.fdi; var disabledIcon = mx.controls.SimpleButton.prototype.dfi; var initializing = true; var idNames = ["fus", "fds", "frs", "dfs", "tus", "tds", "trs", "dts", "fui", "fdi", "fri", "dfi", "tui", "tdi", "tri", "dti"]; var stateNames = ["falseUp", "falseDown", "falseOver", "falseDisabled", "trueUp", "trueDown", "trueOver", "trueDisabled"]; var refNames = ["upSkin", "downSkin", "rolloverSkin", "disabledSkin"]; var tagMap = {falseUpSkin:0, falseDownSkin:1, falseOverSkin:2, falseDisabledSkin:3, trueUpSkin:4, trueDownSkin:5, trueOverSkin:6, trueDisabledSkin:7, falseUpIcon:0, falseDownIcon:1, falseOverIcon:2, falseDisabledIcon:3, trueUpIcon:4, trueDownIcon:5, trueOverIcon:6, trueDisabledIcon:7}; }
Symbol 504 MovieClip [__Packages.mx.controls.UIScrollBar] Frame 0
class mx.controls.UIScrollBar extends mx.controls.scrollClasses.ScrollBar { var textField, wasHorizontal, __width, __height, _parent, synchScroll, setScrollProperties, __set__scrollPosition, initializing, _rotation, _xscale, hScroller, vScroller, onChanged, onScroller, scrollPosition, dispatchEvent; function UIScrollBar () { super(); } function init(Void) { super.init(); textField.owner = this; horizontal = (wasHorizontal); if (horizontal) { ((textField != undefined) ? (super.setSize(textField._width, 16)) : (super.setSize(__width, __height))); } else { ((textField != undefined) ? (super.setSize(16, textField._height)) : (super.setSize(__width, __height))); } if (horizontal) { var _local3 = __width; __height = __width; width = _local3; __width = 16; } textField.onScroller = function () { this.hPosition = this.hscroll; this.vPosition = this.scroll - 1; }; if (_targetInstanceName != undefined) { setScrollTarget(_targetInstanceName); _targetInstanceName.addListener(this); } } function get _targetInstanceName() { return(textField); } function get height() { if (wasHorizontal) { return(__width); } return(__height); } function get width() { if (wasHorizontal) { return(__height); } return(__width); } function size(Void) { super.size(); onTextChanged(); } function draw() { super.draw(); } function set _targetInstanceName(t) { if (t == undefined) { textField.removeListener(this); delete textField[(horizontal ? "hScroller" : "vScroller")]; if ((textField.hScroller != undefined) && (textField.vScroller != undefined)) { textField.unwatch("text"); textField.unwatch("htmltext"); } } var _local3 = _parent[t]; textField = _parent[t]; onTextChanged(); //return(_targetInstanceName); } function setSize(w, h) { if (horizontal) { super.setSize(h, w); } else { super.setSize(w, h); } } function onTextChanged(Void) { if (textField == undefined) { return(undefined); } clearInterval(synchScroll); if (horizontal) { var _local3 = textField.hscroll; setScrollProperties(textField._width, 0, textField.maxhscroll); __set__scrollPosition(Math.min(_local3, textField.maxhscroll)); } else { var _local3 = textField.scroll; var _local2 = textField.bottomScroll - textField.scroll; setScrollProperties(_local2, 1, textField.maxscroll); __set__scrollPosition(Math.min(_local3, textField.maxscroll)); } } function get horizontal() { return(wasHorizontal); } function set horizontal(v) { wasHorizontal = v; if (v and initializing) { if (_rotation == 90) { return; } _xscale = -100; _rotation = -90; } if (!initializing) { if (v) { if (_rotation == 0) { _rotation = -90; _xscale = -100; } } else if (_rotation == -90) { _rotation = 0; _xscale = 100; } } //return(horizontal); } function callback(prop, oldval, newval) { clearInterval(hScroller.synchScroll); clearInterval(vScroller.synchScroll); hScroller.synchScroll = setInterval(hScroller, "onTextChanged", 50); vScroller.synchScroll = setInterval(vScroller, "onTextChanged", 50); return(newval); } function setScrollTarget(tF) { if (tF == undefined) { textField.removeListener(this); delete textField[(horizontal ? "hScroller" : "vScroller")]; if ((textField.hScroller != undefined) && (textField.vScroller != undefined)) { textField.unwatch("text"); textField.unwatch("htmltext"); } } textField = undefined; if (!(tF instanceof TextField)) { return(undefined); } textField = tF; if (horizontal) { textField.hScroller = this; textField.hScroller.lineScrollSize = 5; } else { textField.vScroller = this; textField.vScroller.lineScrollSize = 1; } onTextChanged(); onChanged = function (Void) { this.onTextChanged(); }; onScroller = function (Void) { if (!this.isScrolling) { if (!this.horizontal) { this.scrollPosition = this.textField.scroll; } else { this.scrollPosition = this.textField.hscroll; } } }; textField.addListener(this); textField.watch("text", callback); textField.watch("htmlText", callback); } function scrollHandler(Void) { if (horizontal) { var _local2 = textField.background; textField.hscroll = scrollPosition; textField.background = _local2; } else { textField.scroll = scrollPosition; } } function setEnabled(enable) { super.setEnabled(enable); if (enable) { textField.addListener(this); } else { textField.removeListener(); } } function dispatchScrollEvent(detail) { dispatchEvent({type:"scroll"}); } static var symbolName = "UIScrollBar"; static var symbolOwner = mx.controls.UIScrollBar; var className = "UIScrollBar"; var clipParameters = {_targetInstanceName:1, horizontal:1}; static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.UIScrollBar.prototype.clipParameters); static var version = "2.0.2.127"; }
Symbol 115 MovieClip [__Packages.mx.video.FLVPlayback] Frame 0
class mx.video.FLVPlayback extends MovieClip { var _autoPlay, _autoRewind, _autoSize, _bufferTime, _contentPath, _cuePoints, _idleTimeout, _isLive, _aspectRatio, _seekToPrevOffset, _playheadUpdateInterval, _progressInterval, _totalTime, _transform, _volume, _skinAutoHide, _bufferingBarHides, _origHeight, __height, _height, _origWidth, __width, _width, _scaleX, _scaleY, _xscale, _yscale, _preSeekTime, _firstStreamReady, _firstStreamShown, _activeVP, _visibleVP, _topVP, _vp, _vpState, _cpMgr, boundingBox_mc, preview_mc, dispatchEvent, _uiMgr, _bufferingBar, _backButton, __get__cuePoints, _forwardButton, _muteButton, _pauseButton, _playButton, _playPauseButton, _seekBar, _seekBarInterval, _seekBarScrubTolerance, _skin, _stopButton, _visible, _volumeBar, _volumeBarInterval, _volumeBarScrubTolerance, _x, _y, attachMovie, createEmptyMovieClip; function FLVPlayback () { super(); mx.events.EventDispatcher.initialize(this); if (_autoPlay == undefined) { _autoPlay = true; } if (_autoRewind == undefined) { _autoRewind = true; } if (_autoSize == undefined) { _autoSize = false; } if (_bufferTime == undefined) { _bufferTime = 0.1; } if (_contentPath == undefined) { _contentPath = ""; } if (_cuePoints == undefined) { _cuePoints = null; } if (_idleTimeout == undefined) { _idleTimeout = mx.video.VideoPlayer.DEFAULT_IDLE_TIMEOUT_INTERVAL; } if (_isLive == undefined) { _isLive = false; } if (_aspectRatio == undefined) { _aspectRatio = true; } if (_seekToPrevOffset == undefined) { _seekToPrevOffset = SEEK_TO_PREV_OFFSET_DEFAULT; } if (_playheadUpdateInterval == undefined) { _playheadUpdateInterval = mx.video.VideoPlayer.DEFAULT_UPDATE_PROGRESS_INTERVAL; } if (_progressInterval == undefined) { _progressInterval = mx.video.VideoPlayer.DEFAULT_UPDATE_TIME_INTERVAL; } if (_totalTime == undefined) { _totalTime = 0; } if (_transform == undefined) { _transform = null; } if (_volume == undefined) { _volume = 100; } if (_skinAutoHide == undefined) { _skinAutoHide = false; } if (_bufferingBarHides == undefined) { _bufferingBarHides = false; } _origHeight = (__height = _height); _origWidth = (__width = _width); _scaleX = 100; _scaleY = 100; _xscale = 100; _yscale = 100; _preSeekTime = -1; _firstStreamReady = false; _firstStreamShown = false; createUIManager(); _activeVP = 0; _visibleVP = 0; _topVP = 0; _vp = new Array(); _vpState = new Array(); _cpMgr = new Array(); createVideoPlayer(0); _vp[0].visible = false; _vp[0].volume = 0; boundingBox_mc._visible = false; boundingBox_mc.unloadMovie(); delete boundingBox_mc; if (_global.isLivePreview) { createLivePreviewMovieClip(); setSize(__width, __height); } _cpMgr[0].processCuePointsProperty(_cuePoints); delete _cuePoints; _cuePoints = null; } function setSize(w, h) { if (_global.isLivePreview) { if (preview_mc == undefined) { createLivePreviewMovieClip(); } preview_mc.box_mc._width = w; preview_mc.box_mc._height = h; if ((preview_mc.box_mc._width < preview_mc.icon_mc._width) || (preview_mc.box_mc._height < preview_mc.icon_mc._height)) { preview_mc.icon_mc._visible = false; } else { preview_mc.icon_mc._visible = true; preview_mc.icon_mc._x = (preview_mc.box_mc._width - preview_mc.icon_mc._width) / 2; preview_mc.icon_mc._y = (preview_mc.box_mc._height - preview_mc.icon_mc._height) / 2; } } if ((w == width) && (h == height)) { return(undefined); } __width = w; __height = h; var _local3 = 0; while (_local3 < _vp.length) { if (_vp[_local3] != undefined) { _vp[_local3].setSize(w, h); } _local3++; } dispatchEvent({type:"resize", x:x, y:y, width:w, height:h}); } function setScale(xs, ys) { if ((xs == scaleX) && (ys == scaleY)) { return(undefined); } _scaleX = xs; _scaleY = ys; var _local2 = 0; while (_local2 < _vp.length) { if (_vp[_local2] != undefined) { _vp[_local2].setSize((_origWidth * xs) / 100, (_origHeight * ys) / 100); } _local2++; } dispatchEvent({type:"resize", x:x, y:y, width:width, height:height}); } function handleEvent(e) { var _local3 = e.state; if (((e.state != undefined) && (e.target._name == _visibleVP)) && (scrubbing)) { _local3 = SEEKING; } if (e.type == "metadataReceived") { _cpMgr[e.target._name].processFLVCuePoints(e.info.cuePoints); dispatchEvent({type:e.type, info:e.info, vp:e.target._name}); } else if (e.type == "cuePoint") { if (_cpMgr[e.target._name].isFLVCuePointEnabled(e.info)) { dispatchEvent({type:e.type, info:e.info, vp:e.target._name}); } } else if (e.type == "rewind") { dispatchEvent({type:e.type, auto:true, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); _cpMgr[e.target._name].resetASCuePointIndex(e.playheadTime); } else if (e.type == "resize") { dispatchEvent({type:e.type, x:x, y:y, width:width, height:height, auto:true, vp:e.target._name}); } else if (e.type == "playheadUpdate") { dispatchEvent({type:e.type, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); if ((_preSeekTime >= 0) && (e.target.state != SEEKING)) { var _local5 = _preSeekTime; _preSeekTime = -1; _cpMgr[e.target._name].resetASCuePointIndex(e.playheadTime); dispatchEvent({type:"seek", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); if (_local5 < e.playheadTime) { dispatchEvent({type:"fastForward", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); } else if (_local5 > e.playheadTime) { dispatchEvent({type:"rewind", auto:false, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); } } _cpMgr[e.target._name].dispatchASCuePoints(); } else if (e.type == "stateChange") { var _local4 = e.target._name; if ((_local4 == _visibleVP) && (scrubbing)) { return(undefined); } if (e.state == mx.video.VideoPlayer.RESIZING) { return(undefined); } if (((_vpState[_local4].prevState == LOADING) && (_vpState[_local4].autoPlay)) && (e.state == STOPPED)) { return(undefined); } _vpState[_local4].prevState = e.state; dispatchEvent({type:e.type, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); if (_vp[e.target._name].state != _local3) { return(undefined); } switch (_local3) { case BUFFERING : dispatchEvent({type:"buffering", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); break; case PAUSED : dispatchEvent({type:"paused", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); break; case PLAYING : dispatchEvent({type:"playing", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); break; case STOPPED : dispatchEvent({type:"stopped", state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); } } else if (e.type == "progress") { dispatchEvent({type:e.type, bytesLoaded:e.bytesLoaded, bytesTotal:e.bytesTotal, vp:e.target._name}); } else if (e.type == "ready") { var _local4 = e.target._name; if (!_firstStreamReady) { if (_local4 == _visibleVP) { _firstStreamReady = true; if (_uiMgr.__get__skinReady() && (!_firstStreamShown)) { _uiMgr.__set__visible(true); showFirstStream(); } } } else if ((_firstStreamShown && (_local3 == STOPPED)) && _vpState[_local4].autoPlay) { _vp[_local4].play(); } dispatchEvent({type:e.type, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); } else if ((e.type == "close") || (e.type == "complete")) { dispatchEvent({type:e.type, state:_local3, playheadTime:e.playheadTime, vp:e.target._name}); } } function load(contentPath, totalTime, isLive) { if (_vp[_activeVP] == undefined) { return(undefined); } if ((contentPath == null) || (contentPath == "")) { return(undefined); } autoPlay = (false); if (totalTime != undefined) { this.totalTime = (totalTime); } if (isLive != undefined) { this.isLive = (isLive); } this.contentPath = (contentPath); } function play(contentPath, totalTime, isLive) { if (_vp[_activeVP] == undefined) { return(undefined); } if (contentPath == undefined) { _vp[_activeVP].play(); } else { autoPlay = (true); if (totalTime != undefined) { this.totalTime = (totalTime); } if (isLive != undefined) { this.isLive = (isLive); } this.contentPath = (contentPath); } } function pause() { if (_vp[_activeVP] == undefined) { return(undefined); } _vp[_activeVP].pause(); } function stop() { if (_vp[_activeVP] == undefined) { return(undefined); } _vp[_activeVP].stop(); } function seek(time) { if (_vp[_activeVP] == undefined) { return(undefined); } _preSeekTime = playheadTime; _vp[_activeVP].seek(time); } function seekSeconds(time) { seek(time); } function seekPercent(percent) { if (_vp[_activeVP] == undefined) { return(undefined); } if ((((percent < 0) || (percent > 100)) || (_vp[_activeVP].totalTime == null)) || (_vp[_activeVP].totalTime <= 0)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_SEEK); } seek((_vp[_activeVP].totalTime * percent) / 100); } function get playheadPercentage() { if ((_vp[_activeVP].totalTime == null) || (_vp[_activeVP].totalTime <= 0)) { return(undefined); } return((_vp[_activeVP].playheadTime / _vp[_activeVP].totalTime) * 100); } function set playheadPercentage(percent) { seekPercent(percent); //return(playheadPercentage); } function seekToNavCuePoint(timeNameOrCuePoint) { var _local3; switch (typeof(timeNameOrCuePoint)) { case "string" : _local3 = {name:timeNameOrCuePoint}; break; case "number" : _local3 = {time:timeNameOrCuePoint}; break; case "object" : _local3 = timeNameOrCuePoint; } if ((_local3.name == null) || (typeof(_local3.name) != "string")) { seekToNextNavCuePoint(_local3.time); return(undefined); } if (isNaN(_local3.time)) { _local3.time = 0; } var _local2 = findNearestCuePoint(timeNameOrCuePoint, NAVIGATION); while ((_local2 != null) && ((_local2.time < _local3.time) || (!isFLVCuePointEnabled(_local2)))) { _local2 = findNextCuePointWithName(_local2); } if (_local2 == null) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_SEEK); } seek(_local2.time); } function seekToNextNavCuePoint(time) { if (_vp[_activeVP] == undefined) { return(undefined); } if (isNaN(time) || (time < 0)) { time = _vp[_activeVP].playheadTime + 0.001; } var _local3; _local3 = findNearestCuePoint(time, NAVIGATION); if (_local3 == null) { seek(_vp[_activeVP].totalTime); return(undefined); } var _local2 = _local3.index; if (_local3.time < time) { _local2++; } while ((_local2 < _local3.array.length) && (!isFLVCuePointEnabled(_local3.array[_local2]))) { _local2++; } if (_local2 >= _local3.array.length) { var _local5 = _vp[_activeVP].totalTime; if (_local3.array[_local3.array.length - 1].time > _local5) { _local5 = _local3.array[_local3.array.length - 1]; } seek(_local5); } else { seek(_local3.array[_local2].time); } } function seekToPrevNavCuePoint(time) { if (_vp[_activeVP] == undefined) { return(undefined); } if (isNaN(time) || (time < 0)) { time = _vp[_activeVP].playheadTime; } var _local3 = findNearestCuePoint(time, NAVIGATION); if (_local3 == null) { seek(0); return(undefined); } var _local2 = _local3.index; while ((_local2 >= 0) && ((!isFLVCuePointEnabled(_local3.array[_local2])) || (_local3.array[_local2].time >= (time - _seekToPrevOffset)))) { _local2--; } if (_local2 < 0) { seek(0); } else { seek(_local3.array[_local2].time); } } function addASCuePoint(timeOrCuePoint, name, parameters) { return(_cpMgr[_activeVP].addASCuePoint(timeOrCuePoint, name, parameters)); } function removeASCuePoint(timeNameOrCuePoint) { return(_cpMgr[_activeVP].removeASCuePoint(timeNameOrCuePoint)); } function findCuePoint(timeNameOrCuePoint, type) { switch (type) { case "event" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].eventCuePoints, false, timeNameOrCuePoint)); case "navigation" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].navCuePoints, false, timeNameOrCuePoint)); case "flv" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].flvCuePoints, false, timeNameOrCuePoint)); case "actionscript" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].asCuePoints, false, timeNameOrCuePoint)); case "all" : } return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].allCuePoints, false, timeNameOrCuePoint)); } function findNearestCuePoint(timeNameOrCuePoint, type) { switch (type) { case "event" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].eventCuePoints, true, timeNameOrCuePoint)); case "navigation" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].navCuePoints, true, timeNameOrCuePoint)); case "flv" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].flvCuePoints, true, timeNameOrCuePoint)); case "actionscript" : return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].asCuePoints, true, timeNameOrCuePoint)); case "all" : } return(_cpMgr[_activeVP].getCuePoint(_cpMgr[_activeVP].allCuePoints, true, timeNameOrCuePoint)); } function findNextCuePointWithName(cuePoint) { return(_cpMgr[_activeVP].getNextCuePointWithName(cuePoint)); } function setFLVCuePointEnabled(enabled, timeNameOrCuePoint) { return(_cpMgr[_activeVP].setFLVCuePointEnabled(enabled, timeNameOrCuePoint)); } function isFLVCuePointEnabled(timeNameOrCuePoint) { return(_cpMgr[_activeVP].isFLVCuePointEnabled(timeNameOrCuePoint)); } function getNextHighestDepth() { var _local2 = super.getNextHighestDepth(); return(((_local2 < 1000) ? 1000 : (_local2))); } function bringVideoPlayerToFront(index) { if ((index == _topVP) || (_vp[index] == undefined)) { return(undefined); } _vp[_topVP].swapDepths(_vp[index].getDepth()); _topVP = index; } function getVideoPlayer(index) { return(_vp[index]); } function closeVideoPlayer(index) { if (_vp[index] == undefined) { return(undefined); } if (index == 0) { throw new mx.video.VideoError(mx.video.VideoError.DELETE_DEFAULT_PLAYER); } if (_visibleVP == index) { visibleVideoPlayerIndex = (0); } if (_activeVP == index) { activeVideoPlayerIndex = (0); } _vp[index].close(); _vp[index].unloadMovie(); delete _vp[index]; _vp[index] = undefined; } function get activeVideoPlayerIndex() { return(_activeVP); } function set activeVideoPlayerIndex(i) { if (_activeVP == i) { return; } if (_vp[_activeVP].onEnterFrame != undefined) { doContentPathConnect(); } _activeVP = i; if (_vp[_activeVP] == undefined) { createVideoPlayer(_activeVP); _vp[_activeVP].visible = false; _vp[_activeVP].volume = 0; } //return(activeVideoPlayerIndex); } function get autoPlay() { if (_vpState[_activeVP] == undefined) { return(_autoPlay); } return(_vpState[_activeVP].autoPlay); } function set autoPlay(flag) { if ((_activeVP == 0) || (_activeVP == undefined)) { _autoPlay = flag; } _vpState[_activeVP].autoPlay = flag; //return(autoPlay); } function get autoRewind() { if (_vp[_activeVP] == undefined) { return(_autoRewind); } return(_vp[_activeVP].autoRewind); } function set autoRewind(flag) { if ((_activeVP == 0) || (_activeVP == undefined)) { _autoRewind = flag; } _vp[_activeVP].autoRewind = flag; //return(autoRewind); } function get autoSize() { if (_vp[_activeVP] == undefined) { return(_autoSize); } return(_vp[_activeVP].autoSize); } function set autoSize(flag) { if ((_activeVP == 0) || (_activeVP == undefined)) { _autoSize = flag; } _vp[_activeVP].autoSize = flag; //return(autoSize); } function get bitrate() { return(ncMgr.getBitrate()); } function set bitrate(b) { ncMgr.setBitrate(b); //return(bitrate); } function get buffering() { if (_vp[_activeVP] == undefined) { return(false); } return(_vp[_activeVP].state == BUFFERING); } function get bufferingBar() { if (_uiMgr != null) { _bufferingBar = _uiMgr.getControl(mx.video.UIManager.BUFFERING_BAR); } return(_bufferingBar); } function set bufferingBar(s) { _bufferingBar = s; if (_uiMgr != null) { _uiMgr.setControl(mx.video.UIManager.BUFFERING_BAR, s); } //return(bufferingBar); } function get bufferingBarHidesAndDisablesOthers() { if (_uiMgr != null) { _bufferingBarHides = _uiMgr.bufferingBarHidesAndDisablesOthers; } return(_bufferingBarHides); } function set bufferingBarHidesAndDisablesOthers(b) { _bufferingBarHides = b; if (_uiMgr != null) { _uiMgr.__set__bufferingBarHidesAndDisablesOthers(b); } //return(bufferingBarHidesAndDisablesOthers); } function get backButton() { if (_uiMgr != null) { _backButton = _uiMgr.getControl(mx.video.UIManager.BACK_BUTTON); } return(_backButton); } function set backButton(s) { _backButton = s; if (_uiMgr != null) { _uiMgr.setControl(mx.video.UIManager.BACK_BUTTON, s); } //return(backButton); } function get bufferTime() { if (_vp[_activeVP] == undefined) { return(_bufferTime); } return(_vp[_activeVP].bufferTime); } function set bufferTime(aTime) { if ((_activeVP == 0) || (_activeVP == undefined)) { _bufferTime = aTime; } _vp[_activeVP].bufferTime = aTime; //return(bufferTime); } function get bytesLoaded() { return(_vp[_activeVP].bytesLoaded); } function get bytesTotal() { return(_vp[_activeVP].bytesTotal); } function get contentPath() { if ((_vp[_activeVP] == undefined) || (_vp[_activeVP].onEnterFrame != undefined)) { return(_contentPath); } return(_vp[_activeVP].url); } function set contentPath(url) { if (_global.isLivePreview) { return; } if (_vp[_activeVP] == undefined) { if (url == _contentPath) { return; } _contentPath = url; } else { if (_vp[_activeVP].url == url) { return; } _vpState[_activeVP].minProgressPercent = undefined; if (_vp[_activeVP].onEnterFrame != undefined) { delete _vp[_activeVP].onEnterFrame; _vp[_activeVP].onEnterFrame = undefined; } _cpMgr[_activeVP].reset(); if (_vpState[_activeVP].autoPlay && (_firstStreamShown)) { _vp[_activeVP].play(url, _vpState[_activeVP].isLive, _vpState[_activeVP].totalTime); } else { _vp[_activeVP].load(url, _vpState[_activeVP].isLive, _vpState[_activeVP].totalTime); } _vpState[_activeVP].isLiveSet = false; _vpState[_activeVP].totalTimeSet = false; } //return(contentPath); } function set cuePoints(cp) { if (_cuePoints != undefined) { return; } _cuePoints = cp; //return(__get__cuePoints()); } function get forwardButton() { if (_uiMgr != null) { _forwardButton = _uiMgr.getControl(mx.video.UIManager.FORWARD_BUTTON); } return(_forwardButton); } function set forwardButton(s) { _forwardButton = s; if (_uiMgr != null) { _uiMgr.setControl(mx.video.UIManager.FORWARD_BUTTON, s); } //return(forwardButton); } function get height() { if (_global.isLivePreview) { return(__height); } if (_vp[_visibleVP] != undefined) { __height = _vp[_visibleVP].height; } return(__height); } function set height(h) { setSize(width, h); //return(height); } function get idleTimeout() { if (_vp[_activeVP] == undefined) { return(_idleTimeout); } return(_vp[_activeVP].idleTimeout); } function set idleTimeout(aTime) { if ((_activeVP == 0) || (_activeVP == undefined)) { _idleTimeout = aTime; } _vp[_activeVP].idleTimeout = aTime; //return(idleTimeout); } function get isRTMP() { if (_global.isLivePreview) { return(true); } if (_vp[_activeVP] == undefined) { return(undefined); } return(_vp[_activeVP].isRTMP); } function get isLive() { if (_vp[_activeVP] == undefined) { return(_isLive); } if (_vpState[_activeVP].isLiveSet) { return(_vpState[_activeVP].isLive); } return(_vp[_activeVP].isLive); } function set isLive(flag) { if ((_activeVP == 0) || (_activeVP == undefined)) { _isLive = flag; } _vpState[_activeVP].isLive = flag; _vpState[_activeVP].isLiveSet = true; //return(isLive); } function get maintainAspectRatio() { if (_vp[_activeVP] == undefined) { return(_aspectRatio); } return(_vp[_activeVP].maintainAspectRatio); } function set maintainAspectRatio(flag) { if ((_activeVP == 0) || (_activeVP == undefined)) { _aspectRatio = flag; } _vp[_activeVP].maintainAspectRatio = flag; //return(maintainAspectRatio); } function get metadata() { if (_vp[_activeVP] == undefined) { return(null); } return(_vp[_activeVP].metadata); } function get metadataLoaded() { if (_vp[_activeVP] == undefined) { return(false); } return(_cpMgr[_activeVP].metadataLoaded); } function get muteButton() { if (_uiMgr != null) { _muteButton = _uiMgr.getControl(mx.video.UIManager.MUTE_BUTTON); } return(_muteButton); } function set muteButton(s) { _muteButton = s; if (_uiMgr != null) { _uiMgr.setControl(mx.video.UIManager.MUTE_BUTTON, s); } //return(muteButton); } function get ncMgr() { if (_vp[_activeVP] == undefined) { return(null); } return(_vp[_activeVP].ncMgr); } function get pauseButton() { if (_uiMgr != null) { _pauseButton = _uiMgr.getControl(mx.video.UIManager.PAUSE_BUTTON); } return(_pauseButton); } function set pauseButton(s) { _pauseButton = s; if (_uiMgr != null) { _uiMgr.setControl(mx.video.UIManager.PAUSE_BUTTON, s); } //return(pauseButton); } function get paused() { if (_vp[_activeVP] == undefined) { return(false); } return(_vp[_activeVP].state == PAUSED); } function get playButton() { if (_uiMgr != null) { _playButton = _uiMgr.getControl(mx.video.UIManager.PLAY_BUTTON); } return(_playButton); } function set playButton(s) { _playButton = s; if (_uiMgr != null) { _uiMgr.setControl(mx.video.UIManager.PLAY_BUTTON, s); } //return(playButton); } function get playheadTime() { if (_vp[_activeVP] == undefined) { return(0); } return(_vp[_activeVP].playheadTime); } function set playheadTime(position) { seek(position); //return(playheadTime); } function get playheadUpdateInterval() { if (_vp[_activeVP] == undefined) { return(_playheadUpdateInterval); } return(_vp[_activeVP].playheadUpdateInterval); } function set playheadUpdateInterval(aTime) { if ((_activeVP == 0) || (_activeVP == undefined)) { _playheadUpdateInterval = aTime; } _cpMgr[_activeVP].playheadUpdateInterval = aTime; _vp[_activeVP].playheadUpdateInterval = aTime; //return(playheadUpdateInterval); } function get playing() { if (_vp[_activeVP] == undefined) { return(false); } return(_vp[_activeVP].state == PLAYING); } function get playPauseButton() { if (_uiMgr != null) { _playPauseButton = _uiMgr.getControl(mx.video.UIManager.PLAY_PAUSE_BUTTON); } return(_playPauseButton); } function set playPauseButton(s) { _playPauseButton = s; if (_uiMgr != null) { _uiMgr.setControl(mx.video.UIManager.PLAY_PAUSE_BUTTON, s); } //return(playPauseButton); } function get preferredHeight() { if (_vp[_activeVP] == undefined) { return(0); } return(_vp[_activeVP].videoHeight); } function get preferredWidth() { if (_vp[_activeVP] == undefined) { return(0); } return(_vp[_activeVP].videoWidth); } function get progressInterval() { if (_vp[_activeVP] == undefined) { return(_progressInterval); } return(_vp[_activeVP].progressInterval); } function set progressInterval(aTime) { if ((_activeVP == 0) || (_activeVP == undefined)) { _progressInterval = aTime; } _vp[_activeVP].progressInterval = aTime; //return(progressInterval); } function get scaleX() { if (_vp[_visibleVP] != undefined) { _scaleX = (_vp[_visibleVP].width / _origWidth) * 100; } return(_scaleX); } function set scaleX(xs) { setScale(xs, scaleY); //return(scaleX); } function get scaleY() { if (_vp[_visibleVP] != undefined) { _scaleY = (_vp[_visibleVP].height / _origHeight) * 100; } return(_scaleY); } function set scaleY(ys) { setScale(scaleX, ys); //return(scaleY); } function get scrubbing() { var _local2 = seekBar; if ((_local2 == undefined) || (_local2.isDragging == undefined)) { return(false); } return(_local2.isDragging); } function get seekBar() { if (_uiMgr != null) { _seekBar = _uiMgr.getControl(mx.video.UIManager.SEEK_BAR); } return(_seekBar); } function set seekBar(s) { _seekBar = s; if (_uiMgr != null) { _uiMgr.setControl(mx.video.UIManager.SEEK_BAR, s); } //return(seekBar); } function get seekBarInterval() { if (_uiMgr != null) { _seekBarInterval = _uiMgr.seekBarInterval; } return(_seekBarInterval); } function set seekBarInterval(s) { _seekBarInterval = s; if (_uiMgr != null) { _uiMgr.__set__seekBarInterval(_seekBarInterval); } //return(seekBarInterval); } function get seekBarScrubTolerance() { if (_uiMgr != null) { _seekBarScrubTolerance = _uiMgr.seekBarScrubTolerance; } return(_seekBarScrubTolerance); } function set seekBarScrubTolerance(s) { _seekBarScrubTolerance = s; if (_uiMgr != null) { _uiMgr.__set__seekBarScrubTolerance(_seekBarScrubTolerance); } //return(seekBarScrubTolerance); } function get seekToPrevOffset() { return(_seekToPrevOffset); } function set seekToPrevOffset(s) { _seekToPrevOffset = s; //return(seekToPrevOffset); } function get skin() { if (_uiMgr != null) { _skin = _uiMgr.skin; } return(_skin); } function set skin(s) { _skin = s; if (_uiMgr != null) { _uiMgr.__set__skin(s); } //return(skin); } function get skinAutoHide() { if (_uiMgr != null) { _skinAutoHide = _uiMgr.skinAutoHide; } return(_skinAutoHide); } function set skinAutoHide(b) { if (_global.isLivePreview) { return; } _skinAutoHide = b; if (_uiMgr != null) { _uiMgr.__set__skinAutoHide(b); } //return(skinAutoHide); } function get transform() { return(_transform); } function set transform(s) { _transform = s; if (_vp[_activeVP] != undefined) { _vp[_activeVP].transform = _transform; } //return(transform); } function get state() { if (_global.isLivePreview) { return(STOPPED); } if (_vp[_activeVP] == undefined) { return(DISCONNECTED); } if ((_activeVP == _visibleVP) && (scrubbing)) { return(SEEKING); } var _local3 = _vp[_activeVP].state; if (_local3 == mx.video.VideoPlayer.RESIZING) { return(LOADING); } if (((_vpState[_activeVP].prevState == LOADING) && (_vpState[_activeVP].autoPlay)) && (_local3 == STOPPED)) { return(LOADING); } return(_local3); } function get stateResponsive() { if (_vp[_activeVP] == undefined) { return(false); } return(_vp[_activeVP].stateResponsive); } function get stopButton() { if (_uiMgr != null) { _stopButton = _uiMgr.getControl(mx.video.UIManager.STOP_BUTTON); } return(_stopButton); } function set stopButton(s) { _stopButton = s; if (_uiMgr != null) { _uiMgr.setControl(mx.video.UIManager.STOP_BUTTON, s); } //return(stopButton); } function get stopped() { if (_vp[_activeVP] == undefined) { return(false); } return(_vp[_activeVP].state == STOPPED); } function get totalTime() { if (_global.isLivePreview) { return(1); } if (_vp[_activeVP] == undefined) { return(_totalTime); } if (_vpState[_activeVP].totalTimeSet) { return(_vpState[_activeVP].totalTime); } return(_vp[_activeVP].totalTime); } function set totalTime(aTime) { if ((_activeVP == 0) || (_activeVP == undefined)) { _totalTime = aTime; } _vpState[_activeVP].totalTime = aTime; _vpState[_activeVP].totalTimeSet = true; //return(totalTime); } function get version_1_0_2() { return(""); } function set version_1_0_2(v) { //return(version_1_0_2); } function get visible() { return(_visible); } function set visible(v) { _visible = v; //return(visible); } function get visibleVideoPlayerIndex() { return(_visibleVP); } function set visibleVideoPlayerIndex(i) { if (_visibleVP == i) { return; } var _local3 = _visibleVP; if (_vp[i] == undefined) { createVideoPlayer(i); } var _local5 = (_vp[i].height != _vp[_visibleVP].height) || (_vp[i].width != _vp[_visibleVP].width); _vp[_visibleVP].visible = false; _vp[_visibleVP].volume = 0; _visibleVP = i; if (_firstStreamShown) { _uiMgr.setupSkinAutoHide(); _vp[_visibleVP].visible = true; if (!scrubbing) { _vp[_visibleVP].volume = _volume; } } else if ((_vp[_visibleVP].stateResponsive && (_vp[_visibleVP].state != DISCONNECTED)) && (_uiMgr.__get__skinReady())) { _uiMgr.__set__visible(true); _uiMgr.setupSkinAutoHide(); _firstStreamReady = true; showFirstStream(); } if ((_vp[_local3].height != _vp[_visibleVP].height) || (_vp[_local3].width != _vp[_visibleVP].width)) { dispatchEvent({type:"resize", x:x, y:y, width:width, height:height, auto:false, vp:_visibleVP}); } _uiMgr.handleEvent({type:"stateChange", state:_vp[_visibleVP].state, vp:_visibleVP}); _uiMgr.handleEvent({type:"playheadUpdate", playheadTime:_vp[_visibleVP].playheadTime, vp:_visibleVP}); if (_vp[_visibleVP].isRTMP) { _uiMgr.handleEvent({type:"ready", vp:_visibleVP}); } else { _uiMgr.handleEvent({type:"progress", bytesLoaded:_vp[_visibleVP].bytesLoaded, bytesTotal:_vp[_visibleVP].bytesTotal, vp:_visibleVP}); } //return(visibleVideoPlayerIndex); } function get volume() { return(_volume); } function set volume(aVol) { if (_volume == aVol) { return; } _volume = aVol; if (!scrubbing) { _vp[_visibleVP].volume = _volume; } dispatchEvent({type:"volumeUpdate", volume:aVol}); //return(volume); } function get volumeBar() { if (_uiMgr != null) { _volumeBar = _uiMgr.getControl(mx.video.UIManager.VOLUME_BAR); } return(_volumeBar); } function set volumeBar(s) { _volumeBar = s; if (_uiMgr != null) { _uiMgr.setControl(mx.video.UIManager.VOLUME_BAR, s); } //return(volumeBar); } function get volumeBarInterval() { if (_uiMgr != null) { _volumeBarInterval = _uiMgr.volumeBarInterval; } return(_volumeBarInterval); } function set volumeBarInterval(s) { _volumeBarInterval = s; if (_uiMgr != null) { _uiMgr.__set__volumeBarInterval(_volumeBarInterval); } //return(volumeBarInterval); } function get volumeBarScrubTolerance() { if (_uiMgr != null) { _volumeBarScrubTolerance = _uiMgr.volumeBarScrubTolerance; } return(_volumeBarScrubTolerance); } function set volumeBarScrubTolerance(s) { _volumeBarScrubTolerance = s; if (_uiMgr != null) { _uiMgr.__set__volumeBarScrubTolerance(_volumeBarScrubTolerance); } //return(volumeBarScrubTolerance); } function get width() { if (_global.isLivePreview) { return(__width); } if (_vp[_visibleVP] != undefined) { __width = _vp[_visibleVP].width; } return(__width); } function set width(w) { setSize(w, height); //return(width); } function get x() { return(_x); } function set x(xpos) { _x = xpos; //return(x); } function get y() { return(_y); } function set y(ypos) { _y = ypos; //return(y); } function createVideoPlayer(index) { if (_global.isLivePreview) { return(undefined); } var _local4 = width; var _local5 = height; _vp[index] = mx.video.VideoPlayer(attachMovie("VideoPlayer", String(index), VP_DEPTH_OFFSET + index)); _vp[index].setSize(_local4, _local5); _topVP = index; _vp[index].autoRewind = _autoRewind; _vp[index].autoSize = _autoSize; _vp[index].bufferTime = _bufferTime; _vp[index].idleTimeout = _idleTimeout; _vp[index].maintainAspectRatio = _aspectRatio; _vp[index].playheadUpdateInterval = _playheadUpdateInterval; _vp[index].progressInterval = _progressInterval; _vp[index].transform = _transform; _vp[index].volume = _volume; if (index == 0) { _vpState[index] = {id:index, isLive:_isLive, isLiveSet:true, totalTime:_totalTime, totalTimeSet:true, autoPlay:_autoPlay}; if (((_contentPath != null) && (_contentPath != undefined)) && (_contentPath != "")) { _vp[index].onEnterFrame = mx.utils.Delegate.create(this, doContentPathConnect); } } else { _vpState[index] = {id:index, isLive:false, isLiveSet:true, totalTime:0, totalTimeSet:true, autoPlay:false}; } _vp[index].addEventListener("resize", this); _vp[index].addEventListener("close", this); _vp[index].addEventListener("complete", this); _vp[index].addEventListener("cuePoint", this); _vp[index].addEventListener("playheadUpdate", this); _vp[index].addEventListener("progress", this); _vp[index].addEventListener("metadataReceived", this); _vp[index].addEventListener("stateChange", this); _vp[index].addEventListener("ready", this); _vp[index].addEventListener("rewind", this); _cpMgr[index] = new mx.video.CuePointManager(this, index); _cpMgr[index].playheadUpdateInterval = _playheadUpdateInterval; } function createUIManager() { _uiMgr = new mx.video.UIManager(this); _uiMgr.__set__visible(false); if (_backButton != null) { _uiMgr.setControl(mx.video.UIManager.BACK_BUTTON, _backButton); } if (_bufferingBar != null) { _uiMgr.setControl(mx.video.UIManager.BUFFERING_BAR, _bufferingBar); } _uiMgr.__set__bufferingBarHidesAndDisablesOthers(_bufferingBarHides); if (_forwardButton != null) { _uiMgr.setControl(mx.video.UIManager.FORWARD_BUTTON, _forwardButton); } if (_pauseButton != null) { _uiMgr.setControl(mx.video.UIManager.PAUSE_BUTTON, _pauseButton); } if (_playButton != null) { _uiMgr.setControl(mx.video.UIManager.PLAY_BUTTON, _playButton); } if (_playPauseButton != null) { _uiMgr.setControl(mx.video.UIManager.PLAY_PAUSE_BUTTON, _playPauseButton); } if (_stopButton != null) { _uiMgr.setControl(mx.video.UIManager.STOP_BUTTON, _stopButton); } if (_seekBar != null) { _uiMgr.setControl(mx.video.UIManager.SEEK_BAR, _seekBar); } if (_seekBarInterval != null) { _uiMgr.__set__seekBarInterval(_seekBarInterval); } if (_seekBarScrubTolerance != null) { _uiMgr.__set__seekBarScrubTolerance(_seekBarScrubTolerance); } if (_skin != null) { _uiMgr.__set__skin(_skin); } if (_skinAutoHide != null) { _uiMgr.__set__skinAutoHide(_skinAutoHide); } if (_muteButton != null) { _uiMgr.setControl(mx.video.UIManager.MUTE_BUTTON, _muteButton); } if (_volumeBar != null) { _uiMgr.setControl(mx.video.UIManager.VOLUME_BAR, _volumeBar); } if (_volumeBarInterval != null) { _uiMgr.__set__volumeBarInterval(_volumeBarInterval); } if (_volumeBarScrubTolerance != null) { _uiMgr.__set__volumeBarScrubTolerance(_volumeBarScrubTolerance); } } function createLivePreviewMovieClip() { preview_mc = createEmptyMovieClip("preview_mc", 10); preview_mc.createEmptyMovieClip("box_mc", 10); preview_mc.box_mc.beginFill(0); preview_mc.box_mc.moveTo(0, 0); preview_mc.box_mc.lineTo(0, 100); preview_mc.box_mc.lineTo(100, 100); preview_mc.box_mc.lineTo(100, 0); preview_mc.box_mc.lineTo(0, 0); preview_mc.box_mc.endFill(); preview_mc.attachMovie("Icon", "icon_mc", 20); } function doContentPathConnect() { delete _vp[0].onEnterFrame; _vp[0].onEnterFrame = undefined; if (_global.isLivePreview) { return(undefined); } if (_vpState[0].autoPlay && (_firstStreamShown)) { _vp[0].play(_contentPath, _isLive, _totalTime); } else { _vp[0].load(_contentPath, _isLive, _totalTime); } _vpState[0].isLiveSet = false; _vpState[0].totalTimeSet = false; } function showFirstStream() { _firstStreamShown = true; _vp[_visibleVP].visible = true; if (!scrubbing) { _vp[_visibleVP].volume = _volume; } var _local2 = 0; while (_local2 < _vp.length) { if (((_vp[_local2] != undefined) && (_vp[_local2].state == STOPPED)) && (_vpState[_local2].autoPlay)) { _vp[_local2].play(); } _local2++; } } function _scrubStart() { var _local2 = playheadTime; _vp[_visibleVP].volume = 0; dispatchEvent({type:"stateChange", state:SEEKING, playheadTime:_local2, vp:_visibleVP}); dispatchEvent({type:"scrubStart", state:SEEKING, playheadTime:_local2}); } function _scrubFinish() { var _local3 = playheadTime; var _local2 = state; _vp[_visibleVP].volume = _volume; if (_local2 != SEEKING) { dispatchEvent({type:"stateChange", state:_local2, playheadTime:_local3, vp:_visibleVP}); } dispatchEvent({type:"scrubFinish", state:_local2, playheadTime:_local3}); } function skinError(message) { if (_firstStreamReady && (!_firstStreamShown)) { showFirstStream(); } dispatchEvent({type:"skinError", message:message}); } function skinLoaded() { if (_firstStreamReady) { _uiMgr.__set__visible(true); if (!_firstStreamShown) { showFirstStream(); } } else if ((_contentPath == null) || (_contentPath == "")) { _uiMgr.__set__visible(true); } dispatchEvent({type:"skinLoaded"}); } static var version = "1.0.2.7"; static var shortVersion = "1.0.2"; static var DISCONNECTED = "disconnected"; static var STOPPED = "stopped"; static var PLAYING = "playing"; static var PAUSED = "paused"; static var BUFFERING = "buffering"; static var LOADING = "loading"; static var CONNECTION_ERROR = "connectionError"; static var REWINDING = "rewinding"; static var SEEKING = "seeking"; static var ALL = "all"; static var EVENT = "event"; static var NAVIGATION = "navigation"; static var FLV = "flv"; static var ACTIONSCRIPT = "actionscript"; static var VP_DEPTH_OFFSET = 100; static var SEEK_TO_PREV_OFFSET_DEFAULT = 1; }
Symbol 124 MovieClip [__Packages.mx.video.VideoPlayer] Frame 0
class mx.video.VideoPlayer extends MovieClip { var _state, _cachedState, _bufferState, _sawPlayStop, _cachedPlayheadTime, _metadata, _startingPlay, _invalidSeekTime, _invalidSeekRecovery, _currentPos, _atEnd, _cmdQueue, _readyDispatched, _autoResizeDone, _lastUpdateTime, _sawSeekNotify, _updateTimeIntervalID, _updateTimeInterval, _updateProgressIntervalID, _updateProgressInterval, _idleTimeoutIntervalID, _idleTimeoutInterval, _autoResizeIntervalID, _rtmpDoStopAtEndIntervalID, _rtmpDoSeekIntervalID, _httpDoSeekIntervalID, _httpDoSeekCount, _finishAutoResizeIntervalID, _delayedBufferingIntervalID, _delayedBufferingInterval, _isLive, _autoSize, _aspectRatio, _autoPlay, _autoRewind, _bufferTime, _volume, _sound, __visible, _hiddenForResize, _hiddenForResizeMetadataDelay, _contentPath, _video, _ncMgr, _ns, attachAudio, _prevVideoWidth, _prevVideoHeight, _streamLength, _videoWidth, _videoHeight, dispatchEvent, _x, _y, _visible, _hiddenRewindPlayheadTime, ncMgrClassName, _height, _width; function VideoPlayer () { super(); mx.events.EventDispatcher.initialize(this); _state = DISCONNECTED; _cachedState = _state; _bufferState = BUFFER_EMPTY; _sawPlayStop = false; _cachedPlayheadTime = 0; _metadata = null; _startingPlay = false; _invalidSeekTime = false; _invalidSeekRecovery = false; _currentPos = 0; _atEnd = false; _cmdQueue = new Array(); _readyDispatched = false; _autoResizeDone = false; _lastUpdateTime = -1; _sawSeekNotify = false; _updateTimeIntervalID = 0; _updateTimeInterval = DEFAULT_UPDATE_TIME_INTERVAL; _updateProgressIntervalID = 0; _updateProgressInterval = DEFAULT_UPDATE_PROGRESS_INTERVAL; _idleTimeoutIntervalID = 0; _idleTimeoutInterval = DEFAULT_IDLE_TIMEOUT_INTERVAL; _autoResizeIntervalID = 0; _rtmpDoStopAtEndIntervalID = 0; _rtmpDoSeekIntervalID = 0; _httpDoSeekIntervalID = 0; _httpDoSeekCount = 0; _finishAutoResizeIntervalID = 0; _delayedBufferingIntervalID = 0; _delayedBufferingInterval = HTTP_DELAYED_BUFFERING_INTERVAL; if (_isLive == undefined) { _isLive = false; } if (_autoSize == undefined) { _autoSize = false; } if (_aspectRatio == undefined) { _aspectRatio = true; } if (_autoPlay == undefined) { _autoPlay = true; } if (_autoRewind == undefined) { _autoRewind = true; } if (_bufferTime == undefined) { _bufferTime = 0.1; } if (_volume == undefined) { _volume = 100; } _sound = new Sound(this); _sound.setVolume(_volume); __visible = true; _hiddenForResize = false; _hiddenForResizeMetadataDelay = 0; _contentPath = ""; } function setSize(w, h) { if (((w == _video._width) && (h == _video._height)) || (_autoSize)) { return(undefined); } _video._width = w; _video._height = h; if (_aspectRatio) { startAutoResize(); } } function setScale(xs, ys) { if (((xs == _video._xscale) && (ys == _video._yscale)) || (_autoSize)) { return(undefined); } _video._xscale = xs; _video._yscale = ys; if (_aspectRatio) { startAutoResize(); } } function play(url, isLive, totalTime) { if (url != null) { if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if ((!stateResponsive) && (_state != CONNECTION_ERROR)) { queueCmd(PLAY, url, isLive, totalTime); return(undefined); } execQueuedCmds(); } _autoPlay = true; _load(url, isLive, totalTime); return(undefined); } if (!isXnOK()) { if (((_state == CONNECTION_ERROR) || (_ncMgr == null)) || (_ncMgr.getNetConnection() == null)) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); // unexpected jump } flushQueuedCmds(); queueCmd(PLAY); setState(LOADING); _cachedState = LOADING; _ncMgr.reconnect(); return(undefined); } if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if (!stateResponsive) { queueCmd(PLAY); return(undefined); } execQueuedCmds(); } if (_ns == null) { _createStream(); _video.attachVideo(_ns); attachAudio(_ns); } switch (_state) { case BUFFERING : if (_ncMgr.isRTMP()) { _play(0); if (_atEnd) { _atEnd = false; _currentPos = 0; setState(REWINDING); } else if (_currentPos > 0) { _seek(_currentPos); _currentPos = 0; } } case PLAYING : return(undefined); case STOPPED : if (_ncMgr.isRTMP()) { if (_isLive) { _play(-1); setState(BUFFERING); } else { _play(0); if (_atEnd) { _atEnd = false; _currentPos = 0; _state = BUFFERING; setState(REWINDING); } else if (_currentPos > 0) { _seek(_currentPos); _currentPos = 0; setState(BUFFERING); } else { setState(BUFFERING); } } } else { _pause(false); if (_atEnd) { _atEnd = false; _seek(0); _state = BUFFERING; setState(REWINDING); } else if (_bufferState == BUFFER_EMPTY) { setState(BUFFERING); } else { setState(PLAYING); } } break; case PAUSED : _pause(false); if (!_ncMgr.isRTMP()) { if (_bufferState == BUFFER_EMPTY) { setState(BUFFERING); } else { setState(PLAYING); } } else { setState(BUFFERING); } } } function load(url, isLive, totalTime) { if (url == null) { throw new Error("null url sent to VideoPlayer.load"); } if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if ((!stateResponsive) && (_state != CONNECTION_ERROR)) { queueCmd(LOAD, url, isLive, totalTime); return(undefined); } execQueuedCmds(); } _autoPlay = false; _load(url, isLive, totalTime); } function _load(url, isLive, totalTime) { _prevVideoWidth = videoWidth; if (_prevVideoWidth == undefined) { _prevVideoWidth = _video.width; if (_prevVideoWidth == undefined) { _prevVideoWidth = 0; } } _prevVideoHeight = videoHeight; if (_prevVideoHeight == undefined) { _prevVideoHeight = _video.height; if (_prevVideoHeight == undefined) { _prevVideoHeight = 0; } } _autoResizeDone = false; _cachedPlayheadTime = 0; _bufferState = BUFFER_EMPTY; _sawPlayStop = false; _metadata = null; _startingPlay = false; _invalidSeekTime = false; _invalidSeekRecovery = false; _isLive = ((isLive == undefined) ? false : (isLive)); _contentPath = url; _currentPos = 0; _streamLength = totalTime; _atEnd = false; _videoWidth = undefined; _videoHeight = undefined; _readyDispatched = false; _lastUpdateTime = -1; _sawSeekNotify = false; clearInterval(_updateTimeIntervalID); _updateTimeIntervalID = 0; clearInterval(_updateProgressIntervalID); _updateProgressIntervalID = 0; clearInterval(_idleTimeoutIntervalID); _idleTimeoutIntervalID = 0; clearInterval(_autoResizeIntervalID); _autoResizeIntervalID = 0; clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; clearInterval(_rtmpDoSeekIntervalID); _rtmpDoSeekIntervalID = 0; clearInterval(_httpDoSeekIntervalID); _httpDoSeekIntervalID = 0; clearInterval(_finishAutoResizeIntervalID); _finishAutoResizeIntervalID = 0; clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = 0; closeNS(false); if (_ncMgr == null) { createINCManager(); } var _local2 = _ncMgr.connectToURL(_contentPath); setState(LOADING); _cachedState = LOADING; if (_local2) { _createStream(); _setUpStream(); } if (!_ncMgr.isRTMP()) { clearInterval(_updateProgressIntervalID); _updateProgressIntervalID = setInterval(this, "doUpdateProgress", _updateProgressInterval); } } function pause() { if (!isXnOK()) { if (((_state == CONNECTION_ERROR) || (_ncMgr == null)) || (_ncMgr.getNetConnection() == null)) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); // unexpected jump } return(undefined); } if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if (!stateResponsive) { queueCmd(PAUSE); return(undefined); } execQueuedCmds(); } if (((_state == PAUSED) || (_state == STOPPED)) || (_ns == null)) { return(undefined); } _pause(true); setState(PAUSED); } function stop() { if (!isXnOK()) { if (((_state == CONNECTION_ERROR) || (_ncMgr == null)) || (_ncMgr.getNetConnection() == null)) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); // unexpected jump } return(undefined); } if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if (!stateResponsive) { queueCmd(STOP); return(undefined); } execQueuedCmds(); } if ((_state == STOPPED) || (_ns == null)) { return(undefined); } if (_ncMgr.isRTMP()) { if (_autoRewind && (!_isLive)) { _currentPos = 0; _play(0, 0); _state = STOPPED; setState(REWINDING); } else { closeNS(true); setState(STOPPED); } } else { _pause(true); if (_autoRewind) { _seek(0); _state = STOPPED; setState(REWINDING); } else { setState(STOPPED); } } } function seek(time) { if (_invalidSeekTime) { return(undefined); } if (isNaN(time) || (time < 0)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_SEEK); } if (!isXnOK()) { if (((_state == CONNECTION_ERROR) || (_ncMgr == null)) || (_ncMgr.getNetConnection() == null)) { throw new mx.video.VideoError(mx.video.VideoError.NO_CONNECTION); // unexpected jump } flushQueuedCmds(); queueCmd(SEEK, null, false, time); setState(LOADING); _cachedState = LOADING; _ncMgr.reconnect(); return(undefined); } if (_state == EXEC_QUEUED_CMD) { _state = _cachedState; } else { if (!stateResponsive) { queueCmd(SEEK, null, false, time); return(undefined); } execQueuedCmds(); } if (_ns == null) { _createStream(); _video.attachVideo(_ns); attachAudio(_ns); } if (_atEnd && (time < playheadTime)) { _atEnd = false; } switch (_state) { case PLAYING : _state = BUFFERING; case BUFFERING : case PAUSED : _seek(time); setState(SEEKING); break; case STOPPED : if (_ncMgr.isRTMP()) { _play(0); _pause(true); } _seek(time); _state = PAUSED; setState(SEEKING); } } function close() { closeNS(true); if ((_ncMgr != null) && (_ncMgr.isRTMP())) { _ncMgr.close(); } setState(DISCONNECTED); dispatchEvent({type:"close", state:_state, playheadTime:playheadTime}); } function get x() { return(_x); } function set x(xpos) { _x = xpos; //return(x); } function get y() { return(_y); } function set y(ypos) { _y = ypos; //return(y); } function get scaleX() { return(_video._xscale); } function set scaleX(xs) { setScale(xs, scaleY); //return(scaleX); } function get scaleY() { return(_video._yscale); } function set scaleY(ys) { setScale(scaleX, ys); //return(scaleY); } function get width() { return(_video._width); } function set width(w) { setSize(w, _video._height); //return(width); } function get height() { return(_video._height); } function set height(h) { setSize(_video._width, h); //return(height); } function get videoWidth() { if (_readyDispatched) { _videoWidth = _video.width; } return(_videoWidth); } function get videoHeight() { if (_readyDispatched) { _videoHeight = _video.height; } return(_videoHeight); } function get visible() { if (!_hiddenForResize) { __visible = _visible; } return(__visible); } function set visible(v) { __visible = v; if (!_hiddenForResize) { _visible = __visible; } //return(visible); } function get autoSize() { return(_autoSize); } function set autoSize(flag) { if (_autoSize != flag) { _autoSize = flag; if (_autoSize) { startAutoResize(); } } //return(autoSize); } function get maintainAspectRatio() { return(_aspectRatio); } function set maintainAspectRatio(flag) { if (_aspectRatio != flag) { _aspectRatio = flag; if (_aspectRatio && (!_autoSize)) { startAutoResize(); } } //return(maintainAspectRatio); } function get autoRewind() { return(_autoRewind); } function set autoRewind(flag) { _autoRewind = flag; //return(autoRewind); } function get playheadTime() { var _local2 = ((_ns == null) ? (_currentPos) : (_ns.time)); if (_metadata.audiodelay != undefined) { _local2 = _local2 - _metadata.audiodelay; if (_local2 < 0) { _local2 = 0; } } return(_local2); } function set playheadTime(position) { seek(position); //return(playheadTime); } function get url() { return(_contentPath); } function get volume() { return(_volume); } function set volume(aVol) { _volume = aVol; if (!_hiddenForResize) { _sound.setVolume(_volume); } //return(volume); } function get transform() { return(_sound.getTransform()); } function set transform(s) { _sound.setTransform(s); //return(transform); } function get isRTMP() { if (_ncMgr == null) { return(undefined); } return(_ncMgr.isRTMP()); } function get isLive() { return(_isLive); } function get state() { return(_state); } function get stateResponsive() { switch (_state) { case DISCONNECTED : case STOPPED : case PLAYING : case PAUSED : case BUFFERING : return(true); } return(false); } function get bytesLoaded() { if ((_ns == null) || (_ncMgr.isRTMP())) { return(-1); } return(_ns.bytesLoaded); } function get bytesTotal() { if ((_ns == null) || (_ncMgr.isRTMP())) { return(-1); } return(_ns.bytesTotal); } function get totalTime() { return(_streamLength); } function get bufferTime() { return(_bufferTime); } function set bufferTime(aTime) { _bufferTime = aTime; if (_ns != null) { _ns.setBufferTime(_bufferTime); } //return(bufferTime); } function get idleTimeout() { return(_idleTimeoutInterval); } function set idleTimeout(aTime) { _idleTimeoutInterval = aTime; if (_idleTimeoutIntervalID > 0) { clearInterval(_idleTimeoutIntervalID); _idleTimeoutIntervalID = setInterval(this, "doIdleTimeout", _idleTimeoutInterval); } //return(idleTimeout); } function get playheadUpdateInterval() { return(_updateTimeInterval); } function set playheadUpdateInterval(aTime) { _updateTimeInterval = aTime; if (_updateTimeIntervalID > 0) { clearInterval(_updateTimeIntervalID); _updateTimeIntervalID = setInterval(this, "doUpdateTime", _updateTimeInterval); } //return(playheadUpdateInterval); } function get progressInterval() { return(_updateProgressInterval); } function set progressInterval(aTime) { _updateProgressInterval = aTime; if (_updateProgressIntervalID > 0) { clearInterval(_updateProgressIntervalID); _updateProgressIntervalID = setInterval(this, "doUpdateProgress", _updateProgressInterval); } //return(progressInterval); } function get ncMgr() { if (_ncMgr == null) { createINCManager(); } return(_ncMgr); } function get metadata() { return(_metadata); } function doUpdateTime() { var _local2 = playheadTime; switch (_state) { case STOPPED : case PAUSED : case DISCONNECTED : case CONNECTION_ERROR : clearInterval(_updateTimeIntervalID); _updateTimeIntervalID = 0; } if (_lastUpdateTime != _local2) { dispatchEvent({type:"playheadUpdate", state:_state, playheadTime:_local2}); _lastUpdateTime = _local2; } } function doUpdateProgress() { if (_ns == null) { return(undefined); } if ((_ns.bytesTotal >= 0) && (_ns.bytesTotal >= 0)) { dispatchEvent({type:"progress", bytesLoaded:_ns.bytesLoaded, bytesTotal:_ns.bytesTotal}); } if (((_state == DISCONNECTED) || (_state == CONNECTION_ERROR)) || (_ns.bytesLoaded == _ns.bytesTotal)) { clearInterval(_updateProgressIntervalID); _updateProgressIntervalID = 0; } } function rtmpOnStatus(info) { if (_state == CONNECTION_ERROR) { return(undefined); } switch (info.code) { case "NetStream.Play.Stop" : if (_startingPlay) { return(undefined); } switch (_state) { case RESIZING : if (_hiddenForResize) { finishAutoResize(); } break; case LOADING : case STOPPED : case PAUSED : break; default : _sawPlayStop = true; } break; case "NetStream.Buffer.Empty" : if (!(_bufferState === BUFFER_FULL)) { } else if (_sawPlayStop) { rtmpDoStopAtEnd(true); } else if (_state == PLAYING) { setState(BUFFERING); } _bufferState = BUFFER_EMPTY; _sawPlayStop = false; break; case "NetStream.Buffer.Flush" : if (_sawSeekNotify && (_state == SEEKING)) { _bufferState = BUFFER_EMPTY; _sawPlayStop = false; setStateFromCachedState(); doUpdateTime(); } if (_sawPlayStop && ((_bufferState == BUFFER_EMPTY) || ((_bufferTime <= 0.1) && (_ns.bufferLength <= 0.1)))) { _cachedPlayheadTime = playheadTime; clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = setInterval(this, "rtmpDoStopAtEnd", RTMP_DO_STOP_AT_END_INTERVAL); } switch (_bufferState) { case BUFFER_EMPTY : if (!_hiddenForResize) { if (((_state == LOADING) && (_cachedState == PLAYING)) || (_state == BUFFERING)) { setState(PLAYING); } else if (_cachedState == BUFFERING) { _cachedState = PLAYING; } } _bufferState = BUFFER_FLUSH; break; default : if (_state != BUFFERING) { break; } setStateFromCachedState(); } break; case "NetStream.Buffer.Full" : if (_sawSeekNotify && (_state == SEEKING)) { _bufferState = BUFFER_EMPTY; _sawPlayStop = false; setStateFromCachedState(); doUpdateTime(); } switch (_bufferState) { case BUFFER_EMPTY : _bufferState = BUFFER_FULL; if (!_hiddenForResize) { if (((_state == LOADING) && (_cachedState == PLAYING)) || (_state == BUFFERING)) { setState(PLAYING); } else if (_cachedState == BUFFERING) { _cachedState = PLAYING; } if (_rtmpDoStopAtEndIntervalID != 0) { _sawPlayStop = true; clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; } } break; case BUFFER_FLUSH : _bufferState = BUFFER_FULL; if (_rtmpDoStopAtEndIntervalID == 0) { break; } _sawPlayStop = true; clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; } if (_state == BUFFERING) { setStateFromCachedState(); } break; case "NetStream.Pause.Notify" : if ((_state == RESIZING) && (_hiddenForResize)) { finishAutoResize(); } break; case "NetStream.Unpause.Notify" : if (_state == PAUSED) { _state = PLAYING; setState(BUFFERING); } else { _cachedState = PLAYING; } break; case "NetStream.Play.Start" : clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; _bufferState = BUFFER_EMPTY; _sawPlayStop = false; if (_startingPlay) { _startingPlay = false; _cachedPlayheadTime = playheadTime; } else if (_state == PLAYING) { setState(BUFFERING); } break; case "NetStream.Play.Reset" : clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; if (_state == REWINDING) { clearInterval(_rtmpDoSeekIntervalID); _rtmpDoSeekIntervalID = 0; if ((playheadTime == 0) || (playheadTime < _cachedPlayheadTime)) { setStateFromCachedState(); } else { _cachedPlayheadTime = playheadTime; _rtmpDoSeekIntervalID = setInterval(this, "rtmpDoSeek", RTMP_DO_SEEK_INTERVAL); } } break; case "NetStream.Seek.Notify" : if (playheadTime != _cachedPlayheadTime) { setStateFromCachedState(); doUpdateTime(); } else { _sawSeekNotify = true; if (_rtmpDoSeekIntervalID == 0) { _rtmpDoSeekIntervalID = setInterval(this, "rtmpDoSeek", RTMP_DO_SEEK_INTERVAL); } } break; case "Netstream.Play.UnpublishNotify" : break; case "Netstream.Play.PublishNotify" : break; case "NetStream.Play.StreamNotFound" : if (!_ncMgr.connectAgain()) { setState(CONNECTION_ERROR); } break; case "NetStream.Play.Failed" : case "NetStream.Failed" : case "NetStream.Play.FileStructureInvalid" : case "NetStream.Play.NoSupportedTrackFound" : setState(CONNECTION_ERROR); } } function httpOnStatus(info) { switch (info.code) { case "NetStream.Play.Stop" : clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = 0; if (_invalidSeekTime) { _invalidSeekTime = false; _invalidSeekRecovery = true; setState(_cachedState); seek(playheadTime); } else { switch (_state) { case SEEKING : httpDoSeek(); case PLAYING : case BUFFERING : httpDoStopAtEnd(); } } break; case "NetStream.Seek.InvalidTime" : if (_invalidSeekRecovery) { _invalidSeekTime = false; _invalidSeekRecovery = false; setState(_cachedState); seek(0); } else { _invalidSeekTime = true; } break; case "NetStream.Buffer.Empty" : _bufferState = BUFFER_EMPTY; if (_state == PLAYING) { clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = setInterval(this, "doDelayedBuffering", _delayedBufferingInterval); } break; case "NetStream.Buffer.Full" : case "NetStream.Buffer.Flush" : clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = 0; _bufferState = BUFFER_FULL; if (!_hiddenForResize) { if (((_state == LOADING) && (_cachedState == PLAYING)) || (_state == BUFFERING)) { setState(PLAYING); } else if (_cachedState == BUFFERING) { _cachedState = PLAYING; } } break; case "NetStream.Seek.Notify" : _invalidSeekRecovery = false; switch (_state) { case SEEKING : case REWINDING : if (_httpDoSeekIntervalID != 0) { break; } _httpDoSeekCount = 0; _httpDoSeekIntervalID = setInterval(this, "httpDoSeek", HTTP_DO_SEEK_INTERVAL); } break; case "NetStream.Play.StreamNotFound" : case "NetStream.Play.FileStructureInvalid" : case "NetStream.Play.NoSupportedTrackFound" : setState(CONNECTION_ERROR); } } function ncConnected() { if ((_ncMgr == null) || (_ncMgr.getNetConnection() == null)) { setState(CONNECTION_ERROR); } else if (_ns == null) { _createStream(); _setUpStream(); } } function ncReconnected() { if ((_ncMgr == null) || (_ncMgr.getNetConnection() == null)) { setState(CONNECTION_ERROR); } else { _ns = null; _state = STOPPED; execQueuedCmds(); } } function onMetaData(info) { if (_metadata != null) { return(undefined); } _metadata = info; if ((_streamLength == null) || (_streamLength <= 0)) { _streamLength = info.duration; } if (isNaN(_videoWidth) || (_videoWidth <= 0)) { _videoWidth = info.width; } if (isNaN(_videoHeight) || (_videoHeight <= 0)) { _videoHeight = info.height; } dispatchEvent({type:"metadataReceived", info:info}); } function onCuePoint(info) { if ((!_hiddenForResize) || ((!isNaN(_hiddenRewindPlayheadTime)) && (playheadTime < _hiddenRewindPlayheadTime))) { dispatchEvent({type:"cuePoint", info:info}); } } function setState(s) { if (s == _state) { return(undefined); } _hiddenRewindPlayheadTime = undefined; _cachedState = _state; _cachedPlayheadTime = playheadTime; _state = s; var _local2 = _state; dispatchEvent({type:"stateChange", state:_local2, playheadTime:playheadTime}); if (!_readyDispatched) { switch (_local2) { case STOPPED : case PLAYING : case PAUSED : case BUFFERING : _readyDispatched = true; dispatchEvent({type:"ready", state:_local2, playheadTime:playheadTime}); } } if (!(_cachedState === REWINDING)) { } else { dispatchEvent({type:"rewind", state:_local2, playheadTime:playheadTime}); if (_ncMgr.isRTMP() && (_local2 == STOPPED)) { closeNS(); } } switch (_local2) { case STOPPED : case PAUSED : if (_ncMgr.isRTMP() && (_idleTimeoutIntervalID == 0)) { _idleTimeoutIntervalID = setInterval(this, "doIdleTimeout", _idleTimeoutInterval); } break; case SEEKING : case REWINDING : _bufferState = BUFFER_EMPTY; _sawPlayStop = false; case PLAYING : case BUFFERING : if (_updateTimeIntervalID == 0) { _updateTimeIntervalID = setInterval(this, "doUpdateTime", _updateTimeInterval); } case LOADING : case RESIZING : clearInterval(_idleTimeoutIntervalID); _idleTimeoutIntervalID = 0; } execQueuedCmds(); } function setStateFromCachedState() { switch (_cachedState) { case PLAYING : case PAUSED : setState(_cachedState); break; case BUFFERING : if (_bufferState == BUFFER_EMPTY) { setState(BUFFERING); } else { setState(_cachedState); } break; default : setState(STOPPED); } } function createINCManager() { if (ncMgrClassName == null) { ncMgrClassName = DEFAULT_INCMANAGER; } var ncMgrConstructor = eval (this.ncMgrClassName); _ncMgr = new ncMgrConstructor(); _ncMgr.setVideoPlayer(this); } function rtmpDoStopAtEnd(force) { if (_rtmpDoStopAtEndIntervalID > 0) { switch (_state) { case DISCONNECTED : case CONNECTION_ERROR : clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; return(undefined); } if (force || (_cachedPlayheadTime == playheadTime)) { clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; } else { _cachedPlayheadTime = playheadTime; return(undefined); } } _bufferState = BUFFER_EMPTY; _sawPlayStop = false; _atEnd = true; setState(STOPPED); if (_state != STOPPED) { return(undefined); } doUpdateTime(); if (_state != STOPPED) { return(undefined); } dispatchEvent({type:"complete", state:_state, playheadTime:playheadTime}); if (_state != STOPPED) { return(undefined); } if ((_autoRewind && (!_isLive)) && (playheadTime != 0)) { _atEnd = false; _currentPos = 0; _play(0, 0); setState(REWINDING); } else { closeNS(); } } function rtmpDoSeek() { if ((_state != REWINDING) && (_state != SEEKING)) { clearInterval(_rtmpDoSeekIntervalID); _rtmpDoSeekIntervalID = 0; _sawSeekNotify = false; } else if (playheadTime != _cachedPlayheadTime) { clearInterval(_rtmpDoSeekIntervalID); _rtmpDoSeekIntervalID = 0; _sawSeekNotify = false; setStateFromCachedState(); doUpdateTime(); } } function httpDoStopAtEnd() { _atEnd = true; if ((_streamLength == null) || (_streamLength <= 0)) { _streamLength = _ns.time; } _pause(true); setState(STOPPED); if (_state != STOPPED) { return(undefined); } doUpdateTime(); if (_state != STOPPED) { return(undefined); } dispatchEvent({type:"complete", state:_state, playheadTime:playheadTime}); if (_state != STOPPED) { return(undefined); } if (_autoRewind) { _atEnd = false; _pause(true); _seek(0); setState(REWINDING); } } function httpDoSeek() { var _local2 = (_state == REWINDING) || (_state == SEEKING); if ((_local2 && (_httpDoSeekCount < HTTP_DO_SEEK_MAX_COUNT)) && ((_cachedPlayheadTime == playheadTime) || (_invalidSeekTime))) { _httpDoSeekCount++; return(undefined); } _httpDoSeekCount = 0; clearInterval(_httpDoSeekIntervalID); _httpDoSeekIntervalID = 0; if (!_local2) { return(undefined); } setStateFromCachedState(); if (_invalidSeekTime) { _invalidSeekTime = false; _invalidSeekRecovery = true; seek(playheadTime); } else { doUpdateTime(); } } function closeNS(updateCurrentPos) { if ((_ns != null) && (_ns != undefined)) { if (updateCurrentPos) { clearInterval(_updateTimeIntervalID); _updateTimeIntervalID = 0; doUpdateTime(); _currentPos = _ns.time; } delete _ns.onStatus; _ns.onStatus = null; _ns.close(); _ns = null; } } function doDelayedBuffering() { switch (_state) { case LOADING : case RESIZING : break; case PLAYING : clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = 0; setState(BUFFERING); break; default : clearInterval(_delayedBufferingIntervalID); _delayedBufferingIntervalID = 0; } } function _pause(doPause) { clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; _ns.pause(doPause); } function _play() { clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; _startingPlay = true; switch (arguments.length) { case 0 : _ns.play(_ncMgr.getStreamName(), (_isLive ? -1 : 0), -1); break; case 1 : _ns.play(_ncMgr.getStreamName(), (_isLive ? -1 : (arguments[0])), -1); break; case 2 : _ns.play(_ncMgr.getStreamName(), (_isLive ? -1 : (arguments[0])), arguments[1]); break; default : throw new Error("bad args to _play"); } } function _seek(time) { clearInterval(_rtmpDoStopAtEndIntervalID); _rtmpDoStopAtEndIntervalID = 0; if ((_metadata.audiodelay != undefined) && ((time + _metadata.audiodelay) < _streamLength)) { time = time + _metadata.audiodelay; } _ns.seek(time); _invalidSeekTime = false; _bufferState = BUFFER_EMPTY; _sawPlayStop = false; _sawSeekNotify = false; } function isXnOK() { if (_state == LOADING) { return(true); } if (_state == CONNECTION_ERROR) { return(false); } if (_state != DISCONNECTED) { if (((_ncMgr == null) || (_ncMgr.getNetConnection() == null)) || (!_ncMgr.getNetConnection().isConnected)) { setState(DISCONNECTED); return(false); } return(true); } return(false); } function startAutoResize() { switch (_state) { case DISCONNECTED : case CONNECTION_ERROR : return(undefined); } _autoResizeDone = false; if ((stateResponsive && (_videoWidth != undefined)) && (_videoHeight != undefined)) { doAutoResize(); } else { clearInterval(_autoResizeIntervalID); _autoResizeIntervalID = setInterval(this, "doAutoResize", AUTO_RESIZE_INTERVAL); } } function doAutoResize() { if (_autoResizeIntervalID > 0) { switch (_state) { case RESIZING : case LOADING : break; case DISCONNECTED : case CONNECTION_ERROR : clearInterval(_autoResizeIntervalID); _autoResizeIntervalID = 0; return(undefined); default : if (stateResponsive) { break; } return(undefined); } if (((((_video.width != _prevVideoWidth) || (_video.height != _prevVideoHeight)) || (_bufferState == BUFFER_FULL)) || (_bufferState == BUFFER_FLUSH)) || (_ns.time > AUTO_RESIZE_PLAYHEAD_TIMEOUT)) { if ((_hiddenForResize && (_metadata == null)) && (_hiddenForResizeMetadataDelay < AUTO_RESIZE_METADATA_DELAY_MAX)) { _hiddenForResizeMetadataDelay++; return(undefined); } _videoWidth = _video.width; _videoHeight = _video.height; clearInterval(_autoResizeIntervalID); _autoResizeIntervalID = 0; } else { return(undefined); } } if (((!_autoSize) && (!_aspectRatio)) || (_autoResizeDone)) { setState(_cachedState); return(undefined); } _autoResizeDone = true; if (_autoSize) { _video._width = _videoWidth; _video._height = _videoHeight; } else if (_aspectRatio) { var _local3 = (_videoWidth * height) / _videoHeight; var _local2 = (_videoHeight * width) / _videoWidth; if (_local2 < height) { _video._height = _local2; } else if (_local3 < width) { _video._width = _local3; } } if (_hiddenForResize) { _hiddenRewindPlayheadTime = playheadTime; if (_state == LOADING) { _cachedState = PLAYING; } if (!_ncMgr.isRTMP()) { _pause(true); _seek(0); clearInterval(_finishAutoResizeIntervalID); _finishAutoResizeIntervalID = setInterval(this, "finishAutoResize", FINISH_AUTO_RESIZE_INTERVAL); } else if (!_isLive) { _currentPos = 0; _play(0, 0); setState(RESIZING); } else if (_autoPlay) { clearInterval(_finishAutoResizeIntervalID); _finishAutoResizeIntervalID = setInterval(this, "finishAutoResize", FINISH_AUTO_RESIZE_INTERVAL); } else { finishAutoResize(); } } else { dispatchEvent({type:"resize", x:_x, y:_y, width:_width, height:_height}); } } function finishAutoResize() { clearInterval(_finishAutoResizeIntervalID); _finishAutoResizeIntervalID = 0; if (stateResponsive) { return(undefined); } _visible = __visible; _sound.setVolume(_volume); _hiddenForResize = false; dispatchEvent({type:"resize", x:_x, y:_y, width:_width, height:_height}); if (_autoPlay) { if (_ncMgr.isRTMP()) { if (!_isLive) { _currentPos = 0; _play(0); } if (_state == RESIZING) { setState(LOADING); _cachedState = PLAYING; } } else { _pause(false); _cachedState = PLAYING; } } else { setState(STOPPED); } } function _createStream() { _ns = new NetStream(_ncMgr.getNetConnection()); _ns.mc = this; if (_ncMgr.isRTMP()) { _ns.onStatus = function (info) { this.mc.rtmpOnStatus(info); }; } else { _ns.onStatus = function (info) { this.mc.httpOnStatus(info); }; } _ns.onMetaData = function (info) { this.mc.onMetaData(info); }; _ns.onCuePoint = function (info) { this.mc.onCuePoint(info); }; _ns.setBufferTime(_bufferTime); } function _setUpStream() { _video.attachVideo(_ns); attachAudio(_ns); if ((!isNaN(_ncMgr.getStreamLength())) && (_ncMgr.getStreamLength() >= 0)) { _streamLength = _ncMgr.getStreamLength(); } if ((!isNaN(_ncMgr.getStreamWidth())) && (_ncMgr.getStreamWidth() >= 0)) { _videoWidth = _ncMgr.getStreamWidth(); } else { _videoWidth = undefined; } if ((!isNaN(_ncMgr.getStreamHeight())) && (_ncMgr.getStreamHeight() >= 0)) { _videoHeight = _ncMgr.getStreamHeight(); } else { _videoHeight = undefined; } if (((_autoSize || (_aspectRatio)) && (_videoWidth != undefined)) && (_videoHeight != undefined)) { _prevVideoWidth = undefined; _prevVideoHeight = undefined; doAutoResize(); } if (((!_autoSize) && (!_aspectRatio)) || ((_videoWidth != undefined) && (_videoHeight != undefined))) { if (_autoPlay) { if (!_ncMgr.isRTMP()) { _cachedState = BUFFERING; _play(); } else if (_isLive) { _cachedState = BUFFERING; _play(-1); } else { _cachedState = BUFFERING; _play(0); } } else { _cachedState = STOPPED; if (_ncMgr.isRTMP()) { _play(0, 0); } else { _play(); _pause(true); _seek(0); } } } else { if (!_hiddenForResize) { __visible = _visible; _visible = false; _volume = _sound.getVolume(); _sound.setVolume(0); _hiddenForResize = true; } _hiddenForResizeMetadataDelay = 0; _play(0); if (_currentPos > 0) { _seek(_currentPos); _currentPos = 0; } } clearInterval(_autoResizeIntervalID); _autoResizeIntervalID = setInterval(this, "doAutoResize", AUTO_RESIZE_INTERVAL); } function doIdleTimeout() { clearInterval(_idleTimeoutIntervalID); _idleTimeoutIntervalID = 0; close(); } function flushQueuedCmds() { while (_cmdQueue.length > 0) { _cmdQueue.pop(); } } function execQueuedCmds() { while (((_cmdQueue.length > 0) && (stateResponsive || (_state == CONNECTION_ERROR))) && ((_cmdQueue[0].url != null) || ((_state != DISCONNECTED) && (_state != CONNECTION_ERROR)))) { var _local2 = _cmdQueue.shift(); _cachedState = _state; _state = EXEC_QUEUED_CMD; switch (_local2.type) { case PLAY : play(_local2.url, _local2.isLive, _local2.time); break; case LOAD : load(_local2.url, _local2.isLive, _local2.time); break; case PAUSE : pause(); break; case STOP : stop(); break; case SEEK : seek(_local2.time); } } } function queueCmd(type, url, isLive, time) { _cmdQueue.push({type:type, url:url, isLive:isLive, time:time}); } static var version = "1.0.2.7"; static var shortVersion = "1.0.2"; static var DISCONNECTED = "disconnected"; static var STOPPED = "stopped"; static var PLAYING = "playing"; static var PAUSED = "paused"; static var BUFFERING = "buffering"; static var LOADING = "loading"; static var CONNECTION_ERROR = "connectionError"; static var REWINDING = "rewinding"; static var SEEKING = "seeking"; static var RESIZING = "resizing"; static var EXEC_QUEUED_CMD = "execQueuedCmd"; static var BUFFER_EMPTY = "bufferEmpty"; static var BUFFER_FULL = "bufferFull"; static var BUFFER_FLUSH = "bufferFlush"; static var DEFAULT_INCMANAGER = "mx.video.NCManager"; static var DEFAULT_UPDATE_TIME_INTERVAL = 250; static var DEFAULT_UPDATE_PROGRESS_INTERVAL = 250; static var DEFAULT_IDLE_TIMEOUT_INTERVAL = 300000; static var AUTO_RESIZE_INTERVAL = 100; static var AUTO_RESIZE_PLAYHEAD_TIMEOUT = 0.5; static var AUTO_RESIZE_METADATA_DELAY_MAX = 5; static var FINISH_AUTO_RESIZE_INTERVAL = 250; static var RTMP_DO_STOP_AT_END_INTERVAL = 500; static var RTMP_DO_SEEK_INTERVAL = 100; static var HTTP_DO_SEEK_INTERVAL = 250; static var HTTP_DO_SEEK_MAX_COUNT = 4; static var CLOSE_NS_INTERVAL = 0.25; static var HTTP_DELAYED_BUFFERING_INTERVAL = 100; static var PLAY = 0; static var LOAD = 1; static var PAUSE = 2; static var STOP = 3; static var SEEK = 4; }
Symbol 125 MovieClip [__Packages.mx.video.INCManager] Frame 0
interface mx.video.INCManager { }
Symbol 126 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher { function EventDispatcher () { } static function _removeEventListener(queue, event, handler) { if (queue != undefined) { var _local4 = queue.length; var _local1; _local1 = 0; while (_local1 < _local4) { var _local2 = queue[_local1]; if (_local2 == handler) { queue.splice(_local1, 1); return(undefined); } _local1++; } } } static function initialize(object) { if (_fEventDispatcher == undefined) { _fEventDispatcher = new mx.events.EventDispatcher(); } object.addEventListener = _fEventDispatcher.addEventListener; object.removeEventListener = _fEventDispatcher.removeEventListener; object.dispatchEvent = _fEventDispatcher.dispatchEvent; object.dispatchQueue = _fEventDispatcher.dispatchQueue; } function dispatchQueue(queueObj, eventObj) { var _local7 = "__q_" + eventObj.type; var _local4 = queueObj[_local7]; if (_local4 != undefined) { var _local5; for (_local5 in _local4) { var _local1 = _local4[_local5]; var _local3 = typeof(_local1); if ((_local3 == "object") || (_local3 == "movieclip")) { if (_local1.handleEvent != undefined) { _local1.handleEvent(eventObj); } if (_local1[eventObj.type] != undefined) { if (exceptions[eventObj.type] == undefined) { _local1[eventObj.type](eventObj); } } } else { _local1.apply(queueObj, [eventObj]); } } } } function dispatchEvent(eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + "Handler"](eventObj); dispatchQueue(this, eventObj); } function addEventListener(event, handler) { var _local3 = "__q_" + event; if (this[_local3] == undefined) { this[_local3] = new Array(); } _global.ASSetPropFlags(this, _local3, 1); _removeEventListener(this[_local3], event, handler); this[_local3].push(handler); } function removeEventListener(event, handler) { var _local2 = "__q_" + event; _removeEventListener(this[_local2], event, handler); } static var _fEventDispatcher = undefined; static var exceptions = {move:1, draw:1, load:1}; }
Symbol 127 MovieClip [__Packages.mx.video.VideoError] Frame 0
class mx.video.VideoError extends Error { var _code, message, name; function VideoError (errCode, msg) { super(); _code = errCode; message = ((("" + errCode) + ": ") + ERROR_MSG[errCode - BASE_ERROR_CODE]) + ((msg == undefined) ? "" : (": " + msg)); name = "VideoError"; } function get code() { return(_code); } static var version = "1.0.2.7"; static var shortVersion = "1.0.2"; static var BASE_ERROR_CODE = 1000; static var NO_CONNECTION = 1000; static var NO_CUE_POINT_MATCH = 1001; static var ILLEGAL_CUE_POINT = 1002; static var INVALID_SEEK = 1003; static var INVALID_CONTENT_PATH = 1004; static var INVALID_XML = 1005; static var NO_BITRATE_MATCH = 1006; static var DELETE_DEFAULT_PLAYER = 1007; static var ERROR_MSG = ["Unable to make connection to server or to find FLV on server", "No matching cue point found", "Illegal cue point", "Invalid seek", "Invalid contentPath", "Invalid xml", "No bitrate match, must be no default flv", "Cannot delete default VideoPlayer"]; }
Symbol 128 MovieClip [__Packages.mx.video.UIManager] Frame 0
class mx.video.UIManager { var _vc, _skin, _skinAutoHide, _skinReady, __visible, _bufferingBarHides, _controlsEnabled, _lastScrubPos, _lastVolumePos, cachedSoundLevel, _isMuted, controls, customClips, skin_mc, skinLoader, layout_mc, border_mc, _seekBarIntervalID, _seekBarInterval, _seekBarScrubTolerance, _volumeBarIntervalID, _volumeBarInterval, _volumeBarScrubTolerance, _bufferingDelayIntervalID, _bufferingDelayInterval, _bufferingOn, _skinAutoHideIntervalID, _progressPercent, placeholderLeft, placeholderRight, placeholderTop, placeholderBottom, videoLeft, videoRight, videoTop, videoBottom, _playAfterScrub; function UIManager (vc) { _vc = vc; _skin = undefined; _skinAutoHide = false; _skinReady = true; __visible = true; _bufferingBarHides = false; _controlsEnabled = true; _lastScrubPos = 0; _lastVolumePos = 0; cachedSoundLevel = _vc.volume; _isMuted = false; controls = new Array(); customClips = undefined; skin_mc = undefined; skinLoader = undefined; layout_mc = undefined; border_mc = undefined; _seekBarIntervalID = 0; _seekBarInterval = SEEK_BAR_INTERVAL_DEFAULT; _seekBarScrubTolerance = SEEK_BAR_SCRUB_TOLERANCE_DEFAULT; _volumeBarIntervalID = 0; _volumeBarInterval = VOLUME_BAR_INTERVAL_DEFAULT; _volumeBarScrubTolerance = VOLUME_BAR_SCRUB_TOLERANCE_DEFAULT; _bufferingDelayIntervalID = 0; _bufferingDelayInterval = BUFFERING_DELAY_INTERVAL_DEFAULT; _bufferingOn = false; _skinAutoHideIntervalID = 0; _vc.addEventListener("metadataReceived", this); _vc.addEventListener("playheadUpdate", this); _vc.addEventListener("progress", this); _vc.addEventListener("stateChange", this); _vc.addEventListener("ready", this); _vc.addEventListener("resize", this); _vc.addEventListener("volumeUpdate", this); } function handleEvent(e) { if ((e.vp != undefined) && (e.vp != _vc.__get__visibleVideoPlayerIndex())) { return(undefined); } var _local9 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); if (e.type == "stateChange") { if (e.state == mx.video.FLVPlayback.BUFFERING) { if (!_bufferingOn) { clearInterval(_bufferingDelayIntervalID); _bufferingDelayIntervalID = setInterval(this, "doBufferingDelay", _bufferingDelayInterval); } } else { clearInterval(_bufferingDelayIntervalID); _bufferingDelayIntervalID = 0; _bufferingOn = false; } if (e.state == mx.video.FLVPlayback.LOADING) { _progressPercent = (_vc.getVideoPlayer(e.vp).__get__isRTMP() ? 100 : 0); var _local2 = SEEK_BAR; while (_local2 <= VOLUME_BAR) { var _local4 = controls[_local2]; if (_local4.progress_mc != undefined) { positionBar(_local4, "progress", _progressPercent); } _local2++; } } var _local2 = 0; while (_local2 < NUM_CONTROLS) { if (controls[_local2] == undefined) { } else { setEnabledAndVisibleForState(_local2, e.state); if (_local2 < NUM_BUTTONS) { skinButtonControl(controls[_local2]); } } _local2++; } } else if ((e.type == "ready") || (e.type == "metadataReceived")) { var _local2 = 0; while (_local2 < NUM_CONTROLS) { if (controls[_local2] == undefined) { } else { setEnabledAndVisibleForState(_local2, _vc.__get__state()); if (_local2 < NUM_BUTTONS) { skinButtonControl(controls[_local2]); } } _local2++; } if (_vc.getVideoPlayer(e.vp).__get__isRTMP()) { _progressPercent = 100; _local2 = SEEK_BAR; while (_local2 <= VOLUME_BAR) { var _local4 = controls[_local2]; if (_local4.progress_mc != undefined) { positionBar(_local4, "progress", _progressPercent); } _local2++; } } } else if (e.type == "resize") { layoutSkin(); setupSkinAutoHide(); } else if (e.type == "volumeUpdate") { if (_isMuted && (e.volume > 0)) { _isMuted = false; setEnabledAndVisibleForState(MUTE_OFF_BUTTON, mx.video.FLVPlayback.PLAYING); skinButtonControl(controls[MUTE_OFF_BUTTON]); setEnabledAndVisibleForState(MUTE_ON_BUTTON, mx.video.FLVPlayback.PLAYING); skinButtonControl(controls[MUTE_ON_BUTTON]); } var _local5 = controls[VOLUME_BAR]; _local5.percentage = (_isMuted ? (cachedSoundLevel) : (e.volume)); if (_local5.percentage < 0) { _local5.percentage = 0; } else if (_local5.percentage > 100) { _local5.percentage = 100; } positionHandle(VOLUME_BAR); } else if ((e.type == "playheadUpdate") && (controls[SEEK_BAR] != undefined)) { if ((!_vc.__get__isLive()) && (_vc.__get__totalTime() > 0)) { var _local6 = (e.playheadTime / _vc.__get__totalTime()) * 100; if (_local6 < 0) { _local6 = 0; } else if (_local6 > 100) { _local6 = 100; } var _local10 = controls[SEEK_BAR]; _local10.percentage = _local6; positionHandle(SEEK_BAR); } } else if (e.type == "progress") { _progressPercent = ((e.bytesTotal <= 0) ? 100 : ((e.bytesLoaded / e.bytesTotal) * 100)); var _local7 = _vc._vpState[e.vp].minProgressPercent; if ((!isNaN(_local7)) && (_local7 > _progressPercent)) { _progressPercent = _local7; } if (_vc.__get__totalTime() > 0) { var _local8 = (_vc.__get__playheadTime() / _vc.__get__totalTime()) * 100; if (_local8 > _progressPercent) { _progressPercent = _local8; _vc._vpState[e.vp].minProgressPercent = _progressPercent; } } var _local2 = SEEK_BAR; while (_local2 <= VOLUME_BAR) { var _local4 = controls[_local2]; if (_local4.progress_mc != undefined) { positionBar(_local4, "progress", _progressPercent); } _local2++; } } _vc.__set__activeVideoPlayerIndex(_local9); } function get bufferingBarHidesAndDisablesOthers() { return(_bufferingBarHides); } function set bufferingBarHidesAndDisablesOthers(b) { _bufferingBarHides = b; //return(bufferingBarHidesAndDisablesOthers); } function get controlsEnabled() { return(_controlsEnabled); } function set controlsEnabled(flag) { if (_controlsEnabled == flag) { return; } _controlsEnabled = flag; var _local2 = 0; while (_local2 < NUM_BUTTONS) { if (controls[_local2] == undefined) { } else { controls[_local2].releaseCapture(); controls[_local2].enabled = _controlsEnabled && (controls[_local2].myEnabled); skinButtonControl(controls[_local2]); } _local2++; } //return(controlsEnabled); } function get skin() { return(_skin); } function set skin(s) { if (s == _skin) { return; } if (_skin != undefined) { removeSkin(); } _skin = s; _skinReady = (_skin == null) || (_skin == ""); if (!_skinReady) { downloadSkin(); } //return(skin); } function get skinAutoHide() { return(_skinAutoHide); } function set skinAutoHide(b) { if (b == _skinAutoHide) { return; } _skinAutoHide = b; setupSkinAutoHide(); //return(skinAutoHide); } function get skinReady() { return(_skinReady); } function get seekBarInterval() { return(_seekBarInterval); } function set seekBarInterval(s) { if (_seekBarInterval == s) { return; } _seekBarInterval = s; if (_seekBarIntervalID > 0) { clearInterval(_seekBarIntervalID); _seekBarIntervalID = setInterval(this, "seekBarListener", _seekBarInterval, false); } //return(seekBarInterval); } function get volumeBarInterval() { return(_volumeBarInterval); } function set volumeBarInterval(s) { if (_volumeBarInterval == s) { return; } _volumeBarInterval = s; if (_volumeBarIntervalID > 0) { clearInterval(_volumeBarIntervalID); _volumeBarIntervalID = setInterval(this, "volumeBarListener", _volumeBarInterval, false); } //return(volumeBarInterval); } function get bufferingDelayInterval() { return(_bufferingDelayInterval); } function set bufferingDelayInterval(s) { if (_bufferingDelayInterval == s) { return; } _bufferingDelayInterval = s; if (_bufferingDelayIntervalID > 0) { clearInterval(_bufferingDelayIntervalID); _bufferingDelayIntervalID = setInterval(this, "doBufferingDelay", _bufferingDelayIntervalID); } //return(bufferingDelayInterval); } function get volumeBarScrubTolerance() { return(_volumeBarScrubTolerance); } function set volumeBarScrubTolerance(s) { _volumeBarScrubTolerance = s; //return(volumeBarScrubTolerance); } function get seekBarScrubTolerance() { return(_seekBarScrubTolerance); } function set seekBarScrubTolerance(s) { _seekBarScrubTolerance = s; //return(seekBarScrubTolerance); } function get visible() { return(__visible); } function set visible(v) { if (__visible == v) { return; } __visible = v; if (!__visible) { skin_mc._visible = false; } else { setupSkinAutoHide(); } //return(visible); } function getControl(index) { return(controls[index]); } function setControl(index, s) { if (s == null) { s = undefined; } if (s == controls[index]) { return(undefined); } switch (index) { case PAUSE_BUTTON : case PLAY_BUTTON : resetPlayPause(); break; case PLAY_PAUSE_BUTTON : if (s._parent != layout_mc) { resetPlayPause(); setControl(PAUSE_BUTTON, s.pause_mc); setControl(PLAY_BUTTON, s.play_mc); } break; case MUTE_BUTTON : if (s._parent == layout_mc) { break; } setControl(MUTE_ON_BUTTON, s.on_mc); setControl(MUTE_OFF_BUTTON, s.off_mc); } if (index >= NUM_BUTTONS) { controls[index] = s; switch (index) { case SEEK_BAR : addBarControl(SEEK_BAR); break; case VOLUME_BAR : addBarControl(VOLUME_BAR); controls[VOLUME_BAR].percentage = _vc.volume; break; case BUFFERING_BAR : controls[BUFFERING_BAR].uiMgr = this; controls[BUFFERING_BAR].controlIndex = BUFFERING_BAR; if (controls[BUFFERING_BAR]._parent == skin_mc) { finishAddBufferingBar(); } else { controls[BUFFERING_BAR].onEnterFrame = function () { this.uiMgr.finishAddBufferingBar(); }; } } setEnabledAndVisibleForState(index, _vc.__get__state()); } else { removeButtonControl(index); controls[index] = s; addButtonControl(index); } } function resetPlayPause() { if (controls[PLAY_PAUSE_BUTTON] == undefined) { return(undefined); } var _local2 = PAUSE_BUTTON; while (_local2 <= PLAY_BUTTON) { removeButtonControl(_local2); _local2++; } controls[PLAY_PAUSE_BUTTON] = undefined; } function addButtonControl(index) { var _local3 = controls[index]; if (_local3 == undefined) { return(undefined); } var _local5 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); _local3.id = index; _local3.state = UP_STATE; _local3.uiMgr = this; setEnabledAndVisibleForState(index, _vc.__get__state()); _local3.onRollOver = function () { this.state = mx.video.UIManager.OVER_STATE; this.uiMgr.skinButtonControl(this); }; _local3.onRollOut = function () { this.state = mx.video.UIManager.UP_STATE; this.uiMgr.skinButtonControl(this); }; if ((index == SEEK_BAR_HANDLE) || (index == VOLUME_BAR_HANDLE)) { _local3.onPress = function () { if (_root.focusManager) { this._focusrect = false; Selection.setFocus(this); } this.state = mx.video.UIManager.DOWN_STATE; this.uiMgr.dispatchMessage(this); this.uiMgr.skinButtonControl(this); }; _local3.onRelease = function () { this.state = mx.video.UIManager.OVER_STATE; this.uiMgr.handleRelease(this.controlIndex); this.uiMgr.skinButtonControl(this); }; _local3.onReleaseOutside = function () { this.state = mx.video.UIManager.UP_STATE; this.uiMgr.handleRelease(this.controlIndex); this.uiMgr.skinButtonControl(this); }; } else { _local3.onPress = function () { if (_root.focusManager) { this._focusrect = false; Selection.setFocus(this); } this.state = mx.video.UIManager.DOWN_STATE; this.uiMgr.skinButtonControl(this); }; _local3.onRelease = function () { this.state = mx.video.UIManager.OVER_STATE; this.uiMgr.dispatchMessage(this); this.uiMgr.skinButtonControl(this); }; _local3.onReleaseOutside = function () { this.state = mx.video.UIManager.UP_STATE; this.uiMgr.skinButtonControl(this); }; } if (_local3._parent == skin_mc) { skinButtonControl(_local3); } else { _local3.onEnterFrame = function () { this.uiMgr.skinButtonControl(this); }; } _vc.__set__activeVideoPlayerIndex(_local5); } function removeButtonControl(index) { if (controls[index] == undefined) { return(undefined); } controls[index].uiMgr = undefined; controls[index].onRollOver = undefined; controls[index].onRollOut = undefined; controls[index].onPress = undefined; controls[index].onRelease = undefined; controls[index].onReleaseOutside = undefined; controls[index] = undefined; } function downloadSkin() { if (skinLoader == undefined) { skinLoader = new MovieClipLoader(); skinLoader.addListener(this); } if (skin_mc == undefined) { skin_mc = _vc.createEmptyMovieClip("skin_mc", _vc.getNextHighestDepth()); } skin_mc._visible = false; skin_mc._x = Stage.width + 100; skin_mc._y = Stage.height + 100; skinLoader.loadClip(_skin, skin_mc); } function onLoadError(target_mc, errorCode) { _skinReady = true; _vc.skinError("Unable to load skin swf"); } function onLoadInit() { try { skin_mc._visible = false; skin_mc._x = 0; skin_mc._y = 0; layout_mc = skin_mc.layout_mc; if (layout_mc == undefined) { throw new Error("No layout_mc"); } layout_mc._visible = false; customClips = new Array(); setCustomClips("bg"); if (layout_mc.playpause_mc != undefined) { setSkin(PLAY_PAUSE_BUTTON, layout_mc.playpause_mc); } else { setSkin(PAUSE_BUTTON, layout_mc.pause_mc); setSkin(PLAY_BUTTON, layout_mc.play_mc); } setSkin(STOP_BUTTON, layout_mc.stop_mc); setSkin(BACK_BUTTON, layout_mc.back_mc); setSkin(FORWARD_BUTTON, layout_mc.forward_mc); setSkin(MUTE_BUTTON, layout_mc.volumeMute_mc); setSkin(SEEK_BAR, layout_mc.seekBar_mc); setSkin(VOLUME_BAR, layout_mc.volumeBar_mc); setSkin(BUFFERING_BAR, layout_mc.bufferingBar_mc); setCustomClips("fg"); layoutSkin(); setupSkinAutoHide(); skin_mc._visible = __visible; _skinReady = true; _vc.skinLoaded(); var _local4 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); var _local3 = _vc.__get__state(); var _local2 = 0; while (_local2 < NUM_CONTROLS) { if (controls[_local2] == undefined) { } else { setEnabledAndVisibleForState(_local2, _local3); if (_local2 < NUM_BUTTONS) { skinButtonControl(controls[_local2]); } } _local2++; } _vc.__set__activeVideoPlayerIndex(_local4); } catch(err:Error) { _vc.skinError(err.message); removeSkin(); } } function layoutSkin() { if (layout_mc == undefined) { return(undefined); } var _local3 = layout_mc.video_mc; if (_local3 == undefined) { throw new Error("No layout_mc.video_mc"); } placeholderLeft = _local3._x; placeholderRight = _local3._x + _local3._width; placeholderTop = _local3._y; placeholderBottom = _local3._y + _local3._height; videoLeft = 0; videoRight = _vc.width; videoTop = 0; videoBottom = _vc.height; if (((!isNaN(layout_mc.minWidth)) && (layout_mc.minWidth > 0)) && (layout_mc.minWidth > videoRight)) { videoLeft = videoLeft - ((layout_mc.minWidth - videoRight) / 2); videoRight = layout_mc.minWidth + videoLeft; } if (((!isNaN(layout_mc.minHeight)) && (layout_mc.minHeight > 0)) && (layout_mc.minHeight > videoBottom)) { videoTop = videoTop - ((layout_mc.minHeight - videoBottom) / 2); videoBottom = layout_mc.minHeight + videoTop; } var _local2; _local2 = 0; while (_local2 < customClips.length) { layoutControl(customClips[_local2]); _local2++; } _local2 = 0; while (_local2 < NUM_CONTROLS) { layoutControl(controls[_local2]); _local2++; } } function layoutControl(ctrl) { if (ctrl == undefined) { return(undefined); } if (ctrl.skin.anchorRight) { if (ctrl.skin.anchorLeft) { ctrl._x = (ctrl.skin._x - placeholderLeft) + videoLeft; ctrl._width = (((ctrl.skin._x + ctrl.skin._width) - placeholderRight) + videoRight) - ctrl._x; if (ctrl.origWidth != undefined) { ctrl.origWidth = undefined; } } else { ctrl._x = (ctrl.skin._x - placeholderRight) + videoRight; } } else { ctrl._x = (ctrl.skin._x - placeholderLeft) + videoLeft; } if (ctrl.skin.anchorTop) { if (ctrl.skin.anchorBottom) { ctrl._y = (ctrl.skin._y - placeholderTop) + videoTop; ctrl._height = (((ctrl.skin._y + ctrl.skin._height) - placeholderBottom) + videoBottom) - ctrl._y; if (ctrl.origHeight != undefined) { ctrl.origHeight = undefined; } } else { ctrl._y = (ctrl.skin._y - placeholderTop) + videoTop; } } else { ctrl._y = (ctrl.skin._y - placeholderBottom) + videoBottom; } switch (ctrl.controlIndex) { case SEEK_BAR : case VOLUME_BAR : if (ctrl.progress_mc != undefined) { if (_progressPercent == undefined) { _progressPercent = (_vc.__get__isRTMP() ? 100 : 0); } positionBar(ctrl, "progress", _progressPercent); } positionHandle(ctrl.controlIndex); break; case BUFFERING_BAR : if (ctrl.fill_mc == undefined) { break; } positionMaskedFill(ctrl, ctrl.fill_mc, 100); } if (ctrl.layoutSelf != undefined) { ctrl.layoutSelf(); } } function removeSkin() { if (skin_mc != undefined) { var _local2 = 0; while (_local2 < NUM_BUTTONS) { removeButtonControl(_local2); _local2++; } _local2 = NUM_BUTTONS; while (_local2 < NUM_CONTROLS) { controls[_local2] = undefined; _local2++; } skin_mc.unloadMovie(); layout_mc = undefined; border_mc = undefined; } } function setCustomClips(prefix) { var _local4 = 1; while (true) { var _local2 = layout_mc[(prefix + (_local4++)) + "_mc"]; if (_local2 == undefined) { break; } var _local3 = _local2.mc; if (_local3 == undefined) { _local3 = _local2._parent._parent[_local2._name]; } if (_local3 == undefined) { throw new Error("Bad clip in skin: " + _local2); } _local3.skin = _local2; customClips.push(_local3); if ((prefix == "bg") && (_local4 == 2)) { border_mc = _local3; } } } function setSkin(index, s) { if (s == undefined) { return(undefined); } var _local2 = s.mc; if (_local2 == undefined) { _local2 = s._parent._parent[s._name]; } if (_local2 == undefined) { throw new Error("Bad clip in skin: " + s); } _local2.skin = s; if (index < NUM_BUTTONS) { setupSkinStates(_local2); } else { switch (index) { case PLAY_PAUSE_BUTTON : setupSkinStates(_local2.play_mc); setupSkinStates(_local2.pause_mc); break; case MUTE_BUTTON : setupSkinStates(_local2.on_mc); setupSkinStates(_local2.off_mc); break; case SEEK_BAR : case VOLUME_BAR : var _local4 = ((index == SEEK_BAR) ? "seekBar" : "volumeBar"); if (_local2.handle_mc == undefined) { _local2.handle_mc = _local2.skin.handle_mc; if (_local2.handle_mc == undefined) { _local2.handle_mc = _local2.skin._parent._parent[_local4 + "Handle_mc"]; } } if (_local2.progress_mc == undefined) { _local2.progress_mc = _local2.skin.progress_mc; if (_local2.progress_mc == undefined) { _local2.progress_mc = _local2.skin._parent._parent[_local4 + "Progress_mc"]; } } if (_local2.fullness_mc == undefined) { _local2.fullness_mc = _local2.skin.fullness_mc; if (_local2.fullness_mc == undefined) { _local2.fullness_mc = _local2.skin._parent._parent[_local4 + "Fullness_mc"]; } } break; case BUFFERING_BAR : if (_local2.fill_mc != undefined) { break; } _local2.fill_mc = _local2.skin.fill_mc; if (_local2.fill_mc != undefined) { break; } _local2.fill_mc = _local2.skin._parent._parent.bufferingBarFill_mc; } } setControl(index, _local2); } function setupSkinStates(ctrl) { if (ctrl.up_mc == undefined) { ctrl.up_mc = ctrl; ctrl.over_mc = ctrl; ctrl.down_mc = ctrl; ctrl.disabled_mc = ctrl; } else { ctrl._x = 0; ctrl._y = 0; ctrl.up_mc._x = 0; ctrl.up_mc._y = 0; ctrl.up_mc._visible = true; if (ctrl.over_mc == undefined) { ctrl.over_mc = ctrl.up_mc; } else { ctrl.over_mc._x = 0; ctrl.over_mc._y = 0; ctrl.over_mc._visible = false; } if (ctrl.down_mc == undefined) { ctrl.down_mc = ctrl.up_mc; } else { ctrl.down_mc._x = 0; ctrl.down_mc._y = 0; ctrl.down_mc._visible = false; } if (ctrl.disabled_mc == undefined) { ctrl.disabled_mc_mc = ctrl.up_mc; } else { ctrl.disabled_mc._x = 0; ctrl.disabled_mc._y = 0; ctrl.disabled_mc._visible = false; } } } function skinButtonControl(ctrl) { if (ctrl.onEnterFrame != undefined) { delete ctrl.onEnterFrame; ctrl.onEnterFrame = undefined; } if (ctrl.enabled) { switch (ctrl.state) { case UP_STATE : if (ctrl.up_mc == undefined) { ctrl.up_mc = ctrl.attachMovie(ctrl.upLinkageID, "up_mc", ctrl.getNextHighestDepth()); } applySkinState(ctrl, ctrl.up_mc); break; case OVER_STATE : if (ctrl.over_mc == undefined) { if (ctrl.overLinkageID == undefined) { ctrl.over_mc = ctrl.up_mc; } else { ctrl.over_mc = ctrl.attachMovie(ctrl.overLinkageID, "over_mc", ctrl.getNextHighestDepth()); } } applySkinState(ctrl, ctrl.over_mc); break; case DOWN_STATE : if (ctrl.down_mc == undefined) { if (ctrl.downLinkageID == undefined) { ctrl.down_mc = ctrl.up_mc; } else { ctrl.down_mc = ctrl.attachMovie(ctrl.downLinkageID, "down_mc", ctrl.getNextHighestDepth()); } } applySkinState(ctrl, ctrl.down_mc); } } else { ctrl.state = UP_STATE; if (ctrl.disabled_mc == undefined) { if (ctrl.disabledLinkageID == undefined) { ctrl.disabled_mc = ctrl.up_mc; } else { ctrl.disabled_mc = ctrl.attachMovie(ctrl.disabledLinkageID, "disabled_mc", ctrl.getNextHighestDepth()); } } applySkinState(ctrl, ctrl.disabled_mc); } if (ctrl.placeholder_mc != undefined) { ctrl.placeholder_mc.unloadMovie(); delete ctrl.placeholder_mc; ctrl.placeholder_mc = undefined; } } function applySkinState(ctrl, state) { if (state != ctrl.currentState_mc) { if (state != undefined) { state._visible = true; } if (ctrl.currentState_mc != undefined) { ctrl.currentState_mc._visible = false; } ctrl.currentState_mc = state; } } function addBarControl(controlIndex) { var _local2 = controls[controlIndex]; _local2.isDragging = false; _local2.percentage = 0; _local2.uiMgr = this; _local2.controlIndex = controlIndex; if (_local2._parent == skin_mc) { finishAddBarControl(controlIndex); } else { _local2.onEnterFrame = function () { this.uiMgr.finishAddBarControl(this.controlIndex); }; } } function finishAddBarControl(controlIndex) { var _local2 = controls[controlIndex]; delete _local2.onEnterFrame; _local2.onEnterFrame = undefined; if (_local2.addBarControl != undefined) { _local2.addBarControl(); } calcBarMargins(_local2, "handle", true); calcBarMargins(_local2, "progress", false); calcBarMargins(_local2.progress_mc, "fill", false); calcBarMargins(_local2.progress_mc, "mask", false); calcBarMargins(_local2, "fullness", false); calcBarMargins(_local2.fullness_mc, "fill", false); calcBarMargins(_local2.fullness_mc, "mask", false); _local2.origWidth = _local2._width; _local2.origHeight = _local2._height; fixUpBar(_local2, "progress"); if (_local2.progress_mc != undefined) { fixUpBar(_local2, "progressBarFill"); if (_progressPercent == undefined) { _progressPercent = (_vc.__get__isRTMP() ? 100 : 0); } positionBar(_local2, "progress", _progressPercent); } fixUpBar(_local2, "fullness"); if (_local2.fullness_mc != undefined) { fixUpBar(_local2, "fullnessBarFill"); } fixUpBar(_local2, "handle"); _local2.handle_mc.controlIndex = controlIndex; switch (controlIndex) { case SEEK_BAR : setControl(SEEK_BAR_HANDLE, _local2.handle_mc); break; case VOLUME_BAR : setControl(VOLUME_BAR_HANDLE, _local2.handle_mc); } positionHandle(controlIndex); } function fixUpBar(ctrl, type) { if ((ctrl[type + "LinkageID"] != undefined) && (ctrl[type + "LinkageID"].length > 0)) { var _local1; if (ctrl[type + "Below"]) { _local1 = -1; while (ctrl._parent.getInstanceAtDepth(_local1) != undefined) { _local1--; } } else { ctrl[type + "Below"] = false; _local1 = ctrl._parent.getNextHighestDepth(); } var _local5 = ((ctrl.controlIndex == SEEK_BAR) ? "seekBar" : "volumeBar"); var _local4 = ((_local5 + type.substring(0, 1).toUpperCase()) + type.substring(1)) + "_mc"; ctrl[type + "_mc"] = ctrl._parent.attachMovie(ctrl[type + "LinkageID"], _local4, _local1); } } function calcBarMargins(ctrl, type, symmetricMargins) { var _local2 = ctrl[type + "_mc"]; if (_local2 == undefined) { return(undefined); } if ((ctrl[type + "LeftMargin"] == undefined) && (_local2._parent == ctrl._parent)) { ctrl[type + "LeftMargin"] = _local2._x - ctrl._x; } if (ctrl[type + "RightMargin"] == undefined) { if (symmetricMargins) { ctrl[type + "RightMargin"] = ctrl[type + "LeftMargin"]; } else if (_local2._parent == ctrl._parent) { ctrl[type + "RightMargin"] = ((ctrl._width - _local2._width) - _local2._x) + ctrl._x; } } if ((ctrl[type + "TopMargin"] == undefined) && (_local2._parent == ctrl._parent)) { ctrl[type + "TopMargin"] = _local2._y - ctrl._y; } if (ctrl[type + "BottomMargin"] == undefined) { if (symmetricMargins) { ctrl[type + "BottomMargin"] = ctrl[type + "TopMargin"]; } else if (_local2._parent == ctrl._parent) { ctrl[type + "BottomMargin"] = ((ctrl._height - _local2._height) - _local2._y) + ctrl._y; } } if (ctrl[type + "X"] == undefined) { if (_local2._parent == ctrl._parent) { ctrl[type + "X"] = _local2._x - ctrl._x; } else if (_local2._parent == ctrl) { ctrl[type + "X"] = _local2._x; } } if (ctrl[type + "Y"] == undefined) { if (_local2._parent == ctrl._parent) { ctrl[type + "Y"] = _local2._y - ctrl._y; } else if (_local2._parent == ctrl) { ctrl[type + "Y"] = _local2._y; } } ctrl[type + "XScale"] = _local2._xscale; ctrl[type + "YScale"] = _local2._yscale; ctrl[type + "Width"] = _local2._width; ctrl[type + "Height"] = _local2._height; } function finishAddBufferingBar() { var _local2 = controls[BUFFERING_BAR]; delete _local2.onEnterFrame; _local2.onEnterFrame = undefined; calcBarMargins(_local2, "fill", true); fixUpBar(_local2, "fill"); if (_local2.fill_mc != undefined) { positionMaskedFill(_local2, _local2.fill_mc, 100); } } function positionMaskedFill(ctrl, fill, percent) { var _local5 = fill._parent; var _local3 = ctrl.mask_mc; if (_local3 == undefined) { _local3 = _local5.createEmptyMovieClip(ctrl._name + "Mask_mc", _local5.getNextHighestDepth()); ctrl.mask_mc = _local3; _local3.beginFill(16777215); _local3.lineTo(0, 0); _local3.lineTo(1, 0); _local3.lineTo(1, 1); _local3.lineTo(0, 1); _local3.lineTo(0, 0); _local3.endFill(); fill.setMask(_local3); _local3._x = ctrl.fillX; _local3._y = ctrl.fillY; _local3._width = ctrl.fillWidth; _local3._height = ctrl.fillHeight; _local3._visible = false; calcBarMargins(ctrl, "mask", true); } if (_local5 == ctrl) { if (fill.slideReveal) { fill._x = (ctrl.maskX - ctrl.fillWidth) + ((ctrl.fillWidth * percent) / 100); } else { _local3._width = (ctrl.fillWidth * percent) / 100; } } else if (_local5 == ctrl._parent) { if (fill.slideReveal) { _local3._x = ctrl._x + ctrl.maskLeftMargin; _local3._y = ctrl._y + ctrl.maskTopMargin; _local3._width = (ctrl._width - ctrl.maskRightMargin) - ctrl.maskLeftMargin; _local3._height = (ctrl._height - ctrl.maskTopMargin) - ctrl.maskBottomMargin; fill._x = (_local3._x - ctrl.fillWidth) + ((ctrl.maskWidth * percent) / 100); fill._y = ctrl._y + ctrl.fillTopMargin; } else { fill._x = ctrl._x + ctrl.fillLeftMargin; fill._y = ctrl._y + ctrl.fillTopMargin; _local3._x = fill._x; _local3._y = fill._y; _local3._width = (((ctrl._width - ctrl.fillRightMargin) - ctrl.fillLeftMargin) * percent) / 100; _local3._height = (ctrl._height - ctrl.fillTopMargin) - ctrl.fillBottomMargin; } } } function startHandleDrag(controlIndex) { var _local2 = controls[controlIndex]; var _local5 = _local2.handle_mc; if ((_local2.startHandleDrag == undefined) || (!_local2.startHandleDrag())) { var _local3 = _local2._y + _local2.handleY; var _local4 = ((_local2.origWidth == undefined) ? (_local2._width) : (_local2.origWidth)); _local5.startDrag(false, _local2._x + _local2.handleLeftMargin, _local3, (_local2._x + _local4) - _local2.handleRightMargin, _local3); } _local2.isDragging = true; } function stopHandleDrag(controlIndex) { var _local2 = controls[controlIndex]; var _local3 = _local2.handle_mc; if ((_local2.stopHandleDrag == undefined) || (!_local2.stopHandleDrag())) { _local3.stopDrag(); } _local2.isDragging = false; } function positionHandle(controlIndex) { var _local2 = controls[controlIndex]; var _local3 = _local2.handle_mc; if (_local3 == undefined) { return(undefined); } if ((_local2.positionHandle != undefined) && (_local2.positionHandle())) { return(undefined); } var _local4 = ((_local2.origWidth == undefined) ? (_local2._width) : (_local2.origWidth)); var _local5 = (_local4 - _local2.handleRightMargin) - _local2.handleLeftMargin; _local3._x = (_local2._x + _local2.handleLeftMargin) + ((_local5 * _local2.percentage) / 100); _local3._y = _local2._y + _local2.handleY; if (_local2.fullness_mc != undefined) { positionBar(_local2, "fullness", _local2.percentage); } } function positionBar(ctrl, type, percent) { if ((ctrl.positionBar != undefined) && (ctrl.positionBar(type, percent))) { return(undefined); } var _local2 = ctrl[type + "_mc"]; if (_local2._parent == ctrl) { if (_local2.fill_mc == undefined) { _local2._xscale = (ctrl[type + "XScale"] * percent) / 100; } else { positionMaskedFill(_local2, _local2.fill_mc, percent); } } else { _local2._x = ctrl._x + ctrl[type + "LeftMargin"]; _local2._y = ctrl._y + ctrl[type + "Y"]; if (_local2.fill_mc == undefined) { _local2._width = (((ctrl._width - ctrl[type + "LeftMargin"]) - ctrl[type + "RightMargin"]) * percent) / 100; } else { positionMaskedFill(_local2, _local2.fill_mc, percent); } } } function calcPercentageFromHandle(controlIndex) { var _local2 = controls[controlIndex]; var _local5 = _local2.handle_mc; if ((_local2.calcPercentageFromHandle == undefined) || (!_local2.calcPercentageFromHandle())) { var _local3 = ((_local2.origWidth == undefined) ? (_local2._width) : (_local2.origWidth)); var _local6 = (_local3 - _local2.handleRightMargin) - _local2.handleLeftMargin; var _local4 = _local5._x - (_local2._x + _local2.handleLeftMargin); _local2.percentage = (_local4 / _local6) * 100; if (_local2.fullness_mc != undefined) { positionBar(_local2, "fullness", _local2.percentage); } } if (_local2.percentage < 0) { _local2.percentage = 0; } if (_local2.percentage > 100) { _local2.percentage = 100; } } function handleRelease(controlIndex) { var _local3 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); if (controlIndex == SEEK_BAR) { seekBarListener(true); } else if (controlIndex == VOLUME_BAR) { volumeBarListener(true); } stopHandleDrag(controlIndex); _vc.__set__activeVideoPlayerIndex(_local3); if (controlIndex == SEEK_BAR) { _vc._scrubFinish(); } } function seekBarListener(finish) { var _local3 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); var _local4 = controls[SEEK_BAR]; calcPercentageFromHandle(SEEK_BAR); var _local2 = _local4.percentage; if (finish) { clearInterval(_seekBarIntervalID); _seekBarIntervalID = 0; if (_local2 != _lastScrubPos) { _vc.seekPercent(_local2); } _vc.addEventListener("playheadUpdate", this); if (_playAfterScrub) { _vc.play(); } } else if (_vc.getVideoPlayer(_vc.__get__visibleVideoPlayerIndex()).__get__state() == mx.video.VideoPlayer.SEEKING) { } else if ((((_seekBarScrubTolerance <= 0) || (Math.abs(_local2 - _lastScrubPos) > _seekBarScrubTolerance)) || (_local2 < _seekBarScrubTolerance)) || (_local2 > (100 - _seekBarScrubTolerance))) { if (_local2 != _lastScrubPos) { _lastScrubPos = _local2; _vc.seekPercent(_local2); } } _vc.__set__activeVideoPlayerIndex(_local3); } function volumeBarListener(finish) { var _local3 = controls[VOLUME_BAR]; calcPercentageFromHandle(VOLUME_BAR); var _local2 = _local3.percentage; if (finish) { clearInterval(_volumeBarIntervalID); _volumeBarIntervalID = 0; _vc.addEventListener("volumeUpdate", this); } if ((((finish || (_volumeBarScrubTolerance <= 0)) || (Math.abs(_local2 - _lastVolumePos) > _volumeBarScrubTolerance)) || (_local2 < _volumeBarScrubTolerance)) || (_local2 > (100 - _volumeBarScrubTolerance))) { if (_local2 != _lastVolumePos) { if (_isMuted) { cachedSoundLevel = _local2; } else { _vc.__set__volume(_local2); } _lastVolumePos = _local2; } } } function doBufferingDelay() { clearInterval(_bufferingDelayIntervalID); _bufferingDelayIntervalID = 0; var _local2 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); if (_vc.__get__state() == mx.video.FLVPlayback.BUFFERING) { _bufferingOn = true; handleEvent({type:"stateChange", state:mx.video.FLVPlayback.BUFFERING, vp:_vc.__get__visibleVideoPlayerIndex()}); } _vc.__set__activeVideoPlayerIndex(_local2); } function dispatchMessage(ctrl) { if (ctrl.id == SEEK_BAR_HANDLE) { _vc._scrubStart(); } var _local2 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); switch (ctrl.id) { case PAUSE_BUTTON : _vc.pause(); break; case PLAY_BUTTON : _vc.play(); break; case STOP_BUTTON : _vc.stop(); break; case SEEK_BAR_HANDLE : calcPercentageFromHandle(SEEK_BAR); _lastScrubPos = controls[SEEK_BAR].percentage; _vc.removeEventListener("playheadUpdate", this); if (_vc.__get__playing() || (_vc.__get__buffering())) { _playAfterScrub = true; } else if (_vc.__get__state() != mx.video.VideoPlayer.SEEKING) { _playAfterScrub = false; } _seekBarIntervalID = setInterval(this, "seekBarListener", _seekBarInterval, false); startHandleDrag(SEEK_BAR); _vc.pause(); break; case VOLUME_BAR_HANDLE : calcPercentageFromHandle(VOLUME_BAR); _lastVolumePos = controls[VOLUME_BAR].percentage; _vc.removeEventListener("volumeUpdate", this); _volumeBarIntervalID = setInterval(this, "volumeBarListener", _volumeBarInterval, false); startHandleDrag(VOLUME_BAR); break; case BACK_BUTTON : _vc.seekToPrevNavCuePoint(); break; case FORWARD_BUTTON : _vc.seekToNextNavCuePoint(); break; case MUTE_ON_BUTTON : case MUTE_OFF_BUTTON : if (!_isMuted) { _isMuted = true; cachedSoundLevel = _vc.volume; _vc.__set__volume(0); } else { _isMuted = false; _vc.__set__volume(cachedSoundLevel); } setEnabledAndVisibleForState(MUTE_OFF_BUTTON, mx.video.FLVPlayback.PLAYING); skinButtonControl(controls[MUTE_OFF_BUTTON]); setEnabledAndVisibleForState(MUTE_ON_BUTTON, mx.video.FLVPlayback.PLAYING); skinButtonControl(controls[MUTE_ON_BUTTON]); break; default : throw new Error("Unknown ButtonControl"); } _vc.__set__activeVideoPlayerIndex(_local2); } function setEnabledAndVisibleForState(index, state) { var _local5 = _vc.__get__activeVideoPlayerIndex(); _vc.__set__activeVideoPlayerIndex(_vc.visibleVideoPlayerIndex); var _local3 = state; if ((_local3 == mx.video.FLVPlayback.BUFFERING) && (!_bufferingOn)) { _local3 = mx.video.FLVPlayback.PLAYING; } switch (index) { case VOLUME_BAR : case VOLUME_BAR_HANDLE : controls[index].myEnabled = true; controls[index].enabled = _controlsEnabled; break; case MUTE_ON_BUTTON : controls[index].myEnabled = !_isMuted; if (controls[MUTE_BUTTON] != undefined) { controls[index]._visible = controls[index].myEnabled; } break; case MUTE_OFF_BUTTON : controls[index].myEnabled = _isMuted; if (controls[MUTE_BUTTON] != undefined) { controls[index]._visible = controls[index].myEnabled; } break; default : switch (_local3) { case mx.video.FLVPlayback.LOADING : case mx.video.FLVPlayback.CONNECTION_ERROR : controls[index].myEnabled = false; break; case mx.video.FLVPlayback.DISCONNECTED : controls[index].myEnabled = _vc.__get__contentPath() != undefined; break; case mx.video.FLVPlayback.SEEKING : break; default : controls[index].myEnabled = true; } } switch (index) { case SEEK_BAR : switch (_local3) { case mx.video.FLVPlayback.STOPPED : case mx.video.FLVPlayback.PLAYING : case mx.video.FLVPlayback.PAUSED : case mx.video.FLVPlayback.REWINDING : case mx.video.FLVPlayback.SEEKING : controls[index].myEnabled = true; break; case mx.video.FLVPlayback.BUFFERING : controls[index].myEnabled = (!_bufferingBarHides) || (controls[BUFFERING_BAR] == undefined); break; default : controls[index].myEnabled = false; } if (controls[index].myEnabled) { controls[index].myEnabled = (!isNaN(_vc.__get__totalTime())) && (_vc.__get__totalTime() > 0); } controls[index].handle_mc.myEnabled = controls[index].myEnabled; controls[index].handle_mc.enabled = controls[index].handle_mc.myEnabled; controls[index].handle_mc._visible = controls[index].myEnabled; var _local4 = (((!_bufferingBarHides) || (controls[index].myEnabled)) || (controls[BUFFERING_BAR] == undefined)) || (!controls[BUFFERING_BAR]._visible); controls[index]._visible = _local4; controls[index].progress_mc._visible = _local4; controls[index].progress_mc.fill_mc._visible = _local4; controls[index].fullness_mc._visible = _local4; controls[index].fullness_mc.fill_mc._visible = _local4; break; case BUFFERING_BAR : switch (_local3) { case mx.video.FLVPlayback.STOPPED : case mx.video.FLVPlayback.PLAYING : case mx.video.FLVPlayback.PAUSED : case mx.video.FLVPlayback.REWINDING : case mx.video.FLVPlayback.SEEKING : controls[index].myEnabled = false; break; default : controls[index].myEnabled = true; } controls[index]._visible = controls[index].myEnabled; controls[index].fill_mc._visible = controls[index].myEnabled; break; case PAUSE_BUTTON : switch (_local3) { case mx.video.FLVPlayback.DISCONNECTED : case mx.video.FLVPlayback.STOPPED : case mx.video.FLVPlayback.PAUSED : case mx.video.FLVPlayback.REWINDING : controls[index].myEnabled = false; break; case mx.video.FLVPlayback.PLAYING : controls[index].myEnabled = true; break; case mx.video.FLVPlayback.BUFFERING : controls[index].myEnabled = (!_bufferingBarHides) || (controls[BUFFERING_BAR] == undefined); } if (controls[PLAY_PAUSE_BUTTON] != undefined) { controls[index]._visible = controls[index].myEnabled; } break; case PLAY_BUTTON : switch (_local3) { case mx.video.FLVPlayback.PLAYING : controls[index].myEnabled = false; break; case mx.video.FLVPlayback.STOPPED : case mx.video.FLVPlayback.PAUSED : controls[index].myEnabled = true; break; case mx.video.FLVPlayback.BUFFERING : controls[index].myEnabled = (!_bufferingBarHides) || (controls[BUFFERING_BAR] == undefined); } if (controls[PLAY_PAUSE_BUTTON] != undefined) { controls[index]._visible = !controls[PAUSE_BUTTON]._visible; } break; case STOP_BUTTON : switch (_local3) { case mx.video.FLVPlayback.DISCONNECTED : case mx.video.FLVPlayback.STOPPED : controls[index].myEnabled = false; break; case mx.video.FLVPlayback.PAUSED : case mx.video.FLVPlayback.PLAYING : case mx.video.FLVPlayback.BUFFERING : controls[index].myEnabled = true; } break; case BACK_BUTTON : case FORWARD_BUTTON : if (!(_local3 === mx.video.FLVPlayback.BUFFERING)) { } else { controls[index].myEnabled = (!_bufferingBarHides) || (controls[BUFFERING_BAR] == undefined); } } controls[index].enabled = _controlsEnabled && (controls[index].myEnabled); _vc.__set__activeVideoPlayerIndex(_local5); } function setupSkinAutoHide() { if (_skinAutoHide && (skin_mc != undefined)) { skinAutoHideHitTest(); if (_skinAutoHideIntervalID == 0) { _skinAutoHideIntervalID = setInterval(this, "skinAutoHideHitTest", SKIN_AUTO_HIDE_INTERVAL); } } else { skin_mc._visible = __visible; clearInterval(_skinAutoHideIntervalID); _skinAutoHideIntervalID = 0; } } function skinAutoHideHitTest() { if (!__visible) { skin_mc._visible = false; } else { var _local4 = _vc.getVideoPlayer(_vc.__get__visibleVideoPlayerIndex()); var _local3 = _local4.hitTest(_root._xmouse, _root._ymouse, true); if ((!_local3) && (border_mc != undefined)) { _local3 = border_mc.hitTest(_root._xmouse, _root._ymouse, true); } skin_mc._visible = _local3; } } static var version = "1.0.2.7"; static var shortVersion = "1.0.2"; static var PAUSE_BUTTON = 0; static var PLAY_BUTTON = 1; static var STOP_BUTTON = 2; static var SEEK_BAR_HANDLE = 3; static var BACK_BUTTON = 4; static var FORWARD_BUTTON = 5; static var MUTE_ON_BUTTON = 6; static var MUTE_OFF_BUTTON = 7; static var VOLUME_BAR_HANDLE = 8; static var NUM_BUTTONS = 9; static var PLAY_PAUSE_BUTTON = 9; static var MUTE_BUTTON = 10; static var BUFFERING_BAR = 11; static var SEEK_BAR = 12; static var VOLUME_BAR = 13; static var NUM_CONTROLS = 14; static var UP_STATE = 0; static var OVER_STATE = 1; static var DOWN_STATE = 2; static var SKIN_AUTO_HIDE_INTERVAL = 200; static var VOLUME_BAR_INTERVAL_DEFAULT = 250; static var VOLUME_BAR_SCRUB_TOLERANCE_DEFAULT = 0; static var SEEK_BAR_INTERVAL_DEFAULT = 250; static var SEEK_BAR_SCRUB_TOLERANCE_DEFAULT = 5; static var BUFFERING_DELAY_INTERVAL_DEFAULT = 1000; }
Symbol 129 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object { var func; function Delegate (f) { super(); func = f; } static function create(obj, func) { var _local2 = function () { var _local2 = arguments.callee.target; var _local3 = arguments.callee.func; return(_local3.apply(_local2, arguments)); }; _local2.target = obj; _local2.func = func; return(_local2); } function createDelegate(obj) { return(create(obj, func)); } }
Symbol 130 MovieClip [__Packages.mx.video.SMILManager] Frame 0
class mx.video.SMILManager { var _owner, _url, xml, baseURLAttr, videoTags, width, height; function SMILManager (owner) { _owner = owner; } function connectXML(url) { _url = fixURL(url); xml = new XML(); xml.onLoad = mx.utils.Delegate.create(this, xmlOnLoad); xml.load(_url); return(false); } function fixURL(origURL) { if ((origURL.substr(0, 5).toLowerCase() == "http:") || (origURL.substr(0, 6).toLowerCase() == "https:")) { var _local2 = ((origURL.indexOf("?") >= 0) ? "&" : "?"); return(((origURL + _local2) + "FLVPlaybackVersion=") + shortVersion); } return(origURL); } function xmlOnLoad(success) { try { if (!success) { _owner.helperDone(this, false); } else { baseURLAttr = new Array(); videoTags = new Array(); var _local2 = xml.firstChild; var _local6 = false; while (_local2 != null) { if (_local2.nodeType == ELEMENT_NODE) { _local6 = true; if (_local2.nodeName.toLowerCase() == "smil") { break; } } _local2 = _local2.nextSibling; } if (!_local6) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ("URL: \"" + _url) + "\" No root node found; if url is for an flv it must have .flv extension and take no parameters"); } else if (_local2 == null) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ("URL: \"" + _url) + "\" Root node not smil"); } var _local5 = false; var _local4 = 0; while (_local4 < _local2.childNodes.length) { var _local3 = _local2.childNodes[_local4]; if (_local3.nodeType != ELEMENT_NODE) { } else if (_local3.nodeName.toLowerCase() == "head") { parseHead(_local3); } else if (_local3.nodeName.toLowerCase() == "body") { _local5 = true; parseBody(_local3); } else { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((((("URL: \"" + _url) + "\" Tag ") + _local3.nodeName) + " not supported in ") + _local2.nodeName) + " tag."); } _local4++; } if (!_local5) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ("URL: \"" + _url) + "\" Tag body is required."); } _owner.helperDone(this, true); } } catch(err:Error) { _owner.helperDone(this, false); throw err; } } function parseHead(parentNode) { var _local4 = false; var _local3 = 0; while (_local3 < parentNode.childNodes.length) { var _local2 = parentNode.childNodes[_local3]; if (_local2.nodeType != ELEMENT_NODE) { } else if (_local2.nodeName.toLowerCase() == "meta") { for (var _local6 in _local2.attributes) { if (_local6.toLowerCase() == "base") { baseURLAttr.push(_local2.attributes[_local6]); } else { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((((("URL: \"" + _url) + "\" Attribute ") + _local6) + " not supported in ") + _local2.nodeName) + " tag."); } } } else if (_local2.nodeName.toLowerCase() == "layout") { if (!_local4) { parseLayout(_local2); _local4 = true; } } _local3++; } } function parseLayout(parentNode) { var _local3 = 0; while (_local3 < parentNode.childNodes.length) { var _local2 = parentNode.childNodes[_local3]; if (_local2.nodeType != ELEMENT_NODE) { } else if (_local2.nodeName.toLowerCase() == "root-layout") { for (var _local5 in _local2.attributes) { if (_local5.toLowerCase() == "width") { width = Number(_local2.attributes[_local5]); } else if (_local5.toLowerCase() == "height") { height = Number(_local2.attributes[_local5]); } } if (((isNaN(width) || (width < 0)) || (isNaN(height))) || (height < 0)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((("URL: \"" + _url) + "\" Tag ") + _local2.nodeName) + " requires attributes id, width and height. Width and height must be numbers greater than or equal to 0."); } width = Math.round(width); height = Math.round(height); return(undefined); } _local3++; } } function parseBody(parentNode) { var _local6 = 0; var _local3 = 0; while (_local3 < parentNode.childNodes.length) { var _local2 = parentNode.childNodes[_local3]; if (_local2.nodeType != ELEMENT_NODE) { } else { _local6++; if (_local6 > 1) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((("URL: \"" + _url) + "\" Tag ") + parentNode.nodeName) + " is required to contain exactly one tag."); } if (_local2.nodeName.toLowerCase() == "switch") { parseSwitch(_local2); } else if ((_local2.nodeName.toLowerCase() == "video") || (_local2.nodeName.toLowerCase() == "ref")) { var _local5 = parseVideo(_local2); videoTags.push(_local5); } } _local3++; } if (videoTags.length < 1) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ("URL: \"" + _url) + "\" At least one video of ref tag is required."); } } function parseSwitch(parentNode) { var _local3 = 0; while (_local3 < parentNode.childNodes.length) { var _local2 = parentNode.childNodes[_local3]; if (_local2.nodeType != ELEMENT_NODE) { } else if ((_local2.nodeName.toLowerCase() == "video") || (_local2.nodeName.toLowerCase() == "ref")) { videoTags.push(parseVideo(_local2)); } _local3++; } } function parseVideo(node) { var _local3 = new Object(); for (var _local4 in node.attributes) { if (_local4.toLowerCase() == "src") { _local3.src = node.attributes[_local4]; } else if (_local4.toLowerCase() == "system-bitrate") { _local3.bitrate = Number(node.attributes[_local4]); } else if (_local4.toLowerCase() == "dur") { _local3.dur = parseTime(node.attributes[_local4]); } } if (_local3.src == undefined) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ((("URL: \"" + _url) + "\" Attribute src is required in ") + node.nodeName) + " tag."); } return(_local3); } function parseTime(timeStr) { var _local4 = 0; var _local3 = timeStr.split(":"); if ((_local3.length < 1) || (_local3.length > 3)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "Invalid dur value: " + timeStr); } var _local1 = 0; while (_local1 < _local3.length) { var _local2 = Number(_local3[_local1]); if (isNaN(_local2)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "Invalid dur value: " + timeStr); } _local4 = _local4 * 60; _local4 = _local4 + _local2; _local1++; } return(_local4); } static var version = "1.0.2.7"; static var shortVersion = "1.0.2"; static var ELEMENT_NODE = 1; }
Symbol 131 MovieClip [__Packages.mx.video.FPADManager] Frame 0
class mx.video.FPADManager { var _owner, _uriParam, _parseResults, _url, xml, rtmpURL; function FPADManager (owner) { _owner = owner; } function connectXML(urlPrefix, uriParam, urlSuffix, uriParamParseResults) { _uriParam = uriParam; _parseResults = uriParamParseResults; _url = (urlPrefix + "uri=") + _parseResults.protocol; if (_parseResults.serverName != undefined) { _url = _url + ("/" + _parseResults.serverName); } if (_parseResults.portNumber != undefined) { _url = _url + (":" + _parseResults.portNumber); } if (_parseResults.wrappedURL != undefined) { _url = _url + ("/?" + _parseResults.wrappedURL); } _url = _url + ("/" + _parseResults.appName); _url = _url + urlSuffix; xml = new XML(); xml.onLoad = mx.utils.Delegate.create(this, xmlOnLoad); xml.load(_url); return(false); } function xmlOnLoad(success) { try { if (!success) { _owner.helperDone(this, false); } else { var _local5 = xml.firstChild; var _local8 = false; while (_local5 != null) { if (_local5.nodeType == ELEMENT_NODE) { _local8 = true; if (_local5.nodeName.toLowerCase() == "fpad") { break; } } _local5 = _local5.nextSibling; } if (!_local8) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ("URL: \"" + _url) + "\" No root node found; if url is for an flv it must have .flv extension and take no parameters"); } else if (_local5 == null) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ("URL: \"" + _url) + "\" Root node not fpad"); } var _local7; var _local6 = 0; while (_local6 < _local5.childNodes.length) { var _local3 = _local5.childNodes[_local6]; if (_local3.nodeType != ELEMENT_NODE) { } else if (_local3.nodeName.toLowerCase() == "proxy") { var _local2 = 0; while (_local2 < _local3.childNodes.length) { var _local4 = _local3.childNodes[_local2]; if (_local4.nodeType == TEXT_NODE) { _local7 = trim(_local4.nodeValue); break; } _local2++; } break; } _local6++; } if ((_local7 == undefined) || (_local7 == "")) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, ("URL: \"" + _url) + "\" fpad xml requires proxy tag."); } rtmpURL = (((_parseResults.protocol + "/") + _local7) + "/?") + _uriParam; _owner.helperDone(this, true); } } catch(err:Error) { _owner.helperDone(this, false); throw err; } } function trim(str) { var _local2 = 0; while (_local2 < str.length) { var _local1 = str.charAt(_local2); if ((((_local1 != " ") && (_local1 != "\t")) && (_local1 != "\r")) && (_local1 != newline)) { break; } _local2++; } if (_local2 >= str.length) { return(""); } var _local4 = str.length - 1; while (_local4 > _local2) { var _local1 = str.charAt(_local4); if ((((_local1 != " ") && (_local1 != "\t")) && (_local1 != "\r")) && (_local1 != newline)) { break; } _local4--; } return(str.slice(_local2, _local4 + 1)); } static var version = "1.0.2.7"; static var shortVersion = "1.0.2"; static var ELEMENT_NODE = 1; static var TEXT_NODE = 3; }
Symbol 132 MovieClip [__Packages.mx.video.NCManager] Frame 0
class mx.video.NCManager implements mx.video.INCManager { var _timeoutIntervalId, _tryNCIntervalId, _timeout, _nc, _ncConnected, _isRTMP, _serverName, _wrappedURL, _portNumber, _appName, _contentPath, _streamName, _streamLength, _streamWidth, _streamHeight, _streams, _autoSenseBW, fpadZone, _payload, _connTypeCounter, _bitrate, _owner, _protocol, _smilMgr, _ncUri, _fpadMgr, fallbackServerName, _tryNC; function NCManager () { initNCInfo(); initOtherInfo(); _timeoutIntervalId = 0; _tryNCIntervalId = 0; _timeout = DEFAULT_TIMEOUT; _nc = undefined; _ncConnected = false; } function initNCInfo() { _isRTMP = undefined; _serverName = undefined; _wrappedURL = undefined; _portNumber = undefined; _appName = undefined; } function initOtherInfo() { _contentPath = undefined; _streamName = undefined; _streamLength = undefined; _streamWidth = undefined; _streamHeight = undefined; _streams = undefined; _autoSenseBW = false; fpadZone = undefined; _payload = 0; _connTypeCounter = 0; cleanConns(); } function getTimeout() { return(_timeout); } function setTimeout(t) { _timeout = t; if (_timeoutIntervalId != 0) { clearInterval(_timeoutIntervalId); _timeoutIntervalId = setInterval(this, "_onFCSConnectTimeOut", _timeout); } } function getBitrate() { return(_bitrate); } function setBitrate(b) { if ((_isRTMP == undefined) || (!_isRTMP)) { _bitrate = b; } } function getVideoPlayer() { return(_owner); } function setVideoPlayer(v) { _owner = v; } function getNetConnection() { return(_nc); } function getStreamName() { return(_streamName); } function isRTMP() { return(_isRTMP); } function getStreamLength() { return(_streamLength); } function getStreamWidth() { return(_streamWidth); } function getStreamHeight() { return(_streamHeight); } function connectToURL(url) { initOtherInfo(); _contentPath = url; if ((_contentPath == null) || (_contentPath == "")) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH); } var _local2 = parseURL(_contentPath); if ((_local2.streamName == undefined) || (_local2.streamName == "")) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, url); } if (_local2.isRTMP) { var _local4 = canReuseOldConnection(_local2); _isRTMP = true; _protocol = _local2.protocol; _streamName = _local2.streamName; _serverName = _local2.serverName; _wrappedURL = _local2.wrappedURL; _portNumber = _local2.portNumber; _appName = _local2.appName; if ((((_appName == undefined) || (_appName == "")) || (_streamName == undefined)) || (_streamName == "")) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, url); } _autoSenseBW = _streamName.indexOf(",") >= 0; return(_local4 || (connectRTMP())); } var _local3 = _local2.streamName; if ((((_local3.indexOf("?") < 0) && ((_local3.length < 4) || (_local3.slice(-4).toLowerCase() != ".txt"))) && ((_local3.length < 4) || (_local3.slice(-4).toLowerCase() != ".xml"))) && ((_local3.length < 5) || (_local3.slice(-5).toLowerCase() != ".smil"))) { var _local4 = canReuseOldConnection(_local2); _isRTMP = false; _streamName = _local3; return(_local4 || (connectHTTP())); } if (_local3.indexOf("/fms/fpad") >= 0) { try { return(connectFPAD(_local3)); } catch(err:Error) { } } _smilMgr = new mx.video.SMILManager(this); return(_smilMgr.connectXML(_local3)); } function connectAgain() { var _local2 = _appName.indexOf("/"); if (_local2 < 0) { _local2 = _streamName.indexOf("/"); if (_local2 >= 0) { _appName = _appName + "/"; _appName = _appName + _streamName.slice(0, _local2); _streamName = _streamName.slice(_local2 + 1); } return(false); } var _local3 = _appName.slice(_local2 + 1); _local3 = _local3 + "/"; _local3 = _local3 + _streamName; _streamName = _local3; _appName = _appName.slice(0, _local2); close(); _payload = 0; _connTypeCounter = 0; cleanConns(); connectRTMP(); return(true); } function reconnect() { if (!_isRTMP) { throw new Error("Cannot call reconnect on an http connection"); } _nc.onStatus = function (info) { this.mc.reconnectOnStatus(this, info); }; _nc.onBWDone = function () { this.mc.onReconnected(); }; _nc.connect(_ncUri, false); } function onReconnected() { delete _nc.onStatus; delete _nc.onBWDone; _ncConnected = true; _owner.ncReconnected(); } function close() { if (_nc) { _nc.close(); _ncConnected = false; } } function helperDone(helper, success) { if (!success) { _nc = undefined; _ncConnected = false; _owner.ncConnected(); _smilMgr = undefined; _fpadMgr = undefined; return(undefined); } var _local2; var _local4; if (helper == _fpadMgr) { _local4 = _fpadMgr.rtmpURL; _fpadMgr = undefined; _local2 = parseURL(_local4); _isRTMP = _local2.isRTMP; _protocol = _local2.protocol; _serverName = _local2.serverName; _portNumber = _local2.portNumber; _wrappedURL = _local2.wrappedURL; _appName = _local2.appName; _streamName = _local2.streamName; var _local5 = fpadZone; fpadZone = -1; connectRTMP(); fpadZone = _local5; return(undefined); } if (helper != _smilMgr) { return(undefined); } _streamWidth = _smilMgr.width; _streamHeight = _smilMgr.height; _local4 = _smilMgr.baseURLAttr[0]; if ((_local4 != undefined) && (_local4 != "")) { if (_local4.charAt(_local4.length - 1) != "/") { _local4 = _local4 + "/"; } _local2 = parseURL(_local4); _isRTMP = _local2.isRTMP; _streamName = _local2.streamName; if (_isRTMP) { _protocol = _local2.protocol; _serverName = _local2.serverName; _portNumber = _local2.portNumber; _wrappedURL = _local2.wrappedURL; _appName = _local2.appName; if ((_appName == undefined) || (_appName == "")) { _smilMgr = undefined; throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "Base RTMP URL must include application name: " + _local4); } if (_smilMgr.baseURLAttr.length > 1) { _local2 = parseURL(_smilMgr.baseURLAttr[1]); if (_local2.serverName != undefined) { fallbackServerName = _local2.serverName; } } } } _streams = _smilMgr.videoTags; _smilMgr = undefined; var _local3 = 0; while (_local3 < _streams.length) { _local4 = _streams[_local3].src; _local2 = parseURL(_local4); if (_isRTMP == undefined) { _isRTMP = _local2.isRTMP; if (_isRTMP) { _protocol = _local2.protocol; if (_streams.length > 1) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "Cannot switch between multiple absolute RTMP URLs, must use meta tag base attribute."); } _serverName = _local2.serverName; _portNumber = _local2.portNumber; _wrappedURL = _local2.wrappedURL; _appName = _local2.appName; if ((_appName == undefined) || (_appName == "")) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "Base RTMP URL must include application name: " + _local4); } } else if ((_local2.streamName.indexOf("/fms/fpad") >= 0) && (_streams.length > 1)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "Cannot switch between multiple absolute fpad URLs, must use meta tag base attribute."); } } else if ((((_streamName != undefined) && (_streamName != "")) && (!_local2.isRelative)) && (_streams.length > 1)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_XML, "When using meta tag base attribute, cannot use absolute URLs for video or ref tag src attributes."); } _streams[_local3].parseResults = _local2; _local3++; } _autoSenseBW = _streams.length > 1; if (!_autoSenseBW) { if (_streamName != undefined) { _streamName = _streamName + _streams[0].parseResults.streamName; } else { _streamName = _streams[0].parseResults.streamName; } _streamLength = _streams[0].dur; } if (_isRTMP) { connectRTMP(); } else if ((_streamName != undefined) && (_streamName.indexOf("/fms/fpad") >= 0)) { connectFPAD(_streamName); } else { if (_autoSenseBW) { bitrateMatch(); } connectHTTP(); _owner.ncConnected(); } } function bitrateMatch() { var _local3; var _local4 = _bitrate; if (isNaN(_local4)) { _local4 = 0; } var _local2 = 0; while (_local2 < _streams.length) { if (isNaN(_streams[_local2].bitrate) || (_local4 >= _streams[_local2].bitrate)) { _local3 = _local2; break; } _local2++; } if (isNaN(_local3)) { throw new mx.video.VideoError(mx.video.VideoError.NO_BITRATE_MATCH); } if (_streamName != undefined) { _streamName = _streamName + _streams[_local3].src; } else { _streamName = _streams[_local3].src; } if (_isRTMP && (_streamName.slice(-4).toLowerCase() == ".flv")) { _streamName = _streamName.slice(0, -4); } _streamLength = _streams[_local3].dur; } function parseURL(url) { var _local2 = new Object(); var _local3 = 0; var _local4 = url.indexOf(":/", _local3); if (_local4 >= 0) { _local4 = _local4 + 2; _local2.protocol = url.slice(_local3, _local4); _local2.isRelative = false; } else { _local2.isRelative = true; } if ((_local2.protocol != undefined) && (((((_local2.protocol == "rtmp:/") || (_local2.protocol == "rtmpt:/")) || (_local2.protocol == "rtmps:/")) || (_local2.protocol == "rtmpe:/")) || (_local2.protocol == "rtmpte:/"))) { _local2.isRTMP = true; _local3 = _local4; if (url.charAt(_local3) == "/") { _local3++; var _local7 = url.indexOf(":", _local3); var _local8 = url.indexOf("/", _local3); if (_local8 < 0) { if (_local7 < 0) { _local2.serverName = url.slice(_local3); } else { _local4 = _local7; _local2.portNumber = url.slice(_local3, _local4); _local3 = _local4 + 1; _local2.serverName = url.slice(_local3); } return(_local2); } if ((_local7 >= 0) && (_local7 < _local8)) { _local4 = _local7; _local2.serverName = url.slice(_local3, _local4); _local3 = _local4 + 1; _local4 = _local8; _local2.portNumber = url.slice(_local3, _local4); } else { _local4 = _local8; _local2.serverName = url.slice(_local3, _local4); } _local3 = _local4 + 1; } if (url.charAt(_local3) == "?") { var _local9 = url.slice(_local3 + 1); var _local6 = parseURL(_local9); if ((_local6.protocol == undefined) || (!_local6.isRTMP)) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, url); } _local2.wrappedURL = "?"; _local2.wrappedURL = _local2.wrappedURL + _local6.protocol; if (_local6.serverName != undefined) { _local2.wrappedURL = _local2.wrappedURL + "/"; _local2.wrappedURL = _local2.wrappedURL + _local6.serverName; } if (_local6.wrappedURL != undefined) { _local2.wrappedURL = _local2.wrappedURL + "/?"; _local2.wrappedURL = _local2.wrappedURL + _local6.wrappedURL; } _local2.appName = _local6.appName; _local2.streamName = _local6.streamName; return(_local2); } _local4 = url.indexOf("/", _local3); if (_local4 < 0) { _local2.appName = url.slice(_local3); return(_local2); } _local2.appName = url.slice(_local3, _local4); _local3 = _local4 + 1; _local4 = url.indexOf("/", _local3); if (_local4 < 0) { _local2.streamName = url.slice(_local3); if (_local2.streamName.slice(-4).toLowerCase() == ".flv") { _local2.streamName = _local2.streamName.slice(0, -4); } return(_local2); } _local2.appName = _local2.appName + "/"; _local2.appName = _local2.appName + url.slice(_local3, _local4); _local3 = _local4 + 1; _local2.streamName = url.slice(_local3); if (_local2.streamName.slice(-4).toLowerCase() == ".flv") { _local2.streamName = _local2.streamName.slice(0, -4); } } else { _local2.isRTMP = false; _local2.streamName = url; } return(_local2); } function canReuseOldConnection(parseResults) { if ((_nc == null) || (!_ncConnected)) { return(false); } if (!parseResults.isRTMP) { if (!_isRTMP) { return(true); } _owner.close(); _nc = undefined; _ncConnected = false; initNCInfo(); return(false); } if (_isRTMP) { if (((((parseResults.serverName == _serverName) && (parseResults.appName == _appName)) && (parseResults.protocol == _protocol)) && (parseResults.portNumber == _portNumber)) && (parseResults.wrappedURL == _wrappedURL)) { return(true); } _owner.close(); _nc = undefined; _ncConnected = false; } initNCInfo(); return(false); } function connectHTTP() { _nc = new NetConnection(); _nc.connect(null); _ncConnected = true; return(true); } function connectRTMP() { clearInterval(_timeoutIntervalId); _timeoutIntervalId = setInterval(this, "_onFCSConnectTimeOut", _timeout); _tryNC = new Array(); var _local3 = (((_protocol == "rtmp:/") || (_protocol == "rtmpe:/")) ? 2 : 1); var _local2 = 0; while (_local2 < _local3) { _tryNC[_local2] = new NetConnection(); if (fpadZone != null) { _tryNC[_local2].fpadZone = fpadZone; } _tryNC[_local2].mc = this; _tryNC[_local2].pending = false; _tryNC[_local2].connIndex = _local2; _tryNC[_local2].onBWDone = function (p_bw) { this.mc.onConnected(this, p_bw); }; _tryNC[_local2].onBWCheck = function () { return(++this.mc._payload); }; _tryNC[_local2].onStatus = function (info) { this.mc.connectOnStatus(this, info); }; _local2++; } nextConnect(); return(false); } function connectFPAD(url) { var _local7; var _local5; var _local6; var _local2 = url.indexOf("?"); while (_local2 >= 0) { _local2++; var _local4 = url.indexOf("&", _local2); if (url.substr(_local2, 4).toLowerCase() == "uri=") { _local7 = url.slice(0, _local2); _local2 = _local2 + 4; if (_local4 >= 0) { _local5 = url.slice(_local2, _local4); _local6 = url.slice(_local4); } else { _local5 = url.slice(_local2); _local6 = ""; } break; } _local2 = _local4; } if (_local2 < 0) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, "fpad url must include uri parameter: " + url); } var _local8 = parseURL(_local5); if (!_local8.isRTMP) { throw new mx.video.VideoError(mx.video.VideoError.INVALID_CONTENT_PATH, "fpad url uri parameter must be rtmp url: " + url); } _fpadMgr = new mx.video.FPADManager(this); return(_fpadMgr.connectXML(_local7, _local5, _local6, _local8)); } function nextConnect() { clearInterval(_tryNCIntervalId); _tryNCIntervalId = 0; var _local3; var _local2; if (_connTypeCounter == 0) { _local3 = _protocol; _local2 = _portNumber; } else { _local2 = null; if (_protocol == "rtmp:/") { _local3 = "rtmpt:/"; } else if (_protocol == "rtmpe:/") { _local3 = "rtmpte:/"; } else { _tryNC.pop(); return(undefined); } } var _local4 = ((_local3 + ((_serverName == undefined) ? "" : ((("/" + _serverName) + ((_local2 == null) ? "" : (":" + _local2))) + "/"))) + ((_wrappedURL == undefined) ? "" : (_wrappedURL + "/"))) + _appName; _tryNC[_connTypeCounter].pending = true; _tryNC[_connTypeCounter].connect(_local4, _autoSenseBW); if (_connTypeCounter < (_tryNC.length - 1)) { _connTypeCounter++; _tryNCIntervalId = setInterval(this, "nextConnect", 1500); } } function cleanConns() { clearInterval(_tryNCIntervalId); _tryNCIntervalId = 0; if (_tryNC != undefined) { var _local2 = 0; while (_local2 < _tryNC.length) { if (_tryNC[_local2] != undefined) { delete _tryNC[_local2].onStatus; if (_tryNC[_local2].pending) { _tryNC[_local2].onStatus = function (info) { this.mc.disconnectOnStatus(this, info); }; } else { delete _tryNC[_local2].onStatus; _tryNC[_local2].close(); } } delete _tryNC[_local2]; _local2++; } delete _tryNC; } } function tryFallBack() { if (((_serverName == fallbackServerName) || (fallbackServerName == undefined)) || (fallbackServerName == null)) { delete _nc; _nc = undefined; _ncConnected = false; _owner.ncConnected(); } else { _connTypeCounter = 0; cleanConns(); _serverName = fallbackServerName; connectRTMP(); } } function onConnected(p_nc, p_bw) { clearInterval(_timeoutIntervalId); _timeoutIntervalId = 0; delete p_nc.onBWDone; delete p_nc.onBWCheck; delete p_nc.onStatus; _nc = p_nc; _ncUri = _nc.uri; _ncConnected = true; if (_autoSenseBW) { _bitrate = p_bw * 1024; if (_streams != undefined) { bitrateMatch(); } else { var _local3 = _streamName.split(","); var _local2 = 0; while (_local2 < _local3.length) { var _local4 = stripFrontAndBackWhiteSpace(_local3[_local2]); if ((_local2 + 1) < _local3.length) { if (p_bw <= Number(_local3[_local2 + 1])) { _streamName = _local4; break; } } else { _streamName = _local4; break; } _local2 = _local2 + 2; } if (_streamName.slice(-4).toLowerCase() == ".flv") { _streamName = _streamName.slice(0, -4); } } } if ((!_owner.__get__isLive()) && (_streamLength == undefined)) { var _local6 = new Object(); _local6.mc = this; _local6.onResult = function (length) { this.mc.getStreamLengthResult(length); }; _nc.call("getStreamLength", _local6, _streamName); } else { _owner.ncConnected(); } } function connectOnStatus(target, info) { target.pending = false; if (info.code == "NetConnection.Connect.Success") { _nc = _tryNC[target.connIndex]; _tryNC[target.connIndex] = undefined; cleanConns(); } else if (((info.code == "NetConnection.Connect.Rejected") && (info.ex != null)) && (info.ex.code == 302)) { _connTypeCounter = 0; cleanConns(); var _local2 = parseURL(info.ex.redirect); if (_local2.isRTMP) { _protocol = _local2.protocol; _serverName = _local2.serverName; _wrappedURL = _local2.wrappedURL; _portNumber = _local2.portNumber; _appName = _local2.appName; if (_local2.streamName != null) { _appName = _appName + ("/" + _local2.streamName); } connectRTMP(); } else { tryFallBack(); } } else if (((info.code == "NetConnection.Connect.Failed") || (info.code == "NetConnection.Connect.Rejected")) && (target.connIndex == (_tryNC.length - 1))) { if (!connectAgain()) { tryFallBack(); } } } function reconnectOnStatus(target, info) { if ((info.code == "NetConnection.Connect.Failed") || (info.code == "NetConnection.Connect.Rejected")) { delete _nc; _nc = undefined; _ncConnected = false; _owner.ncReconnected(); } } function disconnectOnStatus(target, info) { if (info.code == "NetConnection.Connect.Success") { delete target.onStatus; target.close(); } } function getStreamLengthResult(length) { if (length > 0) { _streamLength = length; } _owner.ncConnected(); } function _onFCSConnectTimeOut() { cleanConns(); _nc = undefined; _ncConnected = false; if (!connectAgain()) { _owner.ncConnected(); } } static function stripFrontAndBackWhiteSpace(p_str) { var _local1; var _local2 = p_str.length; var _local4 = 0; var _local5 = _local2; _local1 = 0; while (_local1 < _local2) { switch (p_str.charCodeAt(_local1)) { case 9 : case 10 : case 13 : case 32 : break; default : _local4 = _local1; break;!//outer level } _local1++; } _local1 = _local2; while (_local1 >= 0) { switch (p_str.charCodeAt(_local1)) { case 9 : case 10 : case 13 : case 32 : break; default : _local5 = _local1 + 1; break;!//outer level } _local1--; } if (_local5 <= _local4) { return(""); } return(p_str.slice(_local4, _local5)); } static var version = "1.0.2.7"; static var shortVersion = "1.0.2"; var DEFAULT_TIMEOUT = 60000; }
Symbol 133 MovieClip [__Packages.mx.video.CuePointManager] Frame 0
class mx.video.CuePointManager { var _owner, _id, _asCuePointTolerance, _linearSearchTolerance, _metadataLoaded, allCuePoints, asCuePoints, _disabledCuePoints, flvCuePoints, navCuePoints, eventCuePoints, _asCuePointIndex, __get__playheadUpdateInterval, _disabledCuePointsByNameOnly; function CuePointManager (owner, id) { _owner = owner; _id = id; reset(); _asCuePointTolerance = _owner.getVideoPlayer(_id).__get__playheadUpdateInterval() / 2000; _linearSearchTolerance = DEFAULT_LINEAR_SEARCH_TOLERANCE; } function reset() { _metadataLoaded = false; allCuePoints = null; asCuePoints = null; _disabledCuePoints = null; flvCuePoints = null; navCuePoints = null; eventCuePoints = null; _asCuePointIndex = 0; } function get metadataLoaded() { return(_metadataLoaded); } function set playheadUpdateInterval(aTime) { _asCuePointTolerance = aTime / 2000; //return(__get__playheadUpdateInterval()); } function get id() { return(_id); } function addASCuePoint(timeOrCuePoint, name, parameters) { var _local3; if (typeof(timeOrCuePoint) == "object") { _local3 = deepCopyObject(timeOrCuePoint); } else { _local3 = {time:timeOrCuePoint, name:name, parameters:deepCopyObject(parameters)}; } var _local7 = isNaN(_local3.time) || (_local3.time < 0); if (_local7) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number"); } var _local6 = _local3.name == null; if (_local6) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "name cannot be undefined or null"); } var _local2; _local3.type = "actionscript"; if ((asCuePoints == null) || (asCuePoints.length < 1)) { _local2 = 0; asCuePoints = new Array(); asCuePoints.push(_local3); } else { _local2 = getCuePointIndex(asCuePoints, true, _local3.time); _local2 = ((asCuePoints[_local2].time > _local3.time) ? 0 : (_local2 + 1)); asCuePoints.splice(_local2, 0, _local3); } if ((allCuePoints == null) || (allCuePoints.length < 1)) { _local2 = 0; allCuePoints = new Array(); allCuePoints.push(_local3); } else { _local2 = getCuePointIndex(allCuePoints, true, _local3.time); _local2 = ((allCuePoints[_local2].time > _local3.time) ? 0 : (_local2 + 1)); allCuePoints.splice(_local2, 0, _local3); } var _local5 = _owner.getVideoPlayer(_id).__get__playheadTime(); if (_local5 > 0) { if (_asCuePointIndex == _local2) { if (_local5 > asCuePoints[_local2].time) { _asCuePointIndex++; } } else if (_asCuePointIndex > _local2) { _asCuePointIndex++; } } else { _asCuePointIndex = 0; } var _local4 = deepCopyObject(asCuePoints[_local2]); _local4.array = asCuePoints; _local4.index = _local2; return(_local4); } function removeASCuePoint(timeNameOrCuePoint) { if ((asCuePoints == null) || (asCuePoints.length < 1)) { return(null); } var _local2; switch (typeof(timeNameOrCuePoint)) { case "string" : _local2 = {name:timeNameOrCuePoint}; break; case "number" : _local2 = {time:timeNameOrCuePoint}; break; case "object" : _local2 = timeNameOrCuePoint; } var _local3 = getCuePointIndex(asCuePoints, false, _local2.time, _local2.name); if (_local3 < 0) { return(null); } _local2 = asCuePoints[_local3]; asCuePoints.splice(_local3, 1); _local3 = getCuePointIndex(allCuePoints, false, _local2.time, _local2.name); if (_local3 > 0) { allCuePoints.splice(_local3, 1); } if (_owner.getVideoPlayer(_id).__get__playheadTime() > 0) { if (_asCuePointIndex > _local3) { _asCuePointIndex--; } } else { _asCuePointIndex = 0; } return(_local2); } function setFLVCuePointEnabled(enabled, timeNameOrCuePoint) { var _local4; switch (typeof(timeNameOrCuePoint)) { case "string" : _local4 = {name:timeNameOrCuePoint}; break; case "number" : _local4 = {time:timeNameOrCuePoint}; break; case "object" : _local4 = timeNameOrCuePoint; } var _local12 = isNaN(_local4.time) || (_local4.time < 0); var _local11 = _local4.name == null; if (_local12 && (_local11)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number and/or name must not be undefined or null"); } var _local6 = 0; var _local2; var _local5; if (_local12) { if (!_metadataLoaded) { if (_disabledCuePointsByNameOnly[_local4.name] == null) { if (!enabled) { if ((_disabledCuePointsByNameOnly == null) || (_disabledCuePointsByNameOnly.length < 0)) { _disabledCuePointsByNameOnly = new Object(); } _disabledCuePointsByNameOnly[_local4.name] = new Array(); } } else { if (enabled) { _disabledCuePointsByNameOnly[_local4.name] = undefined; } return(-1); } removeCuePoints(_disabledCuePoints, _local4); return(-1); } if (enabled) { _local6 = removeCuePoints(_disabledCuePoints, _local4); } else { var _local3; _local2 = getCuePointIndex(flvCuePoints, true, -1, _local4.name); while (_local2 >= 0) { _local3 = flvCuePoints[_local2]; _local5 = getCuePointIndex(_disabledCuePoints, true, _local3.time); if ((_local5 < 0) || (_disabledCuePoints[_local5].time != _local3.time)) { _disabledCuePoints = insertCuePoint(_local5, _disabledCuePoints, {name:_local3.name, time:_local3.time}); _local6 = _local6 + 1; } _local2 = getNextCuePointIndexWithName(_local3.name, flvCuePoints, _local2); } } return(_local6); } _local2 = getCuePointIndex(_disabledCuePoints, false, _local4.time, _local4.name); if (_local2 < 0) { if (enabled) { if (!_metadataLoaded) { _local2 = getCuePointIndex(_disabledCuePoints, false, _local4.time); if (_local2 < 0) { _local5 = getCuePointIndex(_disabledCuePointsByNameOnly[_local4.name], true, _local4.time); if (cuePointCompare(_local4.time, null, _disabledCuePointsByNameOnly[_local4.name]) != 0) { _disabledCuePointsByNameOnly[_local4.name] = insertCuePoint(_local5, _disabledCuePointsByNameOnly[_local4.name], _local4); } } else { _disabledCuePoints.splice(_local2, 1); } } return((_metadataLoaded ? 0 : -1)); } } else { if (enabled) { _disabledCuePoints.splice(_local2, 1); _local6 = 1; } else { _local6 = 0; } return((_metadataLoaded ? (_local6) : -1)); } if (_metadataLoaded) { _local2 = getCuePointIndex(flvCuePoints, false, _local4.time, _local4.name); if (_local2 < 0) { return(0); } if (_local11) { _local4.name = flvCuePoints[_local2].name; } } _local5 = getCuePointIndex(_disabledCuePoints, true, _local4.time); _disabledCuePoints = insertCuePoint(_local5, _disabledCuePoints, _local4); _local6 = 1; return((_metadataLoaded ? (_local6) : -1)); } function removeCuePoints(cuePointArray, cuePoint) { var _local2; var _local4; var _local5 = 0; _local2 = getCuePointIndex(cuePointArray, true, -1, cuePoint.name); while (_local2 >= 0) { _local4 = cuePointArray[_local2]; cuePointArray.splice(_local2, 1); _local2--; _local5++; _local2 = getNextCuePointIndexWithName(_local4.name, cuePointArray, _local2); } return(_local5); } function insertCuePoint(insertIndex, cuePointArray, cuePoint) { if (insertIndex < 0) { cuePointArray = new Array(); cuePointArray.push(cuePoint); } else { if (cuePointArray[insertIndex].time > cuePoint.time) { insertIndex = 0; } else { insertIndex++; } cuePointArray.splice(insertIndex, 0, cuePoint); } return(cuePointArray); } function isFLVCuePointEnabled(timeNameOrCuePoint) { if (!_metadataLoaded) { return(true); } var _local3; switch (typeof(timeNameOrCuePoint)) { case "string" : _local3 = {name:timeNameOrCuePoint}; break; case "number" : _local3 = {time:timeNameOrCuePoint}; break; case "object" : _local3 = timeNameOrCuePoint; } var _local5 = isNaN(_local3.time) || (_local3.time < 0); var _local6 = _local3.name == null; if (_local5 && (_local6)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number and/or name must not be undefined or null"); } if (_local5) { var _local2 = getCuePointIndex(flvCuePoints, true, -1, _local3.name); if (_local2 < 0) { return(true); } while (_local2 >= 0) { if (getCuePointIndex(_disabledCuePoints, false, flvCuePoints[_local2].time, flvCuePoints[_local2].name) < 0) { return(true); } _local2 = getNextCuePointIndexWithName(_local3.name, flvCuePoints, _local2); } return(false); } return(getCuePointIndex(_disabledCuePoints, false, _local3.time, _local3.name) < 0); } function dispatchASCuePoints() { var _local5 = _owner.getVideoPlayer(_id).__get__playheadTime(); if (_owner.getVideoPlayer(_id).__get__stateResponsive() && (asCuePoints != null)) { while ((_asCuePointIndex < asCuePoints.length) && (asCuePoints[_asCuePointIndex].time <= (_local5 + _asCuePointTolerance))) { _owner.dispatchEvent({type:"cuePoint", info:deepCopyObject(asCuePoints[_asCuePointIndex++]), vp:_id}); } } } function resetASCuePointIndex(time) { if ((time <= 0) || (asCuePoints == null)) { _asCuePointIndex = 0; return(undefined); } var _local2 = getCuePointIndex(asCuePoints, true, time); _asCuePointIndex = ((asCuePoints[_local2].time < time) ? (_local2 + 1) : (_local2)); } function processFLVCuePoints(metadataCuePoints) { _metadataLoaded = true; if ((metadataCuePoints == null) || (metadataCuePoints.length < 1)) { flvCuePoints = null; navCuePoints = null; eventCuePoints = null; return(undefined); } flvCuePoints = metadataCuePoints; navCuePoints = new Array(); eventCuePoints = new Array(); var _local5; var _local6 = -1; var _local2; var _local4 = _disabledCuePoints; var _local3 = 0; _disabledCuePoints = new Array(); var _local9 = 0; while (_local2 = flvCuePoints[_local9++] , _local2 != null) { if ((_local6 > 0) && (_local6 >= _local2.time)) { flvCuePoints = null; navCuePoints = null; eventCuePoints = null; _disabledCuePoints = null; _disabledCuePointsByNameOnly = null; throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "Unsorted cuePoint found after time: " + _local6); } _local6 = _local2.time; while ((_local3 < _local4.length) && (cuePointCompare(_local4[_local3].time, null, _local2) < 0)) { _local3++; } if ((_disabledCuePointsByNameOnly[_local2.name] != null) || ((_local3 < _local4.length) && (cuePointCompare(_local4[_local3].time, _local4[_local3].name, _local2) == 0))) { _disabledCuePoints.push({time:_local2.time, name:_local2.name}); } if (_local2.type == "navigation") { navCuePoints.push(_local2); } else if (_local2.type == "event") { eventCuePoints.push(_local2); } if ((allCuePoints == null) || (allCuePoints.length < 1)) { allCuePoints = new Array(); allCuePoints.push(_local2); } else { _local5 = getCuePointIndex(allCuePoints, true, _local2.time); _local5 = ((allCuePoints[_local5].time > _local2.time) ? 0 : (_local5 + 1)); allCuePoints.splice(_local5, 0, _local2); } } delete _disabledCuePointsByNameOnly; _disabledCuePointsByNameOnly = null; } function processCuePointsProperty(cuePoints) { if ((cuePoints == null) || (cuePoints.length == 0)) { return(undefined); } var _local4 = 0; var _local8; var _local6; var _local7; var _local5; var _local9; var _local2 = 0; while (_local2 < (cuePoints.length - 1)) { switch (_local4) { case 6 : addOrDisable(_local9, _local5); _local4 = 0; case 0 : if (cuePoints[_local2++] != "t") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format"); } if (isNaN(cuePoints[_local2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number"); } _local5 = new Object(); _local5.time = cuePoints[_local2] / 1000; _local4++; break; case 1 : if (cuePoints[_local2++] != "n") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format"); } if (cuePoints[_local2] == null) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "name cannot be null or undefined"); } _local5.name = unescape(cuePoints[_local2]); _local4++; break; case 2 : if (cuePoints[_local2++] != "t") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format"); } if (isNaN(cuePoints[_local2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "type must be number"); } switch (cuePoints[_local2]) { case 0 : _local5.type = "event"; break; case 1 : _local5.type = "navigation"; break; case 2 : _local5.type = "actionscript"; break; default : throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "type must be 0, 1 or 2"); } _local4++; break; case 3 : if (cuePoints[_local2++] != "d") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format"); } if (isNaN(cuePoints[_local2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "disabled must be number"); } _local9 = cuePoints[_local2] != 0; _local4++; break; case 4 : if (cuePoints[_local2++] != "p") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected cuePoint parameter format"); } if (isNaN(cuePoints[_local2])) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "num params must be number"); } _local8 = cuePoints[_local2]; _local4++; if (_local8 == 0) { _local4++; } else { _local5.parameters = new Object(); } break; case 5 : _local6 = cuePoints[_local2++]; _local7 = cuePoints[_local2]; if (typeof(_local6) == "string") { _local6 = unescape(_local6); } if (typeof(_local7) == "string") { _local7 = unescape(_local7); } _local5.parameters[_local6] = _local7; _local8--; if (_local8 != 0) { break; } _local4++; } _local2++; } if (_local4 == 6) { addOrDisable(_local9, _local5); } else { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "unexpected end of cuePoint param string"); } } function addOrDisable(disable, cuePoint) { if (disable) { if (cuePoint.type == "actionscript") { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "Cannot disable actionscript cue points"); } setFLVCuePointEnabled(false, cuePoint); } else if (cuePoint.type == "actionscript") { addASCuePoint(cuePoint); } } function unescape(origStr) { var _local3 = origStr; var _local1 = 0; while (_local1 < cuePointsReplace.length) { var _local2 = _local3.split(cuePointsReplace[_local1++]); if (_local2.length > 1) { _local3 = _local2.join(cuePointsReplace[_local1]); } _local1++; } return(_local3); } function getCuePointIndex(cuePointArray, closeIsOK, time, name, start, len) { if ((cuePointArray == null) || (cuePointArray.length < 1)) { return(-1); } var _local13 = isNaN(time) || (time < 0); var _local16 = name == null; if (_local13 && (_local16)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number and/or name must not be undefined or null"); } if (start == null) { start = 0; } if (len == null) { len = cuePointArray.length; } if ((!_local16) && (closeIsOK || (_local13))) { var _local8; var _local2; if (_local13) { _local8 = start; } else { _local8 = getCuePointIndex(cuePointArray, closeIsOK, time); } _local2 = _local8; while (_local2 >= start) { if (cuePointArray[_local2].name == name) { break; } _local2--; } if (_local2 >= start) { return(_local2); } _local2 = _local8 + 1; while (_local2 < len) { if (cuePointArray[_local2].name == name) { break; } _local2++; } if (_local2 < len) { return(_local2); } return(-1); } var _local6; if (len <= _linearSearchTolerance) { var _local11 = start + len; var _local3 = start; while (_local3 < _local11) { _local6 = cuePointCompare(time, name, cuePointArray[_local3]); if (_local6 == 0) { return(_local3); } if (_local6 < 0) { break; } _local3++; } if (closeIsOK) { if (_local3 > 0) { return(_local3 - 1); } return(0); } return(-1); } var _local12 = Math.floor(len / 2); var _local15 = start + _local12; _local6 = cuePointCompare(time, name, cuePointArray[_local15]); if (_local6 < 0) { return(getCuePointIndex(cuePointArray, closeIsOK, time, name, start, _local12)); } if (_local6 > 0) { return(getCuePointIndex(cuePointArray, closeIsOK, time, name, _local15 + 1, (_local12 - 1) + (len % 2))); } return(_local15); } function getNextCuePointIndexWithName(name, array, index) { if (name == null) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "name cannot be undefined or null"); } if (array == null) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "cuePoint.array undefined"); } if ((isNaN(index) || (index < -1)) || (index >= array.length)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "cuePoint.index must be number between -1 and cuePoint.array.length"); } var _local1; _local1 = index + 1; while (_local1 < array.length) { if (array[_local1].name == name) { break; } _local1++; } if (_local1 < array.length) { return(_local1); } return(-1); } static function cuePointCompare(time, name, cuePoint) { var _local1 = Math.round(time * 1000); var _local2 = Math.round(cuePoint.time * 1000); if (_local1 < _local2) { return(-1); } if (_local1 > _local2) { return(1); } if (name != null) { if (name == cuePoint.name) { return(0); } if (name < cuePoint.name) { return(-1); } return(1); } return(0); } function getCuePoint(cuePointArray, closeIsOK, timeNameOrCuePoint) { var _local2; switch (typeof(timeNameOrCuePoint)) { case "string" : _local2 = {name:timeNameOrCuePoint}; break; case "number" : _local2 = {time:timeNameOrCuePoint}; break; case "object" : _local2 = timeNameOrCuePoint; } var _local3 = getCuePointIndex(cuePointArray, closeIsOK, _local2.time, _local2.name); if (_local3 < 0) { return(null); } _local2 = deepCopyObject(cuePointArray[_local3]); _local2.array = cuePointArray; _local2.index = _local3; return(_local2); } function getNextCuePointWithName(cuePoint) { if (cuePoint == null) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "cuePoint parameter undefined"); } if (isNaN(cuePoint.time) || (cuePoint.time < 0)) { throw new mx.video.VideoError(mx.video.VideoError.ILLEGAL_CUE_POINT, "time must be number"); } var _local3 = getNextCuePointIndexWithName(cuePoint.name, cuePoint.array, cuePoint.index); if (_local3 < 0) { return(null); } var _local4 = deepCopyObject(cuePoint.array[_local3]); _local4.array = cuePoint.array; _local4.index = _local3; return(_local4); } static function deepCopyObject(obj, recurseLevel) { if ((obj == null) || (typeof(obj) != "object")) { return(obj); } if (recurseLevel == null) { recurseLevel = 0; } var _local2 = new Object(); for (var _local4 in obj) { if ((recurseLevel == 0) && ((_local4 == "array") || (_local4 == "index"))) { } else if (typeof(obj[_local4]) == "object") { _local2[_local4] = deepCopyObject(obj[_local4], recurseLevel + 1); } else { _local2[_local4] = obj[_local4]; } } return(_local2); } static var DEFAULT_LINEAR_SEARCH_TOLERANCE = 50; static var cuePointsReplace = ["&quot;", "\"", "&#39;", "'", "&#44;", ",", "&amp;", "&"]; }
Symbol 137 MovieClip [__Packages.mx.controls.Button] Frame 0
class mx.controls.Button extends mx.controls.SimpleButton { var initializing, labelPath, initIcon, getState, enabled, phase, idNames, __width, __height, setState, invalidate, iconName, refresh, createLabel, _iconLinkageName, removeIcons, hitArea_mc, createEmptyObject; function Button () { super(); } function init(Void) { super.init(); } function draw() { if (initializing) { labelPath.visible = true; } super.draw(); if (initIcon != undefined) { _setIcon(initIcon); } delete initIcon; } function onRelease(Void) { super.onRelease(); } function createChildren(Void) { super.createChildren(); } function setSkin(tag, linkageName, initobj) { return(super.setSkin(tag, linkageName, initobj)); } function viewSkin(varName) { var _local3 = (getState() ? "true" : "false"); _local3 = _local3 + (enabled ? (phase) : "disabled"); super.viewSkin(varName, {styleName:this, borderStyle:_local3}); } function invalidateStyle(c) { labelPath.invalidateStyle(c); super.invalidateStyle(c); } function setColor(c) { var _local2 = 0; while (_local2 < 8) { this[idNames[_local2]].redraw(true); _local2++; } } function setEnabled(enable) { labelPath.enabled = enable; super.setEnabled(enable); } function calcSize(tag, ref) { if ((__width == undefined) || (__height == undefined)) { return(undefined); } if (tag < 7) { ref.setSize(__width, __height, true); } } function size(Void) { setState(getState()); setHitArea(__width, __height); var _local3 = 0; while (_local3 < 8) { var _local4 = idNames[_local3]; if (typeof(this[_local4]) == "movieclip") { this[_local4].setSize(__width, __height, true); } _local3++; } super.size(); } function set labelPlacement(val) { __labelPlacement = val; invalidate(); //return(labelPlacement); } function get labelPlacement() { return(__labelPlacement); } function getLabelPlacement(Void) { return(__labelPlacement); } function setLabelPlacement(val) { __labelPlacement = val; invalidate(); } function getBtnOffset(Void) { if (getState()) { var _local2 = btnOffset; } else if (phase == "down") { var _local2 = btnOffset; } else { var _local2 = 0; } return(_local2); } function setView(offset) { var _local16 = (offset ? (btnOffset) : 0); var _local12 = getLabelPlacement(); var _local7 = 0; var _local6 = 0; var _local9 = 0; var _local8 = 0; var _local5 = 0; var _local4 = 0; var _local3 = labelPath; var _local2 = iconName; var _local15 = _local3.textWidth; var _local14 = _local3.textHeight; var _local10 = (__width - borderW) - borderW; var _local11 = (__height - borderW) - borderW; if (_local2 != undefined) { _local7 = _local2._width; _local6 = _local2._height; } if ((_local12 == "left") || (_local12 == "right")) { if (_local3 != undefined) { _local9 = Math.min(_local10 - _local7, _local15 + 5); _local3._width = _local9; _local8 = Math.min(_local11, _local14 + 5); _local3._height = _local8; } if (_local12 == "right") { _local5 = _local7; if (centerContent) { _local5 = _local5 + (((_local10 - _local9) - _local7) / 2); } _local2._x = _local5 - _local7; } else { _local5 = (_local10 - _local9) - _local7; if (centerContent) { _local5 = _local5 / 2; } _local2._x = _local5 + _local9; } _local4 = 0; _local2._y = _local4; if (centerContent) { _local2._y = (_local11 - _local6) / 2; _local4 = (_local11 - _local8) / 2; } if (!centerContent) { _local2._y = _local2._y + Math.max(0, (_local8 - _local6) / 2); } } else { if (_local3 != undefined) { _local9 = Math.min(_local10, _local15 + 5); _local3._width = _local9; _local8 = Math.min(_local11 - _local6, _local14 + 5); _local3._height = _local8; } _local5 = (_local10 - _local9) / 2; _local2._x = (_local10 - _local7) / 2; if (_local12 == "top") { _local4 = (_local11 - _local8) - _local6; if (centerContent) { _local4 = _local4 / 2; } _local2._y = _local4 + _local8; } else { _local4 = _local6; if (centerContent) { _local4 = _local4 + (((_local11 - _local8) - _local6) / 2); } _local2._y = _local4 - _local6; } } var _local13 = borderW + _local16; _local3._x = _local5 + _local13; _local3._y = _local4 + _local13; _local2._x = _local2._x + _local13; _local2._y = _local2._y + _local13; } function set label(lbl) { setLabel(lbl); //return(label); } function setLabel(label) { if (label == "") { labelPath.removeTextField(); refresh(); return(undefined); } if (labelPath == undefined) { var _local2 = createLabel("labelPath", 200, label); _local2._width = _local2.textWidth + 5; _local2._height = _local2.textHeight + 5; if (initializing) { _local2.visible = false; } } else { delete labelPath.__text; labelPath.text = label; refresh(); } } function getLabel(Void) { return(((labelPath.__text != undefined) ? (labelPath.__text) : (labelPath.text))); } function get label() { return(getLabel()); } function _getIcon(Void) { return(_iconLinkageName); } function get icon() { if (initializing) { return(initIcon); } return(_iconLinkageName); } function _setIcon(linkage) { if (initializing) { if (linkage == "") { return(undefined); } initIcon = linkage; } else { if (linkage == "") { removeIcons(); return(undefined); } super.changeIcon(0, linkage); super.changeIcon(1, linkage); super.changeIcon(3, linkage); super.changeIcon(4, linkage); super.changeIcon(5, linkage); _iconLinkageName = linkage; refresh(); } } function set icon(linkage) { _setIcon(linkage); //return(icon); } function setHitArea(w, h) { if (hitArea_mc == undefined) { createEmptyObject("hitArea_mc", 100); } var _local2 = hitArea_mc; _local2.clear(); _local2.beginFill(16711680); _local2.drawRect(0, 0, w, h); _local2.endFill(); _local2.setVisible(false); } static var symbolName = "Button"; static var symbolOwner = mx.controls.Button; var className = "Button"; static var version = "2.0.2.127"; var btnOffset = 0; var _color = "buttonColor"; var __label = "default value"; var __labelPlacement = "right"; var falseUpSkin = "ButtonSkin"; var falseDownSkin = "ButtonSkin"; var falseOverSkin = "ButtonSkin"; var falseDisabledSkin = "ButtonSkin"; var trueUpSkin = "ButtonSkin"; var trueDownSkin = "ButtonSkin"; var trueOverSkin = "ButtonSkin"; var trueDisabledSkin = "ButtonSkin"; var falseUpIcon = ""; var falseDownIcon = ""; var falseOverIcon = ""; var falseDisabledIcon = ""; var trueUpIcon = ""; var trueDownIcon = ""; var trueOverIcon = ""; var trueDisabledIcon = ""; var clipParameters = {labelPlacement:1, icon:1, toggle:1, selected:1, label:1}; static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Button.prototype.clipParameters, mx.controls.SimpleButton.prototype.clipParameters); var centerContent = true; var borderW = 1; }
Symbol 138 MovieClip [__Packages.mx.controls.CheckBox] Frame 0
class mx.controls.CheckBox extends mx.controls.Button { var _getTextFormat, labelPath, iconName; function CheckBox () { super(); } function onRelease() { super.onRelease(); } function init() { super.init(); } function size() { super.size(); } function get emphasized() { return(undefined); } function calcPreferredHeight() { var _local5 = _getTextFormat(); var _local3 = _local5.getTextExtent2(labelPath.text).height; var _local4 = iconName._height; var _local2 = 0; if ((__labelPlacement == "left") || (__labelPlacement == "right")) { _local2 = Math.max(_local3, _local4); } else { _local2 = _local3 + _local4; } return(Math.max(14, _local2)); } function set toggle(v) { //return(toggle); } function get toggle() { } function set icon(v) { //return(icon); } function get icon() { } static var symbolName = "CheckBox"; static var symbolOwner = mx.controls.CheckBox; static var version = "2.0.2.127"; var className = "CheckBox"; var ignoreClassStyleDeclaration = {Button:1}; var btnOffset = 0; var __toggle = true; var __selected = false; var __labelPlacement = "right"; var __label = "CheckBox"; var falseUpSkin = ""; var falseDownSkin = ""; var falseOverSkin = ""; var falseDisabledSkin = ""; var trueUpSkin = ""; var trueDownSkin = ""; var trueOverSkin = ""; var trueDisabledSkin = ""; var falseUpIcon = "CheckFalseUp"; var falseDownIcon = "CheckFalseDown"; var falseOverIcon = "CheckFalseOver"; var falseDisabledIcon = "CheckFalseDisabled"; var trueUpIcon = "CheckTrueUp"; var trueDownIcon = "CheckTrueDown"; var trueOverIcon = "CheckTrueOver"; var trueDisabledIcon = "CheckTrueDisabled"; var clipParameters = {label:1, labelPlacement:1, selected:1}; static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.CheckBox.prototype.clipParameters, mx.controls.Button.prototype.clipParameters); var centerContent = false; var borderW = 0; }
Symbol 188 MovieClip [__Packages.mx.events.UIEventDispatcher] Frame 0
class mx.events.UIEventDispatcher extends mx.events.EventDispatcher { var dispatchQueue, owner, __sentLoadEvent, __origAddEventListener; function UIEventDispatcher () { super(); } static function addKeyEvents(obj) { if (obj.keyHandler == undefined) { var _local1 = (obj.keyHandler = new Object()); _local1.owner = obj; _local1.onKeyDown = _fEventDispatcher.onKeyDown; _local1.onKeyUp = _fEventDispatcher.onKeyUp; } Key.addListener(obj.keyHandler); } static function removeKeyEvents(obj) { Key.removeListener(obj.keyHandler); } static function addLoadEvents(obj) { if (obj.onLoad == undefined) { obj.onLoad = _fEventDispatcher.onLoad; obj.onUnload = _fEventDispatcher.onUnload; if (obj.getBytesTotal() == obj.getBytesLoaded()) { obj.doLater(obj, "onLoad"); } } } static function removeLoadEvents(obj) { delete obj.onLoad; delete obj.onUnload; } static function initialize(obj) { if (_fEventDispatcher == undefined) { _fEventDispatcher = new mx.events.UIEventDispatcher(); } obj.addEventListener = _fEventDispatcher.__addEventListener; obj.__origAddEventListener = _fEventDispatcher.addEventListener; obj.removeEventListener = _fEventDispatcher.removeEventListener; obj.dispatchEvent = _fEventDispatcher.dispatchEvent; obj.dispatchQueue = _fEventDispatcher.dispatchQueue; } function dispatchEvent(eventObj) { if (eventObj.target == undefined) { eventObj.target = this; } this[eventObj.type + "Handler"](eventObj); dispatchQueue(mx.events.EventDispatcher, eventObj); dispatchQueue(this, eventObj); } function onKeyDown(Void) { owner.dispatchEvent({type:"keyDown", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)}); } function onKeyUp(Void) { owner.dispatchEvent({type:"keyUp", code:Key.getCode(), ascii:Key.getAscii(), shiftKey:Key.isDown(16), ctrlKey:Key.isDown(17)}); } function onLoad(Void) { if (__sentLoadEvent != true) { dispatchEvent({type:"load"}); } __sentLoadEvent = true; } function onUnload(Void) { dispatchEvent({type:"unload"}); } function __addEventListener(event, handler) { __origAddEventListener(event, handler); var _local3 = lowLevelEvents; for (var _local5 in _local3) { if (mx.events.UIEventDispatcher[_local5][event] != undefined) { var _local2 = _local3[_local5][0]; mx.events.UIEventDispatcher[_local2](this); } } } function removeEventListener(event, handler) { var _local6 = "__q_" + event; mx.events.EventDispatcher._removeEventListener(this[_local6], event, handler); if (this[_local6].length == 0) { var _local2 = lowLevelEvents; for (var _local5 in _local2) { if (mx.events.UIEventDispatcher[_local5][event] != undefined) { var _local3 = _local2[_local5][1]; mx.events.UIEventDispatcher[_local2[_local5][1]](this); } } } } static var keyEvents = {keyDown:1, keyUp:1}; static var loadEvents = {load:1, unload:1}; static var lowLevelEvents = {keyEvents:["addKeyEvents", "removeKeyEvents"], loadEvents:["addLoadEvents", "removeLoadEvents"]}; static var _fEventDispatcher = undefined; }
Symbol 189 MovieClip [__Packages.mx.skins.ColoredSkinElement] Frame 0
class mx.skins.ColoredSkinElement { var getStyle, _color, onEnterFrame; function ColoredSkinElement () { } function setColor(c) { if (c != undefined) { var _local2 = new Color(this); _local2.setRGB(c); } } function draw(Void) { setColor(getStyle(_color)); onEnterFrame = undefined; } function invalidateStyle(Void) { onEnterFrame = draw; } static function setColorStyle(p, colorStyle) { if (p._color == undefined) { p._color = colorStyle; } p.setColor = mixins.setColor; p.invalidateStyle = mixins.invalidateStyle; p.draw = mixins.draw; p.setColor(p.getStyle(colorStyle)); } static var mixins = new mx.skins.ColoredSkinElement(); }
Symbol 190 MovieClip [__Packages.mx.core.ext.UIObjectExtensions] Frame 0
class mx.core.ext.UIObjectExtensions { function UIObjectExtensions () { } static function addGeometry(tf, ui) { tf.addProperty("width", ui.__get__width, null); tf.addProperty("height", ui.__get__height, null); tf.addProperty("left", ui.__get__left, null); tf.addProperty("x", ui.__get__x, null); tf.addProperty("top", ui.__get__top, null); tf.addProperty("y", ui.__get__y, null); tf.addProperty("right", ui.__get__right, null); tf.addProperty("bottom", ui.__get__bottom, null); tf.addProperty("visible", ui.__get__visible, ui.__set__visible); } static function Extensions() { if (bExtended == true) { return(true); } bExtended = true; var _local6 = mx.core.UIObject.prototype; var _local9 = mx.skins.SkinElement.prototype; addGeometry(_local9, _local6); mx.events.UIEventDispatcher.initialize(_local6); var _local13 = mx.skins.ColoredSkinElement; mx.styles.CSSTextStyles.addTextStyles(_local6); var _local5 = MovieClip.prototype; _local5.getTopLevel = _local6.getTopLevel; _local5.createLabel = _local6.createLabel; _local5.createObject = _local6.createObject; _local5.createClassObject = _local6.createClassObject; _local5.createEmptyObject = _local6.createEmptyObject; _local5.destroyObject = _local6.destroyObject; _global.ASSetPropFlags(_local5, "getTopLevel", 1); _global.ASSetPropFlags(_local5, "createLabel", 1); _global.ASSetPropFlags(_local5, "createObject", 1); _global.ASSetPropFlags(_local5, "createClassObject", 1); _global.ASSetPropFlags(_local5, "createEmptyObject", 1); _global.ASSetPropFlags(_local5, "destroyObject", 1); _local5.__getTextFormat = _local6.__getTextFormat; _local5._getTextFormat = _local6._getTextFormat; _local5.getStyleName = _local6.getStyleName; _local5.getStyle = _local6.getStyle; _global.ASSetPropFlags(_local5, "__getTextFormat", 1); _global.ASSetPropFlags(_local5, "_getTextFormat", 1); _global.ASSetPropFlags(_local5, "getStyleName", 1); _global.ASSetPropFlags(_local5, "getStyle", 1); var _local7 = TextField.prototype; addGeometry(_local7, _local6); _local7.addProperty("enabled", function () { return(this.__enabled); }, function (x) { this.__enabled = x; this.invalidateStyle(); }); _local7.move = _local9.move; _local7.setSize = _local9.setSize; _local7.invalidateStyle = function () { this.invalidateFlag = true; }; _local7.draw = function () { if (this.invalidateFlag) { this.invalidateFlag = false; var _local2 = this._getTextFormat(); this.setTextFormat(_local2); this.setNewTextFormat(_local2); this.embedFonts = _local2.embedFonts == true; if (this.__text != undefined) { if (this.text == "") { this.text = this.__text; } delete this.__text; } this._visible = true; } }; _local7.setColor = function (color) { this.textColor = color; }; _local7.getStyle = _local5.getStyle; _local7.__getTextFormat = _local6.__getTextFormat; _local7.setValue = function (v) { this.text = v; }; _local7.getValue = function () { return(this.text); }; _local7.addProperty("value", function () { return(this.getValue()); }, function (v) { this.setValue(v); }); _local7._getTextFormat = function () { var _local2 = this.stylecache.tf; if (_local2 != undefined) { return(_local2); } _local2 = new TextFormat(); this.__getTextFormat(_local2); this.stylecache.tf = _local2; if (this.__enabled == false) { if (this.enabledColor == undefined) { var _local4 = this.getTextFormat(); this.enabledColor = _local4.color; } var _local3 = this.getStyle("disabledColor"); _local2.color = _local3; } else if (this.enabledColor != undefined) { if (_local2.color == undefined) { _local2.color = this.enabledColor; } } return(_local2); }; _local7.getPreferredWidth = function () { this.draw(); return(this.textWidth + 4); }; _local7.getPreferredHeight = function () { this.draw(); return(this.textHeight + 4); }; TextFormat.prototype.getTextExtent2 = function (s) { var _local3 = _root._getTextExtent; if (_local3 == undefined) { _root.createTextField("_getTextExtent", -2, 0, 0, 1000, 100); _local3 = _root._getTextExtent; _local3._visible = false; } _root._getTextExtent.text = s; var _local4 = this.align; this.align = "left"; _root._getTextExtent.setTextFormat(this); this.align = _local4; return({width:_local3.textWidth, height:_local3.textHeight}); }; if (_global.style == undefined) { _global.style = new mx.styles.CSSStyleDeclaration(); _global.cascadingStyles = true; _global.styles = new Object(); _global.skinRegistry = new Object(); if (_global._origWidth == undefined) { _global.origWidth = Stage.width; _global.origHeight = Stage.height; } } var _local4 = _root; while (_local4._parent != undefined) { _local4 = _local4._parent; } _local4.addProperty("width", function () { return(Stage.width); }, null); _local4.addProperty("height", function () { return(Stage.height); }, null); _global.ASSetPropFlags(_local4, "width", 1); _global.ASSetPropFlags(_local4, "height", 1); return(true); } static var bExtended = false; static var UIObjectExtended = Extensions(); static var UIObjectDependency = mx.core.UIObject; static var SkinElementDependency = mx.skins.SkinElement; static var CSSTextStylesDependency = mx.styles.CSSTextStyles; static var UIEventDispatcherDependency = mx.events.UIEventDispatcher; }
Symbol 191 MovieClip [__Packages.mx.skins.halo.Defaults] Frame 0
class mx.skins.halo.Defaults { var beginGradientFill, beginFill, moveTo, lineTo, curveTo, endFill; function Defaults () { } static function setThemeDefaults() { var _local2 = _global.style; _local2.themeColor = 8453965 /* 0x80FF4D */; _local2.disabledColor = 8684164 /* 0x848284 */; _local2.modalTransparency = 0; _local2.filled = true; _local2.stroked = true; _local2.strokeWidth = 1; _local2.strokeColor = 0; _local2.fillColor = 16777215 /* 0xFFFFFF */; _local2.repeatInterval = 35; _local2.repeatDelay = 500; _local2.fontFamily = "_sans"; _local2.fontSize = 12; _local2.selectionColor = 13500353 /* 0xCDFFC1 */; _local2.rollOverColor = 14942166 /* 0xE3FFD6 */; _local2.useRollOver = true; _local2.backgroundDisabledColor = 14540253 /* 0xDDDDDD */; _local2.selectionDisabledColor = 14540253 /* 0xDDDDDD */; _local2.selectionDuration = 200; _local2.openDuration = 250; _local2.borderStyle = "inset"; _local2.color = 734012 /* 0x0B333C */; _local2.textSelectedColor = 24371; _local2.textRollOverColor = 2831164 /* 0x2B333C */; _local2.textDisabledColor = 16777215 /* 0xFFFFFF */; _local2.vGridLines = true; _local2.hGridLines = false; _local2.vGridLineColor = 6710886 /* 0x666666 */; _local2.hGridLineColor = 6710886 /* 0x666666 */; _local2.headerColor = 15395562 /* 0xEAEAEA */; _local2.indentation = 17; _local2.folderOpenIcon = "TreeFolderOpen"; _local2.folderClosedIcon = "TreeFolderClosed"; _local2.defaultLeafIcon = "TreeNodeIcon"; _local2.disclosureOpenIcon = "TreeDisclosureOpen"; _local2.disclosureClosedIcon = "TreeDisclosureClosed"; _local2.popupDuration = 150; _local2.todayColor = 6710886 /* 0x666666 */; _local2 = (_global.styles.ScrollSelectList = new mx.styles.CSSStyleDeclaration()); _local2.backgroundColor = 16777215 /* 0xFFFFFF */; _local2.borderColor = 13290186 /* 0xCACACA */; _local2.borderStyle = "inset"; _local2 = (_global.styles.ComboBox = new mx.styles.CSSStyleDeclaration()); _local2.borderStyle = "inset"; _local2 = (_global.styles.NumericStepper = new mx.styles.CSSStyleDeclaration()); _local2.textAlign = "center"; _local2 = (_global.styles.RectBorder = new mx.styles.CSSStyleDeclaration()); _local2.borderColor = 14015965 /* 0xD5DDDD */; _local2.buttonColor = 7305079 /* 0x6F7777 */; _local2.shadowColor = 15658734 /* 0xEEEEEE */; _local2.highlightColor = 12897484 /* 0xC4CCCC */; _local2.shadowCapColor = 14015965 /* 0xD5DDDD */; _local2.borderCapColor = 9542041 /* 0x919999 */; var _local4 = new Object(); _local4.borderColor = 16711680 /* 0xFF0000 */; _local4.buttonColor = 16711680 /* 0xFF0000 */; _local4.shadowColor = 16711680 /* 0xFF0000 */; _local4.highlightColor = 16711680 /* 0xFF0000 */; _local4.shadowCapColor = 16711680 /* 0xFF0000 */; _local4.borderCapColor = 16711680 /* 0xFF0000 */; mx.core.UIComponent.prototype.origBorderStyles = _local4; var _local3; _local3 = (_global.styles.TextInput = new mx.styles.CSSStyleDeclaration()); _local3.backgroundColor = 16777215 /* 0xFFFFFF */; _local3.borderStyle = "inset"; _global.styles.TextArea = _global.styles.TextInput; _local3 = (_global.styles.Window = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "default"; _local3 = (_global.styles.windowStyles = new mx.styles.CSSStyleDeclaration()); _local3.fontWeight = "bold"; _local3 = (_global.styles.dataGridStyles = new mx.styles.CSSStyleDeclaration()); _local3.fontWeight = "bold"; _local3 = (_global.styles.Alert = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "alert"; _local3 = (_global.styles.ScrollView = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "inset"; _local3 = (_global.styles.View = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "none"; _local3 = (_global.styles.ProgressBar = new mx.styles.CSSStyleDeclaration()); _local3.color = 11187123 /* 0xAAB3B3 */; _local3.fontWeight = "bold"; _local3 = (_global.styles.AccordionHeader = new mx.styles.CSSStyleDeclaration()); _local3.fontWeight = "bold"; _local3.fontSize = "11"; _local3 = (_global.styles.Accordion = new mx.styles.CSSStyleDeclaration()); _local3.borderStyle = "solid"; _local3.backgroundColor = 16777215 /* 0xFFFFFF */; _local3.borderColor = 9081738 /* 0x8A938A */; _local3.headerHeight = 22; _local3.marginLeft = (_local3.marginRight = (_local3.marginTop = (_local3.marginBottom = -1))); _local3.verticalGap = -1; _local3 = (_global.styles.DateChooser = new mx.styles.CSSStyleDeclaration()); _local3.borderColor = 9542041 /* 0x919999 */; _local3.headerColor = 16777215 /* 0xFFFFFF */; _local3 = (_global.styles.CalendarLayout = new mx.styles.CSSStyleDeclaration()); _local3.fontSize = 10; _local3.textAlign = "right"; _local3.color = 2831164 /* 0x2B333C */; _local3 = (_global.styles.WeekDayStyle = new mx.styles.CSSStyleDeclaration()); _local3.fontWeight = "bold"; _local3.fontSize = 11; _local3.textAlign = "center"; _local3.color = 2831164 /* 0x2B333C */; _local3 = (_global.styles.TodayStyle = new mx.styles.CSSStyleDeclaration()); _local3.color = 16777215 /* 0xFFFFFF */; _local3 = (_global.styles.HeaderDateText = new mx.styles.CSSStyleDeclaration()); _local3.fontSize = 12; _local3.fontWeight = "bold"; _local3.textAlign = "center"; } function drawRoundRect(x, y, w, h, r, c, alpha, rot, gradient, ratios) { if (typeof(r) == "object") { var _local18 = r.br; var _local16 = r.bl; var _local15 = r.tl; var _local10 = r.tr; } else { var _local10 = r; var _local15 = _local10; var _local16 = _local15; var _local18 = _local16; } if (typeof(c) == "object") { if (typeof(alpha) != "object") { var _local9 = [alpha, alpha]; } else { var _local9 = alpha; } if (ratios == undefined) { ratios = [0, 255]; } var _local14 = h * 0.7; if (typeof(rot) != "object") { var _local11 = {matrixType:"box", x:-_local14, y:_local14, w:w * 2, h:h * 4, r:rot * 0.0174532925199433 /* Math.PI/180 */}; } else { var _local11 = rot; } if (gradient == "radial") { beginGradientFill("radial", c, _local9, ratios, _local11); } else { beginGradientFill("linear", c, _local9, ratios, _local11); } } else if (c != undefined) { beginFill(c, alpha); } r = _local18; var _local13 = r - (r * 0.707106781186547); var _local12 = r - (r * 0.414213562373095); moveTo(x + w, (y + h) - r); lineTo(x + w, (y + h) - r); curveTo(x + w, (y + h) - _local12, (x + w) - _local13, (y + h) - _local13); curveTo((x + w) - _local12, y + h, (x + w) - r, y + h); r = _local16; _local13 = r - (r * 0.707106781186547); _local12 = r - (r * 0.414213562373095); lineTo(x + r, y + h); curveTo(x + _local12, y + h, x + _local13, (y + h) - _local13); curveTo(x, (y + h) - _local12, x, (y + h) - r); r = _local15; _local13 = r - (r * 0.707106781186547); _local12 = r - (r * 0.414213562373095); lineTo(x, y + r); curveTo(x, y + _local12, x + _local13, y + _local13); curveTo(x + _local12, y, x + r, y); r = _local10; _local13 = r - (r * 0.707106781186547); _local12 = r - (r * 0.414213562373095); lineTo((x + w) - r, y); curveTo((x + w) - _local12, y, (x + w) - _local13, y + _local13); curveTo(x + w, y + _local12, x + w, y + r); lineTo(x + w, (y + h) - r); if (c != undefined) { endFill(); } } static function classConstruct() { mx.core.ext.UIObjectExtensions.Extensions(); setThemeDefaults(); mx.core.UIObject.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return(true); } static var classConstructed = classConstruct(); static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; static var UIObjectDependency = mx.core.UIObject; }
Symbol 192 MovieClip [__Packages.mx.managers.DepthManager] Frame 0
class mx.managers.DepthManager { var _childCounter, createClassObject, createObject, _parent, swapDepths, _topmost, getDepth; function DepthManager () { MovieClip.prototype.createClassChildAtDepth = createClassChildAtDepth; MovieClip.prototype.createChildAtDepth = createChildAtDepth; MovieClip.prototype.setDepthTo = setDepthTo; MovieClip.prototype.setDepthAbove = setDepthAbove; MovieClip.prototype.setDepthBelow = setDepthBelow; MovieClip.prototype.findNextAvailableDepth = findNextAvailableDepth; MovieClip.prototype.shuffleDepths = shuffleDepths; MovieClip.prototype.getDepthByFlag = getDepthByFlag; MovieClip.prototype.buildDepthTable = buildDepthTable; _global.ASSetPropFlags(MovieClip.prototype, "createClassChildAtDepth", 1); _global.ASSetPropFlags(MovieClip.prototype, "createChildAtDepth", 1); _global.ASSetPropFlags(MovieClip.prototype, "setDepthTo", 1); _global.ASSetPropFlags(MovieClip.prototype, "setDepthAbove", 1); _global.ASSetPropFlags(MovieClip.prototype, "setDepthBelow", 1); _global.ASSetPropFlags(MovieClip.prototype, "findNextAvailableDepth", 1); _global.ASSetPropFlags(MovieClip.prototype, "shuffleDepths", 1); _global.ASSetPropFlags(MovieClip.prototype, "getDepthByFlag", 1); _global.ASSetPropFlags(MovieClip.prototype, "buildDepthTable", 1); } static function sortFunction(a, b) { if (a.getDepth() > b.getDepth()) { return(1); } return(-1); } static function test(depth) { if (depth == reservedDepth) { return(false); } return(true); } static function createClassObjectAtDepth(className, depthSpace, initObj) { var _local1; switch (depthSpace) { case kCursor : _local1 = holder.createClassChildAtDepth(className, kTopmost, initObj); break; case kTooltip : _local1 = holder.createClassChildAtDepth(className, kTop, initObj); break; } return(_local1); } static function createObjectAtDepth(linkageName, depthSpace, initObj) { var _local1; switch (depthSpace) { case kCursor : _local1 = holder.createChildAtDepth(linkageName, kTopmost, initObj); break; case kTooltip : _local1 = holder.createChildAtDepth(linkageName, kTop, initObj); break; } return(_local1); } function createClassChildAtDepth(className, depthFlag, initObj) { if (_childCounter == undefined) { _childCounter = 0; } var _local3 = buildDepthTable(); var _local2 = getDepthByFlag(depthFlag, _local3); var _local6 = "down"; if (depthFlag == kBottom) { _local6 = "up"; } var _local5; if (_local3[_local2] != undefined) { _local5 = _local2; _local2 = findNextAvailableDepth(_local2, _local3, _local6); } var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj); if (_local5 != undefined) { _local3[_local2] = _local4; shuffleDepths(_local4, _local5, _local3, _local6); } if (depthFlag == kTopmost) { _local4._topmost = true; } return(_local4); } function createChildAtDepth(linkageName, depthFlag, initObj) { if (_childCounter == undefined) { _childCounter = 0; } var _local3 = buildDepthTable(); var _local2 = getDepthByFlag(depthFlag, _local3); var _local6 = "down"; if (depthFlag == kBottom) { _local6 = "up"; } var _local5; if (_local3[_local2] != undefined) { _local5 = _local2; _local2 = findNextAvailableDepth(_local2, _local3, _local6); } var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj); if (_local5 != undefined) { _local3[_local2] = _local4; shuffleDepths(_local4, _local5, _local3, _local6); } if (depthFlag == kTopmost) { _local4._topmost = true; } return(_local4); } function setDepthTo(depthFlag) { var _local2 = _parent.buildDepthTable(); var _local3 = _parent.getDepthByFlag(depthFlag, _local2); if (_local2[_local3] != undefined) { shuffleDepths(this, _local3, _local2, undefined); } else { swapDepths(_local3); } if (depthFlag == kTopmost) { _topmost = true; } else { delete _topmost; } } function setDepthAbove(targetInstance) { if (targetInstance._parent != _parent) { return(undefined); } var _local2 = targetInstance.getDepth() + 1; var _local3 = _parent.buildDepthTable(); if ((_local3[_local2] != undefined) && (getDepth() < _local2)) { _local2 = _local2 - 1; } if (_local2 > highestDepth) { _local2 = highestDepth; } if (_local2 == highestDepth) { _parent.shuffleDepths(this, _local2, _local3, "down"); } else if (_local3[_local2] != undefined) { _parent.shuffleDepths(this, _local2, _local3, undefined); } else { swapDepths(_local2); } } function setDepthBelow(targetInstance) { if (targetInstance._parent != _parent) { return(undefined); } var _local6 = targetInstance.getDepth() - 1; var _local3 = _parent.buildDepthTable(); if ((_local3[_local6] != undefined) && (getDepth() > _local6)) { _local6 = _local6 + 1; } var _local4 = lowestDepth + numberOfAuthortimeLayers; var _local5; for (_local5 in _local3) { var _local2 = _local3[_local5]; if (_local2._parent != undefined) { _local4 = Math.min(_local4, _local2.getDepth()); } } if (_local6 < _local4) { _local6 = _local4; } if (_local6 == _local4) { _parent.shuffleDepths(this, _local6, _local3, "up"); } else if (_local3[_local6] != undefined) { _parent.shuffleDepths(this, _local6, _local3, undefined); } else { swapDepths(_local6); } } function findNextAvailableDepth(targetDepth, depthTable, direction) { var _local5 = lowestDepth + numberOfAuthortimeLayers; if (targetDepth < _local5) { targetDepth = _local5; } if (depthTable[targetDepth] == undefined) { return(targetDepth); } var _local2 = targetDepth; var _local1 = targetDepth; if (direction == "down") { while (depthTable[_local1] != undefined) { _local1--; } return(_local1); } while (depthTable[_local2] != undefined) { _local2++; } return(_local2); } function shuffleDepths(subject, targetDepth, depthTable, direction) { var _local9 = lowestDepth + numberOfAuthortimeLayers; var _local8 = _local9; var _local5; for (_local5 in depthTable) { var _local7 = depthTable[_local5]; if (_local7._parent != undefined) { _local9 = Math.min(_local9, _local7.getDepth()); } } if (direction == undefined) { if (subject.getDepth() > targetDepth) { direction = "up"; } else { direction = "down"; } } var _local1 = new Array(); for (_local5 in depthTable) { var _local7 = depthTable[_local5]; if (_local7._parent != undefined) { _local1.push(_local7); } } _local1.sort(sortFunction); if (direction == "up") { var _local3; var _local11; do { if (_local1.length <= 0) { break; } _local3 = _local1.pop(); } while (_local3 != subject); do { if (_local1.length <= 0) { break; } _local11 = subject.getDepth(); _local3 = _local1.pop(); var _local4 = _local3.getDepth(); if (_local11 > (_local4 + 1)) { if (_local4 >= 0) { subject.swapDepths(_local4 + 1); } else if ((_local11 > _local8) && (_local4 < _local8)) { subject.swapDepths(_local8); } } subject.swapDepths(_local3); } while (_local4 != targetDepth); } else if (direction == "down") { var _local3; do { if (_local1.length <= 0) { break; } _local3 = _local1.shift(); } while (_local3 != subject); do { if (_local1.length <= 0) { break; } var _local11 = _local3.getDepth(); _local3 = _local1.shift(); var _local4 = _local3.getDepth(); if ((_local11 < (_local4 - 1)) && (_local4 > 0)) { subject.swapDepths(_local4 - 1); } subject.swapDepths(_local3); } while (_local4 != targetDepth); } } function getDepthByFlag(depthFlag, depthTable) { var _local2 = 0; if ((depthFlag == kTop) || (depthFlag == kNotopmost)) { var _local5 = 0; var _local7 = false; var _local8; for (_local8 in depthTable) { var _local9 = depthTable[_local8]; var _local3 = typeof(_local9); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) { if (_local9.getDepth() <= highestDepth) { if (!_local9._topmost) { _local2 = Math.max(_local2, _local9.getDepth()); } else if (!_local7) { _local5 = _local9.getDepth(); _local7 = true; } else { _local5 = Math.min(_local5, _local9.getDepth()); } } } } _local2 = _local2 + 20; if (_local7) { if (_local2 >= _local5) { _local2 = _local5 - 1; } } } else if (depthFlag == kBottom) { for (var _local8 in depthTable) { var _local9 = depthTable[_local8]; var _local3 = typeof(_local9); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) { if (_local9.getDepth() <= highestDepth) { _local2 = Math.min(_local2, _local9.getDepth()); } } } _local2 = _local2 - 20; } else if (depthFlag == kTopmost) { for (var _local8 in depthTable) { var _local9 = depthTable[_local8]; var _local3 = typeof(_local9); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local9.__getTextFormat != undefined))) { if (_local9.getDepth() <= highestDepth) { _local2 = Math.max(_local2, _local9.getDepth()); } } } _local2 = _local2 + 100; } if (_local2 >= highestDepth) { _local2 = highestDepth; } var _local6 = lowestDepth + numberOfAuthortimeLayers; for (var _local9 in depthTable) { var _local4 = depthTable[_local9]; if (_local4._parent != undefined) { _local6 = Math.min(_local6, _local4.getDepth()); } } if (_local2 <= _local6) { _local2 = _local6; } return(_local2); } function buildDepthTable(Void) { var _local5 = new Array(); var _local4; for (_local4 in this) { var _local2 = this[_local4]; var _local3 = typeof(_local2); if ((_local3 == "movieclip") || ((_local3 == "object") && (_local2.__getTextFormat != undefined))) { if (_local2._parent == this) { _local5[_local2.getDepth()] = _local2; } } } return(_local5); } static var reservedDepth = 1048575; static var highestDepth = 1048574; static var lowestDepth = -16383; static var numberOfAuthortimeLayers = 383; static var kCursor = 101; static var kTooltip = 102; static var kTop = 201; static var kBottom = 202; static var kTopmost = 203; static var kNotopmost = 204; static var holder = _root.createEmptyMovieClip("reserved", reservedDepth); static var __depthManager = new mx.managers.DepthManager(); }
Symbol 193 MovieClip [__Packages.mx.managers.SystemManager] Frame 0
class mx.managers.SystemManager { static var _xAddEventListener, addEventListener, __addEventListener, _xRemoveEventListener, removeEventListener, __removeEventListener, form, __screen, dispatchEvent; function SystemManager () { } static function init(Void) { if (_initialized == false) { _initialized = true; mx.events.EventDispatcher.initialize(mx.managers.SystemManager); Mouse.addListener(mx.managers.SystemManager); Stage.addListener(mx.managers.SystemManager); _xAddEventListener = addEventListener; addEventListener = __addEventListener; _xRemoveEventListener = removeEventListener; removeEventListener = __removeEventListener; } } static function addFocusManager(f) { form = f; f.focusManager.activate(); } static function removeFocusManager(f) { } static function onMouseDown(Void) { var _local1 = form; _local1.focusManager._onMouseDown(); } static function onResize(Void) { var _local7 = Stage.width; var _local6 = Stage.height; var _local9 = _global.origWidth; var _local8 = _global.origHeight; var _local3 = Stage.align; var _local5 = (_local9 - _local7) / 2; var _local4 = (_local8 - _local6) / 2; if (_local3 == "T") { _local4 = 0; } else if (_local3 == "B") { _local4 = _local8 - _local6; } else if (_local3 == "L") { _local5 = 0; } else if (_local3 == "R") { _local5 = _local9 - _local7; } else if (_local3 == "LT") { _local4 = 0; _local5 = 0; } else if (_local3 == "TR") { _local4 = 0; _local5 = _local9 - _local7; } else if (_local3 == "LB") { _local4 = _local8 - _local6; _local5 = 0; } else if (_local3 == "RB") { _local4 = _local8 - _local6; _local5 = _local9 - _local7; } if (__screen == undefined) { __screen = new Object(); } __screen.x = _local5; __screen.y = _local4; __screen.width = _local7; __screen.height = _local6; _root.focusManager.relocate(); dispatchEvent({type:"resize"}); } static function get screen() { init(); if (__screen == undefined) { onResize(); } return(__screen); } static var _initialized = false; static var idleFrames = 0; static var isMouseDown = false; static var forms = new Array(); }
Symbol 194 MovieClip [__Packages.mx.managers.FocusManager] Frame 0
class mx.managers.FocusManager extends mx.core.UIComponent { var __defaultPushButton, defPushButton, form, move, tabEnabled, _width, _height, _x, _y, _alpha, _parent, tabCapture, watch, lastMouse, _visible, lastFocus, doLater, lastSelFocus, cancelAllDoLaters, _searchKey, _lastTarget, _firstNode, _nextIsNext, _nextNode, _lastx, _prevNode, _needPrev, _foundList, _prevObj, _nextObj, _firstObj, _lastObj, _lastNode, lastTabFocus, findFocusFromObject; function FocusManager () { super(); } function get defaultPushButton() { return(__defaultPushButton); } function set defaultPushButton(x) { if (x != __defaultPushButton) { __defaultPushButton.__set__emphasized(false); __defaultPushButton = x; defPushButton = x; x.__set__emphasized(true); } //return(defaultPushButton); } function getMaxTabIndex(o) { var _local3 = 0; var _local6; for (_local6 in o) { var _local2 = o[_local6]; if (_local2._parent == o) { if (_local2.tabIndex != undefined) { if (_local2.tabIndex > _local3) { _local3 = _local2.tabIndex; } } if (_local2.tabChildren == true) { var _local4 = getMaxTabIndex(_local2); if (_local4 > _local3) { _local3 = _local4; } } } } return(_local3); } function getNextTabIndex(Void) { return(getMaxTabIndex(form) + 1); } function get nextTabIndex() { return(getNextTabIndex()); } function relocate(Void) { var _local2 = mx.managers.SystemManager.__get__screen(); move(_local2.x - 1, _local2.y - 1); } function init(Void) { super.init(); tabEnabled = false; _width = (_height = 1); _x = (_y = -1); _alpha = 0; _parent.focusManager = this; _parent.tabChildren = true; _parent.tabEnabled = false; form = _parent; _parent.addEventListener("hide", this); _parent.addEventListener("reveal", this); mx.managers.SystemManager.init(); mx.managers.SystemManager.addFocusManager(form); tabCapture.tabIndex = 0; watch("enabled", enabledChanged); Selection.addListener(this); lastMouse = new Object(); _global.ASSetPropFlags(_parent, "focusManager", 1); _global.ASSetPropFlags(_parent, "tabChildren", 1); _global.ASSetPropFlags(_parent, "tabEnabled", 1); } function enabledChanged(id, oldValue, newValue) { _visible = newValue; return(newValue); } function activate(Void) { Key.addListener(this); activated = (_visible = true); if (lastFocus != undefined) { bNeedFocus = true; if (!mx.managers.SystemManager.isMouseDown) { doLater(this, "restoreFocus"); } } } function deactivate(Void) { Key.removeListener(this); activated = (_visible = false); var _local2 = getSelectionFocus(); var _local3 = getActualFocus(_local2); if (isOurFocus(_local3)) { lastSelFocus = _local2; lastFocus = _local3; } cancelAllDoLaters(); } function isOurFocus(o) { if (o.focusManager == this) { return(true); } while (o != undefined) { if (o.focusManager != undefined) { return(false); } if (o._parent == _parent) { return(true); } o = o._parent; } return(false); } function onSetFocus(o, n) { if (n == null) { if (activated) { bNeedFocus = true; } } else { var _local2 = getFocus(); if (isOurFocus(_local2)) { bNeedFocus = false; lastFocus = _local2; lastSelFocus = n; } } } function restoreFocus(Void) { var _local2 = lastSelFocus.hscroll; if (_local2 != undefined) { var _local5 = lastSelFocus.scroll; var _local4 = lastSelFocus.background; } lastFocus.setFocus(); var _local3 = Selection; Selection.setSelection(_local3.lastBeginIndex, _local3.lastEndIndex); if (_local2 != undefined) { lastSelFocus.scroll = _local5; lastSelFocus.hscroll = _local2; lastSelFocus.background = _local4; } } function onUnload(Void) { mx.managers.SystemManager.removeFocusManager(form); } function setFocus(o) { if (o == null) { Selection.setFocus(null); } else if (o.setFocus == undefined) { Selection.setFocus(o); } else { o.setFocus(); } } function getActualFocus(o) { var _local1 = o._parent; while (_local1 != undefined) { if (_local1.focusTextField != undefined) { while (_local1.focusTextField != undefined) { o = _local1; _local1 = _local1._parent; if (_local1 == undefined) { return(undefined); } if (_local1.focusTextField == undefined) { return(o); } } } if (_local1.tabEnabled != true) { return(o); } o = _local1; _local1 = o._parent; } return(undefined); } function getSelectionFocus() { var m = Selection.getFocus(); var o = eval (m); return(o); } function getFocus(Void) { var _local2 = getSelectionFocus(); return(getActualFocus(_local2)); } function walkTree(p, index, groupName, dir, lookup, firstChild) { var _local5 = true; var _local11; for (_local11 in p) { var _local2 = p[_local11]; if ((((_local2._parent == p) && (_local2.enabled != false)) && (_local2._visible != false)) && ((_local2.tabEnabled == true) || ((_local2.tabEnabled != false) && ((((((((_local2.onPress != undefined) || (_local2.onRelease != undefined)) || (_local2.onReleaseOutside != undefined)) || (_local2.onDragOut != undefined)) || (_local2.onDragOver != undefined)) || (_local2.onRollOver != undefined)) || (_local2.onRollOut != undefined)) || (_local2 instanceof TextField))))) { if (_local2._searchKey == _searchKey) { continue; } _local2._searchKey = _searchKey; if (_local2 != _lastTarget) { if (((_local2.groupName != undefined) || (groupName != undefined)) && (_local2.groupName == groupName)) { continue; } if ((_local2 instanceof TextField) && (_local2.selectable == false)) { continue; } if (_local5 || (((_local2.groupName != undefined) && (_local2.groupName == _firstNode.groupName)) && (_local2.selected == true))) { if (firstChild) { _firstNode = _local2; firstChild = false; } } if (_nextIsNext == true) { if ((((_local2.groupName != undefined) && (_local2.groupName == _nextNode.groupName)) && (_local2.selected == true)) || ((_nextNode == undefined) && ((_local2.groupName == undefined) || ((_local2.groupName != undefined) && (_local2.groupName != groupName))))) { _nextNode = _local2; } } if ((_local2.groupName == undefined) || (groupName != _local2.groupName)) { if (((_lastx.groupName != undefined) && (_local2.groupName == _lastx.groupName)) && (_lastx.selected == true)) { } else { _lastx = _local2; } } } else { _prevNode = _lastx; _needPrev = false; _nextIsNext = true; } if (_local2.tabIndex != undefined) { if (_local2.tabIndex == index) { if (_foundList[_local2._name] == undefined) { if (_needPrev) { _prevObj = _local2; _needPrev = false; } _nextObj = _local2; } } if (dir && (_local2.tabIndex > index)) { if (((_nextObj == undefined) || ((_nextObj.tabIndex > _local2.tabIndex) && (((_local2.groupName == undefined) || (_nextObj.groupName == undefined)) || (_local2.groupName != _nextObj.groupName)))) || ((((_nextObj.groupName != undefined) && (_nextObj.groupName == _local2.groupName)) && (_nextObj.selected != true)) && ((_local2.selected == true) || (_nextObj.tabIndex > _local2.tabIndex)))) { _nextObj = _local2; } } else if ((!dir) && (_local2.tabIndex < index)) { if (((_prevObj == undefined) || ((_prevObj.tabIndex < _local2.tabIndex) && (((_local2.groupName == undefined) || (_prevObj.groupName == undefined)) || (_local2.groupName != _prevObj.groupName)))) || ((((_prevObj.groupName != undefined) && (_prevObj.groupName == _local2.groupName)) && (_prevObj.selected != true)) && ((_local2.selected == true) || (_prevObj.tabIndex < _local2.tabIndex)))) { _prevObj = _local2; } } if (((_firstObj == undefined) || ((_local2.tabIndex < _firstObj.tabIndex) && (((_local2.groupName == undefined) || (_firstObj.groupName == undefined)) || (_local2.groupName != _firstObj.groupName)))) || ((((_firstObj.groupName != undefined) && (_firstObj.groupName == _local2.groupName)) && (_firstObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex < _firstObj.tabIndex)))) { _firstObj = _local2; } if (((_lastObj == undefined) || ((_local2.tabIndex > _lastObj.tabIndex) && (((_local2.groupName == undefined) || (_lastObj.groupName == undefined)) || (_local2.groupName != _lastObj.groupName)))) || ((((_lastObj.groupName != undefined) && (_lastObj.groupName == _local2.groupName)) && (_lastObj.selected != true)) && ((_local2.selected == true) || (_local2.tabIndex > _lastObj.tabIndex)))) { _lastObj = _local2; } } if (_local2.tabChildren) { getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild)); } _local5 = false; } else if (((_local2._parent == p) && (_local2.tabChildren == true)) && (_local2._visible != false)) { if (_local2 == _lastTarget) { if (_local2._searchKey == _searchKey) { continue; } _local2._searchKey = _searchKey; if (_prevNode == undefined) { var _local3 = _lastx; var _local7 = false; while (_local3 != undefined) { if (_local3 == _local2) { _local7 = true; break; } _local3 = _local3._parent; } if (_local7 == false) { _prevNode = _lastx; } } _needPrev = false; if (_nextNode == undefined) { _nextIsNext = true; } } else if (!((_local2.focusManager != undefined) && (_local2.focusManager._parent == _local2))) { if (_local2._searchKey == _searchKey) { continue; } _local2._searchKey = _searchKey; getTabCandidateFromChildren(_local2, index, groupName, dir, _local5 && (firstChild)); } _local5 = false; } } _lastNode = _lastx; if (lookup) { if (p._parent != undefined) { if (p != _parent) { if ((_prevNode == undefined) && (dir)) { _needPrev = true; } else if ((_nextNode == undefined) && (!dir)) { _nextIsNext = false; } _lastTarget = _lastTarget._parent; getTabCandidate(p._parent, index, groupName, dir, true); } } } } function getTabCandidate(o, index, groupName, dir, firstChild) { var _local2; var _local3 = true; if (o == _parent) { _local2 = o; _local3 = false; } else { _local2 = o._parent; if (_local2 == undefined) { _local2 = o; _local3 = false; } } walkTree(_local2, index, groupName, dir, _local3, firstChild); } function getTabCandidateFromChildren(o, index, groupName, dir, firstChild) { walkTree(o, index, groupName, dir, false, firstChild); } function getFocusManagerFromObject(o) { while (o != undefined) { if (o.focusManager != undefined) { return(o.focusManager); } o = o._parent; } return(undefined); } function tabHandler(Void) { bDrawFocus = true; var _local5 = getSelectionFocus(); var _local4 = getActualFocus(_local5); if (_local4 != _local5) { _local5 = _local4; } if (getFocusManagerFromObject(_local5) != this) { _local5 == undefined; } if (_local5 == undefined) { _local5 = form; } else if (_local5.tabIndex != undefined) { if ((_foundList != undefined) || (_foundList.tabIndex != _local5.tabIndex)) { _foundList = new Object(); _foundList.tabIndex = _local5.tabIndex; } _foundList[_local5._name] = _local5; } var _local3 = Key.isDown(16) != true; _searchKey = getTimer(); _needPrev = true; _nextIsNext = false; _lastx = undefined; _firstNode = undefined; _lastNode = undefined; _nextNode = undefined; _prevNode = undefined; _firstObj = undefined; _lastObj = undefined; _nextObj = undefined; _prevObj = undefined; _lastTarget = _local5; var _local6 = _local5; getTabCandidate(_local6, ((_local5.tabIndex == undefined) ? 0 : (_local5.tabIndex)), _local5.groupName, _local3, true); var _local2; if (_local3) { if (_nextObj != undefined) { _local2 = _nextObj; } else { _local2 = _firstObj; } } else if (_prevObj != undefined) { _local2 = _prevObj; } else { _local2 = _lastObj; } if (_local2.tabIndex != _local5.tabIndex) { _foundList = new Object(); _foundList.tabIndex = _local2.tabIndex; _foundList[_local2._name] = _local2; } else { if (_foundList == undefined) { _foundList = new Object(); _foundList.tabIndex = _local2.tabIndex; } _foundList[_local2._name] = _local2; } if (_local2 == undefined) { if (_local3 == false) { if (_nextNode != undefined) { _local2 = _nextNode; } else { _local2 = _firstNode; } } else if ((_prevNode == undefined) || (_local5 == form)) { _local2 = _lastNode; } else { _local2 = _prevNode; } } if (_local2 == undefined) { return(undefined); } lastTabFocus = _local2; setFocus(_local2); if (_local2.emphasized != undefined) { if (defPushButton != undefined) { _local5 = defPushButton; defPushButton = _local2; _local5.emphasized = false; _local2.emphasized = true; } } else if ((defPushButton != undefined) && (defPushButton != __defaultPushButton)) { _local5 = defPushButton; defPushButton = __defaultPushButton; _local5.emphasized = false; __defaultPushButton.__set__emphasized(true); } } function onKeyDown(Void) { mx.managers.SystemManager.idleFrames = 0; if (defaultPushButtonEnabled) { if (Key.getCode() == 13) { if (defaultPushButton != undefined) { doLater(this, "sendDefaultPushButtonEvent"); } } } } function sendDefaultPushButtonEvent(Void) { defPushButton.dispatchEvent({type:"click"}); } function getMousedComponentFromChildren(x, y, o) { for (var _local7 in o) { var _local2 = o[_local7]; if (((_local2._visible && (_local2.enabled)) && (_local2._parent == o)) && (_local2._searchKey != _searchKey)) { _local2._searchKey = _searchKey; if (_local2.hitTest(x, y, true)) { if ((_local2.onPress != undefined) || (_local2.onRelease != undefined)) { return(_local2); } var _local3 = getMousedComponentFromChildren(x, y, _local2); if (_local3 != undefined) { return(_local3); } return(_local2); } } } return(undefined); } function mouseActivate(Void) { if (!bNeedFocus) { return(undefined); } _searchKey = getTimer(); var _local2 = getMousedComponentFromChildren(lastMouse.x, lastMouse.y, form); if (_local2 instanceof mx.core.UIComponent) { return(undefined); } _local2 = findFocusFromObject(_local2); if (_local2 == lastFocus) { return(undefined); } if (_local2 == undefined) { doLater(this, "restoreFocus"); return(undefined); } var _local3 = _local2.hscroll; if (_local3 != undefined) { var _local6 = _local2.scroll; var _local5 = _local2.background; } setFocus(_local2); var _local4 = Selection; Selection.setSelection(_local4.lastBeginIndex, _local4.lastEndIndex); if (_local3 != undefined) { _local2.scroll = _local6; _local2.hscroll = _local3; _local2.background = _local5; } } function _onMouseDown(Void) { bDrawFocus = false; if (lastFocus != undefined) { lastFocus.drawFocus(false); } mx.managers.SystemManager.idleFrames = 0; var _local3 = Selection; _local3.lastBeginIndex = Selection.getBeginIndex(); _local3.lastEndIndex = Selection.getEndIndex(); lastMouse.x = _root._xmouse; lastMouse.y = _root._ymouse; _root.localToGlobal(lastMouse); } function onMouseUp(Void) { if (_visible) { doLater(this, "mouseActivate"); } } function handleEvent(e) { if (e.type == "reveal") { mx.managers.SystemManager.activate(form); } else { mx.managers.SystemManager.deactivate(form); } } static function enableFocusManagement() { if (!initialized) { initialized = true; Object.registerClass("FocusManager", mx.managers.FocusManager); if (_root.focusManager == undefined) { _root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--); } } } static var symbolName = "FocusManager"; static var symbolOwner = mx.managers.FocusManager; static var version = "2.0.2.127"; var className = "FocusManager"; var bNeedFocus = false; var bDrawFocus = false; var defaultPushButtonEnabled = true; var activated = true; static var initialized = false; static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; }
Symbol 195 MovieClip [__Packages.mx.skins.halo.FocusRect] Frame 0
class mx.skins.halo.FocusRect extends mx.skins.SkinElement { var boundingBox_mc, _xscale, _yscale, clear, beginFill, drawRoundRect, endFill, _visible; function FocusRect () { super(); boundingBox_mc._visible = false; boundingBox_mc._width = (boundingBox_mc._height = 0); } function draw(o) { o.adjustFocusRect(); } function setSize(w, h, r, a, rectCol) { _xscale = (_yscale = 100); clear(); if (typeof(r) == "object") { r.br = ((r.br > 2) ? (r.br - 2) : 0); r.bl = ((r.bl > 2) ? (r.bl - 2) : 0); r.tr = ((r.tr > 2) ? (r.tr - 2) : 0); r.tl = ((r.tl > 2) ? (r.tl - 2) : 0); beginFill(rectCol, a * 0.3); drawRoundRect(0, 0, w, h, r); drawRoundRect(2, 2, w - 4, h - 4, r); endFill(); r.br = ((r.br > 1) ? (r.br + 1) : 0); r.bl = ((r.bl > 1) ? (r.bl + 1) : 0); r.tr = ((r.tr > 1) ? (r.tr + 1) : 0); r.tl = ((r.tl > 1) ? (r.tl + 1) : 0); beginFill(rectCol, a * 0.3); drawRoundRect(1, 1, w - 2, h - 2, r); r.br = ((r.br > 1) ? (r.br - 1) : 0); r.bl = ((r.bl > 1) ? (r.bl - 1) : 0); r.tr = ((r.tr > 1) ? (r.tr - 1) : 0); r.tl = ((r.tl > 1) ? (r.tl - 1) : 0); drawRoundRect(2, 2, w - 4, h - 4, r); endFill(); } else { var _local5; if (r != 0) { _local5 = r - 2; } else { _local5 = 0; } beginFill(rectCol, a * 0.3); drawRoundRect(0, 0, w, h, r); drawRoundRect(2, 2, w - 4, h - 4, _local5); endFill(); beginFill(rectCol, a * 0.3); if (r != 0) { _local5 = r - 2; r = r - 1; } else { _local5 = 0; r = 0; } drawRoundRect(1, 1, w - 2, h - 2, r); drawRoundRect(2, 2, w - 4, h - 4, _local5); endFill(); } } function handleEvent(e) { if (e.type == "unload") { _visible = true; } else if (e.type == "resize") { e.target.adjustFocusRect(); } else if (e.type == "move") { e.target.adjustFocusRect(); } } static function classConstruct() { mx.core.UIComponent.prototype.drawFocus = function (focused) { var _local2 = this._parent.focus_mc; if (!focused) { _local2._visible = false; this.removeEventListener("unload", _local2); this.removeEventListener("move", _local2); this.removeEventListener("resize", _local2); } else { if (_local2 == undefined) { _local2 = this._parent.createChildAtDepth("FocusRect", mx.managers.DepthManager.kTop); _local2.tabEnabled = false; this._parent.focus_mc = _local2; } else { _local2._visible = true; } _local2.draw(this); if (_local2.getDepth() < this.getDepth()) { _local2.setDepthAbove(this); } this.addEventListener("unload", _local2); this.addEventListener("move", _local2); this.addEventListener("resize", _local2); } }; mx.core.UIComponent.prototype.adjustFocusRect = function () { var _local2 = this.getStyle("themeColor"); if (_local2 == undefined) { _local2 = 8453965 /* 0x80FF4D */; } var _local3 = this._parent.focus_mc; _local3.setSize(this.width + 4, this.height + 4, 0, 100, _local2); _local3.move(this.x - 2, this.y - 2); }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.adjustFocusRect = mx.core.UIComponent.prototype.adjustFocusRect; mx.skins.halo.FocusRect.prototype.drawRoundRect = mx.skins.halo.Defaults.prototype.drawRoundRect; return(true); } static var classConstructed = classConstruct(); static var DefaultsDependency = mx.skins.halo.Defaults; static var UIComponentDependency = mx.core.UIComponent; }
Symbol 196 MovieClip [__Packages.mx.managers.OverlappedWindows] Frame 0
class mx.managers.OverlappedWindows { function OverlappedWindows () { } static function checkIdle(Void) { if (mx.managers.SystemManager.idleFrames > 10) { mx.managers.SystemManager.dispatchEvent({type:"idle"}); } else { mx.managers.SystemManager.idleFrames++; } } static function __addEventListener(e, o, l) { if (e == "idle") { if (mx.managers.SystemManager.interval == undefined) { mx.managers.SystemManager.interval = setInterval(mx.managers.SystemManager.checkIdle, 100); } } mx.managers.SystemManager._xAddEventListener(e, o, l); } static function __removeEventListener(e, o, l) { if (e == "idle") { if (mx.managers.SystemManager._xRemoveEventListener(e, o, l) == 0) { clearInterval(mx.managers.SystemManager.interval); } } else { mx.managers.SystemManager._xRemoveEventListener(e, o, l); } } static function onMouseDown(Void) { mx.managers.SystemManager.idleFrames = 0; mx.managers.SystemManager.isMouseDown = true; var _local5 = _root; var _local3; var _local8 = _root._xmouse; var _local7 = _root._ymouse; if (mx.managers.SystemManager.form.modalWindow == undefined) { if (mx.managers.SystemManager.forms.length > 1) { var _local6 = mx.managers.SystemManager.forms.length; var _local4; _local4 = 0; while (_local4 < _local6) { var _local2 = mx.managers.SystemManager.forms[_local4]; if (_local2._visible) { if (_local2.hitTest(_local8, _local7)) { if (_local3 == undefined) { _local3 = _local2.getDepth(); _local5 = _local2; } else if (_local3 < _local2.getDepth()) { _local3 = _local2.getDepth(); _local5 = _local2; } } } _local4++; } if (_local5 != mx.managers.SystemManager.form) { mx.managers.SystemManager.activate(_local5); } } } var _local9 = mx.managers.SystemManager.form; _local9.focusManager._onMouseDown(); } static function onMouseMove(Void) { mx.managers.SystemManager.idleFrames = 0; } static function onMouseUp(Void) { mx.managers.SystemManager.isMouseDown = false; mx.managers.SystemManager.idleFrames = 0; } static function activate(f) { if (mx.managers.SystemManager.form != undefined) { if ((mx.managers.SystemManager.form != f) && (mx.managers.SystemManager.forms.length > 1)) { var _local1 = mx.managers.SystemManager.form; _local1.focusManager.deactivate(); } } mx.managers.SystemManager.form = f; f.focusManager.activate(); } static function deactivate(f) { if (mx.managers.SystemManager.form != undefined) { if ((mx.managers.SystemManager.form == f) && (mx.managers.SystemManager.forms.length > 1)) { var _local5 = mx.managers.SystemManager.form; _local5.focusManager.deactivate(); var _local3 = mx.managers.SystemManager.forms.length; var _local1; var _local2; _local1 = 0; while (_local1 < _local3) { if (mx.managers.SystemManager.forms[_local1] == f) { _local1 = _local1 + 1; while (_local1 < _local3) { if (mx.managers.SystemManager.forms[_local1]._visible == true) { _local2 = mx.managers.SystemManager.forms[_local1]; } _local1++; } mx.managers.SystemManager.form = _local2; break; } if (mx.managers.SystemManager.forms[_local1]._visible == true) { _local2 = mx.managers.SystemManager.forms[_local1]; } _local1++; } _local5 = mx.managers.SystemManager.form; _local5.focusManager.activate(); } } } static function addFocusManager(f) { mx.managers.SystemManager.forms.push(f); mx.managers.SystemManager.activate(f); } static function removeFocusManager(f) { var _local3 = mx.managers.SystemManager.forms.length; var _local1; _local1 = 0; while (_local1 < _local3) { if (mx.managers.SystemManager.forms[_local1] == f) { if (mx.managers.SystemManager.form == f) { mx.managers.SystemManager.deactivate(f); } mx.managers.SystemManager.forms.splice(_local1, 1); return(undefined); } _local1++; } } static function enableOverlappedWindows() { if (!initialized) { initialized = true; mx.managers.SystemManager.checkIdle = checkIdle; mx.managers.SystemManager.__addEventListener = __addEventListener; mx.managers.SystemManager.__removeEventListener = __removeEventListener; mx.managers.SystemManager.onMouseDown = onMouseDown; mx.managers.SystemManager.onMouseMove = onMouseMove; mx.managers.SystemManager.onMouseUp = onMouseUp; mx.managers.SystemManager.activate = activate; mx.managers.SystemManager.deactivate = deactivate; mx.managers.SystemManager.addFocusManager = addFocusManager; mx.managers.SystemManager.removeFocusManager = removeFocusManager; } } static var initialized = false; static var SystemManagerDependency = mx.managers.SystemManager; }
Symbol 197 MovieClip [__Packages.mx.styles.CSSSetStyle] Frame 0
class mx.styles.CSSSetStyle { var styleName, stylecache, _color, setColor, invalidateStyle; function CSSSetStyle () { } function _setStyle(styleProp, newValue) { this[styleProp] = newValue; if (mx.styles.StyleManager.TextStyleMap[styleProp] != undefined) { if (styleProp == "color") { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } } _level0.changeTextStyleInChildren(styleProp); return(undefined); } if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } if (styleProp == "themeColor") { var _local7 = mx.styles.StyleManager.colorNames.haloBlue; var _local6 = mx.styles.StyleManager.colorNames.haloGreen; var _local8 = mx.styles.StyleManager.colorNames.haloOrange; var _local4 = {}; _local4[_local7] = 12188666 /* 0xB9FBFA */; _local4[_local6] = 13500353 /* 0xCDFFC1 */; _local4[_local8] = 16766319 /* 0xFFD56F */; var _local5 = {}; _local5[_local7] = 13958653 /* 0xD4FDFD */; _local5[_local6] = 14942166 /* 0xE3FFD6 */; _local5[_local8] = 16772787 /* 0xFFEEB3 */; var _local9 = _local4[newValue]; var _local10 = _local5[newValue]; if (_local9 == undefined) { _local9 = newValue; } if (_local10 == undefined) { _local10 = newValue; } setStyle("selectionColor", _local9); setStyle("rollOverColor", _local10); } _level0.changeColorStyleInChildren(styleName, styleProp, newValue); } else { if ((styleProp == "backgroundColor") && (isNaN(newValue))) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } _level0.notifyStyleChangeInChildren(styleName, styleProp, newValue); } } function changeTextStyleInChildren(styleProp) { var _local4 = getTimer(); var _local5; for (_local5 in this) { var _local2 = this[_local5]; if (_local2._parent == this) { if (_local2.searchKey != _local4) { if (_local2.stylecache != undefined) { delete _local2.stylecache.tf; delete _local2.stylecache[styleProp]; } _local2.invalidateStyle(styleProp); _local2.changeTextStyleInChildren(styleProp); _local2.searchKey = _local4; } } } } function changeColorStyleInChildren(sheetName, colorStyle, newValue) { var _local6 = getTimer(); var _local7; for (_local7 in this) { var _local2 = this[_local7]; if (_local2._parent == this) { if (_local2.searchKey != _local6) { if (((_local2.getStyleName() == sheetName) || (sheetName == undefined)) || (sheetName == "_global")) { if (_local2.stylecache != undefined) { delete _local2.stylecache[colorStyle]; } if (typeof(_local2._color) == "string") { if (_local2._color == colorStyle) { var _local4 = _local2.getStyle(colorStyle); if (colorStyle == "color") { if (stylecache.tf.color != undefined) { stylecache.tf.color = _local4; } } _local2.setColor(_local4); } } else if (_local2._color[colorStyle] != undefined) { if (typeof(_local2) != "movieclip") { _local2._parent.invalidateStyle(); } else { _local2.invalidateStyle(colorStyle); } } } _local2.changeColorStyleInChildren(sheetName, colorStyle, newValue); _local2.searchKey = _local6; } } } } function notifyStyleChangeInChildren(sheetName, styleProp, newValue) { var _local5 = getTimer(); var _local6; for (_local6 in this) { var _local2 = this[_local6]; if (_local2._parent == this) { if (_local2.searchKey != _local5) { if (((_local2.styleName == sheetName) || ((_local2.styleName != undefined) && (typeof(_local2.styleName) == "movieclip"))) || (sheetName == undefined)) { if (_local2.stylecache != undefined) { delete _local2.stylecache[styleProp]; delete _local2.stylecache.tf; } delete _local2.enabledColor; _local2.invalidateStyle(styleProp); } _local2.notifyStyleChangeInChildren(sheetName, styleProp, newValue); _local2.searchKey = _local5; } } } } function setStyle(styleProp, newValue) { if (stylecache != undefined) { delete stylecache[styleProp]; delete stylecache.tf; } this[styleProp] = newValue; if (mx.styles.StyleManager.isColorStyle(styleProp)) { if (isNaN(newValue)) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } if (styleProp == "themeColor") { var _local10 = mx.styles.StyleManager.colorNames.haloBlue; var _local9 = mx.styles.StyleManager.colorNames.haloGreen; var _local11 = mx.styles.StyleManager.colorNames.haloOrange; var _local6 = {}; _local6[_local10] = 12188666 /* 0xB9FBFA */; _local6[_local9] = 13500353 /* 0xCDFFC1 */; _local6[_local11] = 16766319 /* 0xFFD56F */; var _local7 = {}; _local7[_local10] = 13958653 /* 0xD4FDFD */; _local7[_local9] = 14942166 /* 0xE3FFD6 */; _local7[_local11] = 16772787 /* 0xFFEEB3 */; var _local12 = _local6[newValue]; var _local13 = _local7[newValue]; if (_local12 == undefined) { _local12 = newValue; } if (_local13 == undefined) { _local13 = newValue; } setStyle("selectionColor", _local12); setStyle("rollOverColor", _local13); } if (typeof(_color) == "string") { if (_color == styleProp) { if (styleProp == "color") { if (stylecache.tf.color != undefined) { stylecache.tf.color = newValue; } } setColor(newValue); } } else if (_color[styleProp] != undefined) { invalidateStyle(styleProp); } changeColorStyleInChildren(undefined, styleProp, newValue); } else { if ((styleProp == "backgroundColor") && (isNaN(newValue))) { newValue = mx.styles.StyleManager.getColorName(newValue); this[styleProp] = newValue; if (newValue == undefined) { return(undefined); } } invalidateStyle(styleProp); } if (mx.styles.StyleManager.isInheritingStyle(styleProp) || (styleProp == "styleName")) { var _local8; var _local5 = newValue; if (styleProp == "styleName") { _local8 = ((typeof(newValue) == "string") ? (_global.styles[newValue]) : (_local5)); _local5 = _local8.themeColor; if (_local5 != undefined) { _local8.rollOverColor = (_local8.selectionColor = _local5); } } notifyStyleChangeInChildren(undefined, styleProp, newValue); } } static function enableRunTimeCSS() { } static function classConstruct() { var _local2 = MovieClip.prototype; var _local3 = mx.styles.CSSSetStyle.prototype; mx.styles.CSSStyleDeclaration.prototype.setStyle = _local3._setStyle; _local2.changeTextStyleInChildren = _local3.changeTextStyleInChildren; _local2.changeColorStyleInChildren = _local3.changeColorStyleInChildren; _local2.notifyStyleChangeInChildren = _local3.notifyStyleChangeInChildren; _local2.setStyle = _local3.setStyle; _global.ASSetPropFlags(_local2, "changeTextStyleInChildren", 1); _global.ASSetPropFlags(_local2, "changeColorStyleInChildren", 1); _global.ASSetPropFlags(_local2, "notifyStyleChangeInChildren", 1); _global.ASSetPropFlags(_local2, "setStyle", 1); var _local4 = TextField.prototype; _local4.setStyle = _local2.setStyle; _local4.changeTextStyleInChildren = _local3.changeTextStyleInChildren; return(true); } static var classConstructed = classConstruct(); static var CSSStyleDeclarationDependency = mx.styles.CSSStyleDeclaration; }
Symbol 198 MovieClip [__Packages.mx.core.ext.UIComponentExtensions] Frame 0
class mx.core.ext.UIComponentExtensions { function UIComponentExtensions () { } static function Extensions() { if (bExtended == true) { return(true); } bExtended = true; TextField.prototype.setFocus = function () { Selection.setFocus(this); }; TextField.prototype.onSetFocus = function (oldFocus) { if (this.tabEnabled != false) { if (this.getFocusManager().bDrawFocus) { this.drawFocus(true); } } }; TextField.prototype.onKillFocus = function (oldFocus) { if (this.tabEnabled != false) { this.drawFocus(false); } }; TextField.prototype.drawFocus = mx.core.UIComponent.prototype.drawFocus; TextField.prototype.getFocusManager = mx.core.UIComponent.prototype.getFocusManager; mx.managers.OverlappedWindows.enableOverlappedWindows(); mx.styles.CSSSetStyle.enableRunTimeCSS(); mx.managers.FocusManager.enableFocusManagement(); } static var bExtended = false; static var UIComponentExtended = Extensions(); static var UIComponentDependency = mx.core.UIComponent; static var FocusManagerDependency = mx.managers.FocusManager; static var OverlappedWindowsDependency = mx.managers.OverlappedWindows; }
Symbol 200 MovieClip [__Packages.mx.skins.RectBorder] Frame 0
class mx.skins.RectBorder extends mx.skins.Border { var __width, __height, offset, __borderMetrics; function RectBorder () { super(); } function get width() { return(__width); } function get height() { return(__height); } function init(Void) { super.init(); } function draw(Void) { size(); } function getBorderMetrics(Void) { var _local2 = offset; if (__borderMetrics == undefined) { __borderMetrics = {left:_local2, top:_local2, right:_local2, bottom:_local2}; } else { __borderMetrics.left = _local2; __borderMetrics.top = _local2; __borderMetrics.right = _local2; __borderMetrics.bottom = _local2; } return(__borderMetrics); } function get borderMetrics() { return(getBorderMetrics()); } function drawBorder(Void) { } function size(Void) { drawBorder(); } function setColor(Void) { drawBorder(); } static var symbolName = "RectBorder"; static var symbolOwner = mx.skins.RectBorder; static var version = "2.0.2.127"; var className = "RectBorder"; var borderStyleName = "borderStyle"; var borderColorName = "borderColor"; var shadowColorName = "shadowColor"; var highlightColorName = "highlightColor"; var buttonColorName = "buttonColor"; var backgroundColorName = "backgroundColor"; }
Symbol 201 MovieClip [__Packages.mx.skins.halo.RectBorder] Frame 0
class mx.skins.halo.RectBorder extends mx.skins.RectBorder { var offset, getStyle, borderStyleName, __borderMetrics, className, borderColorName, backgroundColorName, shadowColorName, highlightColorName, buttonColorName, __get__width, __get__height, clear, _color, drawRoundRect, beginFill, drawRect, endFill; function RectBorder () { super(); } function init(Void) { borderWidths.default = 3; super.init(); } function getBorderMetrics(Void) { if (offset == undefined) { var _local3 = getStyle(borderStyleName); offset = borderWidths[_local3]; } if ((getStyle(borderStyleName) == "default") || (getStyle(borderStyleName) == "alert")) { __borderMetrics = {left:3, top:1, right:3, bottom:3}; return(__borderMetrics); } return(super.getBorderMetrics()); } function drawBorder(Void) { var _local6 = _global.styles[className]; if (_local6 == undefined) { _local6 = _global.styles.RectBorder; } var _local5 = getStyle(borderStyleName); var _local7 = getStyle(borderColorName); if (_local7 == undefined) { _local7 = _local6[borderColorName]; } var _local8 = getStyle(backgroundColorName); if (_local8 == undefined) { _local8 = _local6[backgroundColorName]; } var _local16 = getStyle("backgroundImage"); if (_local5 != "none") { var _local14 = getStyle(shadowColorName); if (_local14 == undefined) { _local14 = _local6[shadowColorName]; } var _local13 = getStyle(highlightColorName); if (_local13 == undefined) { _local13 = _local6[highlightColorName]; } var _local12 = getStyle(buttonColorName); if (_local12 == undefined) { _local12 = _local6[buttonColorName]; } var _local11 = getStyle(borderCapColorName); if (_local11 == undefined) { _local11 = _local6[borderCapColorName]; } var _local10 = getStyle(shadowCapColorName); if (_local10 == undefined) { _local10 = _local6[shadowCapColorName]; } } offset = borderWidths[_local5]; var _local9 = offset; var _local3 = __get__width(); var _local4 = __get__height(); clear(); _color = undefined; if (_local5 == "none") { } else if (_local5 == "inset") { _color = colorList; draw3dBorder(_local11, _local12, _local7, _local13, _local14, _local10); } else if (_local5 == "outset") { _color = colorList; draw3dBorder(_local11, _local7, _local12, _local14, _local13, _local10); } else if (_local5 == "alert") { var _local15 = getStyle("themeColor"); drawRoundRect(0, 5, _local3, _local4 - 5, 5, 6184542, 10); drawRoundRect(1, 4, _local3 - 2, _local4 - 5, 4, [6184542, 6184542], 10, 0, "radial"); drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(2, 0, _local3 - 4, _local4 - 2, 3, _local15, 50); drawRoundRect(3, 1, _local3 - 6, _local4 - 4, 2, 16777215, 100); } else if (_local5 == "default") { drawRoundRect(0, 5, _local3, _local4 - 5, {tl:5, tr:5, br:0, bl:0}, 6184542, 10); drawRoundRect(1, 4, _local3 - 2, _local4 - 5, {tl:4, tr:4, br:0, bl:0}, [6184542, 6184542], 10, 0, "radial"); drawRoundRect(2, 0, _local3 - 4, _local4 - 2, {tl:3, tr:3, br:0, bl:0}, [12897484, 11844796], 100, 0, "radial"); drawRoundRect(3, 1, _local3 - 6, _local4 - 4, {tl:2, tr:2, br:0, bl:0}, 16777215, 100); } else if (_local5 == "dropDown") { drawRoundRect(0, 0, _local3 + 1, _local4, {tl:4, tr:0, br:0, bl:4}, [13290186, 7895160], 100, -10, "linear"); drawRoundRect(1, 1, _local3 - 1, _local4 - 2, {tl:3, tr:0, br:0, bl:3}, 16777215, 100); } else if (_local5 == "menuBorder") { var _local15 = getStyle("themeColor"); drawRoundRect(4, 4, _local3 - 2, _local4 - 3, 0, [6184542, 6184542], 10, 0, "radial"); drawRoundRect(4, 4, _local3 - 1, _local4 - 2, 0, 6184542, 10); drawRoundRect(0, 0, _local3 + 1, _local4, 0, [0, 14342874], 100, 250, "linear"); drawRoundRect(0, 0, _local3 + 1, _local4, 0, _local15, 50); drawRoundRect(2, 2, _local3 - 3, _local4 - 4, 0, 16777215, 100); } else if (_local5 == "comboNonEdit") { } else { beginFill(_local7); drawRect(0, 0, _local3, _local4); drawRect(1, 1, _local3 - 1, _local4 - 1); endFill(); _color = borderColorName; } if (_local8 != undefined) { beginFill(_local8); drawRect(_local9, _local9, __get__width() - _local9, __get__height() - _local9); endFill(); } } function draw3dBorder(c1, c2, c3, c4, c5, c6) { var _local3 = __get__width(); var _local2 = __get__height(); beginFill(c1); drawRect(0, 0, _local3, _local2); drawRect(1, 0, _local3 - 1, _local2); endFill(); beginFill(c2); drawRect(1, 0, _local3 - 1, 1); endFill(); beginFill(c3); drawRect(1, _local2 - 1, _local3 - 1, _local2); endFill(); beginFill(c4); drawRect(1, 1, _local3 - 1, 2); endFill(); beginFill(c5); drawRect(1, _local2 - 2, _local3 - 1, _local2 - 1); endFill(); beginFill(c6); drawRect(1, 2, _local3 - 1, _local2 - 2); drawRect(2, 2, _local3 - 2, _local2 - 2); endFill(); } static function classConstruct() { mx.core.ext.UIObjectExtensions.Extensions(); _global.styles.rectBorderClass = mx.skins.halo.RectBorder; _global.skinRegistry.RectBorder = true; return(true); } static var symbolName = "RectBorder"; static var symbolOwner = mx.skins.halo.RectBorder; static var version = "2.0.2.127"; var borderCapColorName = "borderCapColor"; var shadowCapColorName = "shadowCapColor"; var colorList = {highlightColor:0, borderColor:0, buttonColor:0, shadowColor:0, borderCapColor:0, shadowCapColor:0}; var borderWidths = {none:0, solid:1, inset:2, outset:2, alert:3, dropDown:2, menuBorder:2, comboNonEdit:2}; static var classConstructed = classConstruct(); static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; }
Symbol 202 MovieClip [__Packages.mx.skins.halo.ButtonSkin] Frame 0
class mx.skins.halo.ButtonSkin extends mx.skins.RectBorder { var __get__width, __get__height, getStyle, _parent, clear, drawRoundRect, __get__x, __get__y; function ButtonSkin () { super(); } function init() { super.init(); } function size() { drawHaloRect(__get__width(), __get__height()); } function drawHaloRect(w, h) { var _local6 = getStyle("borderStyle"); var _local4 = getStyle("themeColor"); var _local5 = _parent.emphasized; clear(); switch (_local6) { case "falseup" : if (_local5) { drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 75); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 85, 0, "radial"); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 75); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100); } else { drawRoundRect(0, 0, w, h, 5, 9542041, 100); drawRoundRect(1, 1, w - 2, h - 2, 4, [13291985, 16250871], 100, 0, "radial"); drawRoundRect(2, 2, w - 4, h - 4, 3, [9542041, 13818586], 100, 0, "radial"); drawRoundRect(3, 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(3, 4, w - 6, h - 7, 2, 16316664, 100); } break; case "falsedown" : drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial"); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20); break; case "falserollover" : drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial"); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 50); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100); break; case "falsedisabled" : drawRoundRect(0, 0, w, h, 5, 13159628, 100); drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100); drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100); drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100); break; case "trueup" : drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial"); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16250871, 100); break; case "truedown" : drawRoundRect(__get__x(), __get__y(), w, h, 5, 10066329, 100); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16579836], 100, 0, "radial"); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 50); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 40); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, _local4, 20); break; case "truerollover" : drawRoundRect(__get__x(), __get__y(), w, h, 5, 9542041, 100); drawRoundRect(__get__x(), __get__y(), w, h, 5, _local4, 50); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, [3355443, 16777215], 100, 0, "radial"); drawRoundRect(__get__x() + 1, __get__y() + 1, w - 2, h - 2, 4, _local4, 40); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, [0, 14342874], 100, 0, "radial"); drawRoundRect(__get__x() + 2, __get__y() + 2, w - 4, h - 4, 3, _local4, 40); drawRoundRect(__get__x() + 3, __get__y() + 3, w - 6, h - 6, 2, 16777215, 100); drawRoundRect(__get__x() + 3, __get__y() + 4, w - 6, h - 7, 2, 16316664, 100); break; case "truedisabled" : drawRoundRect(0, 0, w, h, 5, 13159628, 100); drawRoundRect(1, 1, w - 2, h - 2, 4, 15921906, 100); drawRoundRect(2, 2, w - 4, h - 4, 3, 13949401, 100); drawRoundRect(3, 3, w - 6, h - 6, 2, 15921906, 100); } } static function classConstruct() { mx.core.ext.UIObjectExtensions.Extensions(); _global.skinRegistry.ButtonSkin = true; return(true); } static var symbolName = "ButtonSkin"; static var symbolOwner = mx.skins.halo.ButtonSkin; var className = "ButtonSkin"; var backgroundColorName = "buttonColor"; static var classConstructed = classConstruct(); static var UIObjectExtensionsDependency = mx.core.ext.UIObjectExtensions; }
Symbol 273 Button
on (release) { _root.gotoAndPlay("countdown"); }
Symbol 277 Button
on (release) { gotoAndPlay (2); }
Symbol 282 Button
on (release) { getURL ("http://www.thelastgoodnight.net", "_blank"); }
Symbol 285 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 2
stop();
Symbol 288 MovieClip [obj_cone] Frame 1
stop();
Symbol 288 MovieClip [obj_cone] Frame 21
gotoAndPlay ("hit_0");
Symbol 292 MovieClip [obj_sp_cone] Frame 1
stop();
Symbol 292 MovieClip [obj_sp_cone] Frame 21
gotoAndPlay ("hit_0");
Symbol 381 MovieClip Frame 56
_root.gotoAndPlay("play");
Symbol 381 MovieClip Frame 57
stop();
Symbol 383 MovieClip Frame 1
stop();
Symbol 383 MovieClip Frame 2
stop();
Symbol 383 MovieClip Frame 3
stop();
Symbol 383 MovieClip Frame 4
stop();
Symbol 383 MovieClip Frame 5
stop();
Symbol 383 MovieClip Frame 6
stop();
Symbol 383 MovieClip Frame 7
_root.gotoAndPlay("win"); _root.timer;
Symbol 387 Button
on (release) { gotoAndPlay ("countdown"); }
Symbol 406 MovieClip Frame 166
stop();
Symbol 408 Button
on (release) { _root.gotoAndPlay("count"); }
Symbol 409 MovieClip Frame 1
stop();
Symbol 409 MovieClip Frame 2
stop();
Symbol 411 MovieClip Frame 56
_root.gotoAndPlay("playgame");
Symbol 411 MovieClip Frame 57
stop();
Symbol 413 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 2
stop();
Symbol 413 MovieClip Frame 3
stop();
Symbol 413 MovieClip Frame 4
stop();
Symbol 413 MovieClip Frame 5
stop();
Symbol 413 MovieClip Frame 6
stop();
Symbol 413 MovieClip Frame 7
_root.gotoAndPlay("win2");
Symbol 414 Button
on (release) { gotoAndPlay ("loading"); }
Symbol 434 MovieClip Frame 134
stop();
Symbol 436 Button
on (release) { _root.gotoAndPlay("count3"); }
Symbol 437 MovieClip Frame 1
stop();
Symbol 437 MovieClip Frame 2
stop();
Symbol 439 MovieClip Frame 56
_root.gotoAndPlay("playgame3");
Symbol 439 MovieClip Frame 57
stop();
Symbol 440 Button
on (release) { gotoAndPlay ("loading"); }
Symbol 451 Button
on (release) { gotoAndPlay ("video"); unloadMovieNum (5); }
Symbol 455 Button
on (release) { gotoAndPlay ("making"); unloadMovieNum (5); }
Symbol 465 Button
on (release) { loadMovieNum ("http://thelastgoodnight-facebook.capitolmusic.com/friend.swf", 20); }
Symbol 477 Button
on (release) { gotoAndPlay ("score"); }

Library Items

Symbol 1 Sound [snake]
Symbol 2 Sound [hit_1]
Symbol 3 Sound [hit_2]
Symbol 4 Sound [bass]
Symbol 5 Sound [power]Used by:89 93 97 101 105
Symbol 6 Sound [beep]Used by:288
Symbol 7 BitmapUsed by:8
Symbol 8 GraphicUses:7Used by:11
Symbol 9 FontUsed by:10 25 29 33 37 41 45 88 92 96 100 104 108 238 240 243 244 245 246 251 256 257 262 291 377 379 382 388 389 390 391 396 400 401 404 405 412 416 417 418 419 420 421 422 423 424 425 426 427 428 430 431 432 433 435 441 442 443 444 445 446 447 448 449 452 453 457 458 459 460 461 462 463 467 468 469 474 475
Symbol 10 TextUses:9Used by:11 17 20 288
Symbol 11 MovieClip [signs]Uses:8 10Used by:Timeline
Symbol 12 BitmapUsed by:13
Symbol 13 GraphicUses:12Used by:14 299
Symbol 14 MovieClip [clubroad]Uses:13Used by:Timeline
Symbol 15 BitmapUsed by:16
Symbol 16 GraphicUses:15Used by:17
Symbol 17 MovieClip [pizza]Uses:16 10Used by:Timeline
Symbol 18 BitmapUsed by:19
Symbol 19 GraphicUses:18Used by:20
Symbol 20 MovieClip [club]Uses:19 10Used by:Timeline
Symbol 21 GraphicUsed by:22
Symbol 22 MovieClip [noDrive]Uses:21Used by:Timeline
Symbol 23 BitmapUsed by:24
Symbol 24 GraphicUses:23Used by:26
Symbol 25 TextUses:9Used by:26
Symbol 26 MovieClip [keyboard]Uses:24 25Used by:Timeline
Symbol 27 BitmapUsed by:28
Symbol 28 GraphicUses:27Used by:30
Symbol 29 TextUses:9Used by:30
Symbol 30 MovieClip [yellowguitar]Uses:28 29Used by:Timeline
Symbol 31 BitmapUsed by:32
Symbol 32 GraphicUses:31Used by:34
Symbol 33 TextUses:9Used by:34
Symbol 34 MovieClip [drum]Uses:32 33Used by:Timeline
Symbol 35 BitmapUsed by:36
Symbol 36 GraphicUses:35Used by:38
Symbol 37 TextUses:9Used by:38
Symbol 38 MovieClip [redguitar]Uses:36 37Used by:Timeline
Symbol 39 BitmapUsed by:40
Symbol 40 GraphicUses:39Used by:42
Symbol 41 TextUses:9Used by:42
Symbol 42 MovieClip [blueguitar]Uses:40 41Used by:Timeline
Symbol 43 BitmapUsed by:44
Symbol 44 GraphicUses:43Used by:46
Symbol 45 TextUses:9Used by:46
Symbol 46 MovieClip [microphone]Uses:44 45Used by:Timeline
Symbol 47 BitmapUsed by:48
Symbol 48 GraphicUses:47Used by:51
Symbol 49 BitmapUsed by:50
Symbol 50 GraphicUses:49Used by:51
Symbol 51 MovieClip [iconbass]Uses:48 50Used by:Timeline
Symbol 52 BitmapUsed by:53
Symbol 53 GraphicUses:52Used by:56
Symbol 54 BitmapUsed by:55
Symbol 55 GraphicUses:54Used by:56
Symbol 56 MovieClip [icondrum]Uses:53 55Used by:Timeline
Symbol 57 BitmapUsed by:58
Symbol 58 GraphicUses:57Used by:61
Symbol 59 BitmapUsed by:60
Symbol 60 GraphicUses:59Used by:61
Symbol 61 MovieClip [iconblueguitar]Uses:58 60Used by:Timeline
Symbol 62 BitmapUsed by:63
Symbol 63 GraphicUses:62Used by:66
Symbol 64 BitmapUsed by:65
Symbol 65 GraphicUses:64Used by:66
Symbol 66 MovieClip [iconyellowguitar]Uses:63 65Used by:Timeline
Symbol 67 BitmapUsed by:68
Symbol 68 GraphicUses:67Used by:71
Symbol 69 BitmapUsed by:70
Symbol 70 GraphicUses:69Used by:71
Symbol 71 MovieClip [iconkeyboard]Uses:68 70Used by:Timeline
Symbol 72 BitmapUsed by:73
Symbol 73 GraphicUses:72Used by:76
Symbol 74 BitmapUsed by:75
Symbol 75 GraphicUses:74Used by:76
Symbol 76 MovieClip [iconmic]Uses:73 75Used by:Timeline
Symbol 77 BitmapUsed by:78
Symbol 78 GraphicUses:77Used by:79
Symbol 79 MovieClip [grasstop]Uses:78Used by:Timeline
Symbol 80 BitmapUsed by:81
Symbol 81 GraphicUses:80Used by:82
Symbol 82 MovieClip [halfgrass]Uses:81Used by:Timeline
Symbol 83 BitmapUsed by:84
Symbol 84 GraphicUses:83Used by:85
Symbol 85 MovieClip [grass]Uses:84Used by:Timeline
Symbol 86 BitmapUsed by:87 397 429
Symbol 87 GraphicUses:86Used by:89
Symbol 88 TextUses:9Used by:89
Symbol 89 MovieClip [leif]Uses:87 88 5Used by:Timeline
Symbol 90 BitmapUsed by:91 397 429
Symbol 91 GraphicUses:90Used by:93
Symbol 92 TextUses:9Used by:93
Symbol 93 MovieClip [kurt]Uses:91 5 92Used by:Timeline
Symbol 94 BitmapUsed by:95 397 429
Symbol 95 GraphicUses:94Used by:97
Symbol 96 TextUses:9Used by:97
Symbol 97 MovieClip [skeeter]Uses:95 96 5Used by:Timeline
Symbol 98 BitmapUsed by:99 397 429
Symbol 99 GraphicUses:98Used by:101
Symbol 100 TextUses:9Used by:101
Symbol 101 MovieClip [mike]Uses:99 100 5Used by:Timeline
Symbol 102 BitmapUsed by:103 397 429
Symbol 103 GraphicUses:102Used by:105
Symbol 104 TextUses:9Used by:105
Symbol 105 MovieClip [ely]Uses:103 104 5Used by:Timeline
Symbol 106 BitmapUsed by:107 397 429
Symbol 107 GraphicUses:106Used by:109
Symbol 108 TextUses:9Used by:109
Symbol 109 MovieClip [anton]Uses:107 108Used by:Timeline
Symbol 110 BitmapUsed by:111
Symbol 111 GraphicUses:110Used by:114
Symbol 112 BitmapUsed by:113
Symbol 113 GraphicUses:112Used by:114
Symbol 114 MovieClip [chanton]Uses:111 113Used by:Timeline
Symbol 116 GraphicUsed by:117
Symbol 117 MovieClipUses:116Used by:123
Symbol 118 VideoUsed by:119
Symbol 119 MovieClip [VideoPlayer]Uses:118Used by:123
Symbol 120 BitmapUsed by:121
Symbol 121 GraphicUses:120Used by:122
Symbol 122 MovieClip [Icon]Uses:121Used by:123
Symbol 123 MovieClip [FLVPlayback]Uses:117 119 122Used by:Timeline
Symbol 139 GraphicUsed by:140
Symbol 140 MovieClip [BoundingBox]Uses:139Used by:174 178 182 183
Symbol 141 GraphicUsed by:142 146 147 149 151 152 153 154
Symbol 142 MovieClip [CheckFalseDisabled]Uses:141Used by:155
Symbol 143 GraphicUsed by:144
Symbol 144 MovieClip [CheckThemeColor1]Uses:143Used by:146 147 152 153 154
Symbol 145 GraphicUsed by:146 152
Symbol 146 MovieClip [CheckFalseDown]Uses:141 144 145Used by:155
Symbol 147 MovieClip [CheckFalseOver]Uses:141 144Used by:155
Symbol 148 GraphicUsed by:149
Symbol 149 MovieClip [CheckFalseUp]Uses:141 148Used by:155
Symbol 150 GraphicUsed by:151 152 153 154
Symbol 151 MovieClip [CheckTrueDisabled]Uses:141 150Used by:155
Symbol 152 MovieClip [CheckTrueDown]Uses:141 145 150 144Used by:155
Symbol 153 MovieClip [CheckTrueOver]Uses:141 144 150Used by:155
Symbol 154 MovieClip [CheckTrueUp]Uses:141 144 150Used by:155
Symbol 155 MovieClip [CheckBoxAssets]Uses:142 146 147 149 151 152 153 154Used by:183
Symbol 156 GraphicUsed by:157
Symbol 157 MovieClip [BrdrShdw]Uses:156Used by:160 165 166
Symbol 158 GraphicUsed by:159
Symbol 159 MovieClip [BrdrFace]Uses:158Used by:160 165 166
Symbol 160 MovieClip [SimpleButtonDown]Uses:157 159Used by:178
Symbol 161 GraphicUsed by:162
Symbol 162 MovieClip [BrdrBlk]Uses:161Used by:165 166
Symbol 163 GraphicUsed by:164
Symbol 164 MovieClip [BrdrHilght]Uses:163Used by:165 166
Symbol 165 MovieClip [SimpleButtonIn]Uses:162 164 157 159Used by:178
Symbol 166 MovieClip [SimpleButtonUp]Uses:162 159 157 164Used by:178
Symbol 167 MovieClip [Defaults]Used by:169
Symbol 168 MovieClip [UIObjectExtensions]Used by:169
Symbol 169 MovieClip [UIObject]Uses:167 168Used by:175 177 179
Symbol 170 GraphicUsed by:172
Symbol 171 GraphicUsed by:172
Symbol 172 ButtonUses:170 171Used by:175
Symbol 173 MovieClipUsed by:175
Symbol 174 MovieClip [FocusRect]Uses:140Used by:175
Symbol 175 MovieClip [FocusManager]Uses:172 173 174 169Used by:177
Symbol 176 MovieClip [UIComponentExtensions]Used by:177
Symbol 177 MovieClip [UIComponent]Uses:169 175 176Used by:178
Symbol 178 MovieClip [SimpleButton]Uses:140 160 165 166 177Used by:182
Symbol 179 MovieClip [Border]Uses:169Used by:180 182
Symbol 180 MovieClip [RectBorder]Uses:179Used by:182
Symbol 181 MovieClip [ButtonSkin]Used by:182
Symbol 182 MovieClip [Button]Uses:140 178 179 180 181Used by:183
Symbol 183 MovieClip [CheckBox]Uses:140 155 182Used by:Timeline
Symbol 203 GraphicUsed by:Timeline
Symbol 204 BitmapUsed by:205
Symbol 205 GraphicUses:204Used by:Timeline
Symbol 206 BitmapUsed by:207
Symbol 207 GraphicUses:206Used by:Timeline
Symbol 208 GraphicUsed by:Timeline
Symbol 209 GraphicUsed by:210  Timeline
Symbol 210 MovieClipUses:209Used by:Timeline
Symbol 211 GraphicUsed by:Timeline
Symbol 212 BitmapUsed by:213
Symbol 213 GraphicUses:212Used by:216
Symbol 214 BitmapUsed by:215
Symbol 215 GraphicUses:214Used by:216
Symbol 216 MovieClipUses:213 215Used by:Timeline
Symbol 217 BitmapUsed by:218
Symbol 218 GraphicUses:217Used by:221
Symbol 219 BitmapUsed by:220
Symbol 220 GraphicUses:219Used by:221
Symbol 221 MovieClipUses:218 220Used by:Timeline
Symbol 222 BitmapUsed by:223
Symbol 223 GraphicUses:222Used by:226
Symbol 224 BitmapUsed by:225
Symbol 225 GraphicUses:224Used by:226
Symbol 226 MovieClipUses:223 225Used by:Timeline
Symbol 227 BitmapUsed by:228
Symbol 228 GraphicUses:227Used by:231
Symbol 229 BitmapUsed by:230
Symbol 230 GraphicUses:229Used by:231
Symbol 231 MovieClipUses:228 230Used by:Timeline
Symbol 232 BitmapUsed by:233
Symbol 233 GraphicUses:232Used by:236
Symbol 234 BitmapUsed by:235
Symbol 235 GraphicUses:234Used by:236
Symbol 236 MovieClipUses:233 235Used by:Timeline
Symbol 237 GraphicUsed by:242
Symbol 238 TextUses:9Used by:242
Symbol 239 GraphicUsed by:242
Symbol 240 TextUses:9Used by:242
Symbol 241 GraphicUsed by:242
Symbol 242 ButtonUses:237 238 239 240 241Used by:Timeline
Symbol 243 EditableTextUses:9Used by:Timeline
Symbol 244 EditableTextUses:9Used by:Timeline
Symbol 245 TextUses:9Used by:Timeline
Symbol 246 TextUses:9Used by:Timeline
Symbol 247 GraphicUsed by:248
Symbol 248 MovieClipUses:247Used by:Timeline
Symbol 249 BitmapUsed by:250 261 263
Symbol 250 GraphicUses:249Used by:260
Symbol 251 TextUses:9Used by:253
Symbol 252 GraphicUsed by:253
Symbol 253 ButtonUses:251 252Used by:260
Symbol 254 FontUsed by:255
Symbol 255 EditableTextUses:254Used by:260
Symbol 256 TextUses:9Used by:260
Symbol 257 TextUses:9Used by:259
Symbol 258 GraphicUsed by:259
Symbol 259 ButtonUses:257 258Used by:260
Symbol 260 MovieClipUses:250 253 255 256 259Used by:Timeline
Symbol 261 GraphicUses:249Used by:264 393
Symbol 262 TextUses:9Used by:264 393
Symbol 263 GraphicUses:249Used by:264 393
Symbol 264 ButtonUses:261 262 263Used by:Timeline
Symbol 478 MovieClip [__Packages.mx.services.WebService]
Symbol 479 MovieClip [__Packages.mx.services.WebServiceProxy]
Symbol 480 MovieClip [__Packages.mx.services.Log]
Symbol 481 MovieClip [__Packages.mx.services.WSDL]
Symbol 482 MovieClip [__Packages.mx.services.WSDLConstants]
Symbol 483 MovieClip [__Packages.mx.services.QName]
Symbol 484 MovieClip [__Packages.mx.services.SchemaContext]
Symbol 485 MovieClip [__Packages.mx.services.DataType]
Symbol 486 MovieClip [__Packages.mx.services.SchemaVersion]
Symbol 487 MovieClip [__Packages.mx.services.SOAPFault]
Symbol 488 MovieClip [__Packages.mx.services.SOAPConstants]
Symbol 489 MovieClip [__Packages.mx.services.Schema]
Symbol 490 MovieClip [__Packages.mx.services.ElementDecl]
Symbol 491 MovieClip [__Packages.mx.services.WSDLDocument]
Symbol 492 MovieClip [__Packages.mx.services.WSDLOperation]
Symbol 493 MovieClip [__Packages.mx.services.SOAPParameter]
Symbol 494 MovieClip [__Packages.mx.services.PendingCall]
Symbol 495 MovieClip [__Packages.mx.services.SOAPCall]
Symbol 496 MovieClip [__Packages.mx.services.SOAPHeader]
Symbol 497 MovieClip [__Packages.mx.services.PrefixedQName]
Symbol 498 MovieClip [__Packages.mx.services.ArrayProxy]
Symbol 499 MovieClip [__Packages.mx.services.RowSetProxy]
Symbol 500 MovieClip [__Packages.mx.services.Namespace]
Symbol 134 MovieClip [__Packages.mx.core.UIObject]
Symbol 184 MovieClip [__Packages.mx.skins.SkinElement]
Symbol 185 MovieClip [__Packages.mx.styles.CSSTextStyles]
Symbol 187 MovieClip [__Packages.mx.styles.CSSStyleDeclaration]
Symbol 186 MovieClip [__Packages.mx.styles.StyleManager]
Symbol 135 MovieClip [__Packages.mx.core.UIComponent]
Symbol 501 MovieClip [__Packages.mx.controls.scrollClasses.ScrollBar]
Symbol 199 MovieClip [__Packages.mx.skins.Border]
Symbol 502 MovieClip [__Packages.mx.skins.CustomBorder]
Symbol 503 MovieClip [__Packages.mx.controls.scrollClasses.ScrollThumb]
Symbol 136 MovieClip [__Packages.mx.controls.SimpleButton]
Symbol 504 MovieClip [__Packages.mx.controls.UIScrollBar]
Symbol 115 MovieClip [__Packages.mx.video.FLVPlayback]
Symbol 124 MovieClip [__Packages.mx.video.VideoPlayer]
Symbol 125 MovieClip [__Packages.mx.video.INCManager]
Symbol 126 MovieClip [__Packages.mx.events.EventDispatcher]
Symbol 127 MovieClip [__Packages.mx.video.VideoError]
Symbol 128 MovieClip [__Packages.mx.video.UIManager]
Symbol 129 MovieClip [__Packages.mx.utils.Delegate]
Symbol 130 MovieClip [__Packages.mx.video.SMILManager]
Symbol 131 MovieClip [__Packages.mx.video.FPADManager]
Symbol 132 MovieClip [__Packages.mx.video.NCManager]
Symbol 133 MovieClip [__Packages.mx.video.CuePointManager]
Symbol 137 MovieClip [__Packages.mx.controls.Button]
Symbol 138 MovieClip [__Packages.mx.controls.CheckBox]
Symbol 188 MovieClip [__Packages.mx.events.UIEventDispatcher]
Symbol 189 MovieClip [__Packages.mx.skins.ColoredSkinElement]
Symbol 190 MovieClip [__Packages.mx.core.ext.UIObjectExtensions]
Symbol 191 MovieClip [__Packages.mx.skins.halo.Defaults]
Symbol 192 MovieClip [__Packages.mx.managers.DepthManager]
Symbol 193 MovieClip [__Packages.mx.managers.SystemManager]
Symbol 194 MovieClip [__Packages.mx.managers.FocusManager]
Symbol 195 MovieClip [__Packages.mx.skins.halo.FocusRect]
Symbol 196 MovieClip [__Packages.mx.managers.OverlappedWindows]
Symbol 197 MovieClip [__Packages.mx.styles.CSSSetStyle]
Symbol 198 MovieClip [__Packages.mx.core.ext.UIComponentExtensions]
Symbol 200 MovieClip [__Packages.mx.skins.RectBorder]
Symbol 201 MovieClip [__Packages.mx.skins.halo.RectBorder]
Symbol 202 MovieClip [__Packages.mx.skins.halo.ButtonSkin]
Symbol 265 BitmapUsed by:267
Symbol 266 BitmapUsed by:267
Symbol 267 GraphicUses:265 266Used by:285
Symbol 268 BitmapUsed by:269 272
Symbol 269 GraphicUses:268Used by:273 387 408 414 436 440
Symbol 270 BitmapUsed by:271
Symbol 271 GraphicUses:270Used by:273 387 408 414 436 440
Symbol 272 GraphicUses:268Used by:273 387 408 414 436 440
Symbol 273 ButtonUses:269 271 272Used by:285
Symbol 274 BitmapUsed by:275 276
Symbol 275 GraphicUses:274Used by:277
Symbol 276 GraphicUses:274Used by:277
Symbol 277 ButtonUses:275 276Used by:285
Symbol 278 BitmapUsed by:279 280 281
Symbol 279 GraphicUses:278Used by:282
Symbol 280 GraphicUses:278Used by:282
Symbol 281 GraphicUses:278Used by:282
Symbol 282 ButtonUses:279 280 281Used by:285
Symbol 283 BitmapUsed by:284
Symbol 284 GraphicUses:283Used by:285 409 437
Symbol 285 MovieClipUses:267 273 277 282 284Used by:Timeline
Symbol 286 BitmapUsed by:287
Symbol 287 GraphicUses:286Used by:288
Symbol 288 MovieClip [obj_cone]Uses:287 6 10Used by:Timeline
Symbol 289 BitmapUsed by:290
Symbol 290 GraphicUses:289Used by:292
Symbol 291 TextUses:9Used by:292
Symbol 292 MovieClip [obj_sp_cone]Uses:290 291Used by:Timeline
Symbol 293 BitmapUsed by:294
Symbol 294 GraphicUses:293Used by:295
Symbol 295 MovieClip [obj_hydrant]Uses:294Used by:Timeline
Symbol 296 BitmapUsed by:297
Symbol 297 GraphicUses:296Used by:298
Symbol 298 MovieClip [obj_lightpole]Uses:297Used by:Timeline
Symbol 299 MovieClip [tile_blktop]Uses:13Used by:Timeline
Symbol 300 BitmapUsed by:301
Symbol 301 GraphicUses:300Used by:302
Symbol 302 MovieClip [tile_pothole]Uses:301Used by:Timeline
Symbol 303 GraphicUsed by:304
Symbol 304 MovieClipUses:303Used by:373
Symbol 305 BitmapUsed by:306 371 372
Symbol 306 GraphicUses:305Used by:373
Symbol 307 BitmapUsed by:308
Symbol 308 GraphicUses:307Used by:373
Symbol 309 BitmapUsed by:310
Symbol 310 GraphicUses:309Used by:373
Symbol 311 BitmapUsed by:312
Symbol 312 GraphicUses:311Used by:373
Symbol 313 BitmapUsed by:314
Symbol 314 GraphicUses:313Used by:373
Symbol 315 BitmapUsed by:316
Symbol 316 GraphicUses:315Used by:373
Symbol 317 BitmapUsed by:318
Symbol 318 GraphicUses:317Used by:373
Symbol 319 BitmapUsed by:320
Symbol 320 GraphicUses:319Used by:373
Symbol 321 BitmapUsed by:322
Symbol 322 GraphicUses:321Used by:373
Symbol 323 BitmapUsed by:324
Symbol 324 GraphicUses:323Used by:373
Symbol 325 BitmapUsed by:326
Symbol 326 GraphicUses:325Used by:373
Symbol 327 BitmapUsed by:328
Symbol 328 GraphicUses:327Used by:373
Symbol 329 BitmapUsed by:330
Symbol 330 GraphicUses:329Used by:373
Symbol 331 BitmapUsed by:332 333
Symbol 332 GraphicUses:331Used by:373
Symbol 333 GraphicUses:331Used by:373
Symbol 334 BitmapUsed by:335
Symbol 335 GraphicUses:334Used by:373
Symbol 336 BitmapUsed by:337
Symbol 337 GraphicUses:336Used by:373
Symbol 338 BitmapUsed by:339
Symbol 339 GraphicUses:338Used by:373
Symbol 340 BitmapUsed by:341
Symbol 341 GraphicUses:340Used by:373
Symbol 342 BitmapUsed by:343
Symbol 343 GraphicUses:342Used by:373
Symbol 344 BitmapUsed by:345
Symbol 345 GraphicUses:344Used by:373
Symbol 346 BitmapUsed by:347
Symbol 347 GraphicUses:346Used by:373
Symbol 348 BitmapUsed by:349
Symbol 349 GraphicUses:348Used by:373
Symbol 350 BitmapUsed by:351
Symbol 351 GraphicUses:350Used by:373
Symbol 352 BitmapUsed by:353
Symbol 353 GraphicUses:352Used by:373
Symbol 354 BitmapUsed by:355
Symbol 355 GraphicUses:354Used by:373
Symbol 356 BitmapUsed by:357 358
Symbol 357 GraphicUses:356Used by:373
Symbol 358 GraphicUses:356Used by:373
Symbol 359 BitmapUsed by:360
Symbol 360 GraphicUses:359Used by:373
Symbol 361 BitmapUsed by:362
Symbol 362 GraphicUses:361Used by:373
Symbol 363 BitmapUsed by:364
Symbol 364 GraphicUses:363Used by:373
Symbol 365 BitmapUsed by:366
Symbol 366 GraphicUses:365Used by:367
Symbol 367 MovieClipUses:366Used by:373
Symbol 368 BitmapUsed by:369
Symbol 369 GraphicUses:368Used by:370
Symbol 370 MovieClipUses:369Used by:373
Symbol 371 GraphicUses:305Used by:373
Symbol 372 GraphicUses:305Used by:373
Symbol 373 MovieClip [player]Uses:304 306 308 310 312 314 316 318 320 322 324 326 328 330 332 333 335 337 339 341 343 345 347 349 351 353 355 357 358 360 362 364 367 370 371 372Used by:Timeline
Symbol 374 GraphicUsed by:Timeline
Symbol 375 GraphicUsed by:376
Symbol 376 MovieClipUses:375Used by:Timeline
Symbol 377 TextUses:9Used by:378
Symbol 378 MovieClipUses:377Used by:381 411 439
Symbol 379 TextUses:9Used by:380
Symbol 380 MovieClipUses:379Used by:381 411 439
Symbol 381 MovieClipUses:378 380Used by:Timeline
Symbol 382 TextUses:9Used by:383
Symbol 383 MovieClipUses:382Used by:Timeline
Symbol 384 BitmapUsed by:385
Symbol 385 GraphicUses:384Used by:386
Symbol 386 MovieClipUses:385Used by:Timeline
Symbol 387 ButtonUses:269 271 272Used by:Timeline
Symbol 388 EditableTextUses:9Used by:Timeline
Symbol 389 EditableTextUses:9Used by:Timeline
Symbol 390 EditableTextUses:9Used by:Timeline
Symbol 391 EditableTextUses:9Used by:Timeline
Symbol 392 GraphicUsed by:Timeline
Symbol 393 ButtonUses:261 262 263Used by:Timeline
Symbol 394 BitmapUsed by:395
Symbol 395 GraphicUses:394Used by:409 437
Symbol 396 TextUses:9Used by:406
Symbol 397 GraphicUses:86 94 98 102 90 106Used by:406
Symbol 398 BitmapUsed by:399
Symbol 399 GraphicUses:398Used by:406 434
Symbol 400 TextUses:9Used by:406
Symbol 401 TextUses:9Used by:406
Symbol 402 BitmapUsed by:403
Symbol 403 GraphicUses:402Used by:406 434
Symbol 404 TextUses:9Used by:406
Symbol 405 TextUses:9Used by:406
Symbol 406 MovieClipUses:396 397 399 400 401 403 404 405Used by:409
Symbol 407 GraphicUsed by:409
Symbol 408 ButtonUses:269 271 272Used by:409
Symbol 409 MovieClipUses:395 406 407 408 284Used by:Timeline
Symbol 410 GraphicUsed by:Timeline
Symbol 411 MovieClipUses:378 380Used by:Timeline
Symbol 412 EditableTextUses:9Used by:413
Symbol 413 MovieClipUses:412Used by:Timeline
Symbol 414 ButtonUses:269 271 272Used by:Timeline
Symbol 415 GraphicUsed by:Timeline
Symbol 416 EditableTextUses:9Used by:Timeline
Symbol 417 EditableTextUses:9Used by:Timeline
Symbol 418 EditableTextUses:9Used by:Timeline
Symbol 419 TextUses:9Used by:Timeline
Symbol 420 TextUses:9Used by:Timeline
Symbol 421 TextUses:9Used by:Timeline
Symbol 422 TextUses:9Used by:Timeline
Symbol 423 TextUses:9Used by:Timeline
Symbol 424 TextUses:9Used by:Timeline
Symbol 425 TextUses:9Used by:Timeline
Symbol 426 TextUses:9Used by:Timeline
Symbol 427 TextUses:9Used by:Timeline
Symbol 428 TextUses:9Used by:434
Symbol 429 GraphicUses:86 94 98 102 90 106Used by:434
Symbol 430 TextUses:9Used by:434
Symbol 431 TextUses:9Used by:434
Symbol 432 TextUses:9Used by:434
Symbol 433 TextUses:9Used by:434
Symbol 434 MovieClipUses:428 429 399 430 431 403 432 433Used by:437
Symbol 435 TextUses:9Used by:437
Symbol 436 ButtonUses:269 271 272Used by:437
Symbol 437 MovieClipUses:395 434 435 436 284Used by:Timeline
Symbol 438 GraphicUsed by:Timeline
Symbol 439 MovieClipUses:378 380Used by:Timeline
Symbol 440 ButtonUses:269 271 272Used by:Timeline
Symbol 441 EditableTextUses:9Used by:Timeline
Symbol 442 TextUses:9Used by:Timeline
Symbol 443 TextUses:9Used by:Timeline
Symbol 444 EditableTextUses:9Used by:Timeline
Symbol 445 TextUses:9Used by:Timeline
Symbol 446 TextUses:9Used by:Timeline
Symbol 447 TextUses:9Used by:Timeline
Symbol 448 TextUses:9Used by:451
Symbol 449 TextUses:9Used by:451
Symbol 450 GraphicUsed by:451
Symbol 451 ButtonUses:448 449 450Used by:Timeline
Symbol 452 TextUses:9Used by:455
Symbol 453 TextUses:9Used by:455
Symbol 454 GraphicUsed by:455
Symbol 455 ButtonUses:452 453 454Used by:Timeline
Symbol 456 GraphicUsed by:Timeline
Symbol 457 EditableTextUses:9Used by:Timeline
Symbol 458 EditableTextUses:9Used by:Timeline
Symbol 459 TextUses:9Used by:Timeline
Symbol 460 TextUses:9Used by:Timeline
Symbol 461 EditableTextUses:9Used by:Timeline
Symbol 462 TextUses:9Used by:Timeline
Symbol 463 TextUses:9Used by:465
Symbol 464 GraphicUsed by:465
Symbol 465 ButtonUses:463 464Used by:Timeline
Symbol 466 GraphicUsed by:Timeline
Symbol 467 EditableTextUses:9Used by:Timeline
Symbol 468 TextUses:9Used by:Timeline
Symbol 469 TextUses:9Used by:471
Symbol 470 GraphicUsed by:471
Symbol 471 ButtonUses:469 470Used by:Timeline
Symbol 472 FontUsed by:473
Symbol 473 TextUses:472Used by:Timeline
Symbol 474 TextUses:9Used by:477
Symbol 475 TextUses:9Used by:477
Symbol 476 GraphicUsed by:477
Symbol 477 ButtonUses:474 475 476Used by:Timeline

Instance Names

"loadingbar"Frame 1Symbol 210 MovieClip
"chanton"Frame 1Symbol 114 MovieClip [chanton]
"chely"Frame 1Symbol 216 MovieClip
"chleif"Frame 1Symbol 221 MovieClip
"chskeeter"Frame 1Symbol 226 MovieClip
"chkurt"Frame 1Symbol 231 MovieClip
"chmike"Frame 1Symbol 236 MovieClip
"timer"Frame 1Symbol 248 MovieClip
"grab"Frame 1Symbol 260 MovieClip
"firstscreen"Frame 5Symbol 285 MovieClip
"game"Frame 12Symbol 376 MovieClip
"nextlevel"Frame 21Symbol 383 MovieClip
"loadingbar"Frame 89Symbol 210 MovieClip
"chanton"Frame 89Symbol 114 MovieClip [chanton]
"chely"Frame 89Symbol 216 MovieClip
"chleif"Frame 89Symbol 221 MovieClip
"chskeeter"Frame 89Symbol 226 MovieClip
"chkurt"Frame 89Symbol 231 MovieClip
"chmike"Frame 89Symbol 236 MovieClip
"iconmic"Frame 89Symbol 76 MovieClip [iconmic]
"iconkeyboard"Frame 89Symbol 71 MovieClip [iconkeyboard]
"iconyellowguitar"Frame 89Symbol 66 MovieClip [iconyellowguitar]
"iconblueguitar"Frame 89Symbol 61 MovieClip [iconblueguitar]
"icondrum"Frame 89Symbol 56 MovieClip [icondrum]
"iconbass"Frame 89Symbol 51 MovieClip [iconbass]
"grab"Frame 89Symbol 260 MovieClip
"timer"Frame 89Symbol 248 MovieClip
"secondscreen"Frame 97Symbol 409 MovieClip
"game"Frame 104Symbol 376 MovieClip
"nextlevel2"Frame 113Symbol 413 MovieClip
"loadingbar"Frame 184Symbol 210 MovieClip
"timer"Frame 184Symbol 248 MovieClip
"grab"Frame 184Symbol 260 MovieClip
"thirdscreen"Frame 192Symbol 437 MovieClip
"chanton"Frame 192Symbol 114 MovieClip [chanton]
"chely"Frame 192Symbol 216 MovieClip
"chleif"Frame 192Symbol 221 MovieClip
"chskeeter"Frame 192Symbol 226 MovieClip
"chkurt"Frame 192Symbol 231 MovieClip
"chmike"Frame 192Symbol 236 MovieClip
"iconmic"Frame 192Symbol 76 MovieClip [iconmic]
"iconkeyboard"Frame 192Symbol 71 MovieClip [iconkeyboard]
"iconyellowguitar"Frame 192Symbol 66 MovieClip [iconyellowguitar]
"iconblueguitar"Frame 192Symbol 61 MovieClip [iconblueguitar]
"icondrum"Frame 192Symbol 56 MovieClip [icondrum]
"iconbass"Frame 192Symbol 51 MovieClip [iconbass]
"game"Frame 199Symbol 376 MovieClip
"nextlevel2"Frame 208Symbol 413 MovieClip
"textResult"Frame 263Symbol 444 EditableText
"name"Frame 263Symbol 457 EditableText
"email"Frame 263Symbol 458 EditableText
"zip"Frame 263Symbol 461 EditableText
"receiveMail_ch"Frame 263Symbol 183 MovieClip [CheckBox]
"btnSubmit"Frame 263Symbol 471 Button
"_video"Symbol 119 MovieClip [VideoPlayer] Frame 1Symbol 118 Video
"boundingBox_mc"Symbol 123 MovieClip [FLVPlayback] Frame 1Symbol 117 MovieClip
"b"Symbol 160 MovieClip [SimpleButtonDown] Frame 1Symbol 157 MovieClip [BrdrShdw]
"face"Symbol 160 MovieClip [SimpleButtonDown] Frame 1Symbol 159 MovieClip [BrdrFace]
"b"Symbol 165 MovieClip [SimpleButtonIn] Frame 1Symbol 162 MovieClip [BrdrBlk]
"it"Symbol 165 MovieClip [SimpleButtonIn] Frame 1Symbol 164 MovieClip [BrdrHilght]
"g"Symbol 165 MovieClip [SimpleButtonIn] Frame 1Symbol 157 MovieClip [BrdrShdw]
"face"Symbol 165 MovieClip [SimpleButtonIn] Frame 1Symbol 159 MovieClip [BrdrFace]
"ob"Symbol 166 MovieClip [SimpleButtonUp] Frame 1Symbol 162 MovieClip [BrdrBlk]
"ol"Symbol 166 MovieClip [SimpleButtonUp] Frame 1Symbol 159 MovieClip [BrdrFace]
"ib"Symbol 166 MovieClip [SimpleButtonUp] Frame 1Symbol 157 MovieClip [BrdrShdw]
"il"Symbol 166 MovieClip [SimpleButtonUp] Frame 1Symbol 164 MovieClip [BrdrHilght]
"face"Symbol 166 MovieClip [SimpleButtonUp] Frame 1Symbol 159 MovieClip [BrdrFace]
"boundingBox_mc"Symbol 174 MovieClip [FocusRect] Frame 1Symbol 140 MovieClip [BoundingBox]
"tabCapture"Symbol 175 MovieClip [FocusManager] Frame 1Symbol 172 Button
"boundingBox_mc"Symbol 178 MovieClip [SimpleButton] Frame 1Symbol 140 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 182 MovieClip [Button] Frame 1Symbol 140 MovieClip [BoundingBox]
"boundingBox_mc"Symbol 183 MovieClip [CheckBox] Frame 1Symbol 140 MovieClip [BoundingBox]
"car_collider"Symbol 373 MovieClip [player] Frame 1Symbol 304 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 1 as "snake"
ExportAssets (56)Timeline Frame 1Symbol 2 as "hit_1"
ExportAssets (56)Timeline Frame 1Symbol 3 as "hit_2"
ExportAssets (56)Timeline Frame 1Symbol 4 as "bass"
ExportAssets (56)Timeline Frame 1Symbol 5 as "power"
ExportAssets (56)Timeline Frame 1Symbol 6 as "beep"
ExportAssets (56)Timeline Frame 1Symbol 11 as "signs"
ExportAssets (56)Timeline Frame 1Symbol 14 as "clubroad"
ExportAssets (56)Timeline Frame 1Symbol 17 as "pizza"
ExportAssets (56)Timeline Frame 1Symbol 20 as "club"
ExportAssets (56)Timeline Frame 1Symbol 22 as "noDrive"
ExportAssets (56)Timeline Frame 1Symbol 26 as "keyboard"
ExportAssets (56)Timeline Frame 1Symbol 30 as "yellowguitar"
ExportAssets (56)Timeline Frame 1Symbol 34 as "drum"
ExportAssets (56)Timeline Frame 1Symbol 38 as "redguitar"
ExportAssets (56)Timeline Frame 1Symbol 42 as "blueguitar"
ExportAssets (56)Timeline Frame 1Symbol 46 as "microphone"
ExportAssets (56)Timeline Frame 1Symbol 51 as "iconbass"
ExportAssets (56)Timeline Frame 1Symbol 56 as "icondrum"
ExportAssets (56)Timeline Frame 1Symbol 61 as "iconblueguitar"
ExportAssets (56)Timeline Frame 1Symbol 66 as "iconyellowguitar"
ExportAssets (56)Timeline Frame 1Symbol 71 as "iconkeyboard"
ExportAssets (56)Timeline Frame 1Symbol 76 as "iconmic"
ExportAssets (56)Timeline Frame 1Symbol 79 as "grasstop"
ExportAssets (56)Timeline Frame 1Symbol 82 as "halfgrass"
ExportAssets (56)Timeline Frame 1Symbol 85 as "grass"
ExportAssets (56)Timeline Frame 1Symbol 89 as "leif"
ExportAssets (56)Timeline Frame 1Symbol 93 as "kurt"
ExportAssets (56)Timeline Frame 1Symbol 97 as "skeeter"
ExportAssets (56)Timeline Frame 1Symbol 101 as "mike"
ExportAssets (56)Timeline Frame 1Symbol 105 as "ely"
ExportAssets (56)Timeline Frame 1Symbol 109 as "anton"
ExportAssets (56)Timeline Frame 1Symbol 114 as "chanton"
ExportAssets (56)Timeline Frame 1Symbol 119 as "VideoPlayer"
ExportAssets (56)Timeline Frame 1Symbol 122 as "Icon"
ExportAssets (56)Timeline Frame 1Symbol 123 as "FLVPlayback"
ExportAssets (56)Timeline Frame 1Symbol 140 as "BoundingBox"
ExportAssets (56)Timeline Frame 1Symbol 142 as "CheckFalseDisabled"
ExportAssets (56)Timeline Frame 1Symbol 144 as "CheckThemeColor1"
ExportAssets (56)Timeline Frame 1Symbol 146 as "CheckFalseDown"
ExportAssets (56)Timeline Frame 1Symbol 147 as "CheckFalseOver"
ExportAssets (56)Timeline Frame 1Symbol 149 as "CheckFalseUp"
ExportAssets (56)Timeline Frame 1Symbol 151 as "CheckTrueDisabled"
ExportAssets (56)Timeline Frame 1Symbol 152 as "CheckTrueDown"
ExportAssets (56)Timeline Frame 1Symbol 153 as "CheckTrueOver"
ExportAssets (56)Timeline Frame 1Symbol 154 as "CheckTrueUp"
ExportAssets (56)Timeline Frame 1Symbol 155 as "CheckBoxAssets"
ExportAssets (56)Timeline Frame 1Symbol 157 as "BrdrShdw"
ExportAssets (56)Timeline Frame 1Symbol 159 as "BrdrFace"
ExportAssets (56)Timeline Frame 1Symbol 160 as "SimpleButtonDown"
ExportAssets (56)Timeline Frame 1Symbol 162 as "BrdrBlk"
ExportAssets (56)Timeline Frame 1Symbol 164 as "BrdrHilght"
ExportAssets (56)Timeline Frame 1Symbol 165 as "SimpleButtonIn"
ExportAssets (56)Timeline Frame 1Symbol 166 as "SimpleButtonUp"
ExportAssets (56)Timeline Frame 1Symbol 167 as "Defaults"
ExportAssets (56)Timeline Frame 1Symbol 168 as "UIObjectExtensions"
ExportAssets (56)Timeline Frame 1Symbol 169 as "UIObject"
ExportAssets (56)Timeline Frame 1Symbol 174 as "FocusRect"
ExportAssets (56)Timeline Frame 1Symbol 175 as "FocusManager"
ExportAssets (56)Timeline Frame 1Symbol 176 as "UIComponentExtensions"
ExportAssets (56)Timeline Frame 1Symbol 177 as "UIComponent"
ExportAssets (56)Timeline Frame 1Symbol 178 as "SimpleButton"
ExportAssets (56)Timeline Frame 1Symbol 179 as "Border"
ExportAssets (56)Timeline Frame 1Symbol 180 as "RectBorder"
ExportAssets (56)Timeline Frame 1Symbol 181 as "ButtonSkin"
ExportAssets (56)Timeline Frame 1Symbol 182 as "Button"
ExportAssets (56)Timeline Frame 1Symbol 183 as "CheckBox"
ExportAssets (56)Timeline Frame 1Symbol 478 as "__Packages.mx.services.WebService"
ExportAssets (56)Timeline Frame 1Symbol 479 as "__Packages.mx.services.WebServiceProxy"
ExportAssets (56)Timeline Frame 1Symbol 480 as "__Packages.mx.services.Log"
ExportAssets (56)Timeline Frame 1Symbol 481 as "__Packages.mx.services.WSDL"
ExportAssets (56)Timeline Frame 1Symbol 482 as "__Packages.mx.services.WSDLConstants"
ExportAssets (56)Timeline Frame 1Symbol 483 as "__Packages.mx.services.QName"
ExportAssets (56)Timeline Frame 1Symbol 484 as "__Packages.mx.services.SchemaContext"
ExportAssets (56)Timeline Frame 1Symbol 485 as "__Packages.mx.services.DataType"
ExportAssets (56)Timeline Frame 1Symbol 486 as "__Packages.mx.services.SchemaVersion"
ExportAssets (56)Timeline Frame 1Symbol 487 as "__Packages.mx.services.SOAPFault"
ExportAssets (56)Timeline Frame 1Symbol 488 as "__Packages.mx.services.SOAPConstants"
ExportAssets (56)Timeline Frame 1Symbol 489 as "__Packages.mx.services.Schema"
ExportAssets (56)Timeline Frame 1Symbol 490 as "__Packages.mx.services.ElementDecl"
ExportAssets (56)Timeline Frame 1Symbol 491 as "__Packages.mx.services.WSDLDocument"
ExportAssets (56)Timeline Frame 1Symbol 492 as "__Packages.mx.services.WSDLOperation"
ExportAssets (56)Timeline Frame 1Symbol 493 as "__Packages.mx.services.SOAPParameter"
ExportAssets (56)Timeline Frame 1Symbol 494 as "__Packages.mx.services.PendingCall"
ExportAssets (56)Timeline Frame 1Symbol 495 as "__Packages.mx.services.SOAPCall"
ExportAssets (56)Timeline Frame 1Symbol 496 as "__Packages.mx.services.SOAPHeader"
ExportAssets (56)Timeline Frame 1Symbol 497 as "__Packages.mx.services.PrefixedQName"
ExportAssets (56)Timeline Frame 1Symbol 498 as "__Packages.mx.services.ArrayProxy"
ExportAssets (56)Timeline Frame 1Symbol 499 as "__Packages.mx.services.RowSetProxy"
ExportAssets (56)Timeline Frame 1Symbol 500 as "__Packages.mx.services.Namespace"
ExportAssets (56)Timeline Frame 1Symbol 134 as "__Packages.mx.core.UIObject"
ExportAssets (56)Timeline Frame 1Symbol 184 as "__Packages.mx.skins.SkinElement"
ExportAssets (56)Timeline Frame 1Symbol 185 as "__Packages.mx.styles.CSSTextStyles"
ExportAssets (56)Timeline Frame 1Symbol 187 as "__Packages.mx.styles.CSSStyleDeclaration"
ExportAssets (56)Timeline Frame 1Symbol 186 as "__Packages.mx.styles.StyleManager"
ExportAssets (56)Timeline Frame 1Symbol 135 as "__Packages.mx.core.UIComponent"
ExportAssets (56)Timeline Frame 1Symbol 501 as "__Packages.mx.controls.scrollClasses.ScrollBar"
ExportAssets (56)Timeline Frame 1Symbol 199 as "__Packages.mx.skins.Border"
ExportAssets (56)Timeline Frame 1Symbol 502 as "__Packages.mx.skins.CustomBorder"
ExportAssets (56)Timeline Frame 1Symbol 503 as "__Packages.mx.controls.scrollClasses.ScrollThumb"
ExportAssets (56)Timeline Frame 1Symbol 136 as "__Packages.mx.controls.SimpleButton"
ExportAssets (56)Timeline Frame 1Symbol 504 as "__Packages.mx.controls.UIScrollBar"
ExportAssets (56)Timeline Frame 1Symbol 115 as "__Packages.mx.video.FLVPlayback"
ExportAssets (56)Timeline Frame 1Symbol 124 as "__Packages.mx.video.VideoPlayer"
ExportAssets (56)Timeline Frame 1Symbol 125 as "__Packages.mx.video.INCManager"
ExportAssets (56)Timeline Frame 1Symbol 126 as "__Packages.mx.events.EventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 127 as "__Packages.mx.video.VideoError"
ExportAssets (56)Timeline Frame 1Symbol 128 as "__Packages.mx.video.UIManager"
ExportAssets (56)Timeline Frame 1Symbol 129 as "__Packages.mx.utils.Delegate"
ExportAssets (56)Timeline Frame 1Symbol 130 as "__Packages.mx.video.SMILManager"
ExportAssets (56)Timeline Frame 1Symbol 131 as "__Packages.mx.video.FPADManager"
ExportAssets (56)Timeline Frame 1Symbol 132 as "__Packages.mx.video.NCManager"
ExportAssets (56)Timeline Frame 1Symbol 133 as "__Packages.mx.video.CuePointManager"
ExportAssets (56)Timeline Frame 1Symbol 137 as "__Packages.mx.controls.Button"
ExportAssets (56)Timeline Frame 1Symbol 138 as "__Packages.mx.controls.CheckBox"
ExportAssets (56)Timeline Frame 1Symbol 188 as "__Packages.mx.events.UIEventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 189 as "__Packages.mx.skins.ColoredSkinElement"
ExportAssets (56)Timeline Frame 1Symbol 190 as "__Packages.mx.core.ext.UIObjectExtensions"
ExportAssets (56)Timeline Frame 1Symbol 191 as "__Packages.mx.skins.halo.Defaults"
ExportAssets (56)Timeline Frame 1Symbol 192 as "__Packages.mx.managers.DepthManager"
ExportAssets (56)Timeline Frame 1Symbol 193 as "__Packages.mx.managers.SystemManager"
ExportAssets (56)Timeline Frame 1Symbol 194 as "__Packages.mx.managers.FocusManager"
ExportAssets (56)Timeline Frame 1Symbol 195 as "__Packages.mx.skins.halo.FocusRect"
ExportAssets (56)Timeline Frame 1Symbol 196 as "__Packages.mx.managers.OverlappedWindows"
ExportAssets (56)Timeline Frame 1Symbol 197 as "__Packages.mx.styles.CSSSetStyle"
ExportAssets (56)Timeline Frame 1Symbol 198 as "__Packages.mx.core.ext.UIComponentExtensions"
ExportAssets (56)Timeline Frame 1Symbol 200 as "__Packages.mx.skins.RectBorder"
ExportAssets (56)Timeline Frame 1Symbol 201 as "__Packages.mx.skins.halo.RectBorder"
ExportAssets (56)Timeline Frame 1Symbol 202 as "__Packages.mx.skins.halo.ButtonSkin"
ExportAssets (56)Timeline Frame 5Symbol 288 as "obj_cone"
ExportAssets (56)Timeline Frame 5Symbol 292 as "obj_sp_cone"
ExportAssets (56)Timeline Frame 5Symbol 295 as "obj_hydrant"
ExportAssets (56)Timeline Frame 5Symbol 298 as "obj_lightpole"
ExportAssets (56)Timeline Frame 5Symbol 299 as "tile_blktop"
ExportAssets (56)Timeline Frame 5Symbol 302 as "tile_pothole"
ExportAssets (56)Timeline Frame 5Symbol 373 as "player"

Labels

"loading"Frame 1
"init"Frame 5
"countdown"Frame 11
"play"Frame 21
"game_over"Frame 30
"win"Frame 40
"load"Frame 89
"first"Frame 97
"count"Frame 103
"playgame"Frame 113
"over"Frame 122
"win2"Frame 132
"load3"Frame 184
"first3"Frame 192
"count3"Frame 198
"playgame3"Frame 208
"over3"Frame 217
"wingame"Frame 227
"score"Frame 263
"video"Frame 264
"making"Frame 265
"init"Symbol 11 MovieClip [signs] Frame 1
"hit_0"Symbol 11 MovieClip [signs] Frame 5
"hit_45"Symbol 11 MovieClip [signs] Frame 7
"hit_90"Symbol 11 MovieClip [signs] Frame 9
"hit_135"Symbol 11 MovieClip [signs] Frame 11
"hit_180"Symbol 11 MovieClip [signs] Frame 13
"hit_225"Symbol 11 MovieClip [signs] Frame 15
"hit_270"Symbol 11 MovieClip [signs] Frame 17
"hit_315"Symbol 11 MovieClip [signs] Frame 19
"init"Symbol 17 MovieClip [pizza] Frame 1
"hit_0"Symbol 17 MovieClip [pizza] Frame 5
"hit_45"Symbol 17 MovieClip [pizza] Frame 7
"hit_90"Symbol 17 MovieClip [pizza] Frame 9
"hit_135"Symbol 17 MovieClip [pizza] Frame 11
"hit_180"Symbol 17 MovieClip [pizza] Frame 13
"hit_225"Symbol 17 MovieClip [pizza] Frame 15
"hit_270"Symbol 17 MovieClip [pizza] Frame 17
"hit_315"Symbol 17 MovieClip [pizza] Frame 19
"init"Symbol 20 MovieClip [club] Frame 1
"hit_0"Symbol 20 MovieClip [club] Frame 5
"hit_45"Symbol 20 MovieClip [club] Frame 7
"hit_90"Symbol 20 MovieClip [club] Frame 9
"hit_135"Symbol 20 MovieClip [club] Frame 11
"hit_180"Symbol 20 MovieClip [club] Frame 13
"hit_225"Symbol 20 MovieClip [club] Frame 15
"hit_270"Symbol 20 MovieClip [club] Frame 17
"hit_315"Symbol 20 MovieClip [club] Frame 19
"init"Symbol 26 MovieClip [keyboard] Frame 1
"hit_0"Symbol 26 MovieClip [keyboard] Frame 5
"hit_45"Symbol 26 MovieClip [keyboard] Frame 7
"hit_90"Symbol 26 MovieClip [keyboard] Frame 9
"hit_135"Symbol 26 MovieClip [keyboard] Frame 11
"hit_180"Symbol 26 MovieClip [keyboard] Frame 13
"hit_225"Symbol 26 MovieClip [keyboard] Frame 15
"hit_270"Symbol 26 MovieClip [keyboard] Frame 17
"hit_315"Symbol 26 MovieClip [keyboard] Frame 19
"init"Symbol 30 MovieClip [yellowguitar] Frame 1
"hit_0"Symbol 30 MovieClip [yellowguitar] Frame 5
"hit_45"Symbol 30 MovieClip [yellowguitar] Frame 7
"hit_90"Symbol 30 MovieClip [yellowguitar] Frame 9
"hit_135"Symbol 30 MovieClip [yellowguitar] Frame 11
"hit_180"Symbol 30 MovieClip [yellowguitar] Frame 13
"hit_225"Symbol 30 MovieClip [yellowguitar] Frame 15
"hit_270"Symbol 30 MovieClip [yellowguitar] Frame 17
"hit_315"Symbol 30 MovieClip [yellowguitar] Frame 19
"init"Symbol 34 MovieClip [drum] Frame 1
"hit_0"Symbol 34 MovieClip [drum] Frame 5
"hit_45"Symbol 34 MovieClip [drum] Frame 7
"hit_90"Symbol 34 MovieClip [drum] Frame 9
"hit_135"Symbol 34 MovieClip [drum] Frame 11
"hit_180"Symbol 34 MovieClip [drum] Frame 13
"hit_225"Symbol 34 MovieClip [drum] Frame 15
"hit_270"Symbol 34 MovieClip [drum] Frame 17
"hit_315"Symbol 34 MovieClip [drum] Frame 19
"init"Symbol 38 MovieClip [redguitar] Frame 1
"hit_0"Symbol 38 MovieClip [redguitar] Frame 5
"hit_45"Symbol 38 MovieClip [redguitar] Frame 7
"hit_90"Symbol 38 MovieClip [redguitar] Frame 9
"hit_135"Symbol 38 MovieClip [redguitar] Frame 11
"hit_180"Symbol 38 MovieClip [redguitar] Frame 13
"hit_225"Symbol 38 MovieClip [redguitar] Frame 15
"hit_270"Symbol 38 MovieClip [redguitar] Frame 17
"hit_315"Symbol 38 MovieClip [redguitar] Frame 19
"init"Symbol 42 MovieClip [blueguitar] Frame 1
"hit_0"Symbol 42 MovieClip [blueguitar] Frame 5
"hit_45"Symbol 42 MovieClip [blueguitar] Frame 7
"hit_90"Symbol 42 MovieClip [blueguitar] Frame 9
"hit_135"Symbol 42 MovieClip [blueguitar] Frame 11
"hit_180"Symbol 42 MovieClip [blueguitar] Frame 13
"hit_225"Symbol 42 MovieClip [blueguitar] Frame 15
"hit_270"Symbol 42 MovieClip [blueguitar] Frame 17
"hit_315"Symbol 42 MovieClip [blueguitar] Frame 19
"init"Symbol 46 MovieClip [microphone] Frame 1
"hit_0"Symbol 46 MovieClip [microphone] Frame 5
"hit_45"Symbol 46 MovieClip [microphone] Frame 7
"hit_90"Symbol 46 MovieClip [microphone] Frame 9
"hit_135"Symbol 46 MovieClip [microphone] Frame 11
"hit_180"Symbol 46 MovieClip [microphone] Frame 13
"hit_225"Symbol 46 MovieClip [microphone] Frame 15
"hit_270"Symbol 46 MovieClip [microphone] Frame 17
"hit_315"Symbol 46 MovieClip [microphone] Frame 19
"yeah"Symbol 51 MovieClip [iconbass] Frame 2
"yeah"Symbol 56 MovieClip [icondrum] Frame 2
"yeah"Symbol 61 MovieClip [iconblueguitar] Frame 2
"yeah"Symbol 66 MovieClip [iconyellowguitar] Frame 2
"yeah"Symbol 71 MovieClip [iconkeyboard] Frame 2
"yeah"Symbol 76 MovieClip [iconmic] Frame 2
"init"Symbol 89 MovieClip [leif] Frame 1
"hit_0"Symbol 89 MovieClip [leif] Frame 5
"hit_45"Symbol 89 MovieClip [leif] Frame 7
"hit_90"Symbol 89 MovieClip [leif] Frame 9
"hit_135"Symbol 89 MovieClip [leif] Frame 11
"hit_180"Symbol 89 MovieClip [leif] Frame 13
"hit_225"Symbol 89 MovieClip [leif] Frame 15
"hit_270"Symbol 89 MovieClip [leif] Frame 17
"hit_315"Symbol 89 MovieClip [leif] Frame 19
"init"Symbol 93 MovieClip [kurt] Frame 1
"hit_0"Symbol 93 MovieClip [kurt] Frame 5
"hit_45"Symbol 93 MovieClip [kurt] Frame 7
"hit_90"Symbol 93 MovieClip [kurt] Frame 9
"hit_135"Symbol 93 MovieClip [kurt] Frame 11
"hit_180"Symbol 93 MovieClip [kurt] Frame 13
"hit_225"Symbol 93 MovieClip [kurt] Frame 15
"hit_270"Symbol 93 MovieClip [kurt] Frame 17
"hit_315"Symbol 93 MovieClip [kurt] Frame 19
"init"Symbol 97 MovieClip [skeeter] Frame 1
"hit_0"Symbol 97 MovieClip [skeeter] Frame 5
"hit_45"Symbol 97 MovieClip [skeeter] Frame 7
"hit_90"Symbol 97 MovieClip [skeeter] Frame 9
"hit_135"Symbol 97 MovieClip [skeeter] Frame 11
"hit_180"Symbol 97 MovieClip [skeeter] Frame 13
"hit_225"Symbol 97 MovieClip [skeeter] Frame 15
"hit_270"Symbol 97 MovieClip [skeeter] Frame 17
"hit_315"Symbol 97 MovieClip [skeeter] Frame 19
"init"Symbol 101 MovieClip [mike] Frame 1
"hit_0"Symbol 101 MovieClip [mike] Frame 5
"hit_45"Symbol 101 MovieClip [mike] Frame 7
"hit_90"Symbol 101 MovieClip [mike] Frame 9
"hit_135"Symbol 101 MovieClip [mike] Frame 11
"hit_180"Symbol 101 MovieClip [mike] Frame 13
"hit_225"Symbol 101 MovieClip [mike] Frame 15
"hit_270"Symbol 101 MovieClip [mike] Frame 17
"hit_315"Symbol 101 MovieClip [mike] Frame 19
"init"Symbol 105 MovieClip [ely] Frame 1
"hit_0"Symbol 105 MovieClip [ely] Frame 5
"hit_45"Symbol 105 MovieClip [ely] Frame 7
"hit_90"Symbol 105 MovieClip [ely] Frame 9
"hit_135"Symbol 105 MovieClip [ely] Frame 11
"hit_180"Symbol 105 MovieClip [ely] Frame 13
"hit_225"Symbol 105 MovieClip [ely] Frame 15
"hit_270"Symbol 105 MovieClip [ely] Frame 17
"hit_315"Symbol 105 MovieClip [ely] Frame 19
"init"Symbol 109 MovieClip [anton] Frame 1
"hit_0"Symbol 109 MovieClip [anton] Frame 5
"hit_45"Symbol 109 MovieClip [anton] Frame 7
"hit_90"Symbol 109 MovieClip [anton] Frame 9
"hit_135"Symbol 109 MovieClip [anton] Frame 11
"hit_180"Symbol 109 MovieClip [anton] Frame 13
"hit_225"Symbol 109 MovieClip [anton] Frame 15
"hit_270"Symbol 109 MovieClip [anton] Frame 17
"hit_315"Symbol 109 MovieClip [anton] Frame 19
"yeah"Symbol 114 MovieClip [chanton] Frame 2
"yeah"Symbol 216 MovieClip Frame 2
"yeah"Symbol 221 MovieClip Frame 2
"yeah"Symbol 226 MovieClip Frame 2
"yeah"Symbol 231 MovieClip Frame 2
"yeah"Symbol 236 MovieClip Frame 2
"init"Symbol 288 MovieClip [obj_cone] Frame 1
"hit_0"Symbol 288 MovieClip [obj_cone] Frame 5
"hit_45"Symbol 288 MovieClip [obj_cone] Frame 7
"hit_90"Symbol 288 MovieClip [obj_cone] Frame 9
"hit_135"Symbol 288 MovieClip [obj_cone] Frame 11
"hit_180"Symbol 288 MovieClip [obj_cone] Frame 13
"hit_225"Symbol 288 MovieClip [obj_cone] Frame 15
"hit_270"Symbol 288 MovieClip [obj_cone] Frame 17
"hit_315"Symbol 288 MovieClip [obj_cone] Frame 19
"init"Symbol 292 MovieClip [obj_sp_cone] Frame 1
"hit_0"Symbol 292 MovieClip [obj_sp_cone] Frame 5
"hit_45"Symbol 292 MovieClip [obj_sp_cone] Frame 7
"hit_90"Symbol 292 MovieClip [obj_sp_cone] Frame 9
"hit_135"Symbol 292 MovieClip [obj_sp_cone] Frame 11
"hit_180"Symbol 292 MovieClip [obj_sp_cone] Frame 13
"hit_225"Symbol 292 MovieClip [obj_sp_cone] Frame 15
"hit_270"Symbol 292 MovieClip [obj_sp_cone] Frame 17
"hit_315"Symbol 292 MovieClip [obj_sp_cone] Frame 19

Dynamic Text Variables

_root.scoreSymbol 243 EditableText"0"
timer.displaySymbol 244 EditableText"40"
_root.scoreSymbol 388 EditableText"0"
timer.displaySymbol 389 EditableText"40"
_root.scoreSymbol 390 EditableText"0"
timer.displaySymbol 391 EditableText""
_root.scoreSymbol 416 EditableText"0"
_root.scoreSymbol 417 EditableText"0"
timer.displaySymbol 418 EditableText""
_root.scoreSymbol 441 EditableText"0"
_root.scoreSymbol 467 EditableText"0"




http://swfchan.com/10/47710/info.shtml
Created: 1/5 -2019 07:59:45 Last modified: 1/5 -2019 07:59:45 Server time: 05/12 -2025 15:13:06