Frame 1
function getHomepage() {
getURL ("http://www.pbswine.de", "_blank");
}
stop();
if (_root.preloaded) {
gotoAndPlay(goNext);
}
_root.preloaded = 1;
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("### Oil Tanks was designed 2008 by Fritz Mehler ###", getHomepage);
MENU.customItems.push(Functioned);
_root.menu = MENU;
Frame 3
gotoAndPlay(goNext +1);
Frame 230
if (!mPlayer) {
var urlLoader = new LoadVars();
urlLoader.load("http://www.pbswine.de/misc/echoMusic.php?game=oiltanks");
urlLoader.onLoad = function () {
var v = _root.createClassObject(mx.controls.MediaPlayback, "mPlayer", 49960, {mediaType:"MP3"});
v._visible = false;
v.setMedia(this.url, "MP3");
v.volume = 50;
var _local3 = new Object();
_local3.complete = function (eventObject) {
_root.stopAllSounds();
v.play(0);
};
v.addEventListener("complete", _local3);
};
}
Instance of Symbol 1105 MovieClip in Frame 230
on (release) {
getURL ("http://games.pbswine.de/", "_blank");
}
on (rollOver) {
this.bg.gotoAndStop(2);
this.t2.t._alpha = 100;
this.t1.t._alpha = 0;
}
on (rollOut) {
this.bg.gotoAndStop(1);
this.t2.t._alpha = 0;
this.t1.t._alpha = 100;
}
Frame 266
darkwindMc = _root.createEmptyMovieClip("darkwindMc", 2);
darkwind = new Sound(darkwindMc);
darkwind.attachSound("darkwind");
darkwind.setVolume(15);
punch = new Sound(_root);
punch.attachSound("punch");
var currentLevel = -1;
_global.totalScore = 0;
delete _root.map;
stop();
all_levels = [];
all_levels.push("<level><header><title>First Blood</title><width>1000</width><height>1000</height><time>65</time><spawnRotation>90</spawnRotation></header><body><item><type>solid</type><xcoord>100</xcoord><ycoord>780</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>290</xcoord><ycoord>780</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>480</xcoord><ycoord>780</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>710</xcoord><ycoord>910</ycoord><sprite>roadblock</sprite><rotation>-60</rotation></item><item><type>solid</type><xcoord>800</xcoord><ycoord>900</ycoord><sprite>roadblock</sprite><rotation>75</rotation></item><item><type>solid</type><xcoord>840</xcoord><ycoord>800</ycoord><sprite>obstacle</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>910</xcoord><ycoord>780</ycoord><sprite>obstacle</sprite><rotation>15</rotation></item><item><type>solid</type><xcoord>960</xcoord><ycoord>840</ycoord><sprite>obstacle</sprite><rotation>-15</rotation></item><item><type>solid</type><xcoord>920</xcoord><ycoord>820</ycoord><sprite>obstacle</sprite></item><item><type>crate</type><xcoord>890</xcoord><ycoord>60</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>810</xcoord><ycoord>720</ycoord><sprite>crate_missiles</sprite></item><item><type>solid</type><xcoord>410</xcoord><ycoord>260</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>260</xcoord><ycoord>320</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>240</xcoord><ycoord>460</ycoord><sprite>roadblock</sprite><rotation>60</rotation></item><item><type>solid</type><xcoord>390</xcoord><ycoord>540</ycoord><sprite>roadblock</sprite></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>410</xcoord><ycoord>400</ycoord><sprite>gasstation</sprite></item><item><type>enemy</type><xcoord>650</xcoord><ycoord>640</ycoord><sprite>tank1</sprite><spawntime>0</spawntime></item><item><type>enemy</type><xcoord>750</xcoord><ycoord>70</ycoord><sprite>tank2</sprite><spawntime>10</spawntime></item><item><type>enemy</type><xcoord>100</xcoord><ycoord>100</ycoord><sprite>tank2</sprite><spawntime>15</spawntime></item><item><type>enemy</type><xcoord>210</xcoord><ycoord>80</ycoord><sprite>tank2</sprite><spawntime>20</spawntime></item><item><type>enemy</type><xcoord>80</xcoord><ycoord>650</ycoord><sprite>tank2</sprite><spawntime>25</spawntime></item><item><type>enemy</type><xcoord>170</xcoord><ycoord>660</ycoord><sprite>tank2</sprite><spawntime>35</spawntime></item><item><type>enemy</type><xcoord>850</xcoord><ycoord>320</ycoord><sprite>tank1</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>870</xcoord><ycoord>420</ycoord><sprite>tank1</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>680</xcoord><ycoord>80</ycoord><sprite>tank2</sprite><spawntime>50</spawntime></item><item><type>spawnPoint</type><xcoord>120</xcoord><ycoord>900</ycoord><sprite>player</sprite><rotation>90</rotation></item></body><edges><item y2=\"226\" x2=\"330\" y1=\"370\" x1=\"170\" /><item y2=\"370\" x2=\"170\" y1=\"554\" x1=\"278\" /><item y2=\"554\" x2=\"278\" y1=\"558\" x1=\"500\" /><item y2=\"558\" x2=\"500\" y1=\"512\" x1=\"502\" /><item y2=\"512\" x2=\"502\" y1=\"514\" x1=\"306\" /><item y2=\"514\" x2=\"298\" y1=\"376\" x1=\"228\" /><item y2=\"376\" x2=\"228\" y1=\"268\" x1=\"336\" /><item y2=\"268\" x2=\"336\" y1=\"280\" x1=\"508\" /><item y2=\"280\" x2=\"508\" y1=\"236\" x1=\"510\" /><item y2=\"236\" x2=\"510\" y1=\"230\" x1=\"330\" /><item y2=\"846\" x2=\"1020\" y1=\"758\" x1=\"922\" /><item y2=\"758\" x2=\"922\" y1=\"792\" x1=\"772\" /><item y2=\"792\" x2=\"772\" y1=\"1002\" x1=\"622\" /><item y2=\"798\" x2=\"-10\" y1=\"804\" x1=\"588\" /><item y2=\"804\" x2=\"588\" y1=\"762\" x1=\"588\" /><item y2=\"762\" x2=\"588\" y1=\"754\" x1=\"-8\" /></edges></level>");
all_levels.push("<level><header><title>Heating Up</title><width>1600</width><height>1600</height><time>85</time><spawnRotation>0</spawnRotation></header><body><item><type>crate</type><xcoord>950</xcoord><ycoord>830</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>670</xcoord><ycoord>850</ycoord><sprite>crate_missiles</sprite></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>790</xcoord><ycoord>710</ycoord><sprite>gasstation</sprite></item><item><type>zone</type><xcoord>900</xcoord><ycoord>160</ycoord><sprite>zone</sprite><spawnzone>3</spawnzone><width>234</width><height>280</height></item><item><type>zone</type><xcoord>130</xcoord><ycoord>1050</ycoord><sprite>zone</sprite><spawnzone>2</spawnzone><width>234</width><height>280</height></item><item><type>crate</type><xcoord>1180</xcoord><ycoord>1360</ycoord><sprite>crate_missiles</sprite></item><item><type>solid</type><xcoord>1390</xcoord><ycoord>1020</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>1530</xcoord><ycoord>520</ycoord><sprite>obstacle</sprite></item><item><type>enemy</type><xcoord>1480</xcoord><ycoord>910</ycoord><sprite>tank1</sprite><spawntime>20</spawntime></item><item><type>enemy</type><xcoord>620</xcoord><ycoord>460</ycoord><sprite>tank2</sprite><spawntime>70</spawntime></item><item><type>enemy</type><xcoord>700</xcoord><ycoord>1350</ycoord><sprite>tank2</sprite><spawntime>60</spawntime></item><item><type>enemy</type><xcoord>440</xcoord><ycoord>1330</ycoord><sprite>tank2</sprite><spawntime>60</spawntime></item><item><type>enemy</type><xcoord>940</xcoord><ycoord>1340</ycoord><sprite>tank2</sprite><spawntime>35</spawntime></item><item><type>enemy</type><xcoord>1140</xcoord><ycoord>380</ycoord><sprite>tank2</sprite><spawntime>55</spawntime></item><item><type>enemy</type><xcoord>1500</xcoord><ycoord>720</ycoord><sprite>tank2</sprite><spawntime>45</spawntime></item><item><type>enemy</type><xcoord>1450</xcoord><ycoord>720</ycoord><sprite>tank2</sprite><spawntime>35</spawntime></item><item><type>enemy</type><xcoord>1500</xcoord><ycoord>790</ycoord><sprite>tank2</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>1450</xcoord><ycoord>790</ycoord><sprite>tank2</sprite><spawntime>30</spawntime></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>930</xcoord><ycoord>710</ycoord><sprite>gasstation</sprite></item><item><type>enemy</type><xcoord>520</xcoord><ycoord>480</ycoord><sprite>tank2</sprite><spawntime>30</spawntime></item><item><type>crate</type><xcoord>650</xcoord><ycoord>690</ycoord><sprite>crate_health</sprite></item><item><type>solid</type><xcoord>720</xcoord><ycoord>780</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>910</xcoord><ycoord>780</ycoord><sprite>roadblock</sprite></item><item><type>enemy</type><xcoord>590</xcoord><ycoord>120</ycoord><sprite>tank1</sprite><spawnzone>3</spawnzone></item><item><type>zone</type><xcoord>840</xcoord><ycoord>180</ycoord><sprite>zone</sprite><spawnzone>3</spawnzone><width>0</width><height>0</height></item><item><type>enemy</type><xcoord>1390</xcoord><ycoord>90</ycoord><sprite>tank1</sprite><spawnzone>3</spawnzone></item><item><type>enemy</type><xcoord>500</xcoord><ycoord>100</ycoord><sprite>tank1</sprite><spawntime>2</spawntime></item><item><type>crate</type><xcoord>1170</xcoord><ycoord>110</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>800</xcoord><ycoord>100</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>1070</xcoord><ycoord>10</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>720</xcoord><ycoord>10</ycoord><sprite>crate_health</sprite></item><item><type>solid</type><xcoord>1040</xcoord><ycoord>70</ycoord><sprite>roadblock</sprite><rotation>-135</rotation></item><item><type>solid</type><xcoord>690</xcoord><ycoord>70</ycoord><sprite>roadblock</sprite><rotation>-135</rotation></item><item><type>enemy</type><xcoord>190</xcoord><ycoord>250</ycoord><sprite>tank1</sprite><spawntime>2</spawntime></item><item><type>enemy</type><xcoord>80</xcoord><ycoord>850</ycoord><sprite>tank1</sprite></item><item><type>enemy</type><xcoord>230</xcoord><ycoord>850</ycoord><sprite>tank1</sprite></item><item><type>solid</type><xcoord>340</xcoord><ycoord>1310</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>340</xcoord><ycoord>1500</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>350</xcoord><ycoord>930</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>350</xcoord><ycoord>1130</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>1260</xcoord><ycoord>930</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>1260</xcoord><ycoord>1120</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>1260</xcoord><ycoord>1310</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>1280</xcoord><ycoord>410</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>1270</xcoord><ycoord>580</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>1260</xcoord><ycoord>760</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>1180</xcoord><ycoord>310</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>1000</xcoord><ycoord>310</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>820</xcoord><ycoord>310</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>650</xcoord><ycoord>320</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>460</xcoord><ycoord>320</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>360</xcoord><ycoord>400</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>360</xcoord><ycoord>580</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>360</xcoord><ycoord>750</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>spawnPoint</type><xcoord>140</xcoord><ycoord>1360</ycoord><sprite>player</sprite></item></body><edges><item y2=\"980\" x2=\"1354\" y1=\"1046\" x1=\"1350\" /><item y2=\"1046\" x2=\"1350\" y1=\"1050\" x1=\"1420\" /><item y2=\"1046\" x2=\"1420\" y1=\"992\" x1=\"1424\" /><item y2=\"992\" x2=\"1424\" y1=\"982\" x1=\"1354\" /><item y2=\"488\" x2=\"1500\" y1=\"552\" x1=\"1502\" /><item y2=\"552\" x2=\"1502\" y1=\"552\" x1=\"1560\" /><item y2=\"552\" x2=\"1560\" y1=\"496\" x1=\"1560\" /><item y2=\"496\" x2=\"1560\" y1=\"492\" x1=\"1500\" /><item y2=\"150\" x2=\"1084\" y1=\"130\" x1=\"1122\" /><item y2=\"130\" x2=\"1122\" y1=\"-30\" x1=\"996\" /><item y2=\"-10\" x2=\"920\" y1=\"142\" x1=\"1082\" /><item y2=\"132\" x2=\"732\" y1=\"130\" x1=\"780\" /><item y2=\"130\" x2=\"780\" y1=\"-18\" x1=\"632\" /><item y2=\"-16\" x2=\"568\" y1=\"134\" x1=\"726\" /><item y2=\"754\" x2=\"636\" y1=\"802\" x1=\"640\" /><item y2=\"802\" x2=\"640\" y1=\"804\" x1=\"1008\" /><item y2=\"804\" x2=\"1008\" y1=\"760\" x1=\"1008\" /><item y2=\"760\" x2=\"1008\" y1=\"754\" x1=\"640\" /><item y2=\"346\" x2=\"394\" y1=\"336\" x1=\"1246\" /><item y2=\"336\" x2=\"1246\" y1=\"1398\" x1=\"1236\" /><item y2=\"1398\" x2=\"1236\" y1=\"1400\" x1=\"1282\" /><item y2=\"1402\" x2=\"1286\" y1=\"290\" x1=\"1296\" /><item y2=\"290\" x2=\"1296\" y1=\"298\" x1=\"338\" /><item y2=\"1624\" x2=\"360\" y1=\"342\" x1=\"392\" /><item y2=\"304\" x2=\"334\" y1=\"1620\" x1=\"306\" /></edges></level>");
all_levels.push("<level><header><title>Orange Zone</title><width>2000</width><height>1400</height><time>95</time><spawnRotation>45</spawnRotation></header><body><item><type>crate</type><xcoord>20</xcoord><ycoord>470</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>340</xcoord><ycoord>20</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>730</xcoord><ycoord>310</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>1010</xcoord><ycoord>590</ycoord><sprite>crate_missiles</sprite></item><item><type>solid</type><xcoord>1930</xcoord><ycoord>690</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>1800</xcoord><ycoord>560</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>1610</xcoord><ycoord>770</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>1490</xcoord><ycoord>630</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>1670</xcoord><ycoord>420</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>1550</xcoord><ycoord>280</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>1390</xcoord><ycoord>220</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>1240</xcoord><ycoord>290</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>1360</xcoord><ycoord>650</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>1230</xcoord><ycoord>780</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>1090</xcoord><ycoord>920</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>1110</xcoord><ycoord>420</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>980</xcoord><ycoord>540</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>770</xcoord><ycoord>900</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>640</xcoord><ycoord>760</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>510</xcoord><ycoord>620</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>360</xcoord><ycoord>570</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>180</xcoord><ycoord>570</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>60</xcoord><ycoord>560</ycoord><sprite>obstacle</sprite><rotation>-15</rotation></item><item><type>spawnPoint</type><xcoord>1480</xcoord><ycoord>1260</ycoord><sprite>player</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>20</xcoord><ycoord>580</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>110</xcoord><ycoord>620</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>1420</xcoord><ycoord>140</ycoord><sprite>bush</sprite><rotation>15</rotation></item><item><type>solid</type><xcoord>1400</xcoord><ycoord>10</ycoord><sprite>bush</sprite><rotation>-30</rotation></item><item><type>solid</type><xcoord>1460</xcoord><ycoord>40</ycoord><sprite>bush</sprite></item><item><type>solid</type><xcoord>1470</xcoord><ycoord>110</ycoord><sprite>bush</sprite><rotation>-60</rotation></item><item><type>solid</type><xcoord>1380</xcoord><ycoord>100</ycoord><sprite>bush</sprite><rotation>-15</rotation></item><item><type>solid</type><xcoord>1330</xcoord><ycoord>70</ycoord><sprite>bush</sprite><rotation>-165</rotation></item><item><type>solid</type><xcoord>1290</xcoord><ycoord>10</ycoord><sprite>bush</sprite></item><item><type>solid</type><xcoord>1300</xcoord><ycoord>160</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>1360</xcoord><ycoord>180</ycoord><sprite>obstacle</sprite><rotation>30</rotation></item><item><type>solid</type><xcoord>920</xcoord><ycoord>970</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>850</xcoord><ycoord>510</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>730</xcoord><ycoord>380</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>1590</xcoord><ycoord>910</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>1450</xcoord><ycoord>1030</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>1320</xcoord><ycoord>1150</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>1190</xcoord><ycoord>1280</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>1100</xcoord><ycoord>1360</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>1160</xcoord><ycoord>1370</ycoord><sprite>obstacle</sprite><rotation>-15</rotation></item><item><type>solid</type><xcoord>1940</xcoord><ycoord>1100</ycoord><sprite>bush</sprite></item><item><type>enemy</type><xcoord>1900</xcoord><ycoord>940</ycoord><sprite>tank1</sprite></item><item><type>enemy</type><xcoord>1900</xcoord><ycoord>1280</ycoord><sprite>tank1</sprite></item><item><type>enemy</type><xcoord>1580</xcoord><ycoord>520</ycoord><sprite>tank1</sprite><spawntime>4</spawntime></item><item><type>enemy</type><xcoord>1170</xcoord><ycoord>600</ycoord><sprite>tank1</sprite><spawntime>8</spawntime></item><item><type>enemy</type><xcoord>720</xcoord><ycoord>650</ycoord><sprite>tank1</sprite><spawntime>9</spawntime></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>1170</xcoord><ycoord>120</ycoord><sprite>gasstation</sprite><rotation>-120</rotation></item><item><type>enemy</type><xcoord>130</xcoord><ycoord>120</ycoord><sprite>tank2</sprite><spawntime>20</spawntime></item><item><type>enemy</type><xcoord>250</xcoord><ycoord>380</ycoord><sprite>tank2</sprite><spawntime>20</spawntime></item><item><type>enemy</type><xcoord>980</xcoord><ycoord>810</ycoord><sprite>tank2</sprite><spawntime>30</spawntime></item><item><type>enemy</type><xcoord>1260</xcoord><ycoord>540</ycoord><sprite>tank2</sprite><spawntime>30</spawntime></item><item><type>enemy</type><xcoord>820</xcoord><ycoord>710</ycoord><sprite>tank2</sprite><spawntime>35</spawntime></item><item><type>enemy</type><xcoord>580</xcoord><ycoord>460</ycoord><sprite>tank2</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>330</xcoord><ycoord>120</ycoord><sprite>tank2</sprite><spawntime>50</spawntime></item><item><type>enemy</type><xcoord>390</xcoord><ycoord>260</ycoord><sprite>tank2</sprite><spawntime>60</spawntime></item><item><type>crate</type><xcoord>1810</xcoord><ycoord>1110</ycoord><sprite>crate_missiles</sprite></item><item><type>oPoint</type><xcoord>300</xcoord><ycoord>410</ycoord><sprite>oPoint</sprite></item><item><type>enemy</type><xcoord>120</xcoord><ycoord>380</ycoord><sprite>tank2</sprite><spawntime>70</spawntime></item><item><type>enemy</type><xcoord>120</xcoord><ycoord>180</ycoord><sprite>tank2</sprite><spawntime>80</spawntime></item><item><type>enemy</type><xcoord>1030</xcoord><ycoord>270</ycoord><sprite>tank2</sprite><spawntime>69</spawntime></item><item><type>enemy</type><xcoord>730</xcoord><ycoord>100</ycoord><sprite>tank2</sprite><spawntime>75</spawntime></item></body><edges><item y2=\"-30\" x2=\"1236\" y1=\"138\" x1=\"1238\" /><item y2=\"530\" x2=\"918\" y1=\"280\" x1=\"678\" /><item y2=\"280\" x2=\"678\" y1=\"312\" x1=\"634\" /><item y2=\"312\" x2=\"634\" y1=\"608\" x1=\"922\" /><item y2=\"138\" x2=\"1236\" y1=\"188\" x1=\"1300\" /><item y2=\"188\" x2=\"1300\" y1=\"540\" x1=\"916\" /><item y2=\"610\" x2=\"926\" y1=\"232\" x1=\"1344\" /><item y2=\"232\" x2=\"1344\" y1=\"238\" x1=\"1476\" /><item y2=\"238\" x2=\"1476\" y1=\"816\" x1=\"2000\" /><item y2=\"1074\" x2=\"2020\" y1=\"1070\" x1=\"1864\" /><item y2=\"1070\" x2=\"1864\" y1=\"1130\" x1=\"1866\" /><item y2=\"1130\" x2=\"1866\" y1=\"1128\" x1=\"2006\" /><item y2=\"1398\" x2=\"1236\" y1=\"1332\" x1=\"1150\" /><item y2=\"1328\" x2=\"1152\" y1=\"834\" x1=\"1698\" /><item y2=\"834\" x2=\"1698\" y1=\"548\" x1=\"1434\" /><item y2=\"548\" x2=\"1434\" y1=\"940\" x1=\"1004\" /><item y2=\"942\" x2=\"1004\" y1=\"948\" x1=\"846\" /><item y2=\"948\" x2=\"846\" y1=\"548\" x1=\"468\" /><item y2=\"548\" x2=\"468\" y1=\"540\" x1=\"-10\" /></edges></level>");
all_levels.push("<level><header><title>Battlefield 13</title><width>1600</width><height>800</height><time>120</time><spawnRotation>90</spawnRotation></header><body><item><type>crate</type><xcoord>1370</xcoord><ycoord>330</ycoord><sprite>crate_missiles</sprite></item><item><type>solid</type><xcoord>100</xcoord><ycoord>190</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>300</xcoord><ycoord>190</ycoord><sprite>roadblock</sprite></item><item><type>spawnPoint</type><xcoord>170</xcoord><ycoord>80</ycoord><sprite>player</sprite><rotation>90</rotation></item><item><type>solid</type><xcoord>500</xcoord><ycoord>190</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>650</xcoord><ycoord>370</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>460</xcoord><ycoord>370</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>260</xcoord><ycoord>370</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>90</xcoord><ycoord>550</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>280</xcoord><ycoord>550</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>470</xcoord><ycoord>560</ycoord><sprite>roadblock</sprite></item><item><type>enemy</type><xcoord>660</xcoord><ycoord>90</ycoord><sprite>tank1</sprite><spawntime>0</spawntime></item><item><type>enemy</type><xcoord>670</xcoord><ycoord>240</ycoord><sprite>tank1</sprite><spawntime>0</spawntime></item><item><type>enemy</type><xcoord>100</xcoord><ycoord>290</ycoord><sprite>tank1</sprite><spawntime>4</spawntime></item><item><type>enemy</type><xcoord>90</xcoord><ycoord>440</ycoord><sprite>tank1</sprite><spawntime>4</spawntime></item><item><type>enemy</type><xcoord>680</xcoord><ycoord>480</ycoord><sprite>tank1</sprite><spawntime>9</spawntime></item><item><type>enemy</type><xcoord>600</xcoord><ycoord>480</ycoord><sprite>tank1</sprite><spawntime>9</spawntime></item><item><type>solid</type><xcoord>550</xcoord><ycoord>690</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>760</xcoord><ycoord>110</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>760</xcoord><ycoord>290</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>crate</type><xcoord>610</xcoord><ycoord>730</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>690</xcoord><ycoord>730</ycoord><sprite>crate_health</sprite></item><item><type>solid</type><xcoord>820</xcoord><ycoord>700</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>1220</xcoord><ycoord>700</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>1010</xcoord><ycoord>740</ycoord><sprite>gasstation</sprite></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>1410</xcoord><ycoord>740</ycoord><sprite>gasstation</sprite></item><item><type>enemy</type><xcoord>1510</xcoord><ycoord>150</ycoord><sprite>tank2</sprite><spawntime>60</spawntime></item><item><type>enemy</type><xcoord>1170</xcoord><ycoord>90</ycoord><sprite>tank2</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>1490</xcoord><ycoord>400</ycoord><sprite>tank2</sprite><spawntime>50</spawntime></item><item><type>enemy</type><xcoord>1120</xcoord><ycoord>290</ycoord><sprite>tank2</sprite><spawntime>30</spawntime></item><item><type>enemy</type><xcoord>930</xcoord><ycoord>140</ycoord><sprite>tank2</sprite><spawntime>30</spawntime></item><item><type>enemy</type><xcoord>910</xcoord><ycoord>360</ycoord><sprite>tank2</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>1350</xcoord><ycoord>100</ycoord><sprite>tank2</sprite><spawntime>50</spawntime></item><item><type>crate</type><xcoord>1230</xcoord><ycoord>330</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>1300</xcoord><ycoord>330</ycoord><sprite>crate_missiles</sprite></item><item><type>solid</type><xcoord>1280</xcoord><ycoord>240</ycoord><sprite>bush</sprite></item><item><type>solid</type><xcoord>1400</xcoord><ycoord>240</ycoord><sprite>bush</sprite></item><item><type>crate</type><xcoord>1440</xcoord><ycoord>330</ycoord><sprite>crate_missiles</sprite></item><item><type>enemy</type><xcoord>1010</xcoord><ycoord>110</ycoord><sprite>tank2</sprite><spawntime>60</spawntime></item><item><type>enemy</type><xcoord>1440</xcoord><ycoord>70</ycoord><sprite>tank2</sprite><spawntime>70</spawntime></item><item><type>enemy</type><xcoord>850</xcoord><ycoord>70</ycoord><sprite>tank2</sprite><spawntime>70</spawntime></item><item><type>crate</type><xcoord>610</xcoord><ycoord>640</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>690</xcoord><ycoord>640</ycoord><sprite>crate_health</sprite></item><item><type>enemy</type><xcoord>890</xcoord><ycoord>250</ycoord><sprite>tank1</sprite><spawntime>75</spawntime></item><item><type>enemy</type><xcoord>940</xcoord><ycoord>250</ycoord><sprite>tank1</sprite><spawntime>75</spawntime></item><item><type>enemy</type><xcoord>1540</xcoord><ycoord>240</ycoord><sprite>tank2</sprite><spawntime>80</spawntime></item><item><type>enemy</type><xcoord>1210</xcoord><ycoord>170</ycoord><sprite>tank2</sprite><spawntime>90</spawntime></item><item><type>enemy</type><xcoord>1060</xcoord><ycoord>200</ycoord><sprite>tank2</sprite><spawntime>90</spawntime></item><item><type>enemy</type><xcoord>1310</xcoord><ycoord>400</ycoord><sprite>tank2</sprite><spawntime>100</spawntime></item><item><type>enemy</type><xcoord>1060</xcoord><ycoord>410</ycoord><sprite>tank2</sprite><spawntime>100</spawntime></item></body><edges><item y2=\"208\" x2=\"1206\" y1=\"274\" x1=\"1208\" /><item y2=\"274\" x2=\"1208\" y1=\"278\" x1=\"1466\" /><item y2=\"278\" x2=\"1466\" y1=\"212\" x1=\"1468\" /><item y2=\"212\" x2=\"1468\" y1=\"214\" x1=\"1212\" /><item y2=\"810\" x2=\"1240\" y1=\"584\" x1=\"1244\" /><item y2=\"584\" x2=\"1242\" y1=\"586\" x1=\"1198\" /><item y2=\"588\" x2=\"1196\" y1=\"822\" x1=\"1196\" /><item y2=\"820\" x2=\"834\" y1=\"578\" x1=\"838\" /><item y2=\"578\" x2=\"838\" y1=\"576\" x1=\"796\" /><item y2=\"578\" x2=\"794\" y1=\"810\" x1=\"790\" /><item y2=\"822\" x2=\"568\" y1=\"538\" x1=\"570\" /><item y2=\"538\" x2=\"570\" y1=\"520\" x1=\"-4\" /><item y2=\"-20\" x2=\"734\" y1=\"334\" x1=\"728\" /><item y2=\"334\" x2=\"728\" y1=\"334\" x1=\"176\" /><item y2=\"334\" x2=\"170\" y1=\"388\" x1=\"176\" /><item y2=\"388\" x2=\"176\" y1=\"386\" x1=\"778\" /><item y2=\"386\" x2=\"778\" y1=\"-10\" x1=\"782\" /><item y2=\"214\" x2=\"-6\" y1=\"212\" x1=\"608\" /><item y2=\"212\" x2=\"608\" y1=\"168\" x1=\"606\" /><item y2=\"168\" x2=\"602\" y1=\"164\" x1=\"-10\" /></edges></level>");
all_levels.push("<level><header><title>The Middle</title><width>800</width><height>2400</height><time>92</time><spawnRotation>90</spawnRotation></header><body><item><type>spawnPoint</type><xcoord>140</xcoord><ycoord>130</ycoord><sprite>player</sprite><rotation>90</rotation></item><item><type>solid</type><xcoord>100</xcoord><ycoord>340</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>290</xcoord><ycoord>340</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>470</xcoord><ycoord>340</ycoord><sprite>roadblock</sprite><spawnzone>1</spawnzone></item><item><type>enemy</type><xcoord>650</xcoord><ycoord>160</ycoord><sprite>tank1</sprite><spawnzone>1</spawnzone></item><item><type>enemy</type><xcoord>560</xcoord><ycoord>160</ycoord><sprite>tank1</sprite><spawnzone>1</spawnzone></item><item><type>zone</type><xcoord>433.85</xcoord><ycoord>170.6</ycoord><sprite>zone</sprite><spawnzone>1</spawnzone><width>180.3</width><height>277.75</height></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>140</xcoord><ycoord>480</ycoord><sprite>gasstation</sprite></item><item><type>solid</type><xcoord>670</xcoord><ycoord>690</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>480</xcoord><ycoord>690</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>310</xcoord><ycoord>690</ycoord><sprite>roadblock</sprite></item><item><type>enemy</type><xcoord>630</xcoord><ycoord>510</ycoord><sprite>tank2</sprite><spawnzone>1</spawnzone></item><item><type>solid</type><xcoord>680</xcoord><ycoord>50</ycoord><sprite>bush</sprite></item><item><type>solid</type><xcoord>540</xcoord><ycoord>390</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>500</xcoord><ycoord>290</ycoord><sprite>obstacle</sprite><rotation>15</rotation></item><item><type>solid</type><xcoord>600</xcoord><ycoord>350</ycoord><sprite>obstacle</sprite><rotation>45</rotation></item><item><type>enemy</type><xcoord>620</xcoord><ycoord>810</ycoord><sprite>tank1</sprite><spawntime>15</spawntime></item><item><type>solid</type><xcoord>80</xcoord><ycoord>940</ycoord><sprite>roadblock</sprite></item><item><type>enemy</type><xcoord>400</xcoord><ycoord>870</ycoord><sprite>tank1</sprite><spawntime>10</spawntime></item><item><type>solid</type><xcoord>650</xcoord><ycoord>920</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>240</xcoord><ycoord>1000</ycoord><sprite>roadblock</sprite><spawnzone>2</spawnzone></item><item><type>solid</type><xcoord>530</xcoord><ycoord>1020</ycoord><sprite>roadblock</sprite><rotation>-60</rotation></item><item><type>solid</type><xcoord>40</xcoord><ycoord>840</ycoord><sprite>bush</sprite><rotation>15</rotation></item><item><type>enemy</type><xcoord>110</xcoord><ycoord>1290</ycoord><sprite>tank1</sprite><spawnzone>2</spawnzone></item><item><type>enemy</type><xcoord>380</xcoord><ycoord>1400</ycoord><sprite>tank1</sprite><spawnzone>2</spawnzone></item><item><type>enemy</type><xcoord>640</xcoord><ycoord>1290</ycoord><sprite>tank1</sprite><spawnzone>2</spawnzone></item><item><type>zone</type><xcoord>390</xcoord><ycoord>1050</ycoord><sprite>zone</sprite><spawnzone>2</spawnzone><width>302</width><height>72</height></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>120</xcoord><ycoord>1660</ycoord><sprite>gasstation</sprite><rotation>15</rotation></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>650</xcoord><ycoord>1680</ycoord><sprite>gasstation</sprite><rotation>-30</rotation></item><item><type>enemy</type><xcoord>510</xcoord><ycoord>510</ycoord><sprite>tank2</sprite><spawnzone>2</spawnzone></item><item><type>solid</type><xcoord>90</xcoord><ycoord>1890</ycoord><sprite>roadblock</sprite><rotation>-30</rotation></item><item><type>solid</type><xcoord>260</xcoord><ycoord>1840</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>660</xcoord><ycoord>1840</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>540</xcoord><ycoord>1750</ycoord><sprite>roadblock</sprite><rotation>-105</rotation></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>110</xcoord><ycoord>1080</ycoord><sprite>gasstation</sprite><rotation>-15</rotation></item><item><type>solid</type><xcoord>680</xcoord><ycoord>2080</ycoord><sprite>bush</sprite></item><item><type>solid</type><xcoord>540</xcoord><ycoord>2110</ycoord><sprite>bush</sprite><rotation>-30</rotation></item><item><type>solid</type><xcoord>440</xcoord><ycoord>2210</ycoord><sprite>bush</sprite><rotation>-60</rotation></item><item><type>solid</type><xcoord>210</xcoord><ycoord>1900</ycoord><sprite>obstacle</sprite></item><item><type>enemy</type><xcoord>630</xcoord><ycoord>2260</ycoord><sprite>tank2</sprite><spawntime>35</spawntime></item><item><type>enemy</type><xcoord>270</xcoord><ycoord>110</ycoord><sprite>tank2</sprite><spawntime>45</spawntime></item><item><type>enemy</type><xcoord>690</xcoord><ycoord>2250</ycoord><sprite>tank2</sprite><spawntime>55</spawntime></item><item><type>enemy</type><xcoord>210</xcoord><ycoord>2150</ycoord><sprite>tank2</sprite><spawntime>55</spawntime></item><item><type>crate</type><xcoord>80</xcoord><ycoord>2300</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>60</xcoord><ycoord>1770</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>650</xcoord><ycoord>800</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>500</xcoord><ycoord>1320</ycoord><sprite>crate_mines</sprite></item><item><type>crate</type><xcoord>480</xcoord><ycoord>1390</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>660</xcoord><ycoord>1050</ycoord><sprite>crate_missiles</sprite></item></body><edges><item y2=\"916\" x2=\"72\" y1=\"840\" x1=\"116\" /><item y2=\"840\" x2=\"116\" y1=\"798\" x1=\"-16\" /><item y2=\"2270\" x2=\"392\" y1=\"2296\" x1=\"446\" /><item y2=\"2296\" x2=\"446\" y1=\"2166\" x1=\"526\" /><item y2=\"2166\" x2=\"526\" y1=\"2114\" x1=\"612\" /><item y2=\"2114\" x2=\"612\" y1=\"2110\" x1=\"740\" /><item y2=\"2110\" x2=\"740\" y1=\"2058\" x1=\"746\" /><item y2=\"2056\" x2=\"746\" y1=\"2050\" x1=\"630\" /><item y2=\"2050\" x2=\"630\" y1=\"2108\" x1=\"490\" /><item y2=\"2110\" x2=\"490\" y1=\"2264\" x1=\"400\" /><item y2=\"1644\" x2=\"538\" y1=\"1650\" x1=\"492\" /><item y2=\"1650\" x2=\"492\" y1=\"1850\" x1=\"546\" /><item y2=\"1852\" x2=\"548\" y1=\"1864\" x1=\"854\" /><item y2=\"1810\" x2=\"876\" y1=\"1806\" x1=\"570\" /><item y2=\"1804\" x2=\"570\" y1=\"1646\" x1=\"534\" /><item y2=\"1980\" x2=\"-32\" y1=\"1850\" x1=\"202\" /><item y2=\"1850\" x2=\"202\" y1=\"1866\" x1=\"360\" /><item y2=\"1866\" x2=\"360\" y1=\"1816\" x1=\"362\" /><item y2=\"1816\" x2=\"362\" y1=\"1812\" x1=\"184\" /><item y2=\"1812\" x2=\"184\" y1=\"1932\" x1=\"-34\" /><item y2=\"896\" x2=\"578\" y1=\"1082\" x1=\"454\" /><item y2=\"1082\" x2=\"454\" y1=\"1104\" x1=\"500\" /><item y2=\"1104\" x2=\"500\" y1=\"942\" x1=\"598\" /><item y2=\"942\" x2=\"598\" y1=\"950\" x1=\"838\" /><item y2=\"904\" x2=\"836\" y1=\"900\" x1=\"576\" /><item y2=\"952\" x2=\"-20\" y1=\"952\" x1=\"140\" /><item y2=\"952\" x2=\"140\" y1=\"1008\" x1=\"156\" /><item y2=\"1008\" x2=\"156\" y1=\"1028\" x1=\"350\" /><item y2=\"1024\" x2=\"350\" y1=\"988\" x1=\"346\" /><item y2=\"988\" x2=\"346\" y1=\"980\" x1=\"182\" /><item y2=\"980\" x2=\"182\" y1=\"920\" x1=\"172\" /><item y2=\"920\" x2=\"174\" y1=\"916\" x1=\"-34\" /><item y2=\"662\" x2=\"220\" y1=\"712\" x1=\"220\" /><item y2=\"712\" x2=\"220\" y1=\"716\" x1=\"800\" /><item y2=\"664\" x2=\"924\" y1=\"664\" x1=\"854\" /><item y2=\"664\" x2=\"850\" y1=\"662\" x1=\"224\" /><item y2=\"34\" x2=\"608\" y1=\"84\" x1=\"604\" /><item y2=\"84\" x2=\"604\" y1=\"88\" x1=\"748\" /><item y2=\"88\" x2=\"748\" y1=\"32\" x1=\"746\" /><item y2=\"32\" x2=\"746\" y1=\"32\" x1=\"608\" /><item y2=\"352\" x2=\"-16\" y1=\"348\" x1=\"484\" /><item y2=\"348\" x2=\"484\" y1=\"424\" x1=\"528\" /><item y2=\"424\" x2=\"528\" y1=\"374\" x1=\"616\" /><item y2=\"374\" x2=\"616\" y1=\"334\" x1=\"624\" /><item y2=\"332\" x2=\"620\" y1=\"264\" x1=\"536\" /><item y2=\"262\" x2=\"532\" y1=\"262\" x1=\"478\" /><item y2=\"264\" x2=\"472\" y1=\"314\" x1=\"470\" /><item y2=\"318\" x2=\"466\" y1=\"314\" x1=\"-36\" /></edges></level>");
all_levels.push("<level><header><title>Piping Hot</title><width>600</width><height>1400</height><time>60</time><spawnRotation>165</spawnRotation></header><body><item><type>crate</type><xcoord>190</xcoord><ycoord>430</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>190</xcoord><ycoord>280</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>70</xcoord><ycoord>460</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>130</xcoord><ycoord>460</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>130</xcoord><ycoord>180</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>130</xcoord><ycoord>250</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>130</xcoord><ycoord>390</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>70</xcoord><ycoord>390</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>130</xcoord><ycoord>320</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>70</xcoord><ycoord>320</ycoord><sprite>crate_missiles</sprite></item><item><type>enemy</type><xcoord>110</xcoord><ycoord>290</ycoord><sprite>tank2</sprite><spawntime>45</spawntime></item><item><type>enemy</type><xcoord>420</xcoord><ycoord>530</ycoord><sprite>tank2</sprite><spawntime>35</spawntime></item><item><type>enemy</type><xcoord>430</xcoord><ycoord>90</ycoord><sprite>tank2</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>270</xcoord><ycoord>70</ycoord><sprite>tank2</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>100</xcoord><ycoord>80</ycoord><sprite>tank2</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>70</xcoord><ycoord>910</ycoord><sprite>tank2</sprite><spawntime>30</spawntime></item><item><type>enemy</type><xcoord>410</xcoord><ycoord>890</ycoord><sprite>tank2</sprite><spawntime>30</spawntime></item><item><type>enemy</type><xcoord>450</xcoord><ycoord>960</ycoord><sprite>tank2</sprite><spawntime>30</spawntime></item><item><type>enemy</type><xcoord>110</xcoord><ycoord>540</ycoord><sprite>tank2</sprite><spawntime>10</spawntime></item><item><type>enemy</type><xcoord>390</xcoord><ycoord>710</ycoord><sprite>tank2</sprite><spawntime>5</spawntime></item><item><type>enemy</type><xcoord>430</xcoord><ycoord>440</ycoord><sprite>tank2</sprite><spawntime>10</spawntime></item><item><type>enemy</type><xcoord>100</xcoord><ycoord>700</ycoord><sprite>tank2</sprite><spawntime>5</spawntime></item><item><type>enemy</type><xcoord>110</xcoord><ycoord>370</ycoord><sprite>tank2</sprite><spawntime>5</spawntime></item><item><type>enemy</type><xcoord>430</xcoord><ycoord>690</ycoord><sprite>tank2</sprite></item><item><type>enemy</type><xcoord>440</xcoord><ycoord>270</ycoord><sprite>tank2</sprite></item><item><type>solid</type><xcoord>270</xcoord><ycoord>700</ycoord><sprite>obstacle</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>270</xcoord><ycoord>500</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>270</xcoord><ycoord>290</ycoord><sprite>obstacle</sprite></item><item><type>spawnPoint</type><xcoord>50</xcoord><ycoord>210</ycoord><sprite>player</sprite><rotation>165</rotation></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>260</xcoord><ycoord>810</ycoord><sprite>gasstation</sprite><rotation>-45</rotation></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>270</xcoord><ycoord>610</ycoord><sprite>gasstation</sprite><rotation>15</rotation></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>270</xcoord><ycoord>390</ycoord><sprite>gasstation</sprite><rotation>-135</rotation></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>270</xcoord><ycoord>190</ycoord><sprite>gasstation</sprite><rotation>15</rotation></item><item><type>solid</type><xcoord>270</xcoord><ycoord>900</ycoord><sprite>obstacle</sprite><rotation>-15</rotation></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>260</xcoord><ycoord>980</ycoord><sprite>gasstation</sprite><rotation>15</rotation></item><item><type>solid</type><xcoord>260</xcoord><ycoord>1100</ycoord><sprite>obstacle</sprite></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>260</xcoord><ycoord>1190</ycoord><sprite>gasstation</sprite><rotation>-15</rotation></item><item><type>enemy</type><xcoord>530</xcoord><ycoord>1110</ycoord><sprite>tank2</sprite></item><item><type>enemy</type><xcoord>460</xcoord><ycoord>1310</ycoord><sprite>tank2</sprite><spawntime>50</spawntime></item><item><type>enemy</type><xcoord>80</xcoord><ycoord>1160</ycoord><sprite>tank2</sprite><spawntime>10</spawntime></item><item><type>enemy</type><xcoord>160</xcoord><ycoord>1300</ycoord><sprite>tank2</sprite><spawntime>20</spawntime></item></body><edges><item y2=\"1064\" x2=\"222\" y1=\"1128\" x1=\"232\" /><item y2=\"1128\" x2=\"232\" y1=\"1144\" x1=\"286\" /><item y2=\"1144\" x2=\"286\" y1=\"1078\" x1=\"302\" /><item y2=\"1078\" x2=\"302\" y1=\"1066\" x1=\"224\" /><item y2=\"884\" x2=\"238\" y1=\"926\" x1=\"244\" /><item y2=\"926\" x2=\"244\" y1=\"938\" x1=\"278\" /><item y2=\"938\" x2=\"278\" y1=\"910\" x1=\"302\" /><item y2=\"908\" x2=\"302\" y1=\"874\" x1=\"290\" /><item y2=\"874\" x2=\"288\" y1=\"880\" x1=\"244\" /><item y2=\"676\" x2=\"232\" y1=\"736\" x1=\"234\" /><item y2=\"736\" x2=\"236\" y1=\"736\" x1=\"304\" /><item y2=\"736\" x2=\"304\" y1=\"668\" x1=\"302\" /><item y2=\"668\" x2=\"298\" y1=\"668\" x1=\"230\" /><item y2=\"466\" x2=\"234\" y1=\"536\" x1=\"232\" /><item y2=\"538\" x2=\"232\" y1=\"536\" x1=\"300\" /><item y2=\"532\" x2=\"304\" y1=\"468\" x1=\"304\" /><item y2=\"468\" x2=\"304\" y1=\"468\" x1=\"230\" /><item y2=\"266\" x2=\"228\" y1=\"338\" x1=\"228\" /><item y2=\"338\" x2=\"228\" y1=\"336\" x1=\"304\" /><item y2=\"336\" x2=\"304\" y1=\"270\" x1=\"302\" /><item y2=\"270\" x2=\"302\" y1=\"270\" x1=\"234\" /></edges></level>");
all_levels.push("<level><header><title>Deadly Waves</title><width>1600</width><height>1600</height><time>100</time><spawnRotation>-150</spawnRotation></header><body><item><type>enemy</type><xcoord>1130</xcoord><ycoord>610</ycoord><sprite>tank1</sprite><spawntime>10</spawntime></item><item><type>enemy</type><xcoord>1040</xcoord><ycoord>330</ycoord><sprite>tank1</sprite><spawntime>15</spawntime></item><item><type>solid</type><xcoord>350</xcoord><ycoord>80</ycoord><sprite>roadblock</sprite><rotation>-60</rotation></item><item><type>solid</type><xcoord>600</xcoord><ycoord>170</ycoord><sprite>roadblock</sprite><rotation>-60</rotation></item><item><type>solid</type><xcoord>280</xcoord><ycoord>230</ycoord><sprite>roadblock</sprite><rotation>105</rotation></item><item><type>solid</type><xcoord>520</xcoord><ycoord>310</ycoord><sprite>roadblock</sprite><rotation>105</rotation></item><item><type>solid</type><xcoord>260</xcoord><ycoord>420</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>500</xcoord><ycoord>500</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>730</xcoord><ycoord>50</ycoord><sprite>roadblock</sprite><rotation>-15</rotation></item><item><type>spawnPoint</type><xcoord>500</xcoord><ycoord>80</ycoord><sprite>player</sprite><rotation>-150</rotation></item><item><type>enemy</type><xcoord>380</xcoord><ycoord>460</ycoord><sprite>tank1</sprite></item><item><type>enemy</type><xcoord>380</xcoord><ycoord>200</ycoord><sprite>tank2</sprite><spawntime>5</spawntime></item><item><type>enemy</type><xcoord>440</xcoord><ycoord>190</ycoord><sprite>tank2</sprite><spawntime>50</spawntime></item><item><type>enemy</type><xcoord>490</xcoord><ycoord>200</ycoord><sprite>tank2</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>420</xcoord><ycoord>140</ycoord><sprite>tank2</sprite><spawntime>45</spawntime></item><item><type>solid</type><xcoord>220</xcoord><ycoord>580</ycoord><sprite>roadblock</sprite><rotation>-60</rotation></item><item><type>solid</type><xcoord>80</xcoord><ycoord>630</ycoord><sprite>roadblock</sprite></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>520</xcoord><ycoord>950</ycoord><sprite>gasstation</sprite></item><item><type>solid</type><xcoord>90</xcoord><ycoord>1010</ycoord><sprite>roadblock</sprite><rotation>-15</rotation></item><item><type>solid</type><xcoord>280</xcoord><ycoord>980</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>460</xcoord><ycoord>1010</ycoord><sprite>roadblock</sprite><rotation>15</rotation></item><item><type>solid</type><xcoord>610</xcoord><ycoord>1100</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>760</xcoord><ycoord>1200</ycoord><sprite>roadblock</sprite><rotation>15</rotation></item><item><type>solid</type><xcoord>1120</xcoord><ycoord>1200</ycoord><sprite>roadblock</sprite><rotation>-30</rotation></item><item><type>solid</type><xcoord>1240</xcoord><ycoord>1060</ycoord><sprite>roadblock</sprite><rotation>-75</rotation></item><item><type>solid</type><xcoord>1230</xcoord><ycoord>870</ycoord><sprite>roadblock</sprite><rotation>60</rotation></item><item><type>solid</type><xcoord>1100</xcoord><ycoord>730</ycoord><sprite>roadblock</sprite><rotation>30</rotation></item><item><type>solid</type><xcoord>1000</xcoord><ycoord>590</ycoord><sprite>roadblock</sprite><rotation>75</rotation></item><item><type>solid</type><xcoord>1300</xcoord><ycoord>560</ycoord><sprite>roadblock</sprite><rotation>75</rotation></item><item><type>solid</type><xcoord>1360</xcoord><ycoord>510</ycoord><sprite>roadblock</sprite><rotation>15</rotation></item><item><type>solid</type><xcoord>1390</xcoord><ycoord>620</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>340</xcoord><ycoord>1320</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>320</xcoord><ycoord>1430</ycoord><sprite>roadblock</sprite><rotation>-15</rotation></item><item><type>solid</type><xcoord>240</xcoord><ycoord>1350</ycoord><sprite>roadblock</sprite><rotation>105</rotation></item><item><type>solid</type><xcoord>1300</xcoord><ycoord>1550</ycoord><sprite>roadblock</sprite><rotation>-15</rotation></item><item><type>solid</type><xcoord>1460</xcoord><ycoord>1460</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>1560</xcoord><ycoord>1310</ycoord><sprite>roadblock</sprite><rotation>-75</rotation></item><item><type>solid</type><xcoord>1290</xcoord><ycoord>80</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>1390</xcoord><ycoord>100</ycoord><sprite>roadblock</sprite><rotation>-75</rotation></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>990</xcoord><ycoord>70</ycoord><sprite>gasstation</sprite></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>1090</xcoord><ycoord>1530</ycoord><sprite>gasstation</sprite></item><item><type>crate</type><xcoord>1480</xcoord><ycoord>1320</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>1520</xcoord><ycoord>1280</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>1450</xcoord><ycoord>30</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>1200</xcoord><ycoord>970</ycoord><sprite>crate_mines</sprite></item><item><type>crate</type><xcoord>40</xcoord><ycoord>1080</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>130</xcoord><ycoord>1070</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>50</xcoord><ycoord>1540</ycoord><sprite>crate_mines</sprite></item><item><type>crate</type><xcoord>1160</xcoord><ycoord>1110</ycoord><sprite>crate_mines</sprite></item><item><type>crate</type><xcoord>1140</xcoord><ycoord>60</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>30</xcoord><ycoord>680</ycoord><sprite>crate_health</sprite></item><item><type>enemy</type><xcoord>280</xcoord><ycoord>820</ycoord><sprite>tank2</sprite><spawntime>10</spawntime></item><item><type>enemy</type><xcoord>70</xcoord><ycoord>1300</ycoord><sprite>tank2</sprite><spawntime>10</spawntime></item><item><type>enemy</type><xcoord>620</xcoord><ycoord>1320</ycoord><sprite>tank2</sprite><spawntime>20</spawntime></item><item><type>enemy</type><xcoord>1530</xcoord><ycoord>1030</ycoord><sprite>tank2</sprite><spawntime>20</spawntime></item><item><type>enemy</type><xcoord>1210</xcoord><ycoord>1360</ycoord><sprite>tank2</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>1400</xcoord><ycoord>1230</ycoord><sprite>tank1</sprite><spawntime>30</spawntime></item><item><type>enemy</type><xcoord>1410</xcoord><ycoord>290</ycoord><sprite>tank1</sprite><spawntime>30</spawntime></item><item><type>enemy</type><xcoord>620</xcoord><ycoord>560</ycoord><sprite>tank2</sprite><spawntime>50</spawntime></item><item><type>enemy</type><xcoord>790</xcoord><ycoord>150</ycoord><sprite>tank2</sprite><spawntime>50</spawntime></item><item><type>enemy</type><xcoord>550</xcoord><ycoord>1340</ycoord><sprite>tank2</sprite><spawntime>60</spawntime></item><item><type>enemy</type><xcoord>450</xcoord><ycoord>1180</ycoord><sprite>tank2</sprite><spawntime>65</spawntime></item><item><type>enemy</type><xcoord>1020</xcoord><ycoord>1030</ycoord><sprite>tank1</sprite><spawntime>70</spawntime></item><item><type>enemy</type><xcoord>780</xcoord><ycoord>930</ycoord><sprite>tank1</sprite><spawntime>80</spawntime></item><item><type>enemy</type><xcoord>590</xcoord><ycoord>1550</ycoord><sprite>tank1</sprite><spawntime>75</spawntime></item><item><type>enemy</type><xcoord>1450</xcoord><ycoord>970</ycoord><sprite>tank1</sprite><spawntime>85</spawntime></item><item><type>enemy</type><xcoord>1180</xcoord><ycoord>930</ycoord><sprite>tank2</sprite><spawntime>90</spawntime></item><item><type>oPoint</type><xcoord>960</xcoord><ycoord>1230</ycoord><sprite>oPoint</sprite></item></body><edges><item y2=\"1234\" x2=\"266\" y1=\"1470\" x1=\"202\" /><item y2=\"1470\" x2=\"204\" y1=\"1396\" x1=\"444\" /><item y2=\"1396\" x2=\"444\" y1=\"1234\" x1=\"270\" /><item y2=\"1154\" x2=\"1610\" y1=\"1382\" x1=\"1514\" /><item y2=\"1384\" x2=\"1514\" y1=\"1506\" x1=\"1360\" /><item y2=\"1506\" x2=\"1360\" y1=\"1594\" x1=\"1150\" /><item y2=\"-28\" x2=\"1184\" y1=\"194\" x1=\"1378\" /><item y2=\"194\" x2=\"1378\" y1=\"0\" x1=\"1438\" /><item y2=\"458\" x2=\"1270\" y1=\"678\" x1=\"1330\" /><item y2=\"678\" x2=\"1336\" y1=\"544\" x1=\"1474\" /><item y2=\"544\" x2=\"1474\" y1=\"460\" x1=\"1274\" /><item y2=\"1260\" x2=\"1054\" y1=\"1160\" x1=\"1244\" /><item y2=\"1160\" x2=\"1244\" y1=\"940\" x1=\"1306\" /><item y2=\"940\" x2=\"1306\" y1=\"746\" x1=\"1196\" /><item y2=\"746\" x2=\"1196\" y1=\"668\" x1=\"1044\" /><item y2=\"668\" x2=\"1044\" y1=\"506\" x1=\"1000\" /><item y2=\"506\" x2=\"998\" y1=\"510\" x1=\"960\" /><item y2=\"510\" x2=\"960\" y1=\"692\" x1=\"1008\" /><item y2=\"692\" x2=\"1008\" y1=\"784\" x1=\"1168\" /><item y2=\"786\" x2=\"1168\" y1=\"946\" x1=\"1260\" /><item y2=\"946\" x2=\"1260\" y1=\"1142\" x1=\"1184\" /><item y2=\"1142\" x2=\"1184\" y1=\"1216\" x1=\"1014\" /><item y2=\"1216\" x2=\"1014\" y1=\"1256\" x1=\"1048\" /><item y2=\"1070\" x2=\"-12\" y1=\"1000\" x1=\"196\" /><item y2=\"1000\" x2=\"196\" y1=\"990\" x1=\"380\" /><item y2=\"990\" x2=\"380\" y1=\"1056\" x1=\"534\" /><item y2=\"1056\" x2=\"534\" y1=\"1182\" x1=\"666\" /><item y2=\"1184\" x2=\"666\" y1=\"1252\" x1=\"840\" /><item y2=\"1252\" x2=\"840\" y1=\"1212\" x1=\"856\" /><item y2=\"1212\" x2=\"856\" y1=\"1156\" x1=\"698\" /><item y2=\"1156\" x2=\"698\" y1=\"1022\" x1=\"558\" /><item y2=\"1022\" x2=\"558\" y1=\"950\" x1=\"388\" /><item y2=\"950\" x2=\"388\" y1=\"958\" x1=\"190\" /><item y2=\"958\" x2=\"190\" y1=\"1016\" x1=\"0\" /><item y2=\"596\" x2=\"472\" y1=\"596\" x1=\"514\" /><item y2=\"596\" x2=\"514\" y1=\"404\" x1=\"522\" /><item y2=\"404\" x2=\"522\" y1=\"248\" x1=\"568\" /><item y2=\"248\" x2=\"568\" y1=\"82\" x1=\"694\" /><item y2=\"82\" x2=\"694\" y1=\"-4\" x1=\"892\" /><item y2=\"-24\" x2=\"802\" y1=\"58\" x1=\"642\" /><item y2=\"58\" x2=\"642\" y1=\"212\" x1=\"530\" /><item y2=\"212\" x2=\"530\" y1=\"366\" x1=\"480\" /><item y2=\"366\" x2=\"480\" y1=\"586\" x1=\"468\" /><item y2=\"646\" x2=\"-16\" y1=\"652\" x1=\"192\" /><item y2=\"652\" x2=\"192\" y1=\"512\" x1=\"284\" /><item y2=\"512\" x2=\"284\" y1=\"348\" x1=\"276\" /><item y2=\"348\" x2=\"276\" y1=\"176\" x1=\"316\" /><item y2=\"176\" x2=\"316\" y1=\"-8\" x1=\"434\" /><item y2=\"2086\" x2=\"1858\" y1=\"2086\" x1=\"1858\" /></edges></level>");
all_levels.push("<level><header><title>Eye Of The Storm</title><width>2000</width><height>2000</height><time>120</time><spawnRotation>-75</spawnRotation></header><body><item><type>crate</type><xcoord>1130</xcoord><ycoord>1350</ycoord><sprite>crate_health</sprite></item><item><type>enemy</type><xcoord>860</xcoord><ycoord>150</ycoord><sprite>tank1</sprite><spawnzone>3</spawnzone></item><item><type>zone</type><xcoord>1170</xcoord><ycoord>140</ycoord><sprite>zone</sprite><spawnzone>3</spawnzone><width>225.05</width><height>235</height></item><item><type>crate</type><xcoord>1220</xcoord><ycoord>20</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>1290</xcoord><ycoord>20</ycoord><sprite>crate_health</sprite></item><item><type>enemy</type><xcoord>1860</xcoord><ycoord>830</ycoord><sprite>tank2</sprite><spawntime>80</spawntime></item><item><type>enemy</type><xcoord>1700</xcoord><ycoord>840</ycoord><sprite>tank2</sprite><spawntime>70</spawntime></item><item><type>crate</type><xcoord>1040</xcoord><ycoord>550</ycoord><sprite>crate_mines</sprite></item><item><type>crate</type><xcoord>1040</xcoord><ycoord>790</ycoord><sprite>crate_mines</sprite></item><item><type>enemy</type><xcoord>150</xcoord><ycoord>1000</ycoord><sprite>tank2</sprite><spawntime>80</spawntime></item><item><type>enemy</type><xcoord>400</xcoord><ycoord>500</ycoord><sprite>tank2</sprite><spawntime>80</spawntime></item><item><type>enemy</type><xcoord>450</xcoord><ycoord>690</ycoord><sprite>tank2</sprite><spawntime>65</spawntime></item><item><type>enemy</type><xcoord>470</xcoord><ycoord>520</ycoord><sprite>tank2</sprite><spawntime>70</spawntime></item><item><type>enemy</type><xcoord>370</xcoord><ycoord>650</ycoord><sprite>tank2</sprite><spawntime>90</spawntime></item><item><type>solid</type><xcoord>90</xcoord><ycoord>540</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>520</xcoord><ycoord>20</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>370</xcoord><ycoord>50</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>270</xcoord><ycoord>70</ycoord><sprite>bush</sprite></item><item><type>solid</type><xcoord>430</xcoord><ycoord>30</ycoord><sprite>obstacle</sprite><rotation>30</rotation></item><item><type>solid</type><xcoord>400</xcoord><ycoord>110</ycoord><sprite>bush</sprite></item><item><type>solid</type><xcoord>80</xcoord><ycoord>470</ycoord><sprite>bush</sprite></item><item><type>solid</type><xcoord>320</xcoord><ycoord>130</ycoord><sprite>bush</sprite><rotation>30</rotation></item><item><type>solid</type><xcoord>200</xcoord><ycoord>450</ycoord><sprite>bush</sprite><rotation>-15</rotation></item><item><type>crate</type><xcoord>40</xcoord><ycoord>610</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>550</xcoord><ycoord>190</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>550</xcoord><ycoord>100</ycoord><sprite>crate_health</sprite></item><item><type>solid</type><xcoord>670</xcoord><ycoord>1400</ycoord><sprite>obstacle</sprite><rotation>-30</rotation></item><item><type>solid</type><xcoord>630</xcoord><ycoord>1430</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>730</xcoord><ycoord>1200</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>720</xcoord><ycoord>970</ycoord><sprite>obstacle</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>640</xcoord><ycoord>800</ycoord><sprite>obstacle</sprite><rotation>-15</rotation></item><item><type>solid</type><xcoord>660</xcoord><ycoord>750</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>650</xcoord><ycoord>90</ycoord><sprite>roadblock</sprite><rotation>90</rotation></item><item><type>solid</type><xcoord>650</xcoord><ycoord>270</ycoord><sprite>roadblock</sprite><rotation>90</rotation></item><item><type>solid</type><xcoord>650</xcoord><ycoord>460</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>640</xcoord><ycoord>630</ycoord><sprite>roadblock</sprite><rotation>90</rotation></item><item><type>enemy</type><xcoord>270</xcoord><ycoord>1250</ycoord><sprite>tank2</sprite><spawntime>55</spawntime></item><item><type>enemy</type><xcoord>930</xcoord><ycoord>1290</ycoord><sprite>tank2</sprite><spawntime>50</spawntime></item><item><type>enemy</type><xcoord>820</xcoord><ycoord>450</ycoord><sprite>tank2</sprite><spawntime>50</spawntime></item><item><type>enemy</type><xcoord>820</xcoord><ycoord>680</ycoord><sprite>tank2</sprite><spawntime>50</spawntime></item><item><type>enemy</type><xcoord>840</xcoord><ycoord>920</ycoord><sprite>tank2</sprite><spawntime>50</spawntime></item><item><type>enemy</type><xcoord>1480</xcoord><ycoord>690</ycoord><sprite>tank1</sprite><spawntime>15</spawntime></item><item><type>solid</type><xcoord>1810</xcoord><ycoord>310</ycoord><sprite>bush</sprite><rotation>30</rotation></item><item><type>solid</type><xcoord>1820</xcoord><ycoord>290</ycoord><sprite>bush</sprite></item><item><type>zone</type><xcoord>1890</xcoord><ycoord>970</ycoord><sprite>zone</sprite><spawnzone>2</spawnzone><width>209.05</width><height>333</height></item><item><type>enemy</type><xcoord>1920</xcoord><ycoord>690</ycoord><sprite>tank2</sprite><spawnzone>2</spawnzone></item><item><type>enemy</type><xcoord>1560</xcoord><ycoord>340</ycoord><sprite>tank2</sprite><spawnzone>1</spawnzone></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>1720</xcoord><ycoord>520</ycoord><sprite>gasstation</sprite><rotation>-15</rotation></item><item><type>crate</type><xcoord>1330</xcoord><ycoord>1120</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>1310</xcoord><ycoord>1020</ycoord><sprite>crate_health</sprite></item><item><type>zone</type><xcoord>1490</xcoord><ycoord>1200</ycoord><sprite>zone</sprite><spawnzone>1</spawnzone><width>193.1</width><height>466</height></item><item><type>enemy</type><xcoord>1820</xcoord><ycoord>1190</ycoord><sprite>tank1</sprite><spawnzone>1</spawnzone></item><item><type>solid</type><xcoord>1710</xcoord><ycoord>970</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>1530</xcoord><ycoord>960</ycoord><sprite>roadblock</sprite><spawnzone>1</spawnzone></item><item><type>solid</type><xcoord>1350</xcoord><ycoord>960</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>80</xcoord><ycoord>1460</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>250</xcoord><ycoord>1460</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>430</xcoord><ycoord>1460</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>600</xcoord><ycoord>1470</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>780</xcoord><ycoord>1470</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>960</xcoord><ycoord>1470</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>1140</xcoord><ycoord>1470</ycoord><sprite>roadblock</sprite></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>1050</xcoord><ycoord>900</ycoord><sprite>gasstation</sprite></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>1040</xcoord><ycoord>440</ycoord><sprite>gasstation</sprite></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>1040</xcoord><ycoord>660</ycoord><sprite>gasstation</sprite></item><item><type>solid</type><xcoord>1260</xcoord><ycoord>320</ycoord><sprite>roadblock</sprite><rotation>90</rotation></item><item><type>solid</type><xcoord>1260</xcoord><ycoord>510</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>1260</xcoord><ycoord>670</ycoord><sprite>roadblock</sprite><rotation>90</rotation></item><item><type>solid</type><xcoord>1260</xcoord><ycoord>860</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>1250</xcoord><ycoord>1020</ycoord><sprite>roadblock</sprite><rotation>90</rotation></item><item><type>solid</type><xcoord>1250</xcoord><ycoord>1210</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>1240</xcoord><ycoord>1370</ycoord><sprite>roadblock</sprite><rotation>90</rotation></item><item><type>enemy</type><xcoord>1810</xcoord><ycoord>1580</ycoord><sprite>tank1</sprite><spawntime>1</spawntime></item><item><type>solid</type><xcoord>1930</xcoord><ycoord>1790</ycoord><sprite>bush</sprite><rotation>165</rotation></item><item><type>solid</type><xcoord>1940</xcoord><ycoord>1720</ycoord><sprite>bush</sprite></item><item><type>solid</type><xcoord>1860</xcoord><ycoord>1760</ycoord><sprite>bush</sprite><rotation>-15</rotation></item><item><type>solid</type><xcoord>1730</xcoord><ycoord>1740</ycoord><sprite>bush</sprite><rotation>30</rotation></item><item><type>solid</type><xcoord>1810</xcoord><ycoord>1720</ycoord><sprite>bush</sprite></item><item><type>solid</type><xcoord>1570</xcoord><ycoord>1930</ycoord><sprite>bush</sprite><rotation>30</rotation></item><item><type>solid</type><xcoord>1930</xcoord><ycoord>1470</ycoord><sprite>bush</sprite><rotation>15</rotation></item><item><type>enemy</type><xcoord>1380</xcoord><ycoord>1520</ycoord><sprite>tank1</sprite><spawntime>1</spawntime></item><item><type>enemy</type><xcoord>1720</xcoord><ycoord>1610</ycoord><sprite>tank1</sprite></item><item><type>solid</type><xcoord>1450</xcoord><ycoord>1880</ycoord><sprite>roadblock</sprite><rotation>60</rotation></item><item><type>solid</type><xcoord>1360</xcoord><ycoord>1710</ycoord><sprite>roadblock</sprite><rotation>60</rotation></item><item><type>solid</type><xcoord>1280</xcoord><ycoord>1560</ycoord><sprite>roadblock</sprite><rotation>-120</rotation></item><item><type>solid</type><xcoord>1500</xcoord><ycoord>1420</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>1690</xcoord><ycoord>1420</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>1890</xcoord><ycoord>1420</ycoord><sprite>roadblock</sprite></item><item><type>spawnPoint</type><xcoord>1890</xcoord><ycoord>1920</ycoord><sprite>player</sprite><rotation>-75</rotation></item><item><type>oPoint</type><xcoord>1250</xcoord><ycoord>110</ycoord><sprite>oPoint</sprite></item><item><type>oPoint</type><xcoord>530</xcoord><ycoord>1110</ycoord><sprite>oPoint</sprite></item><item><type>crate</type><xcoord>1610</xcoord><ycoord>560</ycoord><sprite>crate_missiles</sprite></item></body><edges><item y2=\"938\" x2=\"690\" y1=\"988\" x1=\"682\" /><item y2=\"988\" x2=\"684\" y1=\"1008\" x1=\"736\" /><item y2=\"1008\" x2=\"736\" y1=\"948\" x1=\"752\" /><item y2=\"948\" x2=\"752\" y1=\"936\" x1=\"690\" /><item y2=\"1164\" x2=\"734\" y1=\"1190\" x1=\"694\" /><item y2=\"1190\" x2=\"692\" y1=\"1238\" x1=\"722\" /><item y2=\"1238\" x2=\"722\" y1=\"1206\" x1=\"774\" /><item y2=\"1206\" x2=\"774\" y1=\"1166\" x1=\"734\" /><item y2=\"1694\" x2=\"1656\" y1=\"1734\" x1=\"1652\" /><item y2=\"1734\" x2=\"1652\" y1=\"1808\" x1=\"1764\" /><item y2=\"1808\" x2=\"1764\" y1=\"1812\" x1=\"1946\" /><item y2=\"1812\" x2=\"1946\" y1=\"1760\" x1=\"2024\" /><item y2=\"1696\" x2=\"2008\" y1=\"1694\" x1=\"1656\" /><item y2=\"1384\" x2=\"1408\" y1=\"1444\" x1=\"1408\" /><item y2=\"1444\" x2=\"1408\" y1=\"1454\" x1=\"1830\" /><item y2=\"1454\" x2=\"1830\" y1=\"1548\" x1=\"2012\" /><item y2=\"1392\" x2=\"2012\" y1=\"1390\" x1=\"1410\" /><item y2=\"262\" x2=\"1746\" y1=\"304\" x1=\"1736\" /><item y2=\"304\" x2=\"1736\" y1=\"378\" x1=\"1848\" /><item y2=\"378\" x2=\"1848\" y1=\"264\" x1=\"1892\" /><item y2=\"264\" x2=\"1892\" y1=\"268\" x1=\"1744\" /><item y2=\"52\" x2=\"192\" y1=\"86\" x1=\"190\" /><item y2=\"86\" x2=\"190\" y1=\"192\" x1=\"350\" /><item y2=\"192\" x2=\"350\" y1=\"138\" x1=\"472\" /><item y2=\"138\" x2=\"472\" y1=\"76\" x1=\"456\" /><item y2=\"76\" x2=\"456\" y1=\"36\" x1=\"560\" /><item y2=\"36\" x2=\"560\" y1=\"6\" x1=\"566\" /><item y2=\"6\" x2=\"566\" y1=\"-6\" x1=\"450\" /><item y2=\"-8\" x2=\"448\" y1=\"46\" x1=\"338\" /><item y2=\"46\" x2=\"338\" y1=\"56\" x1=\"194\" /><item y2=\"558\" x2=\"-6\" y1=\"558\" x1=\"198\" /><item y2=\"558\" x2=\"198\" y1=\"504\" x1=\"196\" /><item y2=\"504\" x2=\"196\" y1=\"460\" x1=\"272\" /><item y2=\"454\" x2=\"266\" y1=\"406\" x1=\"258\" /><item y2=\"410\" x2=\"256\" y1=\"450\" x1=\"126\" /><item y2=\"450\" x2=\"126\" y1=\"444\" x1=\"-6\" /><item y2=\"824\" x2=\"616\" y1=\"832\" x1=\"664\" /><item y2=\"832\" x2=\"664\" y1=\"740\" x1=\"696\" /><item y2=\"740\" x2=\"696\" y1=\"716\" x1=\"672\" /><item y2=\"716\" x2=\"672\" y1=\"-12\" x1=\"682\" /><item y2=\"-20\" x2=\"628\" y1=\"820\" x1=\"612\" /><item y2=\"234\" x2=\"1288\" y1=\"228\" x1=\"1234\" /><item y2=\"228\" x2=\"1234\" y1=\"940\" x1=\"1218\" /><item y2=\"940\" x2=\"1218\" y1=\"1428\" x1=\"1186\" /><item y2=\"1434\" x2=\"1200\" y1=\"1434\" x1=\"710\" /><item y2=\"1434\" x2=\"710\" y1=\"1392\" x1=\"706\" /><item y2=\"1392\" x2=\"706\" y1=\"1362\" x1=\"652\" /><item y2=\"1362\" x2=\"652\" y1=\"1432\" x1=\"588\" /><item y2=\"1432\" x2=\"588\" y1=\"1428\" x1=\"-12\" /><item y2=\"1490\" x2=\"-10\" y1=\"1492\" x1=\"1212\" /><item y2=\"1488\" x2=\"1208\" y1=\"2012\" x1=\"1496\" /><item y2=\"2010\" x2=\"1774\" y1=\"1866\" x1=\"1474\" /><item y2=\"1866\" x2=\"1474\" y1=\"1466\" x1=\"1250\" /><item y2=\"1466\" x2=\"1254\" y1=\"982\" x1=\"1272\" /><item y2=\"978\" x2=\"1274\" y1=\"990\" x1=\"1812\" /><item y2=\"990\" x2=\"1812\" y1=\"948\" x1=\"1812\" /><item y2=\"948\" x2=\"1812\" y1=\"930\" x1=\"1274\" /><item y2=\"926\" x2=\"1276\" y1=\"236\" x1=\"1286\" /></edges></level>");
all_levels.push("<level><header><title>Red Zone</title><width>1200</width><height>2000</height><time>95</time><spawnRotation>60</spawnRotation></header><body><item><type>solid</type><xcoord>900</xcoord><ycoord>1440</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>720</xcoord><ycoord>1440</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>540</xcoord><ycoord>1410</ycoord><sprite>roadblock</sprite><rotation>15</rotation></item><item><type>solid</type><xcoord>360</xcoord><ycoord>1400</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>240</xcoord><ycoord>1440</ycoord><sprite>roadblock</sprite><rotation>-15</rotation></item><item><type>solid</type><xcoord>70</xcoord><ycoord>1410</ycoord><sprite>roadblock</sprite><rotation>15</rotation></item><item><type>spawnPoint</type><xcoord>150</xcoord><ycoord>1850</ycoord><sprite>player</sprite><rotation>60</rotation></item><item><type>enemy</type><xcoord>930</xcoord><ycoord>1610</ycoord><sprite>tank1</sprite></item><item><type>enemy</type><xcoord>930</xcoord><ycoord>1850</ycoord><sprite>tank1</sprite></item><item><type>enemy</type><xcoord>1070</xcoord><ycoord>1730</ycoord><sprite>tank1</sprite></item><item><type>zone</type><xcoord>1090</xcoord><ycoord>1470</ycoord><sprite>zone</sprite><spawnzone>1</spawnzone><width>276.9</width><height>122</height></item><item><type>enemy</type><xcoord>300</xcoord><ycoord>1730</ycoord><sprite>tank1</sprite><spawnzone>1</spawnzone></item><item><type>enemy</type><xcoord>310</xcoord><ycoord>1810</ycoord><sprite>tank1</sprite><spawnzone>1</spawnzone></item><item><type>solid</type><xcoord>980</xcoord><ycoord>1340</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>930</xcoord><ycoord>1180</ycoord><sprite>roadblock</sprite><rotation>-135</rotation></item><item><type>solid</type><xcoord>1140</xcoord><ycoord>1110</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>1010</xcoord><ycoord>970</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>760</xcoord><ycoord>1080</ycoord><sprite>roadblock</sprite><rotation>15</rotation></item><item><type>solid</type><xcoord>860</xcoord><ycoord>880</ycoord><sprite>roadblock</sprite><rotation>15</rotation></item><item><type>solid</type><xcoord>680</xcoord><ycoord>850</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>650</xcoord><ycoord>1150</ycoord><sprite>roadblock</sprite><rotation>-75</rotation></item><item><type>solid</type><xcoord>600</xcoord><ycoord>1330</ycoord><sprite>roadblock</sprite><rotation>-75</rotation></item><item><type>solid</type><xcoord>380</xcoord><ycoord>970</ycoord><sprite>roadblock</sprite><rotation>15</rotation></item><item><type>solid</type><xcoord>280</xcoord><ycoord>860</ycoord><sprite>roadblock</sprite><rotation>-105</rotation></item><item><type>solid</type><xcoord>410</xcoord><ycoord>1080</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>240</xcoord><ycoord>1140</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>190</xcoord><ycoord>1040</ycoord><sprite>roadblock</sprite><rotation>-75</rotation></item><item><type>solid</type><xcoord>230</xcoord><ycoord>860</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>zone</type><xcoord>540</xcoord><ycoord>1120</ycoord><sprite>zone</sprite><spawnzone>2</spawnzone><width>276.9</width><height>122</height></item><item><type>zone</type><xcoord>440</xcoord><ycoord>830</ycoord><sprite>zone</sprite><spawnzone>3</spawnzone><width>314.85</width><height>137</height></item><item><type>enemy</type><xcoord>100</xcoord><ycoord>930</ycoord><sprite>tank1</sprite><spawnzone>2</spawnzone></item><item><type>enemy</type><xcoord>130</xcoord><ycoord>1250</ycoord><sprite>tank1</sprite><spawnzone>2</spawnzone></item><item><type>enemy</type><xcoord>940</xcoord><ycoord>1050</ycoord><sprite>tank2</sprite><spawntime>5</spawntime></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>490</xcoord><ycoord>1320</ycoord><sprite>gasstation</sprite><rotation>15</rotation></item><item><type>enemy</type><xcoord>40</xcoord><ycoord>920</ycoord><sprite>tank2</sprite><spawntime>10</spawntime></item><item><type>solid</type><xcoord>90</xcoord><ycoord>530</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>280</xcoord><ycoord>550</ycoord><sprite>roadblock</sprite><rotation>15</rotation></item><item><type>solid</type><xcoord>460</xcoord><ycoord>580</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>630</xcoord><ycoord>600</ycoord><sprite>roadblock</sprite><rotation>15</rotation></item><item><type>enemy</type><xcoord>630</xcoord><ycoord>680</ycoord><sprite>tank2</sprite><spawnzone>3</spawnzone></item><item><type>enemy</type><xcoord>490</xcoord><ycoord>650</ycoord><sprite>tank1</sprite><spawntime>10</spawntime></item><item><type>solid</type><xcoord>810</xcoord><ycoord>630</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>960</xcoord><ycoord>560</ycoord><sprite>roadblock</sprite><rotation>-60</rotation></item><item><type>solid</type><xcoord>1040</xcoord><ycoord>860</ycoord><sprite>roadblock</sprite><rotation>-30</rotation></item><item><type>solid</type><xcoord>1150</xcoord><ycoord>730</ycoord><sprite>roadblock</sprite><rotation>-75</rotation></item><item><type>crate</type><xcoord>840</xcoord><ycoord>550</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>1110</xcoord><ycoord>80</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>240</xcoord><ycoord>1200</ycoord><sprite>crate_missiles</sprite></item><item><type>enemy</type><xcoord>1040</xcoord><ycoord>150</ycoord><sprite>tank2</sprite><spawntime>30</spawntime></item><item><type>enemy</type><xcoord>780</xcoord><ycoord>520</ycoord><sprite>tank2</sprite><spawntime>31</spawntime></item><item><type>enemy</type><xcoord>100</xcoord><ycoord>370</ycoord><sprite>tank2</sprite><spawntime>35</spawntime></item><item><type>enemy</type><xcoord>220</xcoord><ycoord>160</ycoord><sprite>tank2</sprite><spawntime>36</spawntime></item><item><type>enemy</type><xcoord>70</xcoord><ycoord>1180</ycoord><sprite>tank2</sprite><spawntime>41</spawntime></item><item><type>enemy</type><xcoord>520</xcoord><ycoord>900</ycoord><sprite>tank2</sprite><spawntime>43</spawntime></item><item><type>enemy</type><xcoord>880</xcoord><ycoord>1010</ycoord><sprite>tank2</sprite><spawntime>50</spawntime></item><item><type>enemy</type><xcoord>90</xcoord><ycoord>1010</ycoord><sprite>tank2</sprite><spawntime>52</spawntime></item><item><type>enemy</type><xcoord>160</xcoord><ycoord>150</ycoord><sprite>tank2</sprite><spawntime>58</spawntime></item><item><type>enemy</type><xcoord>170</xcoord><ycoord>380</ycoord><sprite>tank2</sprite><spawntime>60</spawntime></item><item><type>enemy</type><xcoord>960</xcoord><ycoord>100</ycoord><sprite>tank2</sprite><spawntime>61</spawntime></item><item><type>enemy</type><xcoord>930</xcoord><ycoord>450</ycoord><sprite>tank2</sprite><spawntime>65</spawntime></item><item><type>enemy</type><xcoord>410</xcoord><ycoord>1210</ycoord><sprite>tank2</sprite><spawntime>70</spawntime></item><item><type>enemy</type><xcoord>560</xcoord><ycoord>960</ycoord><sprite>tank2</sprite><spawntime>74</spawntime></item><item><type>enemy</type><xcoord>490</xcoord><ycoord>430</ycoord><sprite>tank2</sprite><spawntime>80</spawntime></item><item><type>crate</type><xcoord>320</xcoord><ycoord>30</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>60</xcoord><ycoord>600</ycoord><sprite>crate_missiles</sprite></item><item><type>oPoint</type><xcoord>960</xcoord><ycoord>750</ycoord><sprite>oPoint</sprite></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>700</xcoord><ycoord>190</ycoord><sprite>gasstation</sprite></item></body><edges><item y2=\"566\" x2=\"34\" y1=\"552\" x1=\"220\" /><item y2=\"552\" x2=\"224\" y1=\"608\" x1=\"376\" /><item y2=\"610\" x2=\"382\" y1=\"606\" x1=\"560\" /><item y2=\"606\" x2=\"566\" y1=\"658\" x1=\"712\" /><item y2=\"658\" x2=\"712\" y1=\"656\" x1=\"910\" /><item y2=\"656\" x2=\"910\" y1=\"482\" x1=\"1038\" /><item y2=\"482\" x2=\"1040\" y1=\"462\" x1=\"988\" /><item y2=\"462\" x2=\"986\" y1=\"610\" x1=\"890\" /><item y2=\"610\" x2=\"890\" y1=\"606\" x1=\"712\" /><item y2=\"606\" x2=\"712\" y1=\"556\" x1=\"570\" /><item y2=\"556\" x2=\"568\" y1=\"560\" x1=\"380\" /><item y2=\"560\" x2=\"380\" y1=\"500\" x1=\"206\" /><item y2=\"500\" x2=\"206\" y1=\"522\" x1=\"40\" /><item y2=\"822\" x2=\"588\" y1=\"860\" x1=\"594\" /><item y2=\"860\" x2=\"594\" y1=\"876\" x1=\"758\" /><item y2=\"876\" x2=\"758\" y1=\"918\" x1=\"926\" /><item y2=\"918\" x2=\"926\" y1=\"1222\" x1=\"1220\" /><item y2=\"588\" x2=\"1208\" y1=\"800\" x1=\"1092\" /><item y2=\"800\" x2=\"1092\" y1=\"882\" x1=\"938\" /><item y2=\"882\" x2=\"938\" y1=\"834\" x1=\"796\" /><item y2=\"834\" x2=\"796\" y1=\"818\" x1=\"592\" /><item y2=\"750\" x2=\"206\" y1=\"940\" x1=\"206\" /><item y2=\"940\" x2=\"206\" y1=\"1140\" x1=\"134\" /><item y2=\"1140\" x2=\"138\" y1=\"1164\" x1=\"304\" /><item y2=\"1164\" x2=\"306\" y1=\"1148\" x1=\"358\" /><item y2=\"1148\" x2=\"358\" y1=\"1020\" x1=\"494\" /><item y2=\"1020\" x2=\"494\" y1=\"982\" x1=\"474\" /><item y2=\"982\" x2=\"474\" y1=\"918\" x1=\"310\" /><item y2=\"916\" x2=\"310\" y1=\"748\" x1=\"262\" /><item y2=\"748\" x2=\"260\" y1=\"754\" x1=\"212\" /><item y2=\"1418\" x2=\"32\" y1=\"1478\" x1=\"176\" /><item y2=\"1478\" x2=\"178\" y1=\"1446\" x1=\"306\" /><item y2=\"1446\" x2=\"306\" y1=\"1412\" x1=\"480\" /><item y2=\"1412\" x2=\"480\" y1=\"1460\" x1=\"634\" /><item y2=\"1460\" x2=\"634\" y1=\"1456\" x1=\"996\" /><item y2=\"1456\" x2=\"996\" y1=\"1220\" x1=\"994\" /><item y2=\"1220\" x2=\"994\" y1=\"1092\" x1=\"878\" /><item y2=\"1092\" x2=\"878\" y1=\"1044\" x1=\"672\" /><item y2=\"1044\" x2=\"672\" y1=\"1382\" x1=\"548\" /><item y2=\"1382\" x2=\"548\" y1=\"1368\" x1=\"478\" /><item y2=\"1368\" x2=\"476\" y1=\"1438\" x1=\"172\" /><item y2=\"1438\" x2=\"172\" y1=\"1376\" x1=\"44\" /></edges></level>");
all_levels.push("<level><header><title>Limbo</title><width>3000</width><height>800</height><time>190</time><spawnRotation>150</spawnRotation></header><body><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>640</xcoord><ycoord>60</ycoord><sprite>gasstation</sprite><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>2070</xcoord><ycoord>490</ycoord><sprite>gasstation</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><type>solid</type><xcoord>400</xcoord><ycoord>260</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><type>solid</type><xcoord>390</xcoord><ycoord>100</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><type>solid</type><xcoord>390</xcoord><ycoord>700</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><type>spawnPoint</type><xcoord>120</xcoord><ycoord>120</ycoord><sprite>player</sprite><rotation>150</rotation><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><type>enemy</type><xcoord>100</xcoord><ycoord>610</ycoord><sprite>tank1</sprite><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><type>enemy</type><xcoord>590</xcoord><ycoord>410</ycoord><sprite>tank1</sprite><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><type>zone</type><xcoord>410</xcoord><ycoord>460</ycoord><sprite>zone</sprite><spawntime>40</spawntime><spawnzone>1</spawnzone><width>126.25</width><height>240</height></item><item><type>crate</type><xcoord>810</xcoord><ycoord>40</ycoord><sprite>crate_health</sprite><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><type>solid</type><xcoord>900</xcoord><ycoord>520</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><type>solid</type><xcoord>890</xcoord><ycoord>110</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><type>solid</type><xcoord>890</xcoord><ycoord>710</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><type>zone</type><xcoord>920</xcoord><ycoord>300</ycoord><sprite>zone</sprite><spawntime>40</spawntime><spawnzone>2</spawnzone><width>128.25</width><height>252</height></item><item><type>crate</type><xcoord>800</xcoord><ycoord>730</ycoord><sprite>crate_health</sprite><spawntime>40</spawntime><spawnzone>2</spawnzone></item><item><type>solid</type><xcoord>940</xcoord><ycoord>130</ycoord><sprite>obstacle</sprite><spawntime>40</spawntime><spawnzone>2</spawnzone></item><item><type>solid</type><xcoord>440</xcoord><ycoord>750</ycoord><sprite>obstacle</sprite><spawntime>40</spawntime><spawnzone>2</spawnzone></item><item><type>solid</type><xcoord>1450</xcoord><ycoord>280</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>3</spawnzone></item><item><type>solid</type><xcoord>1440</xcoord><ycoord>120</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>3</spawnzone></item><item><type>solid</type><xcoord>1450</xcoord><ycoord>720</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>3</spawnzone></item><item><type>enemy</type><xcoord>1640</xcoord><ycoord>430</ycoord><sprite>tank1</sprite><spawntime>40</spawntime><spawnzone>3</spawnzone></item><item><type>zone</type><xcoord>1470</xcoord><ycoord>500</ycoord><sprite>zone</sprite><spawntime>40</spawntime><spawnzone>3</spawnzone><width>142.2</width><height>212</height></item><item><type>crate</type><xcoord>1500</xcoord><ycoord>30</ycoord><sprite>crate_health</sprite><spawntime>40</spawntime><spawnzone>3</spawnzone></item><item><type>solid</type><xcoord>1500</xcoord><ycoord>780</ycoord><sprite>obstacle</sprite><spawntime>40</spawntime><spawnzone>3</spawnzone></item><item><type>enemy</type><xcoord>1230</xcoord><ycoord>110</ycoord><sprite>tank1</sprite><spawntime>40</spawntime><spawnzone>2</spawnzone></item><item><type>enemy</type><xcoord>1200</xcoord><ycoord>640</ycoord><sprite>tank1</sprite><spawntime>40</spawntime><spawnzone>2</spawnzone></item><item><type>solid</type><xcoord>1880</xcoord><ycoord>530</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>1860</xcoord><ycoord>110</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>1880</xcoord><ycoord>710</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>1910</xcoord><ycoord>130</ycoord><sprite>obstacle</sprite><spawntime>40</spawntime><spawnzone>4</spawnzone></item><item><type>enemy</type><xcoord>290</xcoord><ycoord>310</ycoord><sprite>tank2</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>310</xcoord><ycoord>520</ycoord><sprite>tank2</sprite><spawntime>40</spawntime></item><item><type>solid</type><xcoord>1930</xcoord><ycoord>770</ycoord><sprite>obstacle</sprite><spawntime>40</spawntime><spawnzone>4</spawnzone></item><item><type>enemy</type><xcoord>90</xcoord><ycoord>200</ycoord><sprite>tank2</sprite><spawntime>65</spawntime></item><item><type>zone</type><xcoord>1900</xcoord><ycoord>320</ycoord><sprite>zone</sprite><spawntime>65</spawntime><spawnzone>4</spawnzone><width>179.1</width><height>204</height></item><item><type>solid</type><xcoord>2240</xcoord><ycoord>280</ycoord><sprite>bush</sprite><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2350</xcoord><ycoord>280</ycoord><sprite>bush</sprite><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2630</xcoord><ycoord>270</ycoord><sprite>bush</sprite><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2740</xcoord><ycoord>270</ycoord><sprite>bush</sprite><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2250</xcoord><ycoord>330</ycoord><sprite>bush</sprite><rotation>30</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2330</xcoord><ycoord>380</ycoord><sprite>bush</sprite><rotation>30</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2340</xcoord><ycoord>460</ycoord><sprite>bush</sprite><rotation>-75</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2300</xcoord><ycoord>570</ycoord><sprite>bush</sprite><rotation>-75</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2450</xcoord><ycoord>130</ycoord><sprite>bush</sprite><rotation>-75</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2410</xcoord><ycoord>240</ycoord><sprite>bush</sprite><rotation>-75</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2500</xcoord><ycoord>130</ycoord><sprite>bush</sprite><rotation>60</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2550</xcoord><ycoord>230</ycoord><sprite>bush</sprite><rotation>60</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2650</xcoord><ycoord>450</ycoord><sprite>bush</sprite><rotation>60</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2700</xcoord><ycoord>550</ycoord><sprite>bush</sprite><rotation>60</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2660</xcoord><ycoord>570</ycoord><sprite>bush</sprite><rotation>30</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2560</xcoord><ycoord>510</ycoord><sprite>bush</sprite><rotation>30</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2350</xcoord><ycoord>580</ycoord><sprite>bush</sprite><rotation>-45</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2450</xcoord><ycoord>510</ycoord><sprite>bush</sprite><rotation>-30</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2730</xcoord><ycoord>310</ycoord><sprite>bush</sprite><rotation>-45</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2650</xcoord><ycoord>380</ycoord><sprite>bush</sprite><rotation>-45</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2570</xcoord><ycoord>440</ycoord><sprite>bush</sprite><rotation>-30</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2490</xcoord><ycoord>280</ycoord><sprite>bush</sprite><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2380</xcoord><ycoord>350</ycoord><sprite>bush</sprite><rotation>-75</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2590</xcoord><ycoord>350</ycoord><sprite>bush</sprite><rotation>-120</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2440</xcoord><ycoord>440</ycoord><sprite>bush</sprite><rotation>30</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>enemy</type><xcoord>180</xcoord><ycoord>280</ycoord><sprite>tank2</sprite><spawntime>62</spawntime></item><item><type>enemy</type><xcoord>230</xcoord><ycoord>280</ycoord><sprite>tank2</sprite><spawntime>63</spawntime></item><item><type>enemy</type><xcoord>80</xcoord><ycoord>280</ycoord><sprite>tank2</sprite><spawntime>60</spawntime></item><item><type>enemy</type><xcoord>130</xcoord><ycoord>280</ycoord><sprite>tank2</sprite><spawntime>61</spawntime></item><item><type>enemy</type><xcoord>180</xcoord><ycoord>350</ycoord><sprite>tank2</sprite><spawntime>72</spawntime></item><item><type>enemy</type><xcoord>230</xcoord><ycoord>350</ycoord><sprite>tank2</sprite><spawntime>73</spawntime></item><item><type>enemy</type><xcoord>80</xcoord><ycoord>350</ycoord><sprite>tank2</sprite><spawntime>70</spawntime></item><item><type>enemy</type><xcoord>130</xcoord><ycoord>350</ycoord><sprite>tank2</sprite><spawntime>71</spawntime></item><item><type>enemy</type><xcoord>180</xcoord><ycoord>420</ycoord><sprite>tank2</sprite><spawntime>82</spawntime></item><item><type>enemy</type><xcoord>230</xcoord><ycoord>420</ycoord><sprite>tank2</sprite><spawntime>83</spawntime></item><item><type>enemy</type><xcoord>80</xcoord><ycoord>420</ycoord><sprite>tank2</sprite><spawntime>80</spawntime></item><item><type>enemy</type><xcoord>130</xcoord><ycoord>420</ycoord><sprite>tank2</sprite><spawntime>81</spawntime></item><item><type>enemy</type><xcoord>180</xcoord><ycoord>490</ycoord><sprite>tank2</sprite><spawntime>93</spawntime></item><item><type>enemy</type><xcoord>230</xcoord><ycoord>490</ycoord><sprite>tank2</sprite><spawntime>94</spawntime></item><item><type>enemy</type><xcoord>80</xcoord><ycoord>490</ycoord><sprite>tank2</sprite><spawntime>90</spawntime></item><item><type>enemy</type><xcoord>130</xcoord><ycoord>490</ycoord><sprite>tank2</sprite><spawntime>92</spawntime></item><item><type>enemy</type><xcoord>230</xcoord><ycoord>200</ycoord><sprite>tank2</sprite><spawntime>43</spawntime></item><item><type>enemy</type><xcoord>180</xcoord><ycoord>200</ycoord><sprite>tank2</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>230</xcoord><ycoord>570</ycoord><sprite>tank2</sprite><spawntime>20</spawntime></item><item><type>enemy</type><xcoord>180</xcoord><ycoord>570</ycoord><sprite>tank2</sprite><spawntime>20</spawntime></item><item><type>crate</type><xcoord>1360</xcoord><ycoord>750</ycoord><sprite>crate_health</sprite><spawntime>20</spawntime><spawnzone>4</spawnzone></item><item><type>crate</type><xcoord>1350</xcoord><ycoord>40</ycoord><sprite>crate_health</sprite><spawntime>20</spawntime><spawnzone>4</spawnzone></item><item><type>crate</type><xcoord>1350</xcoord><ycoord>110</ycoord><sprite>crate_health</sprite><spawntime>20</spawntime><spawnzone>4</spawnzone></item><item><type>crate</type><xcoord>1360</xcoord><ycoord>680</ycoord><sprite>crate_health</sprite><spawntime>20</spawntime><spawnzone>4</spawnzone></item><item><type>crate</type><xcoord>960</xcoord><ycoord>750</ycoord><sprite>crate_mines</sprite><spawntime>20</spawntime><spawnzone>4</spawnzone></item><item><type>crate</type><xcoord>980</xcoord><ycoord>40</ycoord><sprite>crate_mines</sprite><spawntime>20</spawntime><spawnzone>4</spawnzone></item><item><type>crate</type><xcoord>450</xcoord><ycoord>670</ycoord><sprite>crate_missiles</sprite><spawntime>20</spawntime><spawnzone>4</spawnzone></item><item><type>crate</type><xcoord>470</xcoord><ycoord>40</ycoord><sprite>crate_mines</sprite><spawntime>20</spawntime><spawnzone>4</spawnzone></item><item><type>crate</type><xcoord>1770</xcoord><ycoord>30</ycoord><sprite>crate_health</sprite><spawntime>20</spawntime><spawnzone>4</spawnzone></item><item><type>crate</type><xcoord>1820</xcoord><ycoord>760</ycoord><sprite>crate_missiles</sprite><spawntime>20</spawntime><spawnzone>4</spawnzone></item><item><type>crate</type><xcoord>1950</xcoord><ycoord>60</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>1950</xcoord><ycoord>680</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>1950</xcoord><ycoord>610</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>2840</xcoord><ycoord>240</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>2470</xcoord><ycoord>30</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>2730</xcoord><ycoord>650</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>2260</xcoord><ycoord>670</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>2130</xcoord><ycoord>270</ycoord><sprite>crate_missiles</sprite></item><item><type>oPoint</type><xcoord>1090</xcoord><ycoord>320</ycoord><sprite>oPoint</sprite></item></body><edges><item y2=\"818\" x2=\"450\" y1=\"766\" x1=\"484\" /><item y2=\"740\" x2=\"366\" y1=\"808\" x1=\"366\" /><item y2=\"820\" x2=\"918\" y1=\"738\" x1=\"910\" /><item y2=\"738\" x2=\"874\" y1=\"818\" x1=\"860\" /><item y2=\"828\" x2=\"1526\" y1=\"764\" x1=\"1522\" /><item y2=\"750\" x2=\"1416\" y1=\"832\" x1=\"1416\" /><item y2=\"804\" x2=\"1946\" y1=\"758\" x1=\"1948\" /><item y2=\"752\" x2=\"1836\" y1=\"802\" x1=\"1842\" /><item y2=\"604\" x2=\"2264\" y1=\"648\" x1=\"2306\" /><item y2=\"648\" x2=\"2306\" y1=\"276\" x1=\"2804\" /><item y2=\"276\" x2=\"2804\" y1=\"240\" x1=\"2780\" /><item y2=\"240\" x2=\"2780\" y1=\"252\" x1=\"2186\" /><item y2=\"254\" x2=\"2184\" y1=\"290\" x1=\"2166\" /><item y2=\"298\" x2=\"2164\" y1=\"628\" x1=\"2686\" /><item y2=\"628\" x2=\"2686\" y1=\"584\" x1=\"2738\" /><item y2=\"582\" x2=\"2738\" y1=\"84\" x1=\"2514\" /><item y2=\"82\" x2=\"2508\" y1=\"82\" x1=\"2440\" /><item y2=\"98\" x2=\"2440\" y1=\"602\" x1=\"2268\" /><item y2=\"754\" x2=\"1948\" y1=\"666\" x1=\"1934\" /><item y2=\"666\" x2=\"1934\" y1=\"670\" x1=\"1886\" /><item y2=\"670\" x2=\"1886\" y1=\"362\" x1=\"1894\" /><item y2=\"362\" x2=\"1894\" y1=\"366\" x1=\"1848\" /><item y2=\"368\" x2=\"1848\" y1=\"754\" x1=\"1834\" /><item y2=\"190\" x2=\"1834\" y1=\"198\" x1=\"1892\" /><item y2=\"198\" x2=\"1892\" y1=\"154\" x1=\"1890\" /><item y2=\"152\" x2=\"1890\" y1=\"142\" x1=\"1940\" /><item y2=\"138\" x2=\"1940\" y1=\"94\" x1=\"1932\" /><item y2=\"94\" x2=\"1926\" y1=\"94\" x1=\"1886\" /><item y2=\"94\" x2=\"1886\" y1=\"-10\" x1=\"1892\" /><item y2=\"-10\" x2=\"1842\" y1=\"184\" x1=\"1836\" /><item y2=\"374\" x2=\"1422\" y1=\"374\" x1=\"1466\" /><item y2=\"374\" x2=\"1466\" y1=\"-16\" x1=\"1472\" /><item y2=\"-14\" x2=\"1418\" y1=\"370\" x1=\"1416\" /><item y2=\"764\" x2=\"1518\" y1=\"696\" x1=\"1516\" /><item y2=\"696\" x2=\"1516\" y1=\"696\" x1=\"1464\" /><item y2=\"696\" x2=\"1464\" y1=\"536\" x1=\"1468\" /><item y2=\"534\" x2=\"1466\" y1=\"540\" x1=\"1434\" /><item y2=\"540\" x2=\"1434\" y1=\"752\" x1=\"1416\" /><item y2=\"742\" x2=\"914\" y1=\"354\" x1=\"922\" /><item y2=\"354\" x2=\"922\" y1=\"358\" x1=\"876\" /><item y2=\"358\" x2=\"876\" y1=\"742\" x1=\"870\" /><item y2=\"204\" x2=\"866\" y1=\"202\" x1=\"906\" /><item y2=\"198\" x2=\"906\" y1=\"164\" x1=\"908\" /><item y2=\"164\" x2=\"908\" y1=\"154\" x1=\"972\" /><item y2=\"152\" x2=\"972\" y1=\"98\" x1=\"960\" /><item y2=\"98\" x2=\"960\" y1=\"100\" x1=\"906\" /><item y2=\"100\" x2=\"904\" y1=\"-12\" x1=\"906\" /><item y2=\"-10\" x2=\"868\" y1=\"196\" x1=\"870\" /><item y2=\"350\" x2=\"372\" y1=\"350\" x1=\"414\" /><item y2=\"350\" x2=\"414\" y1=\"-8\" x1=\"410\" /><item y2=\"-24\" x2=\"374\" y1=\"342\" x1=\"370\" /><item y2=\"760\" x2=\"484\" y1=\"668\" x1=\"468\" /><item y2=\"668\" x2=\"466\" y1=\"668\" x1=\"418\" /><item y2=\"668\" x2=\"418\" y1=\"524\" x1=\"418\" /><item y2=\"524\" x2=\"418\" y1=\"524\" x1=\"380\" /><item y2=\"524\" x2=\"380\" y1=\"750\" x1=\"366\" /></edges></level>");
Instance of Symbol 720 MovieClip in Frame 266
onClipEvent (enterFrame) {
if (ha.isOver) {
if (this._alpha == 0) {
this._alpha = 100;
}
this.nextFrame();
} else if (ha.isOver != undefined) {
this._alpha = this._alpha - 10;
this.nextFrame();
if (this._alpha <= 0) {
this._alpha = 0;
this.gotoAndStop(1);
}
}
}
onClipEvent (load) {
this.ha.onRollOver = function () {
this.isOver = 1;
_root.darkwind.start(0.3);
_root.b1.bew = "fw";
};
this.ha.onRollOut = function () {
this.isOver = 0;
_root.b1.bew = "rw";
};
this.ha.onRelease = function () {
this.isOver = 0;
_root.lives = 3;
_root.totalScore = 0;
_root.punch.start();
_root.b1.bew = "rw";
_root.b1.playOnFinnish = 1;
_root.goNext = "startmission";
};
}
Instance of Symbol 720 MovieClip in Frame 266
onClipEvent (enterFrame) {
if (ha.isOver) {
if (this._alpha == 0) {
this._alpha = 100;
}
this.nextFrame();
} else if (ha.isOver != undefined) {
this._alpha = this._alpha - 10;
this.nextFrame();
if (this._alpha <= 0) {
this._alpha = 0;
this.gotoAndStop(1);
}
}
}
onClipEvent (load) {
this.ha.onRollOver = function () {
this.isOver = 1;
_root.darkwind.start(0.3);
_root.b2.bew = "fw";
};
this.ha.onRollOut = function () {
this.isOver = 0;
_root.b2.bew = "rw";
};
this.ha.onRelease = function () {
this.isOver = 0;
_root.punch.start();
_root.b2.bew = "rw";
_root.b2.playOnFinnish = 1;
_root.goNext = "goHighscores";
};
}
Instance of Symbol 720 MovieClip in Frame 266
onClipEvent (enterFrame) {
if (ha.isOver) {
if (this._alpha == 0) {
this._alpha = 100;
}
this.nextFrame();
} else if (ha.isOver != undefined) {
this._alpha = this._alpha - 10;
this.nextFrame();
if (this._alpha <= 0) {
this._alpha = 0;
this.gotoAndStop(1);
}
}
}
onClipEvent (load) {
this.ha.onRollOver = function () {
this.isOver = 1;
_root.darkwind.start(0.3);
_root.b3.bew = "fw";
};
this.ha.onRollOut = function () {
this.isOver = 0;
_root.b3.bew = "rw";
};
this.ha.onRelease = function () {
this.isOver = 0;
_root.punch.start();
_root.b3.bew = "rw";
_root.b3.playOnFinnish = 1;
_root.goNext = "goCredits";
};
}
Instance of Symbol 345 MovieClip [ComboBox] in Frame 266
//component parameters
onClipEvent (construct) {
data = [];
data[0] = 0;
data[1] = 1;
data[2] = 2;
data[3] = 3;
data[4] = 4;
data[5] = 5;
data[6] = 6;
editable = false;
labels = [];
labels[0] = "First Blood";
labels[1] = "The Middle";
labels[2] = "Battlefield";
labels[3] = "The Pipe";
labels[4] = "Limbo";
labels[5] = "Eye Of The Storm";
labels[6] = "Heating Up";
rowCount = 5;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
onClipEvent (load) {
function __f_change(eventObj) {
if (this.value == "0") {
_root.preloadedLevel = "<level><header><title>First Blood</title><width>1000</width><height>1000</height><time>65</time><spawnRotation>90</spawnRotation></header><body><item><type>solid</type><xcoord>100</xcoord><ycoord>780</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>290</xcoord><ycoord>780</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>480</xcoord><ycoord>780</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>710</xcoord><ycoord>910</ycoord><sprite>roadblock</sprite><rotation>-60</rotation></item><item><type>solid</type><xcoord>800</xcoord><ycoord>900</ycoord><sprite>roadblock</sprite><rotation>75</rotation></item><item><type>solid</type><xcoord>840</xcoord><ycoord>800</ycoord><sprite>obstacle</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>910</xcoord><ycoord>780</ycoord><sprite>obstacle</sprite><rotation>15</rotation></item><item><type>solid</type><xcoord>960</xcoord><ycoord>840</ycoord><sprite>obstacle</sprite><rotation>-15</rotation></item><item><type>solid</type><xcoord>920</xcoord><ycoord>820</ycoord><sprite>obstacle</sprite></item><item><type>crate</type><xcoord>890</xcoord><ycoord>60</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>810</xcoord><ycoord>720</ycoord><sprite>crate_missiles</sprite></item><item><type>solid</type><xcoord>410</xcoord><ycoord>260</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>260</xcoord><ycoord>320</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>240</xcoord><ycoord>460</ycoord><sprite>roadblock</sprite><rotation>60</rotation></item><item><type>solid</type><xcoord>390</xcoord><ycoord>540</ycoord><sprite>roadblock</sprite></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>410</xcoord><ycoord>400</ycoord><sprite>gasstation</sprite></item><item><type>enemy</type><xcoord>650</xcoord><ycoord>640</ycoord><sprite>tank1</sprite><spawntime>0</spawntime></item><item><type>enemy</type><xcoord>750</xcoord><ycoord>70</ycoord><sprite>tank2</sprite><spawntime>10</spawntime></item><item><type>enemy</type><xcoord>100</xcoord><ycoord>100</ycoord><sprite>tank2</sprite><spawntime>15</spawntime></item><item><type>enemy</type><xcoord>210</xcoord><ycoord>80</ycoord><sprite>tank2</sprite><spawntime>20</spawntime></item><item><type>enemy</type><xcoord>80</xcoord><ycoord>650</ycoord><sprite>tank2</sprite><spawntime>25</spawntime></item><item><type>enemy</type><xcoord>170</xcoord><ycoord>660</ycoord><sprite>tank2</sprite><spawntime>35</spawntime></item><item><type>enemy</type><xcoord>850</xcoord><ycoord>320</ycoord><sprite>tank1</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>870</xcoord><ycoord>420</ycoord><sprite>tank1</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>680</xcoord><ycoord>80</ycoord><sprite>tank2</sprite><spawntime>50</spawntime></item><item><type>spawnPoint</type><xcoord>120</xcoord><ycoord>900</ycoord><sprite>player</sprite><rotation>90</rotation></item></body><edges><item y2=\"226\" x2=\"330\" y1=\"370\" x1=\"170\" /><item y2=\"370\" x2=\"170\" y1=\"554\" x1=\"278\" /><item y2=\"554\" x2=\"278\" y1=\"558\" x1=\"500\" /><item y2=\"558\" x2=\"500\" y1=\"512\" x1=\"502\" /><item y2=\"512\" x2=\"502\" y1=\"514\" x1=\"306\" /><item y2=\"514\" x2=\"298\" y1=\"376\" x1=\"228\" /><item y2=\"376\" x2=\"228\" y1=\"268\" x1=\"336\" /><item y2=\"268\" x2=\"336\" y1=\"280\" x1=\"508\" /><item y2=\"280\" x2=\"508\" y1=\"236\" x1=\"510\" /><item y2=\"236\" x2=\"510\" y1=\"230\" x1=\"330\" /><item y2=\"846\" x2=\"1020\" y1=\"758\" x1=\"922\" /><item y2=\"758\" x2=\"922\" y1=\"792\" x1=\"772\" /><item y2=\"792\" x2=\"772\" y1=\"1002\" x1=\"622\" /><item y2=\"798\" x2=\"-10\" y1=\"804\" x1=\"588\" /><item y2=\"804\" x2=\"588\" y1=\"762\" x1=\"588\" /><item y2=\"762\" x2=\"588\" y1=\"754\" x1=\"-8\" /></edges></level>";
}
if (this.value == "1") {
_root.preloadedLevel = "<level><header><title>The Middle</title><width>800</width><height>2400</height><time>92</time><spawnRotation>90</spawnRotation></header><body><item><type>spawnPoint</type><xcoord>140</xcoord><ycoord>130</ycoord><sprite>player</sprite><rotation>90</rotation></item><item><type>solid</type><xcoord>100</xcoord><ycoord>340</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>290</xcoord><ycoord>340</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>470</xcoord><ycoord>340</ycoord><sprite>roadblock</sprite><spawnzone>1</spawnzone></item><item><type>enemy</type><xcoord>650</xcoord><ycoord>160</ycoord><sprite>tank1</sprite><spawnzone>1</spawnzone></item><item><type>enemy</type><xcoord>560</xcoord><ycoord>160</ycoord><sprite>tank1</sprite><spawnzone>1</spawnzone></item><item><type>zone</type><xcoord>433.85</xcoord><ycoord>170.6</ycoord><sprite>zone</sprite><spawnzone>1</spawnzone><width>180.3</width><height>277.75</height></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>140</xcoord><ycoord>480</ycoord><sprite>gasstation</sprite></item><item><type>solid</type><xcoord>670</xcoord><ycoord>690</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>480</xcoord><ycoord>690</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>310</xcoord><ycoord>690</ycoord><sprite>roadblock</sprite></item><item><type>enemy</type><xcoord>630</xcoord><ycoord>510</ycoord><sprite>tank2</sprite><spawnzone>1</spawnzone></item><item><type>solid</type><xcoord>680</xcoord><ycoord>50</ycoord><sprite>bush</sprite></item><item><type>solid</type><xcoord>540</xcoord><ycoord>390</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>500</xcoord><ycoord>290</ycoord><sprite>obstacle</sprite><rotation>15</rotation></item><item><type>solid</type><xcoord>600</xcoord><ycoord>350</ycoord><sprite>obstacle</sprite><rotation>45</rotation></item><item><type>enemy</type><xcoord>620</xcoord><ycoord>810</ycoord><sprite>tank1</sprite><spawntime>15</spawntime></item><item><type>solid</type><xcoord>80</xcoord><ycoord>940</ycoord><sprite>roadblock</sprite></item><item><type>enemy</type><xcoord>400</xcoord><ycoord>870</ycoord><sprite>tank1</sprite><spawntime>10</spawntime></item><item><type>solid</type><xcoord>650</xcoord><ycoord>920</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>240</xcoord><ycoord>1000</ycoord><sprite>roadblock</sprite><spawnzone>2</spawnzone></item><item><type>solid</type><xcoord>530</xcoord><ycoord>1020</ycoord><sprite>roadblock</sprite><rotation>-60</rotation></item><item><type>solid</type><xcoord>40</xcoord><ycoord>840</ycoord><sprite>bush</sprite><rotation>15</rotation></item><item><type>enemy</type><xcoord>110</xcoord><ycoord>1290</ycoord><sprite>tank1</sprite><spawnzone>2</spawnzone></item><item><type>enemy</type><xcoord>380</xcoord><ycoord>1400</ycoord><sprite>tank1</sprite><spawnzone>2</spawnzone></item><item><type>enemy</type><xcoord>640</xcoord><ycoord>1290</ycoord><sprite>tank1</sprite><spawnzone>2</spawnzone></item><item><type>zone</type><xcoord>390</xcoord><ycoord>1050</ycoord><sprite>zone</sprite><spawnzone>2</spawnzone><width>302</width><height>72</height></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>120</xcoord><ycoord>1660</ycoord><sprite>gasstation</sprite><rotation>15</rotation></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>650</xcoord><ycoord>1680</ycoord><sprite>gasstation</sprite><rotation>-30</rotation></item><item><type>enemy</type><xcoord>510</xcoord><ycoord>510</ycoord><sprite>tank2</sprite><spawnzone>2</spawnzone></item><item><type>solid</type><xcoord>90</xcoord><ycoord>1890</ycoord><sprite>roadblock</sprite><rotation>-30</rotation></item><item><type>solid</type><xcoord>260</xcoord><ycoord>1840</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>660</xcoord><ycoord>1840</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>540</xcoord><ycoord>1750</ycoord><sprite>roadblock</sprite><rotation>-105</rotation></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>110</xcoord><ycoord>1080</ycoord><sprite>gasstation</sprite><rotation>-15</rotation></item><item><type>solid</type><xcoord>680</xcoord><ycoord>2080</ycoord><sprite>bush</sprite></item><item><type>solid</type><xcoord>540</xcoord><ycoord>2110</ycoord><sprite>bush</sprite><rotation>-30</rotation></item><item><type>solid</type><xcoord>440</xcoord><ycoord>2210</ycoord><sprite>bush</sprite><rotation>-60</rotation></item><item><type>solid</type><xcoord>210</xcoord><ycoord>1900</ycoord><sprite>obstacle</sprite></item><item><type>enemy</type><xcoord>630</xcoord><ycoord>2260</ycoord><sprite>tank2</sprite><spawntime>35</spawntime></item><item><type>enemy</type><xcoord>270</xcoord><ycoord>110</ycoord><sprite>tank2</sprite><spawntime>45</spawntime></item><item><type>enemy</type><xcoord>690</xcoord><ycoord>2250</ycoord><sprite>tank2</sprite><spawntime>55</spawntime></item><item><type>enemy</type><xcoord>210</xcoord><ycoord>2150</ycoord><sprite>tank2</sprite><spawntime>55</spawntime></item><item><type>crate</type><xcoord>80</xcoord><ycoord>2300</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>60</xcoord><ycoord>1770</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>650</xcoord><ycoord>800</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>500</xcoord><ycoord>1320</ycoord><sprite>crate_mines</sprite></item><item><type>crate</type><xcoord>480</xcoord><ycoord>1390</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>660</xcoord><ycoord>1050</ycoord><sprite>crate_missiles</sprite></item></body><edges><item y2=\"916\" x2=\"72\" y1=\"840\" x1=\"116\" /><item y2=\"840\" x2=\"116\" y1=\"798\" x1=\"-16\" /><item y2=\"2270\" x2=\"392\" y1=\"2296\" x1=\"446\" /><item y2=\"2296\" x2=\"446\" y1=\"2166\" x1=\"526\" /><item y2=\"2166\" x2=\"526\" y1=\"2114\" x1=\"612\" /><item y2=\"2114\" x2=\"612\" y1=\"2110\" x1=\"740\" /><item y2=\"2110\" x2=\"740\" y1=\"2058\" x1=\"746\" /><item y2=\"2056\" x2=\"746\" y1=\"2050\" x1=\"630\" /><item y2=\"2050\" x2=\"630\" y1=\"2108\" x1=\"490\" /><item y2=\"2110\" x2=\"490\" y1=\"2264\" x1=\"400\" /><item y2=\"1644\" x2=\"538\" y1=\"1650\" x1=\"492\" /><item y2=\"1650\" x2=\"492\" y1=\"1850\" x1=\"546\" /><item y2=\"1852\" x2=\"548\" y1=\"1864\" x1=\"854\" /><item y2=\"1810\" x2=\"876\" y1=\"1806\" x1=\"570\" /><item y2=\"1804\" x2=\"570\" y1=\"1646\" x1=\"534\" /><item y2=\"1980\" x2=\"-32\" y1=\"1850\" x1=\"202\" /><item y2=\"1850\" x2=\"202\" y1=\"1866\" x1=\"360\" /><item y2=\"1866\" x2=\"360\" y1=\"1816\" x1=\"362\" /><item y2=\"1816\" x2=\"362\" y1=\"1812\" x1=\"184\" /><item y2=\"1812\" x2=\"184\" y1=\"1932\" x1=\"-34\" /><item y2=\"896\" x2=\"578\" y1=\"1082\" x1=\"454\" /><item y2=\"1082\" x2=\"454\" y1=\"1104\" x1=\"500\" /><item y2=\"1104\" x2=\"500\" y1=\"942\" x1=\"598\" /><item y2=\"942\" x2=\"598\" y1=\"950\" x1=\"838\" /><item y2=\"904\" x2=\"836\" y1=\"900\" x1=\"576\" /><item y2=\"952\" x2=\"-20\" y1=\"952\" x1=\"140\" /><item y2=\"952\" x2=\"140\" y1=\"1008\" x1=\"156\" /><item y2=\"1008\" x2=\"156\" y1=\"1028\" x1=\"350\" /><item y2=\"1024\" x2=\"350\" y1=\"988\" x1=\"346\" /><item y2=\"988\" x2=\"346\" y1=\"980\" x1=\"182\" /><item y2=\"980\" x2=\"182\" y1=\"920\" x1=\"172\" /><item y2=\"920\" x2=\"174\" y1=\"916\" x1=\"-34\" /><item y2=\"662\" x2=\"220\" y1=\"712\" x1=\"220\" /><item y2=\"712\" x2=\"220\" y1=\"716\" x1=\"800\" /><item y2=\"664\" x2=\"924\" y1=\"664\" x1=\"854\" /><item y2=\"664\" x2=\"850\" y1=\"662\" x1=\"224\" /><item y2=\"34\" x2=\"608\" y1=\"84\" x1=\"604\" /><item y2=\"84\" x2=\"604\" y1=\"88\" x1=\"748\" /><item y2=\"88\" x2=\"748\" y1=\"32\" x1=\"746\" /><item y2=\"32\" x2=\"746\" y1=\"32\" x1=\"608\" /><item y2=\"352\" x2=\"-16\" y1=\"348\" x1=\"484\" /><item y2=\"348\" x2=\"484\" y1=\"424\" x1=\"528\" /><item y2=\"424\" x2=\"528\" y1=\"374\" x1=\"616\" /><item y2=\"374\" x2=\"616\" y1=\"334\" x1=\"624\" /><item y2=\"332\" x2=\"620\" y1=\"264\" x1=\"536\" /><item y2=\"262\" x2=\"532\" y1=\"262\" x1=\"478\" /><item y2=\"264\" x2=\"472\" y1=\"314\" x1=\"470\" /><item y2=\"318\" x2=\"466\" y1=\"314\" x1=\"-36\" /></edges></level>";
}
if (this.value == "2") {
_root.preloadedLevel = "<level><header><title>Battlefield</title><width>1600</width><height>800</height><time>120</time><spawnRotation>90</spawnRotation></header><body><item><type>crate</type><xcoord>1370</xcoord><ycoord>330</ycoord><sprite>crate_missiles</sprite></item><item><type>solid</type><xcoord>100</xcoord><ycoord>190</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>300</xcoord><ycoord>190</ycoord><sprite>roadblock</sprite></item><item><type>spawnPoint</type><xcoord>170</xcoord><ycoord>80</ycoord><sprite>player</sprite><rotation>90</rotation></item><item><type>solid</type><xcoord>500</xcoord><ycoord>190</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>650</xcoord><ycoord>370</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>460</xcoord><ycoord>370</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>260</xcoord><ycoord>370</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>90</xcoord><ycoord>550</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>280</xcoord><ycoord>550</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>470</xcoord><ycoord>560</ycoord><sprite>roadblock</sprite></item><item><type>enemy</type><xcoord>660</xcoord><ycoord>90</ycoord><sprite>tank1</sprite><spawntime>0</spawntime></item><item><type>enemy</type><xcoord>670</xcoord><ycoord>240</ycoord><sprite>tank1</sprite><spawntime>0</spawntime></item><item><type>enemy</type><xcoord>100</xcoord><ycoord>290</ycoord><sprite>tank1</sprite><spawntime>4</spawntime></item><item><type>enemy</type><xcoord>90</xcoord><ycoord>440</ycoord><sprite>tank1</sprite><spawntime>4</spawntime></item><item><type>enemy</type><xcoord>680</xcoord><ycoord>480</ycoord><sprite>tank1</sprite><spawntime>9</spawntime></item><item><type>enemy</type><xcoord>600</xcoord><ycoord>480</ycoord><sprite>tank1</sprite><spawntime>9</spawntime></item><item><type>solid</type><xcoord>550</xcoord><ycoord>690</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>760</xcoord><ycoord>110</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>760</xcoord><ycoord>290</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>crate</type><xcoord>610</xcoord><ycoord>730</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>690</xcoord><ycoord>730</ycoord><sprite>crate_health</sprite></item><item><type>solid</type><xcoord>820</xcoord><ycoord>700</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>1220</xcoord><ycoord>700</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>1010</xcoord><ycoord>740</ycoord><sprite>gasstation</sprite></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>1410</xcoord><ycoord>740</ycoord><sprite>gasstation</sprite></item><item><type>enemy</type><xcoord>1510</xcoord><ycoord>150</ycoord><sprite>tank2</sprite><spawntime>60</spawntime></item><item><type>enemy</type><xcoord>1170</xcoord><ycoord>90</ycoord><sprite>tank2</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>1490</xcoord><ycoord>400</ycoord><sprite>tank2</sprite><spawntime>50</spawntime></item><item><type>enemy</type><xcoord>1120</xcoord><ycoord>290</ycoord><sprite>tank2</sprite><spawntime>30</spawntime></item><item><type>enemy</type><xcoord>930</xcoord><ycoord>140</ycoord><sprite>tank2</sprite><spawntime>30</spawntime></item><item><type>enemy</type><xcoord>910</xcoord><ycoord>360</ycoord><sprite>tank2</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>1350</xcoord><ycoord>100</ycoord><sprite>tank2</sprite><spawntime>50</spawntime></item><item><type>crate</type><xcoord>1230</xcoord><ycoord>330</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>1300</xcoord><ycoord>330</ycoord><sprite>crate_missiles</sprite></item><item><type>solid</type><xcoord>1280</xcoord><ycoord>240</ycoord><sprite>bush</sprite></item><item><type>solid</type><xcoord>1400</xcoord><ycoord>240</ycoord><sprite>bush</sprite></item><item><type>crate</type><xcoord>1440</xcoord><ycoord>330</ycoord><sprite>crate_missiles</sprite></item><item><type>enemy</type><xcoord>1010</xcoord><ycoord>110</ycoord><sprite>tank2</sprite><spawntime>60</spawntime></item><item><type>enemy</type><xcoord>1440</xcoord><ycoord>70</ycoord><sprite>tank2</sprite><spawntime>70</spawntime></item><item><type>enemy</type><xcoord>850</xcoord><ycoord>70</ycoord><sprite>tank2</sprite><spawntime>70</spawntime></item><item><type>crate</type><xcoord>610</xcoord><ycoord>640</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>690</xcoord><ycoord>640</ycoord><sprite>crate_health</sprite></item><item><type>enemy</type><xcoord>890</xcoord><ycoord>250</ycoord><sprite>tank1</sprite><spawntime>75</spawntime></item><item><type>enemy</type><xcoord>940</xcoord><ycoord>250</ycoord><sprite>tank1</sprite><spawntime>75</spawntime></item><item><type>enemy</type><xcoord>1540</xcoord><ycoord>240</ycoord><sprite>tank2</sprite><spawntime>80</spawntime></item><item><type>enemy</type><xcoord>1210</xcoord><ycoord>170</ycoord><sprite>tank2</sprite><spawntime>90</spawntime></item><item><type>enemy</type><xcoord>1060</xcoord><ycoord>200</ycoord><sprite>tank2</sprite><spawntime>90</spawntime></item><item><type>enemy</type><xcoord>1310</xcoord><ycoord>400</ycoord><sprite>tank2</sprite><spawntime>100</spawntime></item><item><type>enemy</type><xcoord>1060</xcoord><ycoord>410</ycoord><sprite>tank2</sprite><spawntime>100</spawntime></item></body><edges><item y2=\"208\" x2=\"1206\" y1=\"274\" x1=\"1208\" /><item y2=\"274\" x2=\"1208\" y1=\"278\" x1=\"1466\" /><item y2=\"278\" x2=\"1466\" y1=\"212\" x1=\"1468\" /><item y2=\"212\" x2=\"1468\" y1=\"214\" x1=\"1212\" /><item y2=\"810\" x2=\"1240\" y1=\"584\" x1=\"1244\" /><item y2=\"584\" x2=\"1242\" y1=\"586\" x1=\"1198\" /><item y2=\"588\" x2=\"1196\" y1=\"822\" x1=\"1196\" /><item y2=\"820\" x2=\"834\" y1=\"578\" x1=\"838\" /><item y2=\"578\" x2=\"838\" y1=\"576\" x1=\"796\" /><item y2=\"578\" x2=\"794\" y1=\"810\" x1=\"790\" /><item y2=\"822\" x2=\"568\" y1=\"538\" x1=\"570\" /><item y2=\"538\" x2=\"570\" y1=\"520\" x1=\"-4\" /><item y2=\"-20\" x2=\"734\" y1=\"334\" x1=\"728\" /><item y2=\"334\" x2=\"728\" y1=\"334\" x1=\"176\" /><item y2=\"334\" x2=\"170\" y1=\"388\" x1=\"176\" /><item y2=\"388\" x2=\"176\" y1=\"386\" x1=\"778\" /><item y2=\"386\" x2=\"778\" y1=\"-10\" x1=\"782\" /><item y2=\"214\" x2=\"-6\" y1=\"212\" x1=\"608\" /><item y2=\"212\" x2=\"608\" y1=\"168\" x1=\"606\" /><item y2=\"168\" x2=\"602\" y1=\"164\" x1=\"-10\" /></edges></level>";
}
if (this.value == "3") {
_root.preloadedLevel = "<level><header><title>Piping Hot</title><width>600</width><height>1400</height><time>60</time><spawnRotation>165</spawnRotation></header><body><item><type>crate</type><xcoord>190</xcoord><ycoord>430</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>190</xcoord><ycoord>280</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>70</xcoord><ycoord>460</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>130</xcoord><ycoord>460</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>130</xcoord><ycoord>180</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>130</xcoord><ycoord>250</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>130</xcoord><ycoord>390</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>70</xcoord><ycoord>390</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>130</xcoord><ycoord>320</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>70</xcoord><ycoord>320</ycoord><sprite>crate_missiles</sprite></item><item><type>enemy</type><xcoord>110</xcoord><ycoord>290</ycoord><sprite>tank2</sprite><spawntime>45</spawntime></item><item><type>enemy</type><xcoord>420</xcoord><ycoord>530</ycoord><sprite>tank2</sprite><spawntime>35</spawntime></item><item><type>enemy</type><xcoord>430</xcoord><ycoord>90</ycoord><sprite>tank2</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>270</xcoord><ycoord>70</ycoord><sprite>tank2</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>100</xcoord><ycoord>80</ycoord><sprite>tank2</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>70</xcoord><ycoord>910</ycoord><sprite>tank2</sprite><spawntime>30</spawntime></item><item><type>enemy</type><xcoord>410</xcoord><ycoord>890</ycoord><sprite>tank2</sprite><spawntime>30</spawntime></item><item><type>enemy</type><xcoord>450</xcoord><ycoord>960</ycoord><sprite>tank2</sprite><spawntime>30</spawntime></item><item><type>enemy</type><xcoord>110</xcoord><ycoord>540</ycoord><sprite>tank2</sprite><spawntime>10</spawntime></item><item><type>enemy</type><xcoord>390</xcoord><ycoord>710</ycoord><sprite>tank2</sprite><spawntime>5</spawntime></item><item><type>enemy</type><xcoord>430</xcoord><ycoord>440</ycoord><sprite>tank2</sprite><spawntime>10</spawntime></item><item><type>enemy</type><xcoord>100</xcoord><ycoord>700</ycoord><sprite>tank2</sprite><spawntime>5</spawntime></item><item><type>enemy</type><xcoord>110</xcoord><ycoord>370</ycoord><sprite>tank2</sprite><spawntime>5</spawntime></item><item><type>enemy</type><xcoord>430</xcoord><ycoord>690</ycoord><sprite>tank2</sprite></item><item><type>enemy</type><xcoord>440</xcoord><ycoord>270</ycoord><sprite>tank2</sprite></item><item><type>solid</type><xcoord>270</xcoord><ycoord>700</ycoord><sprite>obstacle</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>270</xcoord><ycoord>500</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>270</xcoord><ycoord>290</ycoord><sprite>obstacle</sprite></item><item><type>spawnPoint</type><xcoord>50</xcoord><ycoord>210</ycoord><sprite>player</sprite><rotation>165</rotation></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>260</xcoord><ycoord>810</ycoord><sprite>gasstation</sprite><rotation>-45</rotation></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>270</xcoord><ycoord>610</ycoord><sprite>gasstation</sprite><rotation>15</rotation></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>270</xcoord><ycoord>390</ycoord><sprite>gasstation</sprite><rotation>-135</rotation></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>270</xcoord><ycoord>190</ycoord><sprite>gasstation</sprite><rotation>15</rotation></item><item><type>solid</type><xcoord>270</xcoord><ycoord>900</ycoord><sprite>obstacle</sprite><rotation>-15</rotation></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>260</xcoord><ycoord>980</ycoord><sprite>gasstation</sprite><rotation>15</rotation></item><item><type>solid</type><xcoord>260</xcoord><ycoord>1100</ycoord><sprite>obstacle</sprite></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>260</xcoord><ycoord>1190</ycoord><sprite>gasstation</sprite><rotation>-15</rotation></item><item><type>enemy</type><xcoord>530</xcoord><ycoord>1110</ycoord><sprite>tank2</sprite></item><item><type>enemy</type><xcoord>460</xcoord><ycoord>1310</ycoord><sprite>tank2</sprite><spawntime>50</spawntime></item><item><type>enemy</type><xcoord>80</xcoord><ycoord>1160</ycoord><sprite>tank2</sprite><spawntime>10</spawntime></item><item><type>enemy</type><xcoord>160</xcoord><ycoord>1300</ycoord><sprite>tank2</sprite><spawntime>20</spawntime></item></body><edges><item y2=\"1064\" x2=\"222\" y1=\"1128\" x1=\"232\" /><item y2=\"1128\" x2=\"232\" y1=\"1144\" x1=\"286\" /><item y2=\"1144\" x2=\"286\" y1=\"1078\" x1=\"302\" /><item y2=\"1078\" x2=\"302\" y1=\"1066\" x1=\"224\" /><item y2=\"884\" x2=\"238\" y1=\"926\" x1=\"244\" /><item y2=\"926\" x2=\"244\" y1=\"938\" x1=\"278\" /><item y2=\"938\" x2=\"278\" y1=\"910\" x1=\"302\" /><item y2=\"908\" x2=\"302\" y1=\"874\" x1=\"290\" /><item y2=\"874\" x2=\"288\" y1=\"880\" x1=\"244\" /><item y2=\"676\" x2=\"232\" y1=\"736\" x1=\"234\" /><item y2=\"736\" x2=\"236\" y1=\"736\" x1=\"304\" /><item y2=\"736\" x2=\"304\" y1=\"668\" x1=\"302\" /><item y2=\"668\" x2=\"298\" y1=\"668\" x1=\"230\" /><item y2=\"466\" x2=\"234\" y1=\"536\" x1=\"232\" /><item y2=\"538\" x2=\"232\" y1=\"536\" x1=\"300\" /><item y2=\"532\" x2=\"304\" y1=\"468\" x1=\"304\" /><item y2=\"468\" x2=\"304\" y1=\"468\" x1=\"230\" /><item y2=\"266\" x2=\"228\" y1=\"338\" x1=\"228\" /><item y2=\"338\" x2=\"228\" y1=\"336\" x1=\"304\" /><item y2=\"336\" x2=\"304\" y1=\"270\" x1=\"302\" /><item y2=\"270\" x2=\"302\" y1=\"270\" x1=\"234\" /></edges></level>";
}
if (this.value == "4") {
_root.preloadedLevel = "<level><header><title>Limbo</title><width>3000</width><height>800</height><time>190</time><spawnRotation>150</spawnRotation></header><body><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>640</xcoord><ycoord>60</ycoord><sprite>gasstation</sprite><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>2070</xcoord><ycoord>490</ycoord><sprite>gasstation</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><type>solid</type><xcoord>400</xcoord><ycoord>260</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><type>solid</type><xcoord>390</xcoord><ycoord>100</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><type>solid</type><xcoord>390</xcoord><ycoord>700</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><type>spawnPoint</type><xcoord>120</xcoord><ycoord>120</ycoord><sprite>player</sprite><rotation>150</rotation><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><type>enemy</type><xcoord>100</xcoord><ycoord>610</ycoord><sprite>tank1</sprite><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><type>enemy</type><xcoord>590</xcoord><ycoord>410</ycoord><sprite>tank1</sprite><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><type>zone</type><xcoord>410</xcoord><ycoord>460</ycoord><sprite>zone</sprite><spawntime>40</spawntime><spawnzone>1</spawnzone><width>126.25</width><height>240</height></item><item><type>crate</type><xcoord>810</xcoord><ycoord>40</ycoord><sprite>crate_health</sprite><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><type>solid</type><xcoord>900</xcoord><ycoord>520</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><type>solid</type><xcoord>890</xcoord><ycoord>110</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><type>solid</type><xcoord>890</xcoord><ycoord>710</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>1</spawnzone></item><item><type>zone</type><xcoord>920</xcoord><ycoord>300</ycoord><sprite>zone</sprite><spawntime>40</spawntime><spawnzone>2</spawnzone><width>128.25</width><height>252</height></item><item><type>crate</type><xcoord>800</xcoord><ycoord>730</ycoord><sprite>crate_health</sprite><spawntime>40</spawntime><spawnzone>2</spawnzone></item><item><type>solid</type><xcoord>940</xcoord><ycoord>130</ycoord><sprite>obstacle</sprite><spawntime>40</spawntime><spawnzone>2</spawnzone></item><item><type>solid</type><xcoord>440</xcoord><ycoord>750</ycoord><sprite>obstacle</sprite><spawntime>40</spawntime><spawnzone>2</spawnzone></item><item><type>solid</type><xcoord>1450</xcoord><ycoord>280</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>3</spawnzone></item><item><type>solid</type><xcoord>1440</xcoord><ycoord>120</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>3</spawnzone></item><item><type>solid</type><xcoord>1450</xcoord><ycoord>720</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>3</spawnzone></item><item><type>enemy</type><xcoord>1640</xcoord><ycoord>430</ycoord><sprite>tank1</sprite><spawntime>40</spawntime><spawnzone>3</spawnzone></item><item><type>zone</type><xcoord>1470</xcoord><ycoord>500</ycoord><sprite>zone</sprite><spawntime>40</spawntime><spawnzone>3</spawnzone><width>142.2</width><height>212</height></item><item><type>crate</type><xcoord>1500</xcoord><ycoord>30</ycoord><sprite>crate_health</sprite><spawntime>40</spawntime><spawnzone>3</spawnzone></item><item><type>solid</type><xcoord>1500</xcoord><ycoord>780</ycoord><sprite>obstacle</sprite><spawntime>40</spawntime><spawnzone>3</spawnzone></item><item><type>enemy</type><xcoord>1230</xcoord><ycoord>110</ycoord><sprite>tank1</sprite><spawntime>40</spawntime><spawnzone>2</spawnzone></item><item><type>enemy</type><xcoord>1200</xcoord><ycoord>640</ycoord><sprite>tank1</sprite><spawntime>40</spawntime><spawnzone>2</spawnzone></item><item><type>solid</type><xcoord>1880</xcoord><ycoord>530</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>1860</xcoord><ycoord>110</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>1880</xcoord><ycoord>710</ycoord><sprite>roadblock</sprite><rotation>-90</rotation><spawntime>40</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>1910</xcoord><ycoord>130</ycoord><sprite>obstacle</sprite><spawntime>40</spawntime><spawnzone>4</spawnzone></item><item><type>enemy</type><xcoord>290</xcoord><ycoord>310</ycoord><sprite>tank2</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>310</xcoord><ycoord>520</ycoord><sprite>tank2</sprite><spawntime>40</spawntime></item><item><type>solid</type><xcoord>1930</xcoord><ycoord>770</ycoord><sprite>obstacle</sprite><spawntime>40</spawntime><spawnzone>4</spawnzone></item><item><type>enemy</type><xcoord>90</xcoord><ycoord>200</ycoord><sprite>tank2</sprite><spawntime>65</spawntime></item><item><type>zone</type><xcoord>1900</xcoord><ycoord>320</ycoord><sprite>zone</sprite><spawntime>65</spawntime><spawnzone>4</spawnzone><width>179.1</width><height>204</height></item><item><type>solid</type><xcoord>2240</xcoord><ycoord>280</ycoord><sprite>bush</sprite><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2350</xcoord><ycoord>280</ycoord><sprite>bush</sprite><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2630</xcoord><ycoord>270</ycoord><sprite>bush</sprite><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2740</xcoord><ycoord>270</ycoord><sprite>bush</sprite><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2250</xcoord><ycoord>330</ycoord><sprite>bush</sprite><rotation>30</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2330</xcoord><ycoord>380</ycoord><sprite>bush</sprite><rotation>30</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2340</xcoord><ycoord>460</ycoord><sprite>bush</sprite><rotation>-75</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2300</xcoord><ycoord>570</ycoord><sprite>bush</sprite><rotation>-75</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2450</xcoord><ycoord>130</ycoord><sprite>bush</sprite><rotation>-75</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2410</xcoord><ycoord>240</ycoord><sprite>bush</sprite><rotation>-75</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2500</xcoord><ycoord>130</ycoord><sprite>bush</sprite><rotation>60</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2550</xcoord><ycoord>230</ycoord><sprite>bush</sprite><rotation>60</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2650</xcoord><ycoord>450</ycoord><sprite>bush</sprite><rotation>60</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2700</xcoord><ycoord>550</ycoord><sprite>bush</sprite><rotation>60</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2660</xcoord><ycoord>570</ycoord><sprite>bush</sprite><rotation>30</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2560</xcoord><ycoord>510</ycoord><sprite>bush</sprite><rotation>30</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2350</xcoord><ycoord>580</ycoord><sprite>bush</sprite><rotation>-45</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2450</xcoord><ycoord>510</ycoord><sprite>bush</sprite><rotation>-30</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2730</xcoord><ycoord>310</ycoord><sprite>bush</sprite><rotation>-45</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2650</xcoord><ycoord>380</ycoord><sprite>bush</sprite><rotation>-45</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2570</xcoord><ycoord>440</ycoord><sprite>bush</sprite><rotation>-30</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2490</xcoord><ycoord>280</ycoord><sprite>bush</sprite><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2380</xcoord><ycoord>350</ycoord><sprite>bush</sprite><rotation>-75</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2590</xcoord><ycoord>350</ycoord><sprite>bush</sprite><rotation>-120</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>solid</type><xcoord>2440</xcoord><ycoord>440</ycoord><sprite>bush</sprite><rotation>30</rotation><spawntime>60</spawntime><spawnzone>4</spawnzone></item><item><type>enemy</type><xcoord>180</xcoord><ycoord>280</ycoord><sprite>tank2</sprite><spawntime>62</spawntime></item><item><type>enemy</type><xcoord>230</xcoord><ycoord>280</ycoord><sprite>tank2</sprite><spawntime>63</spawntime></item><item><type>enemy</type><xcoord>80</xcoord><ycoord>280</ycoord><sprite>tank2</sprite><spawntime>60</spawntime></item><item><type>enemy</type><xcoord>130</xcoord><ycoord>280</ycoord><sprite>tank2</sprite><spawntime>61</spawntime></item><item><type>enemy</type><xcoord>180</xcoord><ycoord>350</ycoord><sprite>tank2</sprite><spawntime>72</spawntime></item><item><type>enemy</type><xcoord>230</xcoord><ycoord>350</ycoord><sprite>tank2</sprite><spawntime>73</spawntime></item><item><type>enemy</type><xcoord>80</xcoord><ycoord>350</ycoord><sprite>tank2</sprite><spawntime>70</spawntime></item><item><type>enemy</type><xcoord>130</xcoord><ycoord>350</ycoord><sprite>tank2</sprite><spawntime>71</spawntime></item><item><type>enemy</type><xcoord>180</xcoord><ycoord>420</ycoord><sprite>tank2</sprite><spawntime>82</spawntime></item><item><type>enemy</type><xcoord>230</xcoord><ycoord>420</ycoord><sprite>tank2</sprite><spawntime>83</spawntime></item><item><type>enemy</type><xcoord>80</xcoord><ycoord>420</ycoord><sprite>tank2</sprite><spawntime>80</spawntime></item><item><type>enemy</type><xcoord>130</xcoord><ycoord>420</ycoord><sprite>tank2</sprite><spawntime>81</spawntime></item><item><type>enemy</type><xcoord>180</xcoord><ycoord>490</ycoord><sprite>tank2</sprite><spawntime>93</spawntime></item><item><type>enemy</type><xcoord>230</xcoord><ycoord>490</ycoord><sprite>tank2</sprite><spawntime>94</spawntime></item><item><type>enemy</type><xcoord>80</xcoord><ycoord>490</ycoord><sprite>tank2</sprite><spawntime>90</spawntime></item><item><type>enemy</type><xcoord>130</xcoord><ycoord>490</ycoord><sprite>tank2</sprite><spawntime>92</spawntime></item><item><type>enemy</type><xcoord>230</xcoord><ycoord>200</ycoord><sprite>tank2</sprite><spawntime>43</spawntime></item><item><type>enemy</type><xcoord>180</xcoord><ycoord>200</ycoord><sprite>tank2</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>230</xcoord><ycoord>570</ycoord><sprite>tank2</sprite><spawntime>20</spawntime></item><item><type>enemy</type><xcoord>180</xcoord><ycoord>570</ycoord><sprite>tank2</sprite><spawntime>20</spawntime></item><item><type>crate</type><xcoord>1360</xcoord><ycoord>750</ycoord><sprite>crate_health</sprite><spawntime>20</spawntime><spawnzone>4</spawnzone></item><item><type>crate</type><xcoord>1350</xcoord><ycoord>40</ycoord><sprite>crate_health</sprite><spawntime>20</spawntime><spawnzone>4</spawnzone></item><item><type>crate</type><xcoord>1350</xcoord><ycoord>110</ycoord><sprite>crate_health</sprite><spawntime>20</spawntime><spawnzone>4</spawnzone></item><item><type>crate</type><xcoord>1360</xcoord><ycoord>680</ycoord><sprite>crate_health</sprite><spawntime>20</spawntime><spawnzone>4</spawnzone></item><item><type>crate</type><xcoord>960</xcoord><ycoord>750</ycoord><sprite>crate_mines</sprite><spawntime>20</spawntime><spawnzone>4</spawnzone></item><item><type>crate</type><xcoord>980</xcoord><ycoord>40</ycoord><sprite>crate_mines</sprite><spawntime>20</spawntime><spawnzone>4</spawnzone></item><item><type>crate</type><xcoord>450</xcoord><ycoord>670</ycoord><sprite>crate_missiles</sprite><spawntime>20</spawntime><spawnzone>4</spawnzone></item><item><type>crate</type><xcoord>470</xcoord><ycoord>40</ycoord><sprite>crate_mines</sprite><spawntime>20</spawntime><spawnzone>4</spawnzone></item><item><type>crate</type><xcoord>1770</xcoord><ycoord>30</ycoord><sprite>crate_health</sprite><spawntime>20</spawntime><spawnzone>4</spawnzone></item><item><type>crate</type><xcoord>1820</xcoord><ycoord>760</ycoord><sprite>crate_missiles</sprite><spawntime>20</spawntime><spawnzone>4</spawnzone></item><item><type>crate</type><xcoord>1950</xcoord><ycoord>60</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>1950</xcoord><ycoord>680</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>1950</xcoord><ycoord>610</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>2840</xcoord><ycoord>240</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>2470</xcoord><ycoord>30</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>2730</xcoord><ycoord>650</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>2260</xcoord><ycoord>670</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>2130</xcoord><ycoord>270</ycoord><sprite>crate_missiles</sprite></item><item><type>oPoint</type><xcoord>1090</xcoord><ycoord>320</ycoord><sprite>oPoint</sprite></item></body><edges><item y2=\"818\" x2=\"450\" y1=\"766\" x1=\"484\" /><item y2=\"740\" x2=\"366\" y1=\"808\" x1=\"366\" /><item y2=\"820\" x2=\"918\" y1=\"738\" x1=\"910\" /><item y2=\"738\" x2=\"874\" y1=\"818\" x1=\"860\" /><item y2=\"828\" x2=\"1526\" y1=\"764\" x1=\"1522\" /><item y2=\"750\" x2=\"1416\" y1=\"832\" x1=\"1416\" /><item y2=\"804\" x2=\"1946\" y1=\"758\" x1=\"1948\" /><item y2=\"752\" x2=\"1836\" y1=\"802\" x1=\"1842\" /><item y2=\"604\" x2=\"2264\" y1=\"648\" x1=\"2306\" /><item y2=\"648\" x2=\"2306\" y1=\"276\" x1=\"2804\" /><item y2=\"276\" x2=\"2804\" y1=\"240\" x1=\"2780\" /><item y2=\"240\" x2=\"2780\" y1=\"252\" x1=\"2186\" /><item y2=\"254\" x2=\"2184\" y1=\"290\" x1=\"2166\" /><item y2=\"298\" x2=\"2164\" y1=\"628\" x1=\"2686\" /><item y2=\"628\" x2=\"2686\" y1=\"584\" x1=\"2738\" /><item y2=\"582\" x2=\"2738\" y1=\"84\" x1=\"2514\" /><item y2=\"82\" x2=\"2508\" y1=\"82\" x1=\"2440\" /><item y2=\"98\" x2=\"2440\" y1=\"602\" x1=\"2268\" /><item y2=\"754\" x2=\"1948\" y1=\"666\" x1=\"1934\" /><item y2=\"666\" x2=\"1934\" y1=\"670\" x1=\"1886\" /><item y2=\"670\" x2=\"1886\" y1=\"362\" x1=\"1894\" /><item y2=\"362\" x2=\"1894\" y1=\"366\" x1=\"1848\" /><item y2=\"368\" x2=\"1848\" y1=\"754\" x1=\"1834\" /><item y2=\"190\" x2=\"1834\" y1=\"198\" x1=\"1892\" /><item y2=\"198\" x2=\"1892\" y1=\"154\" x1=\"1890\" /><item y2=\"152\" x2=\"1890\" y1=\"142\" x1=\"1940\" /><item y2=\"138\" x2=\"1940\" y1=\"94\" x1=\"1932\" /><item y2=\"94\" x2=\"1926\" y1=\"94\" x1=\"1886\" /><item y2=\"94\" x2=\"1886\" y1=\"-10\" x1=\"1892\" /><item y2=\"-10\" x2=\"1842\" y1=\"184\" x1=\"1836\" /><item y2=\"374\" x2=\"1422\" y1=\"374\" x1=\"1466\" /><item y2=\"374\" x2=\"1466\" y1=\"-16\" x1=\"1472\" /><item y2=\"-14\" x2=\"1418\" y1=\"370\" x1=\"1416\" /><item y2=\"764\" x2=\"1518\" y1=\"696\" x1=\"1516\" /><item y2=\"696\" x2=\"1516\" y1=\"696\" x1=\"1464\" /><item y2=\"696\" x2=\"1464\" y1=\"536\" x1=\"1468\" /><item y2=\"534\" x2=\"1466\" y1=\"540\" x1=\"1434\" /><item y2=\"540\" x2=\"1434\" y1=\"752\" x1=\"1416\" /><item y2=\"742\" x2=\"914\" y1=\"354\" x1=\"922\" /><item y2=\"354\" x2=\"922\" y1=\"358\" x1=\"876\" /><item y2=\"358\" x2=\"876\" y1=\"742\" x1=\"870\" /><item y2=\"204\" x2=\"866\" y1=\"202\" x1=\"906\" /><item y2=\"198\" x2=\"906\" y1=\"164\" x1=\"908\" /><item y2=\"164\" x2=\"908\" y1=\"154\" x1=\"972\" /><item y2=\"152\" x2=\"972\" y1=\"98\" x1=\"960\" /><item y2=\"98\" x2=\"960\" y1=\"100\" x1=\"906\" /><item y2=\"100\" x2=\"904\" y1=\"-12\" x1=\"906\" /><item y2=\"-10\" x2=\"868\" y1=\"196\" x1=\"870\" /><item y2=\"350\" x2=\"372\" y1=\"350\" x1=\"414\" /><item y2=\"350\" x2=\"414\" y1=\"-8\" x1=\"410\" /><item y2=\"-24\" x2=\"374\" y1=\"342\" x1=\"370\" /><item y2=\"760\" x2=\"484\" y1=\"668\" x1=\"468\" /><item y2=\"668\" x2=\"466\" y1=\"668\" x1=\"418\" /><item y2=\"668\" x2=\"418\" y1=\"524\" x1=\"418\" /><item y2=\"524\" x2=\"418\" y1=\"524\" x1=\"380\" /><item y2=\"524\" x2=\"380\" y1=\"750\" x1=\"366\" /></edges></level>";
}
if (this.value == "6") {
}
if (this.value == "5") {
_root.preloadedLevel = "<level><header><title>Eye Of The Storm</title><width>2000</width><height>2000</height><time>120</time><spawnRotation>-75</spawnRotation></header><body><item><type>crate</type><xcoord>1130</xcoord><ycoord>1350</ycoord><sprite>crate_health</sprite></item><item><type>enemy</type><xcoord>860</xcoord><ycoord>150</ycoord><sprite>tank1</sprite><spawnzone>3</spawnzone></item><item><type>zone</type><xcoord>1170</xcoord><ycoord>140</ycoord><sprite>zone</sprite><spawnzone>3</spawnzone><width>225.05</width><height>235</height></item><item><type>crate</type><xcoord>1220</xcoord><ycoord>20</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>1290</xcoord><ycoord>20</ycoord><sprite>crate_health</sprite></item><item><type>enemy</type><xcoord>1860</xcoord><ycoord>830</ycoord><sprite>tank2</sprite><spawntime>80</spawntime></item><item><type>enemy</type><xcoord>1700</xcoord><ycoord>840</ycoord><sprite>tank2</sprite><spawntime>70</spawntime></item><item><type>crate</type><xcoord>1040</xcoord><ycoord>550</ycoord><sprite>crate_mines</sprite></item><item><type>crate</type><xcoord>1040</xcoord><ycoord>790</ycoord><sprite>crate_mines</sprite></item><item><type>enemy</type><xcoord>150</xcoord><ycoord>1000</ycoord><sprite>tank2</sprite><spawntime>80</spawntime></item><item><type>enemy</type><xcoord>400</xcoord><ycoord>500</ycoord><sprite>tank2</sprite><spawntime>80</spawntime></item><item><type>enemy</type><xcoord>450</xcoord><ycoord>690</ycoord><sprite>tank2</sprite><spawntime>65</spawntime></item><item><type>enemy</type><xcoord>470</xcoord><ycoord>520</ycoord><sprite>tank2</sprite><spawntime>70</spawntime></item><item><type>enemy</type><xcoord>370</xcoord><ycoord>650</ycoord><sprite>tank2</sprite><spawntime>90</spawntime></item><item><type>solid</type><xcoord>90</xcoord><ycoord>540</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>520</xcoord><ycoord>20</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>370</xcoord><ycoord>50</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>270</xcoord><ycoord>70</ycoord><sprite>bush</sprite></item><item><type>solid</type><xcoord>430</xcoord><ycoord>30</ycoord><sprite>obstacle</sprite><rotation>30</rotation></item><item><type>solid</type><xcoord>400</xcoord><ycoord>110</ycoord><sprite>bush</sprite></item><item><type>solid</type><xcoord>80</xcoord><ycoord>470</ycoord><sprite>bush</sprite></item><item><type>solid</type><xcoord>320</xcoord><ycoord>130</ycoord><sprite>bush</sprite><rotation>30</rotation></item><item><type>solid</type><xcoord>200</xcoord><ycoord>450</ycoord><sprite>bush</sprite><rotation>-15</rotation></item><item><type>crate</type><xcoord>40</xcoord><ycoord>610</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>550</xcoord><ycoord>190</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>550</xcoord><ycoord>100</ycoord><sprite>crate_health</sprite></item><item><type>solid</type><xcoord>670</xcoord><ycoord>1400</ycoord><sprite>obstacle</sprite><rotation>-30</rotation></item><item><type>solid</type><xcoord>630</xcoord><ycoord>1430</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>730</xcoord><ycoord>1200</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>720</xcoord><ycoord>970</ycoord><sprite>obstacle</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>640</xcoord><ycoord>800</ycoord><sprite>obstacle</sprite><rotation>-15</rotation></item><item><type>solid</type><xcoord>660</xcoord><ycoord>750</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>650</xcoord><ycoord>90</ycoord><sprite>roadblock</sprite><rotation>90</rotation></item><item><type>solid</type><xcoord>650</xcoord><ycoord>270</ycoord><sprite>roadblock</sprite><rotation>90</rotation></item><item><type>solid</type><xcoord>650</xcoord><ycoord>460</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>640</xcoord><ycoord>630</ycoord><sprite>roadblock</sprite><rotation>90</rotation></item><item><type>enemy</type><xcoord>270</xcoord><ycoord>1250</ycoord><sprite>tank2</sprite><spawntime>55</spawntime></item><item><type>enemy</type><xcoord>930</xcoord><ycoord>1290</ycoord><sprite>tank2</sprite><spawntime>50</spawntime></item><item><type>enemy</type><xcoord>820</xcoord><ycoord>450</ycoord><sprite>tank2</sprite><spawntime>50</spawntime></item><item><type>enemy</type><xcoord>820</xcoord><ycoord>680</ycoord><sprite>tank2</sprite><spawntime>50</spawntime></item><item><type>enemy</type><xcoord>840</xcoord><ycoord>920</ycoord><sprite>tank2</sprite><spawntime>50</spawntime></item><item><type>enemy</type><xcoord>1480</xcoord><ycoord>690</ycoord><sprite>tank1</sprite><spawntime>15</spawntime></item><item><type>solid</type><xcoord>1810</xcoord><ycoord>310</ycoord><sprite>bush</sprite><rotation>30</rotation></item><item><type>solid</type><xcoord>1820</xcoord><ycoord>290</ycoord><sprite>bush</sprite></item><item><type>zone</type><xcoord>1890</xcoord><ycoord>970</ycoord><sprite>zone</sprite><spawnzone>2</spawnzone><width>209.05</width><height>333</height></item><item><type>enemy</type><xcoord>1920</xcoord><ycoord>690</ycoord><sprite>tank2</sprite><spawnzone>2</spawnzone></item><item><type>enemy</type><xcoord>1560</xcoord><ycoord>340</ycoord><sprite>tank2</sprite><spawnzone>1</spawnzone></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>1720</xcoord><ycoord>520</ycoord><sprite>gasstation</sprite><rotation>-15</rotation></item><item><type>crate</type><xcoord>1330</xcoord><ycoord>1120</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>1310</xcoord><ycoord>1020</ycoord><sprite>crate_health</sprite></item><item><type>zone</type><xcoord>1490</xcoord><ycoord>1200</ycoord><sprite>zone</sprite><spawnzone>1</spawnzone><width>193.1</width><height>466</height></item><item><type>enemy</type><xcoord>1820</xcoord><ycoord>1190</ycoord><sprite>tank1</sprite><spawnzone>1</spawnzone></item><item><type>solid</type><xcoord>1710</xcoord><ycoord>970</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>1530</xcoord><ycoord>960</ycoord><sprite>roadblock</sprite><spawnzone>1</spawnzone></item><item><type>solid</type><xcoord>1350</xcoord><ycoord>960</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>80</xcoord><ycoord>1460</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>250</xcoord><ycoord>1460</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>430</xcoord><ycoord>1460</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>600</xcoord><ycoord>1470</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>780</xcoord><ycoord>1470</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>960</xcoord><ycoord>1470</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>1140</xcoord><ycoord>1470</ycoord><sprite>roadblock</sprite></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>1050</xcoord><ycoord>900</ycoord><sprite>gasstation</sprite></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>1040</xcoord><ycoord>440</ycoord><sprite>gasstation</sprite></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>1040</xcoord><ycoord>660</ycoord><sprite>gasstation</sprite></item><item><type>solid</type><xcoord>1260</xcoord><ycoord>320</ycoord><sprite>roadblock</sprite><rotation>90</rotation></item><item><type>solid</type><xcoord>1260</xcoord><ycoord>510</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>1260</xcoord><ycoord>670</ycoord><sprite>roadblock</sprite><rotation>90</rotation></item><item><type>solid</type><xcoord>1260</xcoord><ycoord>860</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>1250</xcoord><ycoord>1020</ycoord><sprite>roadblock</sprite><rotation>90</rotation></item><item><type>solid</type><xcoord>1250</xcoord><ycoord>1210</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>1240</xcoord><ycoord>1370</ycoord><sprite>roadblock</sprite><rotation>90</rotation></item><item><type>enemy</type><xcoord>1810</xcoord><ycoord>1580</ycoord><sprite>tank1</sprite><spawntime>1</spawntime></item><item><type>solid</type><xcoord>1930</xcoord><ycoord>1790</ycoord><sprite>bush</sprite><rotation>165</rotation></item><item><type>solid</type><xcoord>1940</xcoord><ycoord>1720</ycoord><sprite>bush</sprite></item><item><type>solid</type><xcoord>1860</xcoord><ycoord>1760</ycoord><sprite>bush</sprite><rotation>-15</rotation></item><item><type>solid</type><xcoord>1730</xcoord><ycoord>1740</ycoord><sprite>bush</sprite><rotation>30</rotation></item><item><type>solid</type><xcoord>1810</xcoord><ycoord>1720</ycoord><sprite>bush</sprite></item><item><type>solid</type><xcoord>1570</xcoord><ycoord>1930</ycoord><sprite>bush</sprite><rotation>30</rotation></item><item><type>solid</type><xcoord>1930</xcoord><ycoord>1470</ycoord><sprite>bush</sprite><rotation>15</rotation></item><item><type>enemy</type><xcoord>1380</xcoord><ycoord>1520</ycoord><sprite>tank1</sprite><spawntime>1</spawntime></item><item><type>enemy</type><xcoord>1720</xcoord><ycoord>1610</ycoord><sprite>tank1</sprite></item><item><type>solid</type><xcoord>1450</xcoord><ycoord>1880</ycoord><sprite>roadblock</sprite><rotation>60</rotation></item><item><type>solid</type><xcoord>1360</xcoord><ycoord>1710</ycoord><sprite>roadblock</sprite><rotation>60</rotation></item><item><type>solid</type><xcoord>1280</xcoord><ycoord>1560</ycoord><sprite>roadblock</sprite><rotation>-120</rotation></item><item><type>solid</type><xcoord>1500</xcoord><ycoord>1420</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>1690</xcoord><ycoord>1420</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>1890</xcoord><ycoord>1420</ycoord><sprite>roadblock</sprite></item><item><type>spawnPoint</type><xcoord>1890</xcoord><ycoord>1920</ycoord><sprite>player</sprite><rotation>-75</rotation></item><item><type>oPoint</type><xcoord>1250</xcoord><ycoord>110</ycoord><sprite>oPoint</sprite></item><item><type>oPoint</type><xcoord>530</xcoord><ycoord>1110</ycoord><sprite>oPoint</sprite></item><item><type>crate</type><xcoord>1610</xcoord><ycoord>560</ycoord><sprite>crate_missiles</sprite></item></body><edges><item y2=\"938\" x2=\"690\" y1=\"988\" x1=\"682\" /><item y2=\"988\" x2=\"684\" y1=\"1008\" x1=\"736\" /><item y2=\"1008\" x2=\"736\" y1=\"948\" x1=\"752\" /><item y2=\"948\" x2=\"752\" y1=\"936\" x1=\"690\" /><item y2=\"1164\" x2=\"734\" y1=\"1190\" x1=\"694\" /><item y2=\"1190\" x2=\"692\" y1=\"1238\" x1=\"722\" /><item y2=\"1238\" x2=\"722\" y1=\"1206\" x1=\"774\" /><item y2=\"1206\" x2=\"774\" y1=\"1166\" x1=\"734\" /><item y2=\"1694\" x2=\"1656\" y1=\"1734\" x1=\"1652\" /><item y2=\"1734\" x2=\"1652\" y1=\"1808\" x1=\"1764\" /><item y2=\"1808\" x2=\"1764\" y1=\"1812\" x1=\"1946\" /><item y2=\"1812\" x2=\"1946\" y1=\"1760\" x1=\"2024\" /><item y2=\"1696\" x2=\"2008\" y1=\"1694\" x1=\"1656\" /><item y2=\"1384\" x2=\"1408\" y1=\"1444\" x1=\"1408\" /><item y2=\"1444\" x2=\"1408\" y1=\"1454\" x1=\"1830\" /><item y2=\"1454\" x2=\"1830\" y1=\"1548\" x1=\"2012\" /><item y2=\"1392\" x2=\"2012\" y1=\"1390\" x1=\"1410\" /><item y2=\"262\" x2=\"1746\" y1=\"304\" x1=\"1736\" /><item y2=\"304\" x2=\"1736\" y1=\"378\" x1=\"1848\" /><item y2=\"378\" x2=\"1848\" y1=\"264\" x1=\"1892\" /><item y2=\"264\" x2=\"1892\" y1=\"268\" x1=\"1744\" /><item y2=\"52\" x2=\"192\" y1=\"86\" x1=\"190\" /><item y2=\"86\" x2=\"190\" y1=\"192\" x1=\"350\" /><item y2=\"192\" x2=\"350\" y1=\"138\" x1=\"472\" /><item y2=\"138\" x2=\"472\" y1=\"76\" x1=\"456\" /><item y2=\"76\" x2=\"456\" y1=\"36\" x1=\"560\" /><item y2=\"36\" x2=\"560\" y1=\"6\" x1=\"566\" /><item y2=\"6\" x2=\"566\" y1=\"-6\" x1=\"450\" /><item y2=\"-8\" x2=\"448\" y1=\"46\" x1=\"338\" /><item y2=\"46\" x2=\"338\" y1=\"56\" x1=\"194\" /><item y2=\"558\" x2=\"-6\" y1=\"558\" x1=\"198\" /><item y2=\"558\" x2=\"198\" y1=\"504\" x1=\"196\" /><item y2=\"504\" x2=\"196\" y1=\"460\" x1=\"272\" /><item y2=\"454\" x2=\"266\" y1=\"406\" x1=\"258\" /><item y2=\"410\" x2=\"256\" y1=\"450\" x1=\"126\" /><item y2=\"450\" x2=\"126\" y1=\"444\" x1=\"-6\" /><item y2=\"824\" x2=\"616\" y1=\"832\" x1=\"664\" /><item y2=\"832\" x2=\"664\" y1=\"740\" x1=\"696\" /><item y2=\"740\" x2=\"696\" y1=\"716\" x1=\"672\" /><item y2=\"716\" x2=\"672\" y1=\"-12\" x1=\"682\" /><item y2=\"-20\" x2=\"628\" y1=\"820\" x1=\"612\" /><item y2=\"234\" x2=\"1288\" y1=\"228\" x1=\"1234\" /><item y2=\"228\" x2=\"1234\" y1=\"940\" x1=\"1218\" /><item y2=\"940\" x2=\"1218\" y1=\"1428\" x1=\"1186\" /><item y2=\"1434\" x2=\"1200\" y1=\"1434\" x1=\"710\" /><item y2=\"1434\" x2=\"710\" y1=\"1392\" x1=\"706\" /><item y2=\"1392\" x2=\"706\" y1=\"1362\" x1=\"652\" /><item y2=\"1362\" x2=\"652\" y1=\"1432\" x1=\"588\" /><item y2=\"1432\" x2=\"588\" y1=\"1428\" x1=\"-12\" /><item y2=\"1490\" x2=\"-10\" y1=\"1492\" x1=\"1212\" /><item y2=\"1488\" x2=\"1208\" y1=\"2012\" x1=\"1496\" /><item y2=\"2010\" x2=\"1774\" y1=\"1866\" x1=\"1474\" /><item y2=\"1866\" x2=\"1474\" y1=\"1466\" x1=\"1250\" /><item y2=\"1466\" x2=\"1254\" y1=\"982\" x1=\"1272\" /><item y2=\"978\" x2=\"1274\" y1=\"990\" x1=\"1812\" /><item y2=\"990\" x2=\"1812\" y1=\"948\" x1=\"1812\" /><item y2=\"948\" x2=\"1812\" y1=\"930\" x1=\"1274\" /><item y2=\"926\" x2=\"1276\" y1=\"236\" x1=\"1286\" /></edges></level>";
}
if (this.value == "6") {
_root.preloadedLevel = "<level><header><title>Heating Up</title><width>1600</width><height>1600</height><time>85</time><spawnRotation>0</spawnRotation></header><body><item><type>crate</type><xcoord>950</xcoord><ycoord>830</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>670</xcoord><ycoord>850</ycoord><sprite>crate_missiles</sprite></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>790</xcoord><ycoord>710</ycoord><sprite>gasstation</sprite></item><item><type>zone</type><xcoord>900</xcoord><ycoord>160</ycoord><sprite>zone</sprite><spawnzone>3</spawnzone><width>234</width><height>280</height></item><item><type>zone</type><xcoord>130</xcoord><ycoord>1050</ycoord><sprite>zone</sprite><spawnzone>2</spawnzone><width>234</width><height>280</height></item><item><type>crate</type><xcoord>1180</xcoord><ycoord>1360</ycoord><sprite>crate_missiles</sprite></item><item><type>solid</type><xcoord>1390</xcoord><ycoord>1020</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>1530</xcoord><ycoord>520</ycoord><sprite>obstacle</sprite></item><item><type>enemy</type><xcoord>1480</xcoord><ycoord>910</ycoord><sprite>tank1</sprite><spawntime>20</spawntime></item><item><type>enemy</type><xcoord>620</xcoord><ycoord>460</ycoord><sprite>tank2</sprite><spawntime>70</spawntime></item><item><type>enemy</type><xcoord>700</xcoord><ycoord>1350</ycoord><sprite>tank2</sprite><spawntime>60</spawntime></item><item><type>enemy</type><xcoord>440</xcoord><ycoord>1330</ycoord><sprite>tank2</sprite><spawntime>60</spawntime></item><item><type>enemy</type><xcoord>940</xcoord><ycoord>1340</ycoord><sprite>tank2</sprite><spawntime>35</spawntime></item><item><type>enemy</type><xcoord>1140</xcoord><ycoord>380</ycoord><sprite>tank2</sprite><spawntime>55</spawntime></item><item><type>enemy</type><xcoord>1500</xcoord><ycoord>720</ycoord><sprite>tank2</sprite><spawntime>45</spawntime></item><item><type>enemy</type><xcoord>1450</xcoord><ycoord>720</ycoord><sprite>tank2</sprite><spawntime>35</spawntime></item><item><type>enemy</type><xcoord>1500</xcoord><ycoord>790</ycoord><sprite>tank2</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>1450</xcoord><ycoord>790</ycoord><sprite>tank2</sprite><spawntime>30</spawntime></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>930</xcoord><ycoord>710</ycoord><sprite>gasstation</sprite></item><item><type>enemy</type><xcoord>520</xcoord><ycoord>480</ycoord><sprite>tank2</sprite><spawntime>30</spawntime></item><item><type>crate</type><xcoord>650</xcoord><ycoord>690</ycoord><sprite>crate_health</sprite></item><item><type>solid</type><xcoord>720</xcoord><ycoord>780</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>910</xcoord><ycoord>780</ycoord><sprite>roadblock</sprite></item><item><type>enemy</type><xcoord>590</xcoord><ycoord>120</ycoord><sprite>tank1</sprite><spawnzone>3</spawnzone></item><item><type>zone</type><xcoord>840</xcoord><ycoord>180</ycoord><sprite>zone</sprite><spawnzone>3</spawnzone><width>0</width><height>0</height></item><item><type>enemy</type><xcoord>1390</xcoord><ycoord>90</ycoord><sprite>tank1</sprite><spawnzone>3</spawnzone></item><item><type>enemy</type><xcoord>500</xcoord><ycoord>100</ycoord><sprite>tank1</sprite><spawntime>2</spawntime></item><item><type>crate</type><xcoord>1170</xcoord><ycoord>110</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>800</xcoord><ycoord>100</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>1070</xcoord><ycoord>10</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>720</xcoord><ycoord>10</ycoord><sprite>crate_health</sprite></item><item><type>solid</type><xcoord>1040</xcoord><ycoord>70</ycoord><sprite>roadblock</sprite><rotation>-135</rotation></item><item><type>solid</type><xcoord>690</xcoord><ycoord>70</ycoord><sprite>roadblock</sprite><rotation>-135</rotation></item><item><type>enemy</type><xcoord>190</xcoord><ycoord>250</ycoord><sprite>tank1</sprite><spawntime>2</spawntime></item><item><type>enemy</type><xcoord>80</xcoord><ycoord>850</ycoord><sprite>tank1</sprite></item><item><type>enemy</type><xcoord>230</xcoord><ycoord>850</ycoord><sprite>tank1</sprite></item><item><type>solid</type><xcoord>340</xcoord><ycoord>1310</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>340</xcoord><ycoord>1500</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>350</xcoord><ycoord>930</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>350</xcoord><ycoord>1130</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>1260</xcoord><ycoord>930</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>1260</xcoord><ycoord>1120</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>1260</xcoord><ycoord>1310</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>1280</xcoord><ycoord>410</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>1270</xcoord><ycoord>580</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>1260</xcoord><ycoord>760</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>1180</xcoord><ycoord>310</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>1000</xcoord><ycoord>310</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>820</xcoord><ycoord>310</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>650</xcoord><ycoord>320</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>460</xcoord><ycoord>320</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>360</xcoord><ycoord>400</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>360</xcoord><ycoord>580</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>solid</type><xcoord>360</xcoord><ycoord>750</ycoord><sprite>roadblock</sprite><rotation>-90</rotation></item><item><type>spawnPoint</type><xcoord>140</xcoord><ycoord>1360</ycoord><sprite>player</sprite></item></body><edges><item y2=\"980\" x2=\"1354\" y1=\"1046\" x1=\"1350\" /><item y2=\"1046\" x2=\"1350\" y1=\"1050\" x1=\"1420\" /><item y2=\"1046\" x2=\"1420\" y1=\"992\" x1=\"1424\" /><item y2=\"992\" x2=\"1424\" y1=\"982\" x1=\"1354\" /><item y2=\"488\" x2=\"1500\" y1=\"552\" x1=\"1502\" /><item y2=\"552\" x2=\"1502\" y1=\"552\" x1=\"1560\" /><item y2=\"552\" x2=\"1560\" y1=\"496\" x1=\"1560\" /><item y2=\"496\" x2=\"1560\" y1=\"492\" x1=\"1500\" /><item y2=\"150\" x2=\"1084\" y1=\"130\" x1=\"1122\" /><item y2=\"130\" x2=\"1122\" y1=\"-30\" x1=\"996\" /><item y2=\"-10\" x2=\"920\" y1=\"142\" x1=\"1082\" /><item y2=\"132\" x2=\"732\" y1=\"130\" x1=\"780\" /><item y2=\"130\" x2=\"780\" y1=\"-18\" x1=\"632\" /><item y2=\"-16\" x2=\"568\" y1=\"134\" x1=\"726\" /><item y2=\"754\" x2=\"636\" y1=\"802\" x1=\"640\" /><item y2=\"802\" x2=\"640\" y1=\"804\" x1=\"1008\" /><item y2=\"804\" x2=\"1008\" y1=\"760\" x1=\"1008\" /><item y2=\"760\" x2=\"1008\" y1=\"754\" x1=\"640\" /><item y2=\"346\" x2=\"394\" y1=\"336\" x1=\"1246\" /><item y2=\"336\" x2=\"1246\" y1=\"1398\" x1=\"1236\" /><item y2=\"1398\" x2=\"1236\" y1=\"1400\" x1=\"1282\" /><item y2=\"1402\" x2=\"1286\" y1=\"290\" x1=\"1296\" /><item y2=\"290\" x2=\"1296\" y1=\"298\" x1=\"338\" /><item y2=\"1624\" x2=\"360\" y1=\"342\" x1=\"392\" /><item y2=\"304\" x2=\"334\" y1=\"1620\" x1=\"306\" /></edges></level>";
}
}
this.addEventListener("change", __f_change);
}
onClipEvent (load) {
function __f_load(eventObj) {
_root.preloadedLevel = "<level><header><title>Orange Zone</title><width>2000</width><height>1400</height><time>95</time><spawnRotation>45</spawnRotation></header><body><item><type>crate</type><xcoord>20</xcoord><ycoord>470</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>340</xcoord><ycoord>20</ycoord><sprite>crate_health</sprite></item><item><type>crate</type><xcoord>730</xcoord><ycoord>310</ycoord><sprite>crate_missiles</sprite></item><item><type>crate</type><xcoord>1010</xcoord><ycoord>590</ycoord><sprite>crate_missiles</sprite></item><item><type>solid</type><xcoord>1930</xcoord><ycoord>690</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>1800</xcoord><ycoord>560</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>1610</xcoord><ycoord>770</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>1490</xcoord><ycoord>630</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>1670</xcoord><ycoord>420</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>1550</xcoord><ycoord>280</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>1390</xcoord><ycoord>220</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>1240</xcoord><ycoord>290</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>1360</xcoord><ycoord>650</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>1230</xcoord><ycoord>780</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>1090</xcoord><ycoord>920</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>1110</xcoord><ycoord>420</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>980</xcoord><ycoord>540</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>770</xcoord><ycoord>900</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>640</xcoord><ycoord>760</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>510</xcoord><ycoord>620</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>360</xcoord><ycoord>570</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>180</xcoord><ycoord>570</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>60</xcoord><ycoord>560</ycoord><sprite>obstacle</sprite><rotation>-15</rotation></item><item><type>spawnPoint</type><xcoord>1480</xcoord><ycoord>1260</ycoord><sprite>player</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>20</xcoord><ycoord>580</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>110</xcoord><ycoord>620</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>1420</xcoord><ycoord>140</ycoord><sprite>bush</sprite><rotation>15</rotation></item><item><type>solid</type><xcoord>1400</xcoord><ycoord>10</ycoord><sprite>bush</sprite><rotation>-30</rotation></item><item><type>solid</type><xcoord>1460</xcoord><ycoord>40</ycoord><sprite>bush</sprite></item><item><type>solid</type><xcoord>1470</xcoord><ycoord>110</ycoord><sprite>bush</sprite><rotation>-60</rotation></item><item><type>solid</type><xcoord>1380</xcoord><ycoord>100</ycoord><sprite>bush</sprite><rotation>-15</rotation></item><item><type>solid</type><xcoord>1330</xcoord><ycoord>70</ycoord><sprite>bush</sprite><rotation>-165</rotation></item><item><type>solid</type><xcoord>1290</xcoord><ycoord>10</ycoord><sprite>bush</sprite></item><item><type>solid</type><xcoord>1300</xcoord><ycoord>160</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>1360</xcoord><ycoord>180</ycoord><sprite>obstacle</sprite><rotation>30</rotation></item><item><type>solid</type><xcoord>920</xcoord><ycoord>970</ycoord><sprite>roadblock</sprite></item><item><type>solid</type><xcoord>850</xcoord><ycoord>510</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>730</xcoord><ycoord>380</ycoord><sprite>roadblock</sprite><rotation>45</rotation></item><item><type>solid</type><xcoord>1590</xcoord><ycoord>910</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>1450</xcoord><ycoord>1030</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>1320</xcoord><ycoord>1150</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>1190</xcoord><ycoord>1280</ycoord><sprite>roadblock</sprite><rotation>-45</rotation></item><item><type>solid</type><xcoord>1100</xcoord><ycoord>1360</ycoord><sprite>obstacle</sprite></item><item><type>solid</type><xcoord>1160</xcoord><ycoord>1370</ycoord><sprite>obstacle</sprite><rotation>-15</rotation></item><item><type>solid</type><xcoord>1940</xcoord><ycoord>1100</ycoord><sprite>bush</sprite></item><item><type>enemy</type><xcoord>1900</xcoord><ycoord>940</ycoord><sprite>tank1</sprite></item><item><type>enemy</type><xcoord>1900</xcoord><ycoord>1280</ycoord><sprite>tank1</sprite></item><item><type>enemy</type><xcoord>1580</xcoord><ycoord>520</ycoord><sprite>tank1</sprite><spawntime>4</spawntime></item><item><type>enemy</type><xcoord>1170</xcoord><ycoord>600</ycoord><sprite>tank1</sprite><spawntime>8</spawntime></item><item><type>enemy</type><xcoord>720</xcoord><ycoord>650</ycoord><sprite>tank1</sprite><spawntime>9</spawntime></item><item><istarget>1</istarget><power>1000</power><type>solid</type><xcoord>1170</xcoord><ycoord>120</ycoord><sprite>gasstation</sprite><rotation>-120</rotation></item><item><type>enemy</type><xcoord>130</xcoord><ycoord>120</ycoord><sprite>tank2</sprite><spawntime>20</spawntime></item><item><type>enemy</type><xcoord>250</xcoord><ycoord>380</ycoord><sprite>tank2</sprite><spawntime>20</spawntime></item><item><type>enemy</type><xcoord>980</xcoord><ycoord>810</ycoord><sprite>tank2</sprite><spawntime>30</spawntime></item><item><type>enemy</type><xcoord>1260</xcoord><ycoord>540</ycoord><sprite>tank2</sprite><spawntime>30</spawntime></item><item><type>enemy</type><xcoord>820</xcoord><ycoord>710</ycoord><sprite>tank2</sprite><spawntime>35</spawntime></item><item><type>enemy</type><xcoord>580</xcoord><ycoord>460</ycoord><sprite>tank2</sprite><spawntime>40</spawntime></item><item><type>enemy</type><xcoord>330</xcoord><ycoord>120</ycoord><sprite>tank2</sprite><spawntime>50</spawntime></item><item><type>enemy</type><xcoord>390</xcoord><ycoord>260</ycoord><sprite>tank2</sprite><spawntime>60</spawntime></item><item><type>crate</type><xcoord>1810</xcoord><ycoord>1110</ycoord><sprite>crate_missiles</sprite></item><item><type>oPoint</type><xcoord>300</xcoord><ycoord>410</ycoord><sprite>oPoint</sprite></item><item><type>enemy</type><xcoord>120</xcoord><ycoord>380</ycoord><sprite>tank2</sprite><spawntime>70</spawntime></item><item><type>enemy</type><xcoord>120</xcoord><ycoord>180</ycoord><sprite>tank2</sprite><spawntime>80</spawntime></item><item><type>enemy</type><xcoord>1030</xcoord><ycoord>270</ycoord><sprite>tank2</sprite><spawntime>69</spawntime></item><item><type>enemy</type><xcoord>730</xcoord><ycoord>100</ycoord><sprite>tank2</sprite><spawntime>75</spawntime></item></body><edges><item y2=\"-30\" x2=\"1236\" y1=\"138\" x1=\"1238\" /><item y2=\"530\" x2=\"918\" y1=\"280\" x1=\"678\" /><item y2=\"280\" x2=\"678\" y1=\"312\" x1=\"634\" /><item y2=\"312\" x2=\"634\" y1=\"608\" x1=\"922\" /><item y2=\"138\" x2=\"1236\" y1=\"188\" x1=\"1300\" /><item y2=\"188\" x2=\"1300\" y1=\"540\" x1=\"916\" /><item y2=\"610\" x2=\"926\" y1=\"232\" x1=\"1344\" /><item y2=\"232\" x2=\"1344\" y1=\"238\" x1=\"1476\" /><item y2=\"238\" x2=\"1476\" y1=\"816\" x1=\"2000\" /><item y2=\"1074\" x2=\"2020\" y1=\"1070\" x1=\"1864\" /><item y2=\"1070\" x2=\"1864\" y1=\"1130\" x1=\"1866\" /><item y2=\"1130\" x2=\"1866\" y1=\"1128\" x1=\"2006\" /><item y2=\"1398\" x2=\"1236\" y1=\"1332\" x1=\"1150\" /><item y2=\"1328\" x2=\"1152\" y1=\"834\" x1=\"1698\" /><item y2=\"834\" x2=\"1698\" y1=\"548\" x1=\"1434\" /><item y2=\"548\" x2=\"1434\" y1=\"940\" x1=\"1004\" /><item y2=\"942\" x2=\"1004\" y1=\"948\" x1=\"846\" /><item y2=\"948\" x2=\"846\" y1=\"548\" x1=\"468\" /><item y2=\"548\" x2=\"468\" y1=\"540\" x1=\"-10\" /></edges></level>";
}
this.addEventListener("load", __f_load);
}
Frame 305
gotoAndPlay(goNext +229);
Frame 306
currentLevel++;
_root.preloadedLevel = all_levels[currentLevel];
Frame 341
function prepareBlocks() {
lvlBlocks = new Array();
spawnZones = new Array();
hBlocks = Math.round(level.header.width / 200) + 1;
vBlocks = Math.round(level.header.height / 200) + 1;
var _local2 = 1;
while (_local2 <= hBlocks) {
lvlBlocks[_local2] = [];
var _local1 = 1;
while (_local1 <= vBlocks) {
lvlBlocks[_local2][_local1] = [];
if ((_local2 <= (hBlocks - 1)) && (_local1 <= (vBlocks - 1))) {
if (_local1 == 1) {
var _local3 = [];
_local3.xcoord = _local2 * 200;
_local3.ycoord = (_local1 * 200) - 100;
_local3.type = "solid";
_local3.sprite = "roadblock";
_local3.isBoundary = 1;
_local3.rotation = -5 + random(10);
lvlBlocks[_local2][_local1].push(_local3);
}
if (_local1 == (vBlocks - 1)) {
var _local3 = [];
_local3.xcoord = _local2 * 200;
_local3.ycoord = (_local1 * 200) + 100;
_local3.type = "solid";
_local3.sprite = "roadblock";
_local3.isBoundary = 1;
_local3.rotation = -5 + random(10);
lvlBlocks[_local2][_local1].push(_local3);
}
if (_local2 == 1) {
var _local3 = [];
_local3.xcoord = (_local2 * 200) - 100;
_local3.ycoord = _local1 * 200;
_local3.type = "solid";
_local3.isBoundary = 1;
_local3.sprite = "roadblock";
_local3.rotation = -85 - random(10);
lvlBlocks[_local2][_local1].push(_local3);
}
if (_local2 == (hBlocks - 1)) {
var _local3 = [];
_local3.xcoord = (_local2 * 200) + 100;
_local3.ycoord = _local1 * 200;
_local3.type = "solid";
_local3.isBoundary = 1;
_local3.sprite = "roadblock";
_local3.rotation = -85 - random(10);
lvlBlocks[_local2][_local1].push(_local3);
}
}
for (var _local6 in level.body) {
var _local5 = parseInt(level.body[_local6].xcoord);
var _local4 = parseInt(level.body[_local6].ycoord);
if ((_local5 >= ((_local2 * 200) - 200)) && (_local5 < (_local2 * 200))) {
if ((_local4 >= ((_local1 * 200) - 200)) && (_local4 < (_local1 * 200))) {
lvlBlocks[_local2][_local1].push(level.body[_local6]);
}
}
}
_local1++;
}
_local2++;
}
}
var lvlXML = new XML();
_root.onEnterFrame = function () {
bla = 3;
};
stop();
lvlXML.ignoreWhite = true;
lvlXML.onLoad = function () {
level = new Array();
level.header = new Array();
level.body = new Array();
level.edges = new Array();
itemCount = 0;
this.decode();
edges = this.firstChild.childNodes[2].childNodes;
for (var _local7 in edges) {
level.edges.push({x1:parseInt(edges[_local7].attributes.x1), y1:parseInt(edges[_local7].attributes.y1), x2:parseInt(edges[_local7].attributes.x2), y2:parseInt(edges[_local7].attributes.y2)});
}
var _local6 = this.firstChild;
while (_local6 != null) {
var _local5 = _local6.firstChild;
while (_local5 != null) {
if (_local5.nodeName == "header") {
var _local3 = _local5.firstChild;
while (_local3 != null) {
level.header[_local3.nodeName] = _local3.firstChild;
_local3 = _local3.nextSibling;
}
}
if (_local5.nodeName == "body") {
var _local4 = _local5.firstChild;
while (_local4 != null) {
level.body[++itemCount] = [];
var _local3 = _local4.firstChild;
while (_local3 != null) {
level.body[itemCount][_local3.nodeName] = _local3.firstChild.toString();
if (_local3.nodeName == "xcoord") {
level.body[itemCount][_local3.nodeName] = int(_local3.firstChild.toString()) + 100;
}
if (_local3.nodeName == "ycoord") {
level.body[itemCount][_local3.nodeName] = int(_local3.firstChild.toString()) + 100;
}
if (_local3.nodeName == "width") {
level.body[itemCount][_local3.nodeName] = int(_local3.firstChild.toString());
}
if (_local3.nodeName == "height") {
level.body[itemCount][_local3.nodeName] = int(_local3.firstChild.toString());
}
if ((_local3.nodeName == "type") && (_local3.firstChild.toString() == "spawnPoint")) {
for (var _local7 in _local4.childNodes) {
if (_local4.childNodes[_local7].nodeName == "xcoord") {
_root.startX = parseInt(_local4.childNodes[_local7].firstChild.toString()) + 100;
}
if (_local4.childNodes[_local7].nodeName == "ycoord") {
_root.startY = parseInt(_local4.childNodes[_local7].firstChild.toString()) + 100;
}
}
}
_local3 = _local3.nextSibling;
}
_local4 = _local4.nextSibling;
}
}
_local5 = _local5.nextSibling;
}
_local6 = _local6.nextSibling;
}
level.header.width = parseInt(level.header.width);
level.header.height = parseInt(level.header.height);
level.header.time = parseInt(level.header.time);
level.header.spawnRotation = parseInt(level.header.spawnRotation) + 90;
prepareBlocks();
_root.gotoAndStop("game");
};
lvlXML.parseXML(_root.preloadedLevel);
lvlXML.onLoad();
Frame 342
gotoAndStop ("game");
Frame 344
gotoAndPlay ("Highscores");
Frame 355
gotoAndPlay ("Credits");
Frame 367
function addSurf(x1, y1, x2, y2) {
var _local2 = _root.collEngine.addSurf(x1, y1, x2, y2);
_local2.setCollisionDepth(50);
_root.collEngine.addSurface(_local2);
_root.collEngine.paintSurfaces();
return(_local2);
}
function getCorners(target) {
var _local3 = target.ha._width;
var _local2 = target.ha._height;
var _local7 = {x:(-_local3) / 2, y:(-_local2) / 2};
var _local6 = {x:_local3 / 2, y:(-_local2) / 2};
var _local5 = {x:_local3 / 2, y:_local2 / 2};
var _local4 = {x:(-_local3) / 2, y:_local2 / 2};
target.localToGlobal(_local7);
target.localToGlobal(_local6);
target.localToGlobal(_local5);
target.localToGlobal(_local4);
return(Array(_local7, _local6, _local5, _local4));
}
function startFTimer() {
if (!_root.totalFTime) {
_root.totalFTime = 0;
}
startTime = new Date();
_root.startFTime = startTime.getTime();
_root.loopsFTimer++;
}
function stopFTimer() {
endTime = new Date();
now = endTime.getTime();
_root.totalFTime = _root.totalFTime + (now - _root.startFTime);
}
function explodeFX(target, w, h) {
var _local13 = new flash.display.BitmapData(Stage.width + 50, Stage.height + 50, false, 0);
if (target._x) {
} else {
for (var _local15 in target) {
var _local12 = new flash.geom.Matrix();
_local12.translate(target[_local15]._x, target[_local15]._y);
var _local10 = new flash.geom.Matrix();
_local10.rotate((target[_local15]._rotation / 180) * Math.PI);
_local10.concat(_local12);
_local13.draw(target[_local15], _local10);
target[_local15]._visible = 0;
}
}
var _local5 = this.createEmptyMovieClip("container", 500001);
_local5.createEmptyMovieClip("holder", 1);
_local5.holder.attachBitmap(_local13, new flash.geom.Matrix());
var _local3 = 0;
var _local2 = 0;
var _local14 = [];
while (_local3 <= Stage.width) {
while (_local2 <= Stage.height) {
var _local7 = new flash.geom.Point(0, 0);
var _local4 = new flash.display.BitmapData(w, h, false, 4473924);
var t = _local5.createEmptyMovieClip("MC" + _local5.getNextHighestDepth(), _local5.getNextHighestDepth());
t._x = _local3;
t._y = _local2;
t.startFrame = random(10) + (_local3 / 20);
t.t = 0;
t.onEnterFrame = function () {
if ((this.t++) > this.startFrame) {
this._xscale = this._xscale + this.t;
this._yscale = this._yscale + this.t;
this._x = this._x - (this.t / 4);
this._y = this._y - (this.t / 4);
if (this._xscale >= 300) {
this._alpha = this._alpha - 20;
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
}
};
var _local9 = new flash.geom.Rectangle(_local3, _local2, w, h);
_local4.copyPixels(_local13, _local9, _local7);
t.attachBitmap(_local4, 1);
_local14.push(t);
_local2 = _local2 + h;
}
_local2 = 0;
_local3 = _local3 + w;
}
_local13.dispose();
return(_local14);
}
function explodeStage(message, goHome) {
var _local3 = [];
gamePaused = 1;
fps_counter._visible = 0;
radarBG._visible = 0;
timeDisplay._visible = 0;
radarMask._alpha = 0;
_local3.push(radar);
_local3.push(spinner);
_local3.push(hud);
if (jeep._visible) {
_local3.push(jeep);
}
_local3.push(typingMC);
for (var _local4 in cratesArr) {
_local3.push(cratesArr[_local4].mc);
}
for (var _local4 in mineArr) {
_local3.push(mineArr[_local4].mc);
}
for (var _local4 in terrOnScr) {
_local3.push(terrOnScr[_local4].mc);
}
for (var _local4 in enemiesOnScreen) {
_local3.push(enemiesOnScreen[_local4].mc);
}
_local3.push(bg);
for (var _local4 in arrowArr) {
_local3.push(arrowArr[_local4]);
}
var _local5 = function () {
clearInterval(_root.proceed2INTVL);
_root.init();
};
if (lives == 0) {
message = "gameover";
_global.totalScore = _global.totalScore + levelScore;
trace(_global.totalScore);
_local5 = function () {
clearInterval(_root.proceed2INTVL);
_root.clearAll();
_root.gotoAndPlay("gameover");
};
}
if (message == "youwin") {
if ((currentLevel + 1) == all_levels.length) {
_local5 = function () {
clearInterval(_root.proceed2INTVL);
delete _root.radarSetup;
delete _root.map;
_root.clearAll();
_root.gotoAndPlay("gamecomplete");
};
} else {
_local5 = function () {
clearInterval(_root.proceed2INTVL);
delete _root.radarSetup;
delete _root.map;
_root.clearAll();
_root.gotoAndPlay("startmission");
};
}
}
if (goHome) {
var _local7 = function () {
clearInterval(_root.proceedINTVL);
_root.clearAll();
_root.gotoAndPlay("menu");
};
} else {
var _local7 = function () {
clearInterval(_root.proceedINTVL);
var _local2 = _root.attachMovie("messages", "messages", 50);
_local2.showMessage = message;
};
}
explodeFX(_local3, 50, 50);
proceedINTVL = setInterval(_local7, 700);
if (!goHome) {
proceed2INTVL = setInterval(_local5, 4500);
}
clearAll();
}
function flicker(what, limit) {
if (!what.flashing) {
if (!limit) {
limit = 10;
}
what.flashInterval = setInterval(changeBrightness, 25, what, limit);
what.flashFrame = 0;
what.flashing = true;
}
}
function changeBrightness(target, limit) {
if (target.flash == "on") {
target.flash = "off";
var _local3 = new Color(target);
var _local2 = {rb:"255", gb:"255", bb:"255"};
_local3.setTransform(_local2);
target.flashFrame = target.flashFrame + 1;
} else {
target.flash = "on";
var _local3 = new Color(target);
var _local2 = {rb:"0", gb:"0", bb:"0"};
_local3.setTransform(_local2);
target.flashFrame = target.flashFrame + 1;
}
if (target.flashFrame >= limit) {
clearInterval(target.flashInterval);
target.flashing = false;
var _local3 = new Color(target);
var _local2 = {rb:"0", gb:"0", bb:"0"};
_local3.setTransform(_local2);
}
}
function abs2rel(absPosX, absPosY) {
var _local2 = ((-ground.x) - 300) + absPosX;
var _local1 = ((-ground.y) - 300) + absPosY;
if (frameCount < 10) {
return({x:500, y:500});
}
return({x:_local2, y:_local1});
}
function rel2abs(relPosX, relPosY) {
var _local2 = (ground.x + 300) + relPosX;
var _local1 = (ground.y + 300) + relPosY;
return({x:_local2, y:_local1});
}
function calcAngle(t1, t2) {
var _local6 = t1._x;
if (!_local6) {
_local6 = t1.x;
}
var _local4 = t1._y;
if (!_local4) {
_local4 = t1.y;
}
var _local5 = t2._x;
if (!_local5) {
_local5 = t2.x;
}
var _local3 = t2._y;
if (!_local3) {
_local3 = t2.y;
}
if (t2._parent && (t2._parent != _root)) {
_local5 = (t2._x + t2._parent._x) + t2._parent._parent._x;
_local3 = (t2._y + t2._parent._y) + t2._parent._parent._y;
}
var _local11 = _local6 - _local5;
var _local9 = _local4 - _local3;
var _local8 = _local11 / _local9;
var _local10 = Math.atan(_local8);
var _local12 = (_local10 * 180) / Math.PI;
res = _local12;
if (_local4 > _local3) {
res = 90 - res;
} else if (_local4 < _local3) {
res = 180 - (res - 90);
}
if (res == 90) {
res = 0;
}
return(res);
}
function calcDist(t1, t2) {
var _local4 = t1._x;
if (!_local4) {
_local4 = t1.x;
}
var _local2 = t1._y;
if (!_local2) {
_local2 = t1.y;
}
var _local3 = t2._x;
if (!_local3) {
_local3 = t2.x;
}
var _local1 = t2._y;
if (!_local1) {
_local1 = t2.y;
}
var _local7 = _local4 - _local3;
var _local5 = _local2 - _local1;
var _local9 = Math.sqrt((_local7 * _local7) + (_local5 * _local5));
return(_local9);
}
function initCrates() {
cratesArr = [];
for (var _local6 in lvlBlocks) {
for (var _local5 in lvlBlocks[_local6]) {
var _local3 = lvlBlocks[_local6][_local5];
for (var _local4 in _local3) {
var _local2 = _local3[_local4];
if (_local2.type == "crate") {
var _local1 = new Object();
_local1.x = _local2.xcoord;
_local1.y = _local2.ycoord;
_local1.sprite = _local2.sprite;
cratesArr.push(_local1);
}
}
}
}
}
function handleMines() {
for (var _local10 in mineArr) {
var _local2 = mineArr[_local10];
var _local5 = 0;
var _local7 = ((-ground.x) - 270) + _local2.x;
var _local6 = ((-ground.y) - 240) + _local2.y;
for (var _local9 in enemyArr) {
var _local3 = enemyArr[_local9];
if ((_local3.x + 40) > (_local2.x - 10)) {
if ((_local3.x - 40) < (_local2.x - 10)) {
if ((_local3.y + 40) > (_local2.y - 10)) {
if ((_local3.y - 40) < (_local2.y - 10)) {
_local5 = 1;
_local2.mc.removeMovieClip();
handleImpact(-1, _local3);
if (_local2.onScreen) {
var _local4 = _root.drawingMc.attachMovie("explosion_s", "expl_" + (++dCount), dCount);
flashArr.push(_local4);
_local4.myIndex = flashArr.length - 1;
_local4._x = _local2.mc._x;
_local4._y = _local2.mc._y;
} else {
snd_expl.start();
}
cameraShake(15);
mineArr.splice(_local10, 1);
break;
}
}
}
}
}
if (!_local5) {
if (!_local2.onScreen) {
if (_local7 > 0) {
if (_local7 < 400) {
if (_local6 > 0) {
if (_local6 < 550) {
_local2.onScreen = 1;
var _local8 = _root.drawingMc.attachMovie("mine", "mineSprite" + getNextDepth(), dCount0);
_local2.mc = _local8;
_local8.myIndex = _local10;
}
}
}
}
}
if (_local2.onScreen) {
_local2.mc._x = _local7;
_local2.mc._y = _local6;
if (_local2.mc._x > 400) {
_local2.mc.removeMovieClip();
_local2.onScreen = 0;
} else if (_local2.mc._x < 0) {
_local2.mc.removeMovieClip();
_local2.onScreen = 0;
} else if (_local2.mc._y > 550) {
_local2.mc.removeMovieClip();
_local2.onScreen = 0;
} else if (_local2.mc._y < 0) {
_local2.mc.removeMovieClip();
_local2.onScreen = 0;
} else if (_local2.mc.ha.hitTest(jeep.ha)) {
}
}
}
}
}
function handleCrates() {
for (var _local8 in cratesArr) {
var _local3 = cratesArr[_local8];
var _local6 = ((-ground.x) - 270) + _local3.x;
var _local5 = ((-ground.y) - 280) + _local3.y;
if (!_local3.onScreen) {
if (_local6 > 0) {
if (_local6 < 400) {
if (_local5 > 0) {
if (_local5 < 550) {
_local3.onScreen = 1;
var _local7 = _root.drawingMc.attachMovie(_local3.sprite, "crateSprite" + getNextDepth(), dCount0);
_local3.mc = _local7;
_local7.myIndex = _local8;
}
}
}
}
}
if (_local3.onScreen) {
_local3.mc._x = _local6;
_local3.mc._y = _local5;
if (_local3.mc._x > 400) {
if (_local3.mc._currentframe > 30) {
delete cratesArr[_local3.mc.myIndex];
}
_local3.mc.removeMovieClip();
_local3.onScreen = 0;
} else if (_local3.mc._x < 0) {
if (_local3.mc._currentframe > 30) {
delete cratesArr[_local3.mc.myIndex];
}
_local3.mc.removeMovieClip();
_local3.onScreen = 0;
} else if (_local3.mc._y > 550) {
if (_local3.mc._currentframe > 30) {
delete cratesArr[_local3.mc.myIndex];
}
_local3.mc.removeMovieClip();
_local3.onScreen = 0;
} else if (_local3.mc._y < 0) {
if (_local3.mc._currentframe > 30) {
delete cratesArr[_local3.mc.myIndex];
}
_local3.mc.removeMovieClip();
_local3.onScreen = 0;
} else if (_local3.mc.ha.hitTest(jeep.ha)) {
snd_sleekup.start();
levelScore = levelScore + 50;
hud.setScore(levelScore);
if (_local3.sprite == "crate_health") {
_global.type.typeMessage("POWERUP COLLECTED: EXTRA POWER", parseInt("249161", 16));
jeep.power = jeep.power + 334;
if (jeep.power > 1000) {
jeep.power = 1000;
}
var _local4 = int(100 - (jeep.power / 10));
if (_local4 < 1) {
_local4 = 1;
}
hud.healthBar.gotoAndStop(_local4);
}
if (_local3.sprite == "crate_mines") {
_global.type.typeMessage("POWERUP COLLECTED: LANDMINES", parseInt("249161", 16));
weapons.mine.ammu = weapons.mine.ammu + 5;
updateAmmuDisplay();
}
if (_local3.sprite == "crate_missiles") {
_global.type.typeMessage("POWERUP COLLECTED: MISSILES", parseInt("249161", 16));
weapons.rocket.ammu = weapons.rocket.ammu + 10;
if (currentWeapon != "rocket") {
changeWeaponTo(weapons.rocket);
}
updateAmmuDisplay();
}
_local3.mc.myIndex = _local8;
_local3.mc.gotoAndPlay("fade");
}
}
}
}
function initEnemies() {
enemyArr = [];
zoneArr = [];
zoneEnemies = [];
enemiesOnScreen = [];
t_messageArr = [];
pushEnemies = [];
oPointArr = [];
arrowArr = [];
hud.radar.zones = [];
hud.radar.txt_zones = [];
clearInterval(spawnEnemiesINTVL);
clearInterval(checkZonesINTVL);
spawnEnemiesINTVL = setInterval(spawnEnemies, 2000);
checkZonesINTVL = setInterval(checkZones, 300);
for (var _local12 in lvlBlocks) {
for (var _local11 in lvlBlocks[_local12]) {
var _local7 = lvlBlocks[_local12][_local11];
for (var _local10 in _local7) {
enemy = _local7[_local10];
enemy.spawntime = parseInt(enemy.spawntime);
if (enemy.type == "oPoint") {
oPointArr.push({x:enemy.xcoord, y:enemy.ycoord});
}
if ((enemy.type == "zone") && (enemy.message)) {
if (enemy.spawntime) {
t_messageArr[enemy.spawntime] = enemy.message;
} else {
var _local5 = enemy.width / 2;
var _local4 = enemy.height / 2;
var _local2 = [];
_local2.push({x:enemy.xcoord - _local5, y:enemy.ycoord - _local4});
_local2.push({x:(enemy.xcoord + enemy.width) - _local5, y:enemy.ycoord - _local4});
_local2.push({x:(enemy.xcoord + enemy.width) - _local5, y:(enemy.ycoord + enemy.height) - _local4});
_local2.push({x:enemy.xcoord - _local5, y:(enemy.ycoord + enemy.height) - _local4});
var _local3 = hud.radar.attachMovie("zoneRect", "zoneRect_" + hud.radar.getNextHighestDepth(), hud.radar.getNextHighestDepth());
_local3.message = enemy.message;
_local3._visible = false;
_local3._x = _local2[0].x / radarFactorX;
_local3._y = _local2[0].y / radarFactorY;
_local3._width = (_local2[2].x / radarFactorX) - (_local2[0].x / radarFactorX);
_local3._height = (_local2[2].y / radarFactorY) - (_local2[0].y / radarFactorY);
hud.radar.txt_zones.push(_local3);
}
} else if (enemy.type == "zone") {
var _local5 = enemy.width / 2;
var _local4 = enemy.height / 2;
var _local2 = [];
_local2.push({x:enemy.xcoord - _local5, y:enemy.ycoord - _local4});
_local2.push({x:(enemy.xcoord + enemy.width) - _local5, y:enemy.ycoord - _local4});
_local2.push({x:(enemy.xcoord + enemy.width) - _local5, y:(enemy.ycoord + enemy.height) - _local4});
_local2.push({x:enemy.xcoord - _local5, y:(enemy.ycoord + enemy.height) - _local4});
var _local3 = hud.radar.attachMovie("zoneRect", "zoneRect_" + hud.radar.getNextHighestDepth(), hud.radar.getNextHighestDepth());
_local3._visible = false;
_local3._x = _local2[0].x / radarFactorX;
_local3._y = _local2[0].y / radarFactorY;
_local3._width = (_local2[2].x / radarFactorX) - (_local2[0].x / radarFactorX);
_local3._height = (_local2[2].y / radarFactorY) - (_local2[0].y / radarFactorY);
hud.radar.zones[int(enemy.spawnzone)] = _local3;
} else if (enemy.type == "enemy") {
if (int(enemy.spawnzone) >= 1) {
var _local1 = new Object();
_local1.x = enemy.xcoord;
_local1.y = enemy.ycoord;
newnewEnemy.spawntime = enemy.spawntime;
_local1.sprite = "tank1";
_local1.rotation = 0;
if (enemy.sprite == "tank1") {
_local1.steerMode = "attack";
} else {
_local1.steerMode = "destroy";
}
_local1.power = enemyInfo.tank1.maxHealth;
_local1.maxHealth = enemyInfo.tank1.maxHealth;
if (!zoneEnemies[enemy.spawnzone]) {
zoneEnemies[enemy.spawnzone] = [];
}
zoneEnemies[enemy.spawnzone].push(_local1);
} else if (!enemy.spawntime) {
var _local1 = new Object();
_local1.x = enemy.xcoord;
_local1.y = enemy.ycoord;
_local1.sprite = "tank1";
_local1.rotation = 0;
var _local6 = hud.radar.attachMovie("radar_enemy", "obj" + getNextDepth(), dCount0);
_local6._x = enemy.xcoord / radarFactorX;
_local6._y = enemy.ycoord / radarFactorY;
_local1.radarObj = _local6;
_local1.wayPoints = [];
_local1.calcAngle = true;
_local1.framesSinceLastCalc = 60;
if (enemy.sprite == "tank1") {
_local1.steerMode = "attack";
} else {
_local1.steerMode = "destroy";
}
_local1.power = enemyInfo.tank1.maxHealth;
_local1.maxHealth = enemyInfo.tank1.maxHealth;
_local1.framesSinceLastPathSet = 0;
enemyArr.push(_local1);
} else {
var _local1 = new Object();
_local1.x = enemy.xcoord;
_local1.y = enemy.ycoord;
_local1.spawntime = enemy.spawntime;
_local1.sprite = "tank1";
_local1.rotation = 0;
if (enemy.sprite == "tank1") {
_local1.steerMode = "attack";
} else {
_local1.steerMode = "destroy";
}
_local1.power = enemyInfo.tank1.maxHealth;
_local1.maxHealth = enemyInfo.tank1.maxHealth;
pushEnemies.push(_local1);
}
}
}
}
}
}
function checkZones() {
if (frameCount > 100) {
for (var _local2 in hud.radar.zones) {
if (hud.radar.zones[_local2].hitTest(hud.radar.player)) {
if (!hud.radar.zones[_local2].inActive) {
hud.radar.zones[_local2].inActive = 1;
hud.radar.zones[_local2].play();
spawnEnemiesInZone(_local2);
}
}
}
for (var _local2 in hud.radar.txt_zones) {
if (hud.radar.txt_zones[_local2].hitTest(hud.radar.player)) {
if (!hud.radar.txt_zones[_local2].inActive) {
hud.radar.txt_zones[_local2].inActive = 1;
hud.radar.txt_zones[_local2].play();
_global.type.typeMessage(hud.radar.txt_zones[_local2].message, parseInt("CC3399", 16));
}
}
}
}
}
function spawnEnemiesInZone(zoneId) {
for (var _local2 in zoneEnemies[zoneId]) {
spawnEnemy(zoneEnemies[zoneId][_local2]);
delete zoneEnemies[zoneId][_local2];
}
}
function spawnEnemy(e) {
if (enemyArr.length < 4) {
var _local3 = hud.radar.attachMovie("radar_enemy", "obj" + getNextDepth(), dCount0);
_local3._x = e.x / radarFactorX;
_local3._y = e.y / radarFactorY;
rectBox1 = new CircleParticle(1, 1, 30);
_root.collEngine.addPrimitive(rectBox1);
e.radarObj = _local3;
e.wayPoints = [];
e.calcAngle = true;
e.framesSinceLastCalc = 60;
enemyArr.push(e);
} else {
e.spawntime = levelTime + 3;
pushEnemies.push(e);
}
}
function spawnEnemies() {
for (var _local2 in pushEnemies) {
var _local1 = pushEnemies[_local2];
if ((_local1.spawntime < levelTime) && (!_local1.spawnzone)) {
spawnEnemy(_local1);
delete pushEnemies[_local2];
}
}
}
function findTarget(e) {
var _local5 = 99999 /* 0x01869F */;
var _local7 = 0;
for (var _local8 in targetArr) {
var _local2 = false;
if (targetArr[_local8].power < 0) {
_local2 = true;
}
if (!_local2) {
var _local4 = targetArr[_local8].x - e.x;
var _local3 = targetArr[_local8].y - e.y;
var _local1 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
if (_local1 < _local5) {
_local5 = _local1;
_local7 = targetArr[_local8];
}
}
}
return(_local7);
}
function updateWPIs() {
if (!indArr) {
indArr = [];
}
for (var _local5 in indArr) {
indArr[_local5].removeMovieClip();
indArr.splice(_local5, 1);
}
for (var _local6 in enemyArr) {
var _local3 = enemyArr[_local6];
for (var _local4 in _local3.wayPoints) {
var _local2 = _root.drawingMc.attachMovie("marker_y", "marker_" + getNextDepth(), dCount0);
_local2._x = (((-ground.x) - 300) + _local3.wayPoints[_local4].x) + 30;
_local2._y = (((-ground.y) - 300) + _local3.wayPoints[_local4].y) + 50;
indArr.push(_local2);
}
}
}
function reload(e) {
clearInterval(e.rel);
e.reloading = false;
}
function cleanUpEnemies() {
for (var _local1 in enemyArr) {
if (enemyArr[_local1].power <= 1) {
enemyArr.splice(_local1, 1);
}
}
}
function eshoot(e) {
snd_tank_shoot.start();
e.reloading = true;
var _local4 = _root.drawingMc.attachMovie("muzzleflash_smoke", "mfl_" + getNextDepth(), dCount0);
flashArr.push(_local4);
_local4.myIndex = flashArr.length - 1;
var _local10 = (0.0555555555555556 * (e.mc.turret._rotation + 180)) + 5;
var _local12 = (e.mc.turret._rotation + e.mc._rotation) + _local10;
var _local8 = 60;
var _local11 = _local12 - 200;
var _local7 = (-_local11) / 60;
var _local14 = Math.sin(_local7) * _local8;
var _local13 = Math.cos(_local7) * _local8;
var _local9 = ((e.mc.turret._rotation + e.mc._rotation) - 90) * 0.01745;
var _local6 = (e.mc._x + e.mc.turret._x) + _local14;
var _local5 = (e.mc._y + e.mc.turret._y) + _local13;
_local4._x = _local6;
_local4._y = _local5;
var _local3 = _root.projectileLayer.attachMovie("projectile1", "prj_" + _root.projectileLayer.getNextHighestDepth(), _root.projectileLayer.getNextHighestDepth());
_local3.hitSound = enemy_weapons.rocket.hitSound;
_local3.myIndex = eProjArr.length;
eProjArr.push(_local3);
backupArr.push(_local3);
_local3.moveX = Math.cos(_local9) * 8;
_local3.moveY = Math.sin(_local9) * 8;
_local3._x = _local6;
_local3._y = _local5;
_local3._rotation = (e.mc.turret._rotation + e.mc._rotation) - 90;
_local3.type = "rocket";
if (e.targetObj != jeep) {
_local3.onTarget = e.targetObj;
}
if (e.mc.turret) {
_local4._rotation = (e.mc.turret._rotation + e.mc._rotation) - 90;
}
var _local15 = enemy_weapons.rocket.reload * 31;
e.rel = setInterval(reload, _local15, e);
}
function grind(target, damage, origin) {
if (!_root.gamePaused) {
target.power = target.power - damage;
updateHealthDisplay(target);
if (target.power <= 0) {
origin.distanceToTarget = 999;
clearInterval(origin.grinder);
delete origin.grinder;
if (target.mc) {
explode(target);
}
removeOiltank(target);
}
}
}
function refreshTarget(target) {
if (_root.gamePaused) {
return(false);
}
clearInterval(target.targetRefresher);
delete target.targetRefresher;
var _local10 = target.wayPoints;
target.wayPoints = [];
target.calcAngle = true;
target.hasTarget = false;
target.justChangedTarget = 1;
if (!target.hasTarget) {
target.hasTarget = true;
var _local6 = target.targetObj;
var _local3 = findTarget(target);
if ((_local6 != _local3) || (target.justChangedTarget)) {
delete target.justChangedTarget;
target.nextP = true;
if (_local3.sprite) {
target.targetObj = _local3;
}
}
} else {
var _local3 = target.targetObj;
}
var _local4 = {x:Math.round(target.x / pFactor) + 2, y:Math.round(target.y / pFactor) + 2};
var _local9 = {x:Math.round((ground.x + 450) / pFactor), y:Math.round((ground.y + 500) / pFactor) + 2};
var _local8 = {x:int(Math.round(_local3.x / pFactor)), y:int(Math.round(_local3.y / pFactor) - 1)};
if (target.steerMode == "attack") {
res = setPath(target, _local4, _local9);
if (!res) {
target.oPointMode = 1;
var _local5 = getClosestOPoint(target);
var _local7 = {x:int(Math.round(_local5.x / pFactor) + 2), y:int(Math.round(_local5.y / pFactor) - 1)};
if (_local5) {
res = setPath(target, _local4, _local7);
}
}
target.targetObj = jeep;
target.targetRefresher = setInterval(refreshTarget, 2000, target);
} else if (target.steerMode == "destroy") {
res = setPath(target, _local4, _local8);
if (!res) {
target.oPointMode = 1;
var _local5 = getClosestOPoint(target);
var _local7 = {x:int(Math.round(_local5.x / pFactor) + 2), y:int(Math.round(_local5.y / pFactor) - 1)};
if (_local5) {
res = setPath(target, _local4, _local7);
}
}
target.targetRefresher = setInterval(refreshTarget, 5000, target);
}
}
function refreshAllTargets() {
for (var _local1 in enemyArr) {
refreshTarget(enemyArr[_local1]);
}
}
function showDangerMessage(target) {
if (target.grinders.length <= 1) {
_global.type.typeMessage("DANGER: OILTANK UNDER FIRE", parseInt("FF9609", 16));
_root.radioMessages.push(snd_radio_target_under_attack);
var _local7 = ((200 + target.x) - 150) - playerX;
var _local6 = ((275 + target.y) - 150) - playerY;
var _local4 = _root.drawingMc.attachMovie("dangerArrow", "dangerArrow_" + getNextDepth(1), dCount1);
_local4.target = target;
arrowArr.push(_local4);
for (var _local5 in target.grinders) {
target.dangerArrow = _local4;
}
}
}
function handleArrows() {
for (var _local8 in arrowArr) {
var _local2 = arrowArr[_local8];
var _local4 = ((200 + _local2.target.x) - 150) - playerX;
var _local3 = ((275 + _local2.target.y) - 150) - playerY;
_local2._x = _local4;
_local2._y = _local3;
if (_local2._x < 10) {
_local2._x = 10;
}
if (_local2._x > 390) {
_local2._x = 390;
}
if (_local2._y < 10) {
if (_local2._x < 220) {
_local2._y = 50;
} else {
_local2._y = 125;
}
}
if (_local2._y > 540) {
_local2._y = 540;
}
var _local5 = 180 + calcAngle(_root.jeep, {x:_local4, y:_local3});
_local2._rotation = _local5;
if ((_local2._rotation > 90) || (_local2._rotation < -90)) {
_local2.arrow.gotoAndStop(2);
} else {
_local2.arrow.gotoAndStop(1);
}
}
}
function getClosestOPoint(e) {
var _local3 = false;
var _local2 = 9999;
for (var _local5 in oPointArr) {
var _local1 = calcDist(e, oPointArr[_local5]);
if (_local1 < _local2) {
_local2 = _local1;
_local3 = oPointArr[_local5];
}
}
return(_local3);
}
function handleEnemies() {
handleArrows();
avoidOverlaps();
var _local1 = 0;
while (_local1 < enemyArr.length) {
handleEnemy(enemyArr[_local1]);
_local1++;
}
if (debugMode) {
updateWPIs();
}
}
function handleEnemy(e) {
if (e.power <= 0) {
e.tileMc.removeMovieClip();
explode(e);
enemyArr.splice(i, 1);
indexEnemyMCs();
updateOnScreenArray();
return(0);
}
if (!e.targetRefresher) {
refreshTarget(e);
}
if (e.onScreen) {
if (e.mc.turret) {
if ((_global.updateINTVL == 1) || (_global.updateINTVL == 7)) {
if (e.steerMode == "attack") {
var _local5 = calcAngle({x:e.mc._x, y:e.mc._y}, {x:jeep._x, y:jeep._y});
} else if (e.steerMode == "destroy") {
var _local5 = calcAngle(e, {x:e.targetObj.x, y:e.targetObj.y - 30});
}
if (_local5 > 360) {
var _local5 = _local5 - 360;
} else if (_local5 < 0) {
var _local5 = _local5 + 360;
}
e.tTargetAngle = _local5 - e.rotation;
e.tAngleDiff = e.tTargetAngle - e.mc.turret._rotation;
if (e.tAngleDiff > 360) {
e.tAngleDiff = e.tAngleDiff - 360;
} else if (e.tAngleDiff < 0) {
e.tAngleDiff = e.tAngleDiff + 360;
}
}
if ((e.tAngleDiff < 355) && (e.tAngleDiff > 5)) {
if (e.instantTurn) {
e.instantTurn = false;
e.mc.turret._rotation = e.tTargetAngle;
} else {
e.turning = 1;
if (e.tAngleDiff > 180) {
e.mc.turret._rotation = e.mc.turret._rotation - 2.3;
} else {
e.mc.turret._rotation = e.mc.turret._rotation + 2.3;
}
}
} else {
e.turning = 0;
if (!e.reloading) {
if (((e.distanceToTarget < 150) && (e.distanceToTarget)) || (e.steerMode == "attack")) {
if (!e.targetObj.isGone) {
eshoot(e);
}
if (e.targetObj.rmc._currentframe == 1) {
e.targetObj.rmc.gotoAndPlay(2);
}
}
}
}
}
}
if (e.steerMode == "destroy") {
if ((_global.updateINTVL == 1) || (_global.updateINTVL == 7)) {
var _local17 = e.x - e.targetObj.x;
var _local14 = e.y - e.targetObj.y;
e.distanceToTarget = calcDist(e.targetObj, e);
}
}
var _local13 = calcDist(e.nextWp, e);
if ((_local13 < 20) || (e.nextP)) {
e.nextP = false;
e.wayPoints.shift();
e.calcAngle = true;
e.nextWp = e.wayPoints.shift();
e.wayPoints.unshift(e.nextWp);
_local13 = calcDist(e.nextWp, e);
}
if (e.calcAngle) {
if ((e.framesSinceLastCalc++) > 15) {
e.framesSinceLastCalc = 0;
e.calcAngle = false;
e.wpAngle = calcAngle({x:e.x, y:e.y}, e.nextWp);
var _local9 = e.wpAngle * 0.01745;
e.moveX = ((-Math.cos(_local9)) * 2) * gameSpeed;
e.moveY = ((-Math.sin(_local9)) * 2) * gameSpeed;
e.targetAngle = e.wpAngle;
}
}
if ((!e.moveX) || (((e.distanceToTarget <= 150) && (e.distanceToTarget)) && (e.steerMode == "destroy"))) {
if (e.steerMode == "destroy") {
e.shootAt = e.targetObj;
if (((e.wayPoints.length <= 2) && (!e.grinder)) && (e.targetObj.power > 0)) {
var _local10 = enemy_weapons.rocket.damage;
var _local12 = enemy_weapons.rocket.reload * 31;
if ((((e.targetObj != _root.jeep) && (e.distanceToTarget)) && (e.distanceToTarget <= 150)) && (!e.onScreen)) {
e.grinder = setInterval(grind, _local12, e.targetObj, _local10, e);
grinderArr.push(e.grinder);
e.targetObj.grinders.push(e.grinder);
e.targetObj.rmc.gotoAndPlay(3);
showDangerMessage(e.targetObj);
if (debugMode) {
trace("started grinding");
}
}
}
}
e.moveX = 0;
e.moveY = 0;
}
if (((!e.noGo) && (!e.kicker)) && ((e.distanceToTarget > 150) || (e.steerMode == "attack"))) {
e.isMoving = 1;
e.x = e.x + e.moveX;
e.y = e.y + e.moveY;
} else {
e.isMoving = 0;
if ((++e.noGo) >= 30) {
e.noGo = 0;
}
}
e.calcAngle = true;
var _local4 = e.targetAngle - e.rotation;
if (_local4 < 0) {
_local4 = _local4 + 360;
} else if (_local4 > 360) {
_local4 = _local4 - 360;
}
if ((_local4 < 350) && (_local4 > 10)) {
if (_local4 < 180) {
e.rotation = e.rotation + 5;
var _local9 = e.rotation * 0.01745;
e.moveX = (-Math.cos(_local9)) * 3;
e.moveY = (-Math.sin(_local9)) * 3;
} else {
e.rotation = e.rotation - 5;
var _local9 = e.rotation * 0.01745;
e.moveX = (-Math.cos(_local9)) * 3;
e.moveY = (-Math.sin(_local9)) * 3;
}
}
if (e.rotation > 360) {
e.rotation = e.rotation - 360;
}
if (e.rotation < 0) {
e.rotation = e.rotation + 360;
}
if (!e.kicker) {
e.mc._rotation = e.rotation - 90;
}
var _local7 = ((-ground.x) - 270) + e.x;
var _local6 = ((-ground.y) - 240) + e.y;
if (!e.onScreen) {
if (_local7 > 0) {
if (_local7 < 400) {
if (_local6 > 0) {
if (_local6 < 550) {
e.onScreen = 1;
if (e.grinder) {
e.targetObj.dangerArrow.removeMovieClip();
e.instantTurn = true;
clearInterval(e.grinder);
delete e.grinder;
}
var _local8 = _root.drawingMc.attachMovie(e.sprite, "enemySprite" + getNextDepth(), dCount0);
var _local11 = _root.drawingMc.attachMovie("healthBar", "hlthBr_" + getNextDepth(1), dCount1);
if (e.lastTurretAngle) {
_local8.turret._rotation = e.lastTurretAngle;
}
e.hb = _local11;
e.hb.gotoAndStop(100 - Math.ceil((e.power / e.maxHealth) * 100));
e.mc = _local8;
e.mc._rotation = e.rotation - 90;
e.myIndex = i;
enemiesOnScreen.push(e);
indexEnemyMCs();
e.mc.par = e;
}
}
}
}
}
if (e.onScreen) {
e.mc._x = _local7;
e.mc._y = _local6;
var _local15 = 0;
e.hb._x = Math.round(_local7);
e.hb._y = Math.round(_local6) - 30;
if (e.mc._x > 400) {
enemyLeaveScreen(e);
} else if (e.mc._x < 0) {
enemyLeaveScreen(e);
} else if (e.mc._y > 550) {
enemyLeaveScreen(e);
} else if (e.mc._y < 0) {
enemyLeaveScreen(e);
}
}
if (showTiles) {
if (!e.tileObj) {
e.tileObj = _root.tilesDisplay.attachMovie("block4", "b" + _root.tilesDisplay.getNextHighestDepth(), _root.tilesDisplay.getNextHighestDepth());
}
}
cmapX = int(e.x / pFactor);
cmapY = int(e.y / pFactor);
e.tileObj._x = (cmapX * 4) - 3;
e.tileObj._y = (cmapY * 4) + 8;
e.radarObj._x = e.x / radarFactorX;
e.radarObj._y = (e.y / radarFactorY) + 1;
e.lastSteerMode = e.steerMode;
}
function indexEnemyMCs() {
for (i in enemyArr) {
enemyArr[i].mc.index = i;
}
}
function avoidOverlaps() {
var _local18 = 0;
while (_local18 < enemiesOnScreen.length) {
var _local15 = _local18 + 1;
while (_local15 < enemiesOnScreen.length) {
var _local7 = enemiesOnScreen[_local18].mc;
var _local5 = enemiesOnScreen[_local15].mc;
var _local3 = enemyArr[_local7.index];
var _local4 = enemyArr[_local5.index];
var _local16 = calcDist(_local3, _local4);
var _local20 = calcDist(_local7, _root.jeep);
var _local19 = calcDist(_local5, _root.jeep);
if (_local20 > _local19) {
furtherAway = 1;
} else {
furtherAway = 2;
}
while ((_local16 < 50) && (_local16)) {
var _local17 = calcAngle(_local3, ground);
var _local11 = (_local17 - 90) * 0.01745;
var _local10 = Math.cos(_local11);
var _local9 = Math.sin(_local11);
if (furtherAway == 1) {
_local3.x = _local3.x - (_local10 * 5);
_local3.y = _local3.y - (_local9 * 5);
} else {
_local4.x = _local4.x - (_local10 * 5);
_local4.y = _local4.y - (_local9 * 5);
}
_local16 = calcDist(_local3, _local4);
}
if (((_local16 < 75) && (_local16)) && (_local3.isMoving || (_local4.isMoving))) {
var _local2 = _local7._rotation - _local5._rotation;
if (_local2 < 0) {
_local2 = _local2 + 360;
}
if (_local2 > 360) {
_local2 = _local2 - 360;
}
var _local12 = int(_local7._rotation - (_local2 / 2));
if (_local2 > 180) {
_local12 = _local12 - 180;
}
var _local8 = new Object();
_local8.x = _local5._x + (deltaX / 2);
_local8.y = _local5._y + (deltaY / 2);
var _local6 = new Object();
_local6.x = _local8.x + (Math.sin(_local12 * 0.01745) * 150);
_local6.y = _local8.y - (Math.cos(_local12 * 0.01745) * 150);
var _local14 = calcDist({x:_local7._x, y:_local7._y}, {x:_local6.x, y:_local6.y});
var _local13 = calcDist({x:_local5._x, y:_local5._y}, {x:_local6.x, y:_local6.y});
if ((_local2 > 315) || (_local2 < 45)) {
if (_local14 < _local13) {
_local3.noGo = 1;
} else {
_local4.noGo = 1;
}
} else if ((_local2 <= 315) && (_local2 >= 225)) {
if (_local14 < _local13) {
_local4.noGo = 1;
} else {
_local3.noGo = 1;
}
} else if ((_local2 > 45) && (_local2 < 135)) {
if (_local14 < _local13) {
_local4.noGo = 1;
} else {
_local3.noGo = 1;
}
}
}
_local15++;
}
_local18++;
}
}
function enemyLeaveScreen(target) {
if (target.mc.turret) {
target.lastTurretAngle = target.mc.turret._rotation;
}
target.mc.removeMovieClip();
target.hb.removeMovieClip();
target.snd_tturn.stop();
delete target.snd_tturn;
target.onScreen = 0;
clearInterval(target.grinder);
var _local3 = enemy_weapons[enemyInfo[target.sprite].weapon].damage;
var _local4 = enemy_weapons[enemyInfo[target.sprite].weapon].reload * 31;
if (((target.targetObj != _root.jeep) && (target.distanceToTarget)) && (target.distanceToTarget < 200)) {
target.grinder = setInterval(grind, _local4, target.targetObj, _local3, target);
grinderArr.push(target.grinder);
target.targetObj.grinders.push(target.grinder);
if (debugMode) {
trace("started grinding @ " + target.targetObj.power);
}
}
updateOnScreenArray();
}
function updateOnScreenArray() {
enemiesOnScreen = [];
for (var _local1 in enemyArr) {
if (enemyArr[_local1].mc) {
enemiesOnScreen.push(enemyArr[_local1]);
}
}
}
function explode(target) {
if ((!target.hb) && (target != _root.jeep)) {
target = targetsOnScreen[target.onScreenIndex];
}
target.dangerArrow.removeMovieClip();
target.rmc.removeMovieClip();
target.targetObj.rmc.gotoAndStop(1);
clearInterval(target.grinder);
delete target.grinder;
for (var _local5 in target.targetObj.grinders) {
clearInterval(target.targetObj.grinders[_local5]);
delete target.targetObj.grinders[_local5];
}
clearInterval(target.targetRefresher);
if (target.mc) {
var _local3 = target.mc;
} else {
var _local3 = target;
}
if (_local3._x) {
var _local4 = _root.drawingMc.attachMovie("explosion", "expl_" + getNextDepth(1), dCount1);
flashArr.push(_local4);
_local4.myIndex = flashArr.length - 1;
_local4._x = _local3._x + (_local3.ha._width / 3);
_local4._y = _local3._y + (_local3.ha._height / 3);
}
if (_local3 != _root.jeep) {
target.radarObj.removeMovieClip();
_local3.removeMovieClip();
target.hb.removeMovieClip();
} else {
_root.jeep._visible = false;
}
}
function setPath(target, p1, p2) {
if ((targetsDown >= targetCount) && (target.steerMode == "destroy")) {
return(false);
}
target.framesSinceLastPathSet = 0;
var _local11 = p1.x;
var _local9 = p1.y;
var _local10 = p2.x;
var _local12 = p2.y;
var _local2 = findPath(map, _local10, _local12, _local11, _local9);
if (_local2 == false) {
return(false);
}
target.framesSinceLastCheck = 1;
var _local4 = {x:_local2[_local2.length - 1][1], y:_local2[_local2.length - 1][0]};
for (var _local8 in tilesDisplay.pathBlocks) {
tilesDisplay.pathBlocks[_local8].removeMovieClip();
}
if (!tilesDisplay.pathBlocks) {
tilesDisplay.pathBlocks = [];
}
for (var _local8 in _local2) {
if (showTiles) {
var _local3 = _root.tilesDisplay.attachMovie("block", "block_" + _root.tilesDisplay.getNextHighestDepth(), _root.tilesDisplay.getNextHighestDepth());
_root.tilesDisplay.pathBlocks.push(_local3);
_local3._x = _local2[_local8][1] * 4;
_local3._y = _local2[_local8][0] * 4;
}
if ((_local8 % 5) == 0) {
_local4 = {x:((_local2[_local8][1] * pFactor) * 1) - 30, y:((_local2[_local8][0] * pFactor) * 1) - 30};
if (_local4.x) {
target.wayPoints.push(_local4);
}
}
}
return(true);
}
function drawGround() {
bg._x = -240 - ground.x;
bg._y = -240 - ground.y;
if ((framesSinceLastBGCheck++) > 3) {
if ((bg.t1_1._x + bg._x) > 400) {
bg.t1_1._x = bg.t1_1._x - 600;
bg.t2_1._x = bg.t2_1._x - 600;
bg.t3_1._x = bg.t3_1._x - 600;
}
if ((bg.t1_1._y + bg._y) > 550) {
bg.t1_1._y = bg.t1_1._y - 825;
bg.t1_2._y = bg.t1_2._y - 825;
bg.t1_3._y = bg.t1_3._y - 825;
}
if ((bg.t1_2._x + bg._x) > 400) {
bg.t1_2._x = bg.t1_2._x - 600;
bg.t2_2._x = bg.t2_2._x - 600;
bg.t3_2._x = bg.t3_2._x - 600;
}
if ((bg.t2_1._y + bg._y) > 550) {
bg.t2_1._y = bg.t2_1._y - 825;
bg.t2_2._y = bg.t2_2._y - 825;
bg.t2_3._y = bg.t2_3._y - 825;
}
if ((bg.t1_3._x + bg._x) > 400) {
bg.t1_3._x = bg.t1_3._x - 600;
bg.t2_3._x = bg.t2_3._x - 600;
bg.t3_3._x = bg.t3_3._x - 600;
}
if ((bg.t3_1._y + bg._y) > 550) {
bg.t3_1._y = bg.t3_1._y - 825;
bg.t3_2._y = bg.t3_2._y - 825;
bg.t3_3._y = bg.t3_3._y - 825;
}
if ((bg.t1_1._x + bg._x) < -200) {
bg.t1_1._x = bg.t1_1._x + 600;
bg.t2_1._x = bg.t2_1._x + 600;
bg.t3_1._x = bg.t3_1._x + 600;
}
if ((bg.t1_1._y + bg._y) < -275) {
bg.t1_1._y = bg.t1_1._y + 825;
bg.t1_2._y = bg.t1_2._y + 825;
bg.t1_3._y = bg.t1_3._y + 825;
}
if ((bg.t1_2._x + bg._x) < -200) {
bg.t1_2._x = bg.t1_2._x + 600;
bg.t2_2._x = bg.t2_2._x + 600;
bg.t3_2._x = bg.t3_2._x + 600;
}
if ((bg.t2_1._y + bg._y) < -275) {
bg.t2_1._y = bg.t2_1._y + 825;
bg.t2_2._y = bg.t2_2._y + 825;
bg.t2_3._y = bg.t2_3._y + 825;
}
if ((bg.t1_3._x + bg._x) < -200) {
bg.t1_3._x = bg.t1_3._x + 600;
bg.t2_3._x = bg.t2_3._x + 600;
bg.t3_3._x = bg.t3_3._x + 600;
}
if ((bg.t3_1._y + bg._y) < -275) {
bg.t3_1._y = bg.t3_1._y + 825;
bg.t3_2._y = bg.t3_2._y + 825;
bg.t3_3._y = bg.t3_3._y + 825;
}
}
}
function updateCollosionMap() {
var _local7 = (-Math.ceil(((-ground.x) - 250) / 200)) + 2;
var _local8 = (-Math.ceil(((-ground.y) - 310) / 200)) + 2;
var _local10 = collisionRectangles[_local7][_local8].concat(collisionRectangles[_local7 + 1][_local8 + 1], collisionRectangles[_local7 + 1][_local8], collisionRectangles[_local7][_local8 + 1]);
for (var _local9 in collisionRectanglesFlat) {
for (var _local6 in collisionRectanglesFlat[_local9]) {
}
}
var _local5 = [];
_local5.push(collisionRectangles[_local7][_local8]);
_local5.push(collisionRectangles[_local7 + 1][_local8]);
_local5.push(collisionRectangles[_local7][_local8 + 1]);
_local5.push(collisionRectangles[_local7 + 1][_local8 + 1]);
for (var _local9 in _local5) {
var _local3 = _local5[_local9];
for (var _local6 in _local3) {
var _local1 = _local3[_local6];
for (var _local4 in _local1) {
var _local2 = _local1[_local4];
}
}
}
}
function drawTerrain() {
var _local9 = (-Math.ceil(((-ground.x) - 250) / 200)) + 2;
var _local10 = (-Math.ceil(((-ground.y) - 310) / 200)) + 2;
_root.mon.bgpos = (("BG POS: " + xb2) + " / ") + yb2;
currentBlock = lvlBlocks[_local9][_local10];
currentBlockSmall = lvlBlocks[_local9][_local10].concat(lvlBlocks[_local9 + 1][_local10 + 1], lvlBlocks[_local9 + 1][_local10], lvlBlocks[_local9][_local10 + 1]);
currentBlockLarge = lvlBlocks[_local9][_local10];
var _local6 = [];
_local6.push(currentBlock);
_local6.push(lvlBlocks[_local9 - 1][_local10 - 2]);
_local6.push(lvlBlocks[_local9 - 1][_local10 - 1]);
_local6.push(lvlBlocks[_local9 - 1][_local10]);
_local6.push(lvlBlocks[_local9 - 1][_local10 + 1]);
_local6.push(lvlBlocks[_local9 - 1][_local10 + 2]);
_local6.push(lvlBlocks[_local9][_local10 - 2]);
_local6.push(lvlBlocks[_local9][_local10 - 1]);
_local6.push(lvlBlocks[_local9][_local10 + 1]);
_local6.push(lvlBlocks[_local9][_local10 + 2]);
_local6.push(lvlBlocks[_local9 + 1][_local10 - 2]);
_local6.push(lvlBlocks[_local9 + 1][_local10 - 1]);
_local6.push(lvlBlocks[_local9 + 1][_local10]);
_local6.push(lvlBlocks[_local9 + 1][_local10 + 1]);
_local6.push(lvlBlocks[_local9 + 1][_local10 + 2]);
if (dCount >= 10000) {
dCount = 1200;
}
for (var _local16 in _local6) {
for (var _local15 in _local6[_local16]) {
var _local2 = _local6[_local16][_local15];
if (_local2.type == "solid") {
if (_local2.xcoord > (ground.x + 200)) {
if (_local2.xcoord < (ground.x + 800)) {
if (_local2.ycoord > (ground.y + 250)) {
if (_local2.ycoord < (ground.y + 900)) {
if (_local2.mc == undefined) {
_local2.mc = _root.drawingMc.attachMovie(_local2.sprite, "terrain_" + getNextDepth(), dCount0);
var _local7 = abs2rel(_local2.xcoord, _local2.ycoord);
_local2.mc._x = _local7.x;
_local2.mc._y = _local7.y;
if (_local2.rotation) {
_local2.mc._rotation = _local2.rotation;
}
if (_local2.istarget) {
for (var _local12 in targetArr) {
if (targetArr[_local12].x == _local2.xcoord) {
if (targetArr[_local12].y == _local2.ycoord) {
if (targetArr[_local12].sprite == _local2.sprite) {
_local2.index = _local12;
break;
}
}
}
}
_local2.maxHealth = 1000;
var _local8 = _root.drawingMc.attachMovie("healthBarLong", "hlth_" + getNextDepth(1), dCount1);
_local2.hb = _local8;
_local2.hb._x = _local2.mc._x + 3;
_local2.hb._y = _local2.mc._y - 35;
var _local5 = 0;
for (var _local11 in targetArr) {
if (targetArr[_local11].x == _local2.xcoord) {
if (targetArr[_local11].y == _local2.ycoord) {
if (targetArr[_local11].sprite == _local2.sprite) {
_local5 = 1;
_local2.power = targetArr[_local11].power;
var _local4 = _local11;
if (_local2.power <= 0) {
_local5 = 0;
}
break;
}
}
}
}
if (_local5) {
var _local3 = new Object();
_local3.istarget = true;
_local3.maxHealth = _local2.maxHealth;
_local3.power = _local2.power;
_local3.index = _local2.index;
_local3.hb = _local2.hb;
_local3.mc = _local2.mc;
_local3.x = _local2.xcoord;
_local3.y = _local2.ycoord;
_local3.sprite = _local2.sprite;
targetArr[_local4].onScreenIndex = targetsOnScreen.length;
targetArr[_local4].hb = _local2.hb;
targetArr[_local4].mc = _local2.mc;
updateHealthDisplay(targetArr[_local4]);
_local3.onScreenIndex = targetsOnScreen.length;
_local2.onScreenIndex = targetsOnScreen.length;
targetsOnScreen.push(_local3);
} else {
_local2.mc.removeMovieClip();
_local2.hb.removeMovieClip();
delete targetArr[_local2.index];
delete _local6[_local16][_local15];
}
}
terrOnScr.push(_local2);
}
}
}
}
}
}
}
}
if (_root.frameCount > 20) {
var _local14 = ground.x - lastX;
var _local13 = ground.y - lastY;
if (lastX) {
for (var _local16 in terrOnScr) {
terrOnScr[_local16].mc._x = terrOnScr[_local16].mc._x - _local14;
terrOnScr[_local16].mc._y = terrOnScr[_local16].mc._y - _local13;
terrOnScr[_local16].hb._x = terrOnScr[_local16].hb._x - _local14;
terrOnScr[_local16].hb._y = terrOnScr[_local16].hb._y - _local13;
}
}
}
}
function removeSprite(terrOnScrIndex) {
if (terrOnScr[terrOnScrIndex].istarget) {
targetsOnScreen.splice(terrOnScr[terrOnScrIndex].onScreenIndex, 1);
}
terrOnScr[terrOnScrIndex].mc.removeMovieClip();
terrOnScr[terrOnScrIndex].hb.removeMovieClip();
terrOnScr[terrOnScrIndex].mc = undefined;
terrOnScr.splice(terrOnScrIndex, 1);
}
function cameraShake(strength) {
if (!camShaker) {
gamePaused = 1;
camShakeStep = int(strength);
camShaker = setInterval(cameraShake, 33);
bg.originX = bg._x;
bg.originY = bg._y;
for (var _local1 in terrOnScr) {
terrOnScr[_local1].mc.originX = terrOnScr[_local1].mc._x;
terrOnScr[_local1].mc.originY = terrOnScr[_local1].mc._y;
}
for (var _local1 in bgTiles) {
bgTiles[_local1].originX = bgTiles[_local1]._x;
bgTiles[_local1].originY = bgTiles[_local1]._y;
}
for (var _local1 in mineArr) {
mineArr[_local1].mc.originX = mineArr[_local1].mc._x;
mineArr[_local1].mc.originY = mineArr[_local1].mc._y;
}
for (var _local1 in cratesArr) {
cratesArr[_local1].mc.originX = cratesArr[_local1].mc._x;
cratesArr[_local1].mc.originY = cratesArr[_local1].mc._y;
}
for (var _local1 in enemyArr) {
enemyArr[_local1].mc.originX = enemyArr[_local1].mc._x;
enemyArr[_local1].mc.originY = enemyArr[_local1].mc._y;
}
}
camShakeStep--;
if (camShakeStep % 2) {
bg._x = bg.originX + camShakeStep;
bg._y = bg.originY + camShakeStep;
for (var _local1 in terrOnScr) {
terrOnScr[_local1].mc._x = terrOnScr[_local1].mc.originX + camShakeStep;
terrOnScr[_local1].mc._y = terrOnScr[_local1].mc.originY + camShakeStep;
}
for (var _local1 in bgTiles) {
bgTiles[_local1]._x = bgTiles[_local1].originX + camShakeStep;
bgTiles[_local1]._y = bgTiles[_local1].originY + camShakeStep;
}
for (var _local1 in mineArr) {
mineArr[_local1].mc._x = mineArr[_local1].mc.originX + camShakeStep;
mineArr[_local1].mc._y = mineArr[_local1].mc.originY + camShakeStep;
}
for (var _local1 in cratesArr) {
cratesArr[_local1].mc._x = cratesArr[_local1].mc.originX + camShakeStep;
cratesArr[_local1].mc._y = cratesArr[_local1].mc.originY + camShakeStep;
}
for (var _local1 in enemyArr) {
enemyArr[_local1].mc._x = enemyArr[_local1].mc.originX + camShakeStep;
enemyArr[_local1].mc._y = enemyArr[_local1].mc.originY + camShakeStep;
enemyArr[_local1].hb._x = Math.round(enemyArr[_local1].mc._x);
enemyArr[_local1].hb._y = Math.round(enemyArr[_local1].mc._y) - 30;
}
jeep._x = 200 + camShakeStep;
jeep._y = 275 + camShakeStep;
} else {
bg._x = bg.originX - camShakeStep;
bg._y = bg.originY - camShakeStep;
for (var _local1 in terrOnScr) {
terrOnScr[_local1].mc._x = terrOnScr[_local1].mc.originX - camShakeStep;
terrOnScr[_local1].mc._y = terrOnScr[_local1].mc.originY - camShakeStep;
}
for (var _local1 in bgTiles) {
bgTiles[_local1]._x = bgTiles[_local1].originX - camShakeStep;
bgTiles[_local1]._y = bgTiles[_local1].originY - camShakeStep;
}
for (var _local1 in mineArr) {
mineArr[_local1].mc._x = mineArr[_local1].mc.originX - camShakeStep;
mineArr[_local1].mc._y = mineArr[_local1].mc.originY - camShakeStep;
}
for (var _local1 in cratesArr) {
cratesArr[_local1].mc._x = cratesArr[_local1].mc.originX - camShakeStep;
cratesArr[_local1].mc._y = cratesArr[_local1].mc.originY - camShakeStep;
}
for (var _local1 in enemyArr) {
enemyArr[_local1].mc._x = enemyArr[_local1].mc.originX - camShakeStep;
enemyArr[_local1].mc._y = enemyArr[_local1].mc.originY - camShakeStep;
enemyArr[_local1].hb._x = Math.round(enemyArr[_local1].mc._x);
enemyArr[_local1].hb._y = Math.round(enemyArr[_local1].mc._y) - 30;
}
jeep._x = 200 - camShakeStep;
jeep._y = 275 - camShakeStep;
}
if (camShakeStep <= 0) {
gamePaused = 0;
clearInterval(camShaker);
delete camShaker;
}
}
function cleanTerrain() {
for (var _local1 in terrOnScr) {
if (terrOnScr[_local1].mc._x < -50) {
removeSprite(_local1);
} else if (terrOnScr[_local1].mc._x > 430) {
removeSprite(_local1);
} else if (terrOnScr[_local1].mc._y < -30) {
removeSprite(_local1);
} else if (terrOnScr[_local1].mc._y > 580) {
removeSprite(_local1);
}
}
}
function drawtrack() {
var _local4 = ground.x - lastX;
var _local3 = ground.y - lastY;
for (var _local6 in trackArr) {
trackArr[_local6]._x = trackArr[_local6]._x - _local4;
trackArr[_local6]._y = trackArr[_local6]._y - _local3;
}
if (!trackArr) {
trackArr = [];
var _local5 = _root.drawingMc.attachMovie("track", "track_" + getNextDepth(), dCount0, dCount + 50);
_local5._x = jeep._x;
_local5._y = jeep._y;
_local5._rotation = jeep._rotation;
trackArr.push(_local5);
} else {
lastTrack = trackArr.pop();
trackArr.push(lastTrack);
dist = Math.sqrt(Math.pow(lastTrack._x - jeep._x, 2) + Math.pow(lastTrack._y - jeep._y, 2));
if (dist > 30) {
var _local5 = _root.drawingMc.attachMovie("track", "track_" + getNextDepth(), dCount0, dCount);
_local5._x = jeep._x;
_local5._y = jeep._y;
_local5._rotation = jeep._rotation;
trackArr.push(_local5);
trackArr[trackArr.length - 10].onEnterFrame = function () {
this._alpha = this._alpha - 5;
if (this._alpha < 10) {
this.removeMovieClip();
cleanTrack();
}
};
}
}
}
function cleanTrack() {
var _local1 = [];
for (var _local2 in trackArr) {
if (trackArr[_local2]._x) {
_local1.push(trackArr[_local2]);
}
}
trackArr = _local1;
}
function drive() {
var _local13 = 4 * gameSpeed;
var _local5 = 0.4 * gameSpeed;
if (jeep.frontWheels._rotation > -20) {
if (keyL) {
jeep.frontWheels._rotation = jeep.frontWheels._rotation - 3;
jeep.backWheels._rotation = jeep.backWheels._rotation + 3;
}
}
if (jeep.frontWheels._rotation < 20) {
if (keyR) {
jeep.frontWheels._rotation = jeep.frontWheels._rotation + 3;
jeep.backWheels._rotation = jeep.backWheels._rotation - 3;
}
}
if (((!keyL) && (!keyR)) && (jeep.frontWheels._rotation != 0)) {
if (jeep.frontWheels._rotation < -1) {
jeep.frontWheels._rotation = jeep.frontWheels._rotation + 1.5;
jeep.backWheels._rotation = jeep.backWheels._rotation - 1.5;
} else if (jeep.frontWheels._rotation > 1) {
jeep.frontWheels._rotation = jeep.frontWheels._rotation - 1.5;
jeep.backWheels._rotation = jeep.backWheels._rotation + 1.5;
} else {
jeep.frontWheels._rotation = 0;
jeep.backWheels._rotation = 0;
}
}
if (keyU) {
if (drivespeed < _local13) {
drivespeed = drivespeed + _local5;
}
jeep.frontWheels.play();
jeep.backWheels.play();
} else if (keyD) {
if (drivespeed > (-_local13)) {
drivespeed = drivespeed - _local5;
}
jeep.frontWheels.play();
jeep.backWheels.play();
} else if (drivespeed > (_local5 * 2)) {
drivespeed = drivespeed - _local5;
} else if (drivespeed < (-(_local5 * 2))) {
drivespeed = drivespeed + _local5;
} else {
drivespeed = 0;
jeep.frontWheels.stop();
jeep.backWheels.stop();
}
if (drivespeed != 0) {
if (_root.lastSpeed == 0) {
snd_engineStart.start();
}
snd_engineLow.setVolume(100 * (drivespeed / 4));
} else {
snd_engineLow.setVolume(0);
}
var _local4 = calcAngle({x:collBox.p3.prev.x + 1, y:collBox.p3.prev.y}, collBox.p0.prev);
if (_local4 == -90) {
_local4 = 180;
} else if (_local4 == 0) {
_local4 = 90;
}
if (((_local4 > 10) && (_local4 < 350)) && (_local4 != 90)) {
_root.lastValidRotation = _local4;
} else if ((_root.lastValidRotation > 340) && (_local4 == 90)) {
_local4 = 0;
} else if ((_root.lastValidRotation < 20) && (_local4 == 90)) {
_local4 = 0;
}
_root.lastRotation = _local4;
var _local22 = (_local4 - 90) * 0.01745;
var _local28 = Math.cos(_local22);
var _local27 = Math.sin(_local22);
var _local11 = (collBox.p0.curr.y - collBox.p2.curr.y) / (collBox.p0.curr.x - collBox.p2.curr.x);
var _local18 = (collBox.p1.curr.y - collBox.p3.curr.y) / (collBox.p1.curr.x - collBox.p3.curr.x);
var _local14 = collBox.p0.curr.x;
var _local12 = collBox.p0.curr.y;
var _local24 = collBox.p1.curr.x;
var _local23 = collBox.p1.curr.y;
var _local8 = (((((-_local18) * _local24) + _local23) + (_local11 * _local14)) - _local12) / (_local11 - _local18);
var _local9 = (_local11 * (_local8 - _local14)) + _local12;
var _local21 = collBox.p0.curr.x - _local8;
var _local20 = collBox.p0.curr.y - _local9;
var _local19 = Math.sqrt((_local21 * _local21) + (_local20 * _local20));
var _local25 = calcAngle({x:_local8, y:_local9}, collBox.p0.curr);
_local22 = (_local25 + 185) * 0.01745;
var _local15 = {x:(Math.cos(_local22) * _local19) + _local8, y:(Math.sin(_local22) * _local19) + _local9};
var _local17 = ((((_local15.x - collBox.p0.curr.x) / 2) * drivespeed) * jeep.frontWheels._rotation) / -20;
var _local16 = ((((_local15.y - collBox.p0.curr.y) / 2) * drivespeed) * jeep.frontWheels._rotation) / -20;
var _local7 = _local28 * drivespeed;
var _local6 = _local27 * drivespeed;
collBox.p0.prev.x = collBox.p0.prev.x + _local7;
collBox.p1.prev.x = collBox.p1.prev.x + _local7;
collBox.p2.prev.x = collBox.p2.prev.x + _local7;
collBox.p3.prev.x = collBox.p3.prev.x + _local7;
collBox.p4.prev.x = collBox.p4.prev.x + _local7;
collBox.p5.prev.x = collBox.p5.prev.x + _local7;
collBox.p0.prev.y = collBox.p0.prev.y + _local6;
collBox.p1.prev.y = collBox.p1.prev.y + _local6;
collBox.p2.prev.y = collBox.p2.prev.y + _local6;
collBox.p3.prev.y = collBox.p3.prev.y + _local6;
collBox.p4.prev.y = collBox.p4.prev.y + _local6;
collBox.p5.prev.y = collBox.p5.prev.y + _local6;
collBox.p0.prev.x = collBox.p0.prev.x + _local17;
collBox.p0.prev.y = collBox.p0.prev.y + _local16;
collBox.p2.prev.x = collBox.p2.prev.x - _local17;
collBox.p2.prev.y = collBox.p2.prev.y - _local16;
_root.jeep._rotation = _local4 + 180;
for (var _local10 in enemiesOnScreen) {
if (jeep.hitTest(enemiesOnScreen[_local10].mc)) {
if (!enemiesOnScreen[_local10].kicker) {
var _local2 = _root.collEngine.addKicker(enemiesOnScreen[_local10].x + 50, enemiesOnScreen[_local10].y + 50, 40);
_root.collEngine.addSurface(_local2);
clearInterval(enemyArr[enemiesOnScreen[_local10].mc.index].grinder);
enemyArr[enemiesOnScreen[_local10].mc.index].steerMode = "attack";
enemyArr[enemiesOnScreen[e].myIndex].targetObj.rmc.gotoAndStop(1);
if (display_collisions) {
_root.collEngine.paintSurfaces();
}
enemiesOnScreen[_local10].kicker = _local2;
var _local3 = setInterval(function (target) {
if (!target.mc.hitTest(_root.jeep)) {
clearInterval(target.restartINTVL);
target.kicker.setActiveState(false);
if (display_collisions) {
target.kicker.setVisible(false);
_root.collEngine.paintSurfaces();
}
delete target.kicker;
}
}, 1000, enemiesOnScreen[_local10]);
enemiesOnScreen[_local10].restartINTVL = _local3;
}
break;
}
}
ground.x = int(_local8) - 510;
ground.y = int(_local9) - 580;
playerX = ground.x + 400;
playerY = ground.y + 410;
screenInfo.posX = ground.x;
screenInfo.posY = ground.y;
collEngine.timeStep();
if (display_collisions) {
collEngine.paintPrimitives();
collEngine.paintConstraints();
}
_root.lastSpeed = drivespeed;
ground.x = int(ground.x);
ground.y = int(ground.y);
var _local26 = {x:ground.x, y:ground.y};
groundPositions.push(_local26);
if (groundPositions.length > 6) {
groundPositions.shift();
}
}
function fadeSound(target, way, intervalName) {
if (intervalName == undefined) {
intervalName = random(99999);
intervals[intervalName] = setInterval(fadeSound, 50, target, way, intervalName);
return(intervalName);
}
if (way == "in") {
target.setVolume(target.getVolume() + 5);
if (target.getVolume() > 50) {
clearInterval(intervals[intervalName]);
}
} else if (way == "out") {
target.setVolume(target.getVolume() - 5);
if (target.getVolume() < 5) {
target.setVolume(0);
clearInterval(intervals[intervalName]);
}
}
}
function updateAmmuDisplay() {
if (currentWeapon == "mg") {
txt = "INF.";
} else {
txt = weapons[currentWeapon].ammu;
}
var _local2 = hud.ammu_dummy;
hud.createTextField("ammuDisplay", 15, _local2._x, _local2._y, _local2._width, _local2._height);
hud.ammuDisplay.multiline = false;
hud.ammuDisplay.text = txt;
hud.ammuDisplay.selectable = false;
hud.ammuDisplay.wordWrap = false;
hud.ammuDisplay.embedFonts = true;
var _local1 = new TextFormat();
_local1.font = "font02";
_local1.size = 12;
_local1.align = "center";
_local1.color = "0x000000";
hud.ammuDisplay.setTextFormat(_local1);
}
function changeWeaponTo(newWeapon, noSound) {
if (!noSound) {
_root.punch.start();
}
currentWeapon = newWeapon.id;
hud.weapon_display.gotoAndStop(newWeapon.id);
updateAmmuDisplay();
}
function removeProjectile(p) {
p.backupDelete.clearInterval();
p.removeMovieClip();
}
function shoot() {
var _local4 = calcAngle({x:_root._xmouse, y:_root._ymouse}, jeep);
jeep.gun._rotation = (_local4 - jeep._rotation) + 90;
if ((framesSinceLastShot++) > weapons[currentWeapon].reload) {
if ((keyM && (!noShooting)) && (weapons[currentWeapon].ammu > 0)) {
if (_root._ymouse > 40) {
if ((_root._xmouse < 230) || (_root._ymouse > 140)) {
framesSinceLastShot = 0;
weapons[currentWeapon].ammu--;
updateAmmuDisplay();
weapons[currentWeapon].sound.start();
if (currentWeapon == "mine") {
var _local5 = new Object();
var _local10 = jeep._rotation;
var _local7 = 60;
var _local9 = _local10 - 200;
var _local6 = (-_local9) / 60;
var _local12 = Math.sin(_local6) * _local7;
var _local11 = Math.cos(_local6) * _local7;
_local5.x = (ground.x + 300) + 180;
_local5.y = (ground.y + 300) + 205;
mineArr.push(_local5);
} else {
var _local2 = _root.drawingMc.attachMovie(weapons[currentWeapon].sprite, "prj_" + getNextDepth(1), dCount1);
_local2.hitSound = weapons[currentWeapon].hitSound;
_local2.type = "friend";
_local2._x = jeep._x;
_local2._y = jeep._y;
_local2._rotation = _local4 + 90;
var _local8 = _local4 * 0.01745;
_local2.moveX = Math.cos(_local8) * weapons[currentWeapon].speed;
_local2.moveY = Math.sin(_local8) * weapons[currentWeapon].speed;
_local2.px = 0;
_local2.py = 0;
_local2.startX = ground.x;
_local2.startY = ground.y;
_local2.type = currentWeapon;
if (currentWeapon == "rocket") {
var _local3 = _root.drawingMc.attachMovie("rocketsmoke", "smoke_" + getNextDepth(2), dCount2);
_local3._x = 200;
_local3._y = 275;
_local3._rotation = _local4 + 90;
flashArr.push(_local3);
_local3.myIndex = flashArr.length - 1;
}
projectilesArr.push(_local2);
}
if (weapons[currentWeapon].ammu == 0) {
changeWeaponTo(weapons.mg);
}
}
}
}
}
}
function handleImpact(projectileIndex, target, offScr) {
if (target == jeep) {
var _local9 = eProjArr[projectileIndex].type;
var _local8 = eProjArr[projectileIndex].hitSound;
var _local7 = enemy_weapons[_local9].damage;
levelScore = levelScore - 5;
hud.setScore(levelScore);
eProjArr[projectileIndex].removeMovieClip();
} else if (target.istarget) {
var _local9 = eProjArr[projectileIndex].type;
var _local8 = eProjArr[projectileIndex].hitSound;
var _local7 = enemy_weapons[_local9].damage;
eProjArr[projectileIndex].removeMovieClip();
} else if (offScr) {
var _local9 = eProjArr[projectileIndex].type;
var _local8 = eProjArr[projectileIndex].hitSound;
var _local7 = enemy_weapons[_local9].damage;
eProjArr[projectileIndex].removeMovieClip();
} else if (projectileIndex == -1) {
var _local9 = "mine";
var _local7 = weapons[_local9].damage;
} else {
var _local9 = projectilesArr[projectileIndex].type;
var _local8 = projectilesArr[projectileIndex].hitSound;
removeProjectile(projectilesArr[projectileIndex]);
var _local7 = weapons[_local9].damage;
}
if (target.mc) {
flicker(target.mc);
} else {
flicker(target);
}
_local8.start();
if (target.index != undefined) {
target = targetArr[target.index];
}
target.power = target.power - _local7;
if ((target.power < enemyInfo.tank1.maxHealth) && (target.steerMode == "destroy")) {
target.steerMode = "attack";
target.targetObj.rmc.gotoAndStop(1);
clearInterval(target.grinder);
_global.type.typeMessage("ENEMY TANK BEGINS PURSUIT", parseInt("009750", 16));
_root.radioMessages.push(snd_radio_beginning_pursuit);
}
if (target.power <= 0) {
if (((target.hb || (target.offScr)) || (target.steerMode)) || (target.sprite == "gasstation")) {
if (!target.isGone) {
if (target.sprite == "gasstation") {
levelScore = levelScore - 100;
hud.setScore(levelScore);
explode(target);
removeOiltank(target);
}
for (var _local6 in enemyArr) {
if (enemyArr[_local6] == target) {
_root.radioMessages.push(snd_radio_enemy_destroyed);
_global.type.typeMessage("ENEMY TANK DESTROYED", parseInt("649AFF", 16));
levelScore = levelScore + 100;
hud.setScore(levelScore);
target.kicker.setActiveState(false);
if (display_collisions) {
target.kicker.setVisible(false);
_root.collEngine.paintSurfaces();
}
for (var _local5 in enemiesOnScreen) {
if (enemiesOnScreen[_local5].mc == enemyArr[_local6].mc) {
enemiesOnScreen.splice(_local5, 1);
break;
}
}
explode(target);
enemyArr[_local6].mc.removeMovieClip();
enemyArr[_local6].radarObj.removeMovieClip();
enemyArr.splice(_local6, 1);
break;
}
}
}
cleanUpEnemies();
}
if ((target == jeep) && (!_root.debugMode)) {
explode(_root.jeep);
snd_engineLow.stop();
snd_radio_you_lose.start();
_root.gamePaused = 1;
lives--;
clearInterval(_root.clearer);
_root.clearer = setInterval(function () {
clearInterval(_root.clearer);
explodeStage("vehicledown");
clearAll();
}, 1000);
}
}
updateHealthDisplay(target);
}
function removeOiltank(target) {
for (var _local5 in target.surfaces) {
target.surfaces[_local5].setActiveState(false);
target.surfaces[_local5].setVisible(false);
}
for (var _local6 in target.grinders) {
clearInterval(target.grinders[_local6]);
}
for (var _local6 in enemyArr) {
if (enemyArr[_local6].targetObj == target) {
clearInterval(enemyArr[_local6].grinder);
delete enemyArr[_local6].grinder;
}
}
delete targetsOnScreen[target.onScreenIndex];
delete targetArr[target.index];
for (var _local6 in targetArr) {
var _local4 = targetArr[_local6];
refreshAllTargets();
if (_local4.x == target.x) {
if (_local4.y == target.y) {
if (_local4.sprite == target.sprite) {
targetArr[_local6].power = -5;
targetArr[_local6].rmc.removeMovieClip();
delete targetArr[_local6];
break;
}
}
}
}
targetsDown++;
refreshAllTargets();
_root.radioMessages.push(snd_radio_oiltank_destroyed);
if (int(targetCount - targetsDown) == 1) {
snd_alert.start(0, 999);
}
if (int(targetCount - targetsDown) == 0) {
snd_alert.stop();
}
_global.type.typeMessage(("OILTANK LOST: " + int(targetCount - targetsDown)) + " REMAINING", parseInt("bfb400", 16));
target.isGone = 1;
cameraShake(15);
if (targetsDown >= targetCount) {
_root.gamePaused = 1;
_global.clearer = setInterval(function () {
clearInterval(_global.clearer);
explodeStage("notanks");
}, 1000);
}
target.mc.removeMovieClip();
target.hb.removeMovieClip();
target.rmc.removeMovieClip();
target.dangerArrow.removeMovieClip();
snd_expl.start();
}
function updateHealthDisplay(target) {
if (target == jeep) {
hud.healthBar.gotoAndStop(int(100 - (target.power / 10)));
}
if (!target.hb) {
target.hb = targetsOnScreen[target.onScreenIndex].hb;
}
target.hb.gotoAndStop(100 - Math.ceil((target.power / target.maxHealth) * 100));
}
function handleProjectiles() {
var _local4 = ground.x - lasttX;
var _local3 = ground.y - lasttY;
for (var _local7 in flashArr) {
flashArr[_local7]._x = flashArr[_local7]._x - _local4;
flashArr[_local7]._y = flashArr[_local7]._y - _local3;
}
for (var _local7 in eProjArr) {
var _local1 = eProjArr[_local7];
if (!_local1._x) {
eProjArr.splice(_local7, 1);
break;
}
_local1._x = _local1._x + _local1.moveX;
_local1._y = _local1._y + _local1.moveY;
_local1._x = _local1._x - _local4;
_local1._y = _local1._y - _local3;
for (var _local6 in targetsOnScreen) {
if (_local1.hitTest(targetsOnScreen[_local6].mc.ha)) {
handleImpact(_local7, targetsOnScreen[_local6]);
}
}
if (_local1.hitTest(jeep.ha)) {
handleImpact(_local7, jeep);
}
if (_local1._x < 0) {
if (_local1.onTarget && (calcDist(rel2abs(_local1._x, _local1._y) < 150, _local1.onTarget))) {
trace("fake hit");
handleImpact(_local7, _local1.onTarget, 1);
}
_local1.removeMovieClip();
} else if (_local1._x > 400) {
if (_local1.onTarget && (calcDist(rel2abs(_local1._x, _local1._y) < 150))) {
trace("fake hit");
handleImpact(_local7, _local1.onTarget, 1);
}
_local1.removeMovieClip();
} else if (_local1._y < 0) {
if (_local1.onTarget && (calcDist(rel2abs(_local1._x, _local1._y) < 150))) {
trace("fake hit");
handleImpact(_local7, _local1.onTarget, 1);
}
_local1.removeMovieClip();
} else if (_local1._y > 550) {
if (_local1.onTarget && (calcDist(rel2abs(_local1._x, _local1._y) < 150))) {
trace("fake hit");
handleImpact(_local7, _local1.onTarget, 1);
}
_local1.removeMovieClip();
}
}
for (var _local7 in projectilesArr) {
var _local2 = projectilesArr[_local7];
if (!_local2._x) {
projectilesArr.splice(_local7, 1);
break;
}
_local2.px = _local2.px + _local2.moveX;
_local2.py = _local2.py + _local2.moveY;
_local2._x = ((200 + _local2.startX) - ground.x) + _local2.px;
_local2._y = ((275 + _local2.startY) - ground.y) + _local2.py;
for (var _local5 in enemiesOnScreen) {
if (_local2.hitTest(enemiesOnScreen[_local5].mc.ha)) {
handleImpact(_local7, enemiesOnScreen[_local5]);
if (enemiesOnScreen[_local5].power < (enemiesOnScreen[_local5].maxHealth / 2)) {
if (enemyArr[enemiesOnScreen[_local5].myIndex].steerMode != "attack") {
enemyArr[enemiesOnScreen[_local5].myIndex].steerMode = "attack";
enemyArr[enemiesOnScreen[_local5].myIndex].targetObj.dangerArrow.removeMovieClip();
clearInterval(enemyArr[enemiesOnScreen[_local5].myIndex].grinder);
enemyArr[enemiesOnScreen[_local5].myIndex].targetObj.rmc.gotoAndStop(1);
enemyArr[enemiesOnScreen[_local5].myIndex].targetObj = jeep;
enemyArr[enemiesOnScreen[_local5].myIndex].wayPoints = [];
}
}
break;
}
}
}
lasttX = ground.x;
lasttY = ground.y;
var _local8 = rel2abs(_local2._x, _local2._y);
_local2.px = _local2.px + _local2.moveX;
_local2.py = _local2.py + _local2.moveY;
_local2._x = ((200 + _local2.startX) - ground.x) + _local2.px;
_local2._y = ((275 + _local2.startY) - ground.y) + _local2.py;
if (_local2._x < 0) {
removeProjectile(_local2);
} else if (_local2._x > 400) {
removeProjectile(_local2);
} else if (_local2._y < 0) {
removeProjectile(_local2);
} else if (_local2._y > 550) {
removeProjectile(_local2);
}
_local2.px = _local2.px - _local2.moveX;
_local2.py = _local2.py - _local2.moveY;
_local2._x = ((200 + _local2.startX) - ground.x) + _local2.px;
_local2._y = ((275 + _local2.startY) - ground.y) + _local2.py;
}
function getNextDepth(layer) {
if (!layer) {
dCount0++;
if (dCount0 > 10999) {
dCount0 = 1000;
}
return(dCount0);
}
if (layer == 1) {
dCount1++;
if (dCount0 > 20999) {
dCount0 = 11001;
}
return(dCount1);
}
if (layer == 2) {
dCount2++;
if (dCount2 > 30999) {
dCount2 = 21000;
}
return(dCount2);
}
}
function init() {
var _local58 = _root.createEmptyMovieClip("drawingMc", 1);
jeep.removeMovieClip();
_root.jeep = _root.drawingMc.attachMovie("jeep", "jeep", _root.drawingMc.getNextHighestDepth());
jeep._x = 200;
jeep._y = 286;
hud.removeMovieClip();
_root.hud = _root.drawingMc.attachMovie("hud", "hud", _root.drawingMc.getNextHighestDepth());
projectileLayer.removeMovieClip();
_root.projectileLayer = _root.drawingMc.createEmptyMovieClip("projectileLayer", 49985);
prepareBlocks();
p1 = new Object();
p2 = new Object();
p3 = new Object();
p4 = new Object();
var _local61;
var _local60;
_quality = "MEDIUM";
gameSpeed = 1.2;
_root.totalFTime = -5;
showTiles = 0;
display_collisions = 0;
debugMode = 0;
intervals = [];
projectilesArr = [];
targetArr = [];
grinderArr = [];
mineArr = [];
collisionRectangles = [];
collisionRectanglesFlat = [];
drivespeed = 0;
bgTiles = [];
terrOnScr = [];
groundPositions = [];
collisionSound = [];
flashArr = [];
backupArr = [];
lastBoxAngle = 0;
eProjArr = [];
radioMessages = [];
var _local56 = 0;
targetsOnScreen = [];
dCount0 = 1000;
dCount1 = 11001;
dCount2 = 21000;
tCount = 10000;
currentWeapon = "rocket";
ground = new Object();
ground.x = -100;
ground.y = -100;
framesSinceLastBGCheck = 0;
_root.bg = _root.drawingMc.attachMovie("ground", "bg", getNextDepth());
jeep.power = 1000;
_global.updateINTVL = 0;
targetCount = 0;
targetsDown = 0;
lastX = 0;
lastY = 0;
framesSinceLastCollision = 0;
gamePaused = 1;
frameCount = 0;
levelScore = 0;
initRotation = 1;
pauseTime = 0;
for (var _local36 in lvlBlocks) {
for (var _local29 in lvlBlocks[_local36]) {
var _local8 = lvlBlocks[_local36][_local29];
for (var _local13 in _local8) {
var _local4 = _local8[_local13];
delete _local4.mc;
if (_local4.maxHealth) {
_local4.power = _local4.maxHealth;
}
}
}
}
hud.healthBar.gotoAndStop(1);
acceletion = 0.7;
maxspeed = 12;
framesSinceLastShot = 0;
if (showTiles) {
_root.tilesDisplay = _root.drawingMc.attachMovie("tilesDisplay", "tilesDisplay", 50005);
tilesDisplay._alpha = 100;
tilesDisplay._xscale = (tilesDisplay._yscale = 10);
}
snd_radio_beginning_pursuit = new Sound(this);
snd_radio_beginning_pursuit.attachSound("radio_beginning_pursuit");
snd_radio_target_identified = new Sound(this);
snd_radio_target_identified.attachSound("radio_target_identified");
snd_radio_mission_start = new Sound(this);
snd_radio_mission_start.attachSound("radio_mission_start");
snd_radio_target_under_attack = new Sound(this);
snd_radio_target_under_attack.attachSound("radio_target_under_attack");
snd_radio_mission_accomplished = new Sound(this);
snd_radio_mission_accomplished.attachSound("radio_mission_accomplished");
snd_radio_enemy_destroyed = new Sound(this);
snd_radio_enemy_destroyed.attachSound("radio_enemy_destroyed");
snd_radio_oiltank_destroyed = new Sound(this);
snd_radio_oiltank_destroyed.attachSound("radio_oiltank_destroyed");
snd_radio_you_lose = new Sound(this);
snd_radio_you_lose.attachSound("radio_you_lose");
snd_alert = new Sound(this);
snd_alert.attachSound("alert");
snd_sleekup = new Sound(this);
snd_sleekup.attachSound("sleekup");
gunshot01 = new Sound(this);
gunshot01.attachSound("gunshot01");
rocketshot = new Sound(this);
rocketshot.attachSound("rocketshot");
snd_tank_shoot = new Sound(this);
snd_tank_shoot.attachSound("tank_shoot");
snd_hitmetal = new Sound(this);
snd_hitmetal.attachSound("hitmetal");
snd_rockethit = new Sound(this);
snd_rockethit.attachSound("rocket_hit");
snd_expl = new Sound(this);
snd_expl.attachSound("expl");
mineshoot = new Sound(this);
mineshoot.attachSound("deploy");
weapons = new Array();
weapons.mg = new Array();
weapons.mg.damage = 20;
weapons.mg.reload = 2;
weapons.mg.speed = 14 * gameSpeed;
weapons.mg.hitSound = snd_hitmetal;
weapons.mg.sound = gunshot01;
weapons.mg.sprite = "bullet";
weapons.mg.ammu = 999999 /* 0x0F423F */;
weapons.rocket = new Array();
weapons.rocket.damage = 180;
weapons.rocket.reload = 16;
weapons.rocket.hitSound = snd_rockethit;
weapons.rocket.speed = 6 * gameSpeed;
weapons.rocket.sound = rocketshot;
weapons.rocket.sprite = "rockets";
weapons.rocket.ammu = 10;
weapons.mine = new Array();
weapons.mine.damage = 251;
weapons.mine.reload = 20;
weapons.mine.ammu = 5;
weapons.mine.sound = mineshoot;
enemyInfo = new Array();
enemyInfo.tank1 = new Array();
enemyInfo.tank1.maxHealth = 500;
enemyInfo.tank1.weapon = "rocket";
enemy_weapons = new Array();
enemy_weapons.rocket = new Array();
enemy_weapons.rocket.damage = 100;
enemy_weapons.rocket.reload = 40;
enemy_weapons.rocket.hitSound = snd_rockethit;
enemy_weapons.rocket.speed = 6 * gameSpeed;
enemy_weapons.rocket.sound = rocketshot;
enemy_weapons.rocket.sprite = "rockets";
for (var _local37 in weapons) {
weapons[_local37].id = _local37;
}
hud.ammu_dummy._visible = 0;
changeWeaponTo(weapons[currentWeapon], "noSound");
hud.changeButton.onRelease = function () {
var _local2 = [];
for (var _local4 in _root.weapons) {
_root.weapons[_local4].id = _local4;
if (_root.weapons[_local4].ammu > 0) {
if (_root.weapons[_local4] == _root.weapons[_root.currentWeapon]) {
var _local3 = _local2.length;
}
_local2.push(_root.weapons[_local4]);
}
}
_local3++;
if (_local2[_local3]) {
_root.changeWeaponTo(_local2[_local3]);
} else {
_root.changeWeaponTo(_local2[0]);
}
};
tClearerINTVL = setInterval(cleanTerrain, 500);
jeep.p1._alpha = 0;
jeep.p2._alpha = 0;
jeep.p3._alpha = 0;
jeep.p4._alpha = 0;
if (display_collisions) {
_root.ccollisionDisplay = _root.drawingMc.attachMovie("ccollisionDisplay", "collisionDisplay", 49995);
collisionDisplay._x = 40;
collisionDisplay._y = 390;
collisionDisplay._visible = 1;
}
_global.findPath = function (map, sx, sy, tx, ty) {
var _local11 = o.getValidPoint(tx, ty);
tx = _local11.x;
ty = _local11.y;
_root.bLog = _local11.log;
_local11 = o.getValidPoint(sx, sy);
sx = _local11.x;
sy = _local11.y;
_root.eLog = _local11.log;
if (map[ty][tx]) {
if (debugMode) {
trace("error: invalid starting position!");
}
return("error: invalid starting position!");
}
if (map[sy][sx]) {
if (debugMode) {
trace("error: invalid target position!");
}
return("error: invalid target position!");
}
o.recursions = 0;
o.tryCount = 0;
o.totalTries = 500;
var _local2 = o.walkTo(map, sx, sy, tx, ty);
if (!_local2) {
_local2 = o.reverseArr(o.walkTo(map, tx, ty, sx, sy));
}
var _local4 = [];
var _local6 = 0;
while (_local6 < _local2.length) {
if (_local4[(_local2[_local6][0] + "x") + _local2[_local6][1]]) {
_local2[_local6].push("d");
_local2[_local4[(_local2[_local6][0] + "x") + _local2[_local6][1]]].push("d");
} else {
_local4[(_local2[_local6][0] + "x") + _local2[_local6][1]] = _local6;
}
_local6++;
}
var _local3 = 0;
var _local5 = 0;
for (_local6 in _local2) {
if (_local2[_local6][2]) {
if (!_local2[_local6 - 1][2]) {
_local3++;
if (_local3 == 1) {
_local5 = _local6;
}
}
if ((!_local2[_local6 + 1][2]) && (_local3 == 2)) {
_local2.splice(_local6, _local5 - _local6);
_local3 = 0;
}
}
}
for (_local6 in _local2) {
if (_local2[_local6][2]) {
_local2.splice(_local6, 1);
}
}
_local2.shift();
if (o.tryCount > o.totalTries) {
return(false);
}
return(_local2);
};
_global.Agent = function (initObj) {
for (var _local3 in initObj) {
this[_local3] = initObj[_local3];
}
};
o = Agent.prototype;
o.getValidPoint = function (p1x, p1y) {
var _local5 = [];
var _local3 = 0;
var _local4 = 0;
while (_local4++ , (_local4 <= 100) && (((((((((map[p1y][p1x] || (map[p1y][p1x] == undefined)) || (map[p1y - 1][p1x])) || (map[p1y - 1][p1x] == undefined)) || (map[p1y][p1x - 1])) || (map[p1y][p1x - 1] == undefined)) || (map[p1y + 1][p1x])) || (map[p1y + 1][p1x] == undefined)) || (map[p1y][p1x + 1])) || (map[p1y][p1x + 1] == undefined))) {
if (!_local3) {
_local3 = 1;
goDir = "l";
tilesInARow = 0;
}
if (goDir == "r") {
p1x++;
} else if (goDir == "u") {
p1y--;
} else if (goDir == "l") {
p1x--;
} else if (goDir == "d") {
p1y++;
}
_local5.push({x:p1x, y:p1y});
if ((++tilesInARow) >= _local3) {
tilesInARow = 0;
if (goDir == "r") {
goDir = "u";
_local3++;
} else if (goDir == "u") {
goDir = "l";
} else if (goDir == "l") {
goDir = "d";
_local3++;
} else if (goDir == "d") {
goDir = "r";
}
}
}
return({x:p1x, y:p1y, log:_local5});
};
o.straightLine = function (map, sx, sy, tx, ty) {
var _local1 = {x:sx, y:sy};
var _local12 = tx - sx;
var _local11 = ty - sy;
var _local4 = Math.abs(_local12 / _local11);
if (_local12 <= 0) {
_local4 = _local4 * -1;
}
var _local8 = Math.abs(_local11 / _local12);
if (_local11 <= 0) {
_local8 = _local8 * -1;
}
var _local6 = sx;
var _local5 = sy;
var _local2 = new Array();
if (Math.abs(_local12) > Math.abs(_local11)) {
if (_local12 > 0) {
_local4 = 1;
} else {
_local4 = -1;
}
var _local3 = 0;
while (_local3 <= 500) {
if (_local1.x == tx) {
return(_local2);
}
if (map[_local1.y][_local1.x] == 1) {
return(false);
}
_local1.x = _local1.x + _local4;
_local5 = _local5 + _local8;
_local1.y = Math.round(_local5);
_local2.push(Array(_local1.y, _local1.x));
_local3++;
}
} else {
if (_local11 > 0) {
_local8 = 1;
} else {
_local8 = -1;
}
var _local3 = 0;
while (_local3 <= 500) {
if (_local1.y == ty) {
return(_local2);
}
if (map[_local1.y][_local1.x] == 1) {
return(false);
}
_local1.y = _local1.y + _local8;
_local6 = _local6 + _local4;
_local1.x = Math.round(_local6);
_local2.push(Array(_local1.y, _local1.x));
_local3++;
}
}
return(false);
};
o.guessPoint = function (map, sx, sy, tx, ty, lx, ly) {
_root.stuckPoint.swapDepths(_root.getNextHighestDepth());
if (sy < ly) {
while (!map[ly][lx]) {
ly++;
}
} else {
while (!map[ly][lx]) {
ly--;
}
}
_root.stuckPoint._visible = 1;
_root.stuckPoint._x = lx * 21;
_root.stuckPoint._y = ly * 21;
while (lx > 1) {
lx--;
var _local5 = ((((!map[ly][lx]) && (!map[ly + 1][lx])) && (!map[ly + 2][lx])) && (!map[ly + 3][lx])) && (!map[ly + 4][lx]);
var _local7 = ((((!map[ly][lx]) && (!map[ly - 1][lx])) && (!map[ly - 2][lx])) && (!map[ly - 3][lx])) && (!map[ly - 4][lx]);
var _local6 = _local5 && (_local7);
if (_local6) {
lx = lx - 2;
var _local9 = o.walkTo(map, lx, ly, tx, ty, "noGuess");
var _local8 = o.walkTo(map, sx, sy, lx, ly, "noGuess");
if ((_local9 == false) || (_local8 == false)) {
return(false);
}
_root.guessPoint._x = lx * 21;
_root.guessPoint._y = ly * 21;
_root.guessPoint._visible = 1;
_root.guessPoint.swapDepths(_root.getNextHighestDepth());
return(_local8.concat(_local9));
}
}
while (lx < (map[0].length - 2)) {
lx++;
var _local5 = ((((!map[ly][lx]) && (!map[ly + 1][lx])) && (!map[ly + 2][lx])) && (!map[ly + 3][lx])) && (!map[ly + 4][lx]);
var _local7 = ((((!map[ly][lx]) && (!map[ly - 1][lx])) && (!map[ly - 2][lx])) && (!map[ly - 3][lx])) && (!map[ly - 4][lx]);
var _local6 = _local5 && (_local7);
if (_local6) {
lx = lx + 2;
var _local9 = o.walkTo(map, lx, ly, tx, ty, "noGuess");
var _local8 = o.walkTo(map, sx, sy, lx, ly, "noGuess");
_root.guessPoint._x = lx * 21;
_root.guessPoint._y = ly * 21;
_root.guessPoint._visible = 1;
_root.guessPoint.swapDepths(_root.getNextHighestDepth());
return(_local8.concat(_local9));
}
}
return(false);
};
o.reverseArr = function (arr) {
var _local2 = new Array();
for (var _local3 in arr) {
_local2[arr.length - _local3] = arr[_local3];
}
return(_local2);
};
o.walkTo = function (map, sx, sy, tx, ty, noGuess, noReverse) {
if ((++o.recursions) > 15) {
return(false);
}
this.tx = tx;
this.ty = ty;
if (!(this.loop === this.walking)) {
this.dir = 0;
this.dir = this.getApproximatedDirection(map);
}
this.visitedNodes = [];
var _local6 = false;
var _local5 = false;
var _local12 = [];
this.x = sx;
this.y = sy;
while ((!_local6) && (!_local5)) {
if ((++o.tryCount) > o.totalTries) {
_local5 = true;
return(false);
}
if (o.tryCount > 80) {
if (!noGuess) {
return(this.guessPoint(map, sx, sy, tx, ty, this.x, this.y));
}
if (!noReverse) {
return(this.reverseArr(this.walkTo(map, tx, ty, sx, sy, noGuess, "noReverse")));
}
}
var dir = this.dir;
var _local2 = this.mc;
var _local3 = 2;
if (dir == 1) {
_local2._x = _local2._x + _local3;
} else if (dir == 2) {
_local2._x = _local2._x - _local3;
} else if (dir == 4) {
_local2._y = _local2._y + _local3;
} else if (dir == 8) {
_local2._y = _local2._y - _local3;
} else if (dir == 5) {
_local2._x = _local2._x + _local3;
_local2._y = _local2._y + _local3;
} else if (dir == 9) {
_local2._x = _local2._x + _local3;
_local2._y = _local2._y - _local3;
} else if (dir == 10) {
_local2._x = _local2._x - _local3;
_local2._y = _local2._y - _local3;
} else if (dir == 6) {
_local2._x = _local2._x - _local3;
_local2._y = _local2._y + _local3;
}
if (dir == 1) {
this.x = this.x + 1;
} else if (dir == 2) {
this.x = this.x - 1;
} else if (dir == 4) {
this.y = this.y + 1;
} else if (dir == 8) {
this.y = this.y - 1;
} else if (dir == 5) {
(this.x = this.x + 1);
(this.y = this.y + 1);
} else if (dir == 9) {
(this.x = this.x + 1);
(this.y = this.y - 1);
} else if (dir == 10) {
(this.x = this.x - 1);
(this.y = this.y - 1);
} else if (dir == 6) {
(this.x = this.x - 1);
(this.y = this.y + 1);
}
if ((this.x == this.tx) && (this.y == this.ty)) {
delete this.loop;
this.onArrive();
_local6 = true;
}
this.dir = this.getApproximatedDirection(map);
_local12.push(Array(this.y, this.x));
}
return(_local12);
};
o.getApproximatedDirection = function (themap) {
var _local5 = map;
var _local4 = this.x;
var _local3 = this.y;
var _local23 = this.dir;
var _local22 = this.tx;
var _local20 = this.ty;
var _local9 = _local22 - _local4;
var _local8 = _local20 - _local3;
var _local10 = Math.abs;
var _local13 = _local10(_local9);
var _local12 = _local10(_local8);
var _local16 = _local13 >= _local12;
var _local15 = _local12 >= _local13;
var _local2 = [];
var _local14 = _local5[_local3];
if (((~_local14[_local4 + 1]) & 1) && (_local23 != 2)) {
var _local25;
_local25 = _local9 >= 0;
if (_local25 && (_local16)) {
_local2.push({dir:1, value:3});
} else if (_local25) {
_local2.push({dir:1, value:2});
} else if (_local23 == 1) {
_local2.push({dir:1, value:1});
} else {
_local2.push({dir:1, value:0});
}
}
if (((~_local14[_local4 - 1]) & 1) && (_local23 != 1)) {
var _local21;
_local21 = _local9 <= 0;
if (_local21 && (_local16)) {
_local2.push({dir:2, value:3});
} else if (_local21) {
_local2.push({dir:2, value:2});
} else if (_local23 == 2) {
_local2.push({dir:2, value:1});
} else {
_local2.push({dir:2, value:0});
}
}
if (((~_local5[_local3 + 1][_local4]) & 1) && (_local23 != 8)) {
var _local24;
_local24 = _local8 >= 0;
if (_local24 && (_local15)) {
_local2.push({dir:4, value:3});
} else if (_local24) {
_local2.push({dir:4, value:2});
} else if (_local23 == 4) {
_local2.push({dir:4, value:1});
} else {
_local2.push({dir:4, value:0});
}
}
if (((~_local5[_local3 - 1][_local4]) & 1) && (_local23 != 4)) {
var _local19;
_local19 = _local8 <= 0;
if (_local19 && (_local15)) {
_local2.push({dir:8, value:3});
} else if (_local19) {
_local2.push({dir:8, value:2});
} else if (_local23 == 8) {
_local2.push({dir:8, value:1});
} else {
_local2.push({dir:8, value:0});
}
}
_local2.sortOn("value");
var _local17 = _local2.length;
_local17--;
var _local11 = _local2[_local17];
_local17--;
var _local18 = _local2[_local17];
if (_local11.value == _local18.value) {
var _local7 = _local11.dir + _local18.dir;
if ((_local7 == 5) && ((~_local5[_local3 + 1][_local4 + 1]) & 1)) {
return(5);
}
if ((_local7 == 6) && ((~_local5[_local3 + 1][_local4 - 1]) & 1)) {
return(6);
}
if ((_local7 == 9) && ((~_local5[_local3 - 1][_local4 + 1]) & 1)) {
return(9);
}
if ((_local7 == 10) && ((~_local5[_local3 - 1][_local4 - 1]) & 1)) {
return(10);
}
}
var _local6 = _local2.pop().dir;
if (_local6 == this.visitedNodes[_local3][_local4]) {
alert = alert + "\rvisited";
_local6 = _local2.pop().dir;
}
if (_local23 != _local6) {
if (this.visitedNodes[_local3] == undefined) {
this.visitedNodes[_local3] = [];
}
this.visitedNodes[_local3][_local4] = _local6;
alert = alert + ("\rmarker " + [_local4, _local3]);
}
return(_local6);
};
collisionHandling.main();
buildCMap();
initCollisionMap();
initMap();
flicker(jeep, 20);
jeep.swapDepths(9998);
jeep._visible = 1;
fps_counter.swapDepths(49998);
fps_counter._visible = 1;
currentBlockInd.swapDepths(49985);
currentBlockInd._visible = false;
frame.swapDepths(49984);
frame._visible = true;
cd.swapDepths(49983);
cd._visible = true;
mon.swapDepths(49982);
mon._visible = true;
screenInfo.swapDepths(49977);
_root.createEmptyMovieClip("typingMC", 50001);
hud.swapDepths(49974);
hud._visible = true;
_global.type = new type2();
_global.type.init(_root.typingMC);
_global.typeLarge = new type3();
_global.typeLarge.init(_root.typingMC);
update();
initEnemies();
initCrates();
stop();
_root.onEnterFrame = function () {
if (!gamePaused) {
handlekeys();
drive();
shoot();
checkHits();
drawTerrain();
drawGround();
updateRadar();
handleEnemies();
handleCrates();
handleMines();
handleProjectiles();
lastX = ground.x;
lastY = ground.y;
frameCount++;
_global.updateINTVL++;
if (_global.updateINTVL > 15) {
_global.updateINTVL = 0;
}
}
};
}
function lateInit() {
clearInterval(lateInitINTVL);
clearInterval(radioINVL);
radioBroadcasting = false;
radioMessages = [];
radioINVL = setInterval(runRadio, 200);
_root.radioMessages.push(snd_radio_mission_start);
var _local6 = new Date();
_root.startTime = int(_local6.getTime() / 1000);
timeUpdateINVL = setInterval(updateTime, 1000);
gamePaused = 0;
hud.setScore(levelScore);
hud.setLives(lives);
hud._visible = true;
_root.proceed();
delete _root.proceed;
var _local5 = _root.drawingMc.createEmptyMovieClip("soundMC", 40006);
snd_engineStart = new Sound(_local5);
snd_engineStart.attachSound("engine_start");
snd_engineLow.stop();
delete snd_engineLow;
snd_engineLow = new Sound(_local5);
snd_engineLow.attachSound("engine_low");
snd_engineLow.start(0, 9999);
snd_engineLow.setVolume(0);
if (showTiles) {
for (var _local4 in map) {
for (var _local3 in map[_local4]) {
if (map[_local4][_local3]) {
var _local2 = tilesDisplay.attachMovie("block2", "bb" + tilesDisplay.getNextHighestDepth(), tilesDisplay.getNextHighestDepth());
_local2._x = _local3 * 4;
_local2._y = _local4 * 4;
}
}
}
tilesDisplay.bg._width = (map[_local4][_local3].length * 4) + 4;
tilesDisplay.bg._height = (map[_local4].length * 4) + 4;
}
}
function backupRemoval() {
for (var _local1 in backupArr) {
if ((!backupArr[_local1].moveX) && (!backupArr[_local1].moveY)) {
backupArr[_local1].removeMovieClip();
backupArr.splice(_local1, 1);
}
}
}
function clearAll() {
snd_alert.stop();
hud._visible = false;
snd_engineLow.stop();
snd_engineLow.setVolume(0);
delete snd_engineLow;
delete _level0.collisionHandling0;
delete _level0.collBox;
delete _level0.o;
delete _level0.lvlBlocks;
delete _level0.map;
_root.drawingMc.removeMovieClip();
clearInterval(radioINVL);
clearInterval(tClearerINTVL);
clearInterval(timeUpdateINVL);
tilesDisplay.removeMovieClip();
collisionDisplay.removeMovieClip();
for (var _local3 in pushEnemies) {
delete pushEnemies[_local3];
}
for (var _local3 in grinderArr) {
clearInterval(grinderArr[_local3]);
delete grinderArr[_local3];
}
for (var _local3 in arrowArr) {
arrowArr[_local3].removeMovieClip();
delete arrowArr[_local3];
}
for (var _local3 in messageArr) {
for (var _local2 in messageArr[_local3].cArr) {
messageArr[_local3].cArr[_local2].removeMovieClip();
}
delete messageArr[_local3];
}
for (var _local3 in enemyArr) {
clearInterval(enemyArr[_local3].targetRefresher);
enemyArr[_local3].radarObj.removeMovieClip();
enemyArr[_local3].hb.removeMovieClip();
enemyArr[_local3].removeMovieClip();
enemyArr[_local3].mc.removeMovieClip();
delete enemyArr[_local3];
}
for (var _local3 in enemiesOnScreen) {
enemiesOnScreen[_local3].radarObj.removeMovieClip();
enemiesOnScreen[_local3].removeMovieClip();
enemiesOnScreen[_local3].mc.removeMovieClip();
delete enemiesOnScreen[_local3];
}
for (var _local3 in intervals) {
clearInterval(intervals[_local3]);
delete intervals[_local3];
}
for (var _local3 in arrowArr) {
arrowArr[_local3].removeMovieClip();
delete arrowArr[_local3];
}
for (var _local3 in projectilesArr) {
projectilesArr[_local3].removeMovieClip();
delete projectilesArr[_local3];
}
for (var _local3 in targetArr) {
targetArr[_local3].hb.removeMovieClip();
targetArr[_local3].removeMovieClip();
targetArr[_local3].mc.removeMovieClip();
delete targetArr[_local3];
}
delete targetArr;
for (var _local3 in mineArr) {
mineArr[_local3].removeMovieClip();
mineArr[_local3].mc.removeMovieClip();
delete mineArr[_local3];
}
for (var _local3 in bgTiles) {
bgTiles[_local3].removeMovieClip();
bgTiles[_local3].mc.removeMovieClip();
delete bgTiles[_local3];
}
for (var _local3 in terrOnScr) {
terrOnScr[_local3].removeMovieClip();
terrOnScr[_local3].mc.removeMovieClip();
}
delete terrOnScr;
for (var _local3 in flashArr) {
flashArr[_local3].removeMovieClip();
flashArr[_local3].mc.removeMovieClip();
delete flashArr;
}
delete flashArr;
for (var _local3 in eProjArr) {
eProjArr[_local3].removeMovieClip();
eProjArr[_local3].mc.removeMovieClip();
delete eProjArr[_local3];
}
for (var _local3 in hud.radar.objects) {
hud.radar.objects[_local3].removeMovieClip();
delete hud.radar.objects[_local3];
}
for (var _local3 in mineArr) {
mineArr[_local3].removeMovieClip();
mineArr[_local3].mc.removeMovieClip();
delete mineArr[_local3];
}
for (var _local3 in cratesArr) {
cratesArr[_local3].removeMovieClip();
cratesArr[_local3].mc.removeMovieClip();
delete cratesArr[_local3];
}
for (var _local3 in targetsOnScreen) {
targetsOnScreen[_local3].removeMovieClip();
targetsOnScreen[_local3].mc.removeMovieClip();
delete targetsOnScreen[_local3];
}
for (var _local3 in blocksOnScr) {
for (var _local2 in blocksOnScr[_local3]) {
delete blocksOnScr[_local3][_local2].mc;
}
}
delete _root.collEngine;
delete blocksOnScr;
}
function initCollisionMap() {
collisionDisplay.bg._width = level.header.width;
collisionDisplay.bg._height = level.header.height;
collisionDisplay._xscale = 10;
collisionDisplay._yscale = 10;
for (var _local5 in lvlBlocks) {
for (var _local4 in lvlBlocks[_local5]) {
var _local1 = lvlBlocks[_local5][_local4];
for (var _local3 in _local1) {
var _local2 = _local1[_local3];
}
}
}
}
function initMap() {
radarSetup = 1;
hud.radar.objects = [];
var _local39 = level.header.width;
var _local38 = level.header.height;
if ((_local39 / _local38) < 1.4) {
hud.radar.bg._height = 95;
hud.radar.bg._width = 95 * (_local39 / _local38);
} else {
hud.radar.bg._width = 140;
hud.radar.bg._height = 140 / (_local39 / _local38);
}
hud.radar._x = 317 - (hud.radar.bg._width / 2);
hud.radar._y = 60 - (hud.radar.bg._height / 2);
var _local42 = 0;
radarFactorX = (level.header.width / hud.radar.bg._width) * 1.2;
radarFactorY = radarFactorX;
hud.radar.onScreenRect._width = (400 / level.header.width) * hud.radar.bg._width;
hud.radar.onScreenRect._height = (550 / level.header.height) * hud.radar.bg._height;
var _local43 = 0;
var _local40 = hud.radar.createEmptyMovieClip("staticMap", 5);
var _local28 = new flash.display.BitmapData(190, 111, true, 16777215);
for (var _local35 in lvlBlocks) {
for (var _local33 in lvlBlocks[_local35]) {
var _local14 = lvlBlocks[_local35][_local33];
for (var _local29 in _local14) {
var _local2 = _local14[_local29];
if (_local2.type == "solid") {
var _local6 = _root.drawingMc.attachMovie(_local2.sprite, "dummy", getNextDepth());
_local6._rotation = _local2.rotation;
var _local37 = _local6.ha._width / radarFactorX;
var _local36 = _local6.ha._height / radarFactorY;
var _local7 = _local2.rotation;
var _local17 = _local2.xcoord / radarFactorX;
var _local16 = _local2.ycoord / radarFactorY;
if (_local7 == undefined) {
_local7 = 0;
}
if (_local2.istarget) {
var _local13 = hud.radar.attachMovie("radar_terrain", "radar_terrain_" + hud.radar.getNextHighestDepth(), hud.radar.getNextHighestDepth());
radar.objects.push(_local13);
_local13._x = _local17;
_local13._y = _local16;
_local13._width = _local37;
_local13._height = _local36;
_local13._rotation = _local7;
targetCount++;
targetArr.push({x:_local2.xcoord, y:_local2.ycoord, grinders:new Array(), surfaces:new Array(), rmc:_local13, power:parseInt(_local2.power), maxHealth:parseInt(_local2.power), sprite:_local2.sprite});
} else {
var _local13 = hud.radar.attachMovie("radar_terrain2", "rmc", 11);
var _local10 = new flash.geom.Matrix();
_local10.translate(_local17, _local16);
var _local11 = new flash.geom.Matrix();
_local11.rotate((_local7 / 180) * Math.PI);
var _local8 = new flash.geom.Matrix();
_local8.scale(_local37 / 13, _local36 / 11);
_local8.concat(_local11);
_local8.concat(_local10);
_local28.draw(_local13, _local8);
_local13.removeMovieClip();
}
var _local5 = getCorners(_local6);
var _local18 = [];
if (_local2.istarget) {
var _local9 = 0;
while (_local9 <= 3) {
var _local12 = addSurf(_local2.xcoord + _local5[0].x, _local2.ycoord + _local5[0].y, _local2.xcoord + _local5[1].x, _local2.ycoord + _local5[1].y);
targetArr[targetArr.length - 1].surfaces.push(_local12);
_local9++;
}
}
if (!collisionRectangles[_local35]) {
collisionRectangles[_local35] = [];
}
if (!collisionRectangles[_local35][_local33]) {
collisionRectangles[_local35][_local33] = [];
}
collisionRectangles[_local35][_local33].push(_local18);
_local6.removeMovieClip();
}
}
}
}
_local40.attachBitmap(_local28, 1);
var _local37 = level.header.width - 40;
var _local36 = level.header.height - 40;
var _local27 = 125;
var _local26 = 115;
for (var _local34 in level.edges) {
var _local24 = level.edges[_local34];
addSurf(_local24.x1 + _local27, _local24.y1 + _local26, _local24.x2 + _local27, _local24.y2 + _local26);
}
addSurf(_local27, _local26 - 100, _local27, (_local26 + _local36) + 100);
addSurf(_local27 - 100, _local26 + _local36, (_local27 + _local37) + 100, _local26 + _local36);
addSurf(_local27 + _local37, (_local26 + _local36) + 100, _local27 + _local37, _local26 - 100);
addSurf((_local27 + _local37) + 100, _local26, _local27 - 100, _local26);
if (!_root.map) {
pFactor = 25;
dummyMCs = [];
for (var _local35 in lvlBlocks) {
for (var _local33 in lvlBlocks[_local35]) {
var _local14 = lvlBlocks[_local35][_local33];
for (var _local30 in _local14) {
var _local4 = _local14[_local30];
if (_local4.type == "solid") {
var _local3 = _root.drawingMc.attachMovie(_local4.sprite, "dummyMC_" + getNextDepth(), dCount0);
_local3.onRelease = function () {
trace("jjd");
};
_local3._x = (_local4.xcoord - 50) / pFactor;
_local3._y = _local4.ycoord / pFactor;
if (_local4.istarget) {
_local3._y = _local3._y - 1;
_local3._x = _local3._x - 1;
}
_local3._width = _local3._width / pFactor;
_local3._height = _local3._height / pFactor;
_local3._width = _local3._width * 1.2;
_local3._height = _local3._height * 1.2;
if (_local4.rotation) {
_local3._rotation = _local4.rotation;
}
dummyMCs.push(_local3);
}
}
}
}
var _local32 = _root.createEmptyMovieClip("mapInitTimer", _root.getNextHighestDepth());
_root.pTimer = _local32;
_root.proceed = function () {
_root.pTimer.onEnterFrame = null;
_root.pTimer.removeMovieClip();
for (var _local2 in dummyMCs) {
dummyMCs[_local2].removeMovieClip();
}
delete dummyMCs;
};
_local32.beginFill(0);
_local32.moveTo(0, 0);
_local32.lineTo(Stage.width, 0);
_local32.lineTo(Stage.width, Stage.height);
_local32.lineTo(0, Stage.height);
_local32.lineTo(0, 0);
_local32.endFill();
var precalcMC = _local32.attachMovie("precalcMC", "l1", 1);
map = [];
var py = 0;
_local32.onEnterFrame = function () {
if (precalcMC._currentframe == 38) {
if (py <= ((level.header.height / pFactor) + 3)) {
var _local4 = [];
var _local3 = 0;
while (_local3 <= ((level.header.width / pFactor) + 3)) {
var _local2 = 0;
for (var _local5 in dummyMCs) {
if (dummyMCs[_local5].ha.hitTest(_local3, py, true)) {
_local2 = 1;
}
}
if (py > (level.header.height / pFactor)) {
_local2 = 1;
}
if (py < 2) {
_local2 = 1;
}
if (_local3 > (level.header.width / pFactor)) {
_local2 = 1;
}
if (_local3 < 2) {
_local2 = 1;
}
if (!tilesDisplay.tArr) {
tilesDisplay.tArr = [];
}
if (_local2) {
_local4.push(1);
} else {
_local4.push(0);
}
t.removeMovieClip();
_local3 = _local3 + 1;
}
map.push(_local4);
var _local6 = int((py / ((level.header.height / pFactor) + 3)) * 100);
precalcMC.pBar.gotoAndStop(_local6);
py++;
} else {
_root.map = map;
if (showTiles) {
}
_root.gamePaused = 1;
precalcMC.play();
}
}
};
} else {
_root.gamePaused = 1;
lateInitINTVL = setInterval(lateInit, 100);
}
}
function handlekeys() {
keyL = Key.isDown(37);
keyR = Key.isDown(39);
keyU = Key.isDown(38);
keyD = Key.isDown(40);
if (Key.isDown(27)) {
gamePaused = 1;
hud.menu._visible = true;
}
_root.onMouseDown = function () {
keyM = true;
};
_root.onMouseUp = function () {
keyM = false;
};
}
function runRadio() {
if ((!radioBroadcasting) && (radioMessages.length >= 1)) {
_root.radioBroadcasting = true;
var _local2 = radioMessages.shift();
_local2.start();
_local2.onSoundComplete = function () {
_root.radioBroadcasting = false;
};
}
}
function updateRadar() {
hud.radar.player._x = int((ground.x + 500) / radarFactorX);
hud.radar.player._y = int((ground.y + 575) / radarFactorY);
hud.radar.onScreenRect._x = hud.radar.player._x - (hud.radar.onScreenRect._width / 2);
hud.radar.onScreenRect._y = hud.radar.player._y - (hud.radar.onScreenRect._height / 2);
}
function updateTime() {
if (gamePaused) {
pauseTime++;
}
var _local5 = new Date();
var _local6 = int(_local5.getTime() / 1000);
levelTime = (_local6 - startTime) - pauseTime;
timeToGo = level.header.time - levelTime;
var _local4 = int(level.header.time - levelTime);
if (t_messageArr[levelTime]) {
_global.type.typeMessage(t_messageArr[levelTime], parseInt("CC3399", 16));
delete t_messageArr[levelTime];
}
_root.createEmptyMovieClip("timeDisplay", 49988);
timeDisplay.createTextField("timerShadow", 1, 29, 72, 46, 30);
timeDisplay.timerShadow._quality("LOW");
timeDisplay.timerShadow.multiline = true;
timeDisplay.timerShadow.text = _local4;
timeDisplay.timerShadow.selectable = false;
timeDisplay.timerShadow.wordWrap = true;
timeDisplay.timerShadow.embedFonts = true;
var _local3 = new TextFormat();
_local3.font = "font02";
_local3.size = 26;
_local3.align = "center";
_local3.color = "0x000000";
timeDisplay.timerShadow.setTextFormat(_local3);
timeDisplay.createTextField("timerDisplay", 2, 27, 70, 46, 30);
timeDisplay.timerDisplay._quality("LOW");
timeDisplay.timerDisplay.multiline = true;
timeDisplay.timerDisplay.text = _local4;
timeDisplay.timerDisplay.selectable = false;
timeDisplay.timerDisplay.wordWrap = true;
timeDisplay.timerDisplay.embedFonts = true;
_local3 = new TextFormat();
_local3.font = "font02";
_local3.size = 26;
_local3.align = "center";
_local3.color = "0xFFFFFF";
timeDisplay.timerDisplay.setTextFormat(_local3);
if (timeToGo <= 0) {
_global.totalScore = _global.totalScore + levelScore;
explodeStage("youwin");
}
}
setInterval(backupRemoval, 4000);
init();
Frame 405
function processScore(num) {
var _local4 = 1987;
var _local3 = 7;
var _local2 = 15;
var _local1 = 3;
return(Math.round((((num * _local1) - _local2) / _local3) + _local4));
}
if (!_global.totalScore) {
_global.totalScore = 20;
}
displayScore = "" + _global.totalScore;
while (displayScore.length < 6) {
displayScore = "0" + displayScore;
}
Instance of Symbol 1127 MovieClip "b1" in Frame 405
on (release) {
_root.gotoAndPlay("hi_out");
}
Instance of Symbol 1105 MovieClip in Frame 405
on (release) {
getURL ("http://games.pbswine.de/", "_blank");
}
on (rollOver) {
this.bg.gotoAndStop(2);
this.t2.t._alpha = 100;
this.t1.t._alpha = 0;
}
on (rollOut) {
this.bg.gotoAndStop(1);
this.t2.t._alpha = 0;
this.t1.t._alpha = 100;
}
Frame 406
stop();
Instance of Symbol 1131 MovieClip "b2" in Frame 406
on (release) {
_root.gotoAndPlay("hi_out");
}
Instance of Symbol 720 MovieClip in Frame 406
onClipEvent (enterFrame) {
if (ha.isOver) {
if (this._alpha == 0) {
this._alpha = 100;
}
this.nextFrame();
} else if (ha.isOver != undefined) {
this._alpha = this._alpha - 10;
this.nextFrame();
if (this._alpha <= 0) {
this._alpha = 0;
this.gotoAndStop(1);
}
}
}
onClipEvent (load) {
this.ha.onRollOver = function () {
this.isOver = 1;
_root.darkwind.start(0.3);
_root.b1.bew = "fw";
};
this.ha.onRollOut = function () {
this.isOver = 0;
_root.b1.bew = "rw";
};
this.ha.onRelease = function () {
this.isOver = 0;
_root.punch.start();
_root.b1.bew = "rw";
_root.b1.playOnFinnish = 1;
_root.goNext = "startmission";
};
}
Instance of Symbol 720 MovieClip in Frame 406
onClipEvent (enterFrame) {
if (ha.isOver) {
if (this._alpha == 0) {
this._alpha = 100;
}
this.nextFrame();
} else if (ha.isOver != undefined) {
this._alpha = this._alpha - 10;
this.nextFrame();
if (this._alpha <= 0) {
this._alpha = 0;
this.gotoAndStop(1);
}
}
}
onClipEvent (load) {
this.ha.onRollOver = function () {
this.isOver = 1;
_root.darkwind.start(0.3);
_root.b2.bew = "fw";
};
this.ha.onRollOut = function () {
this.isOver = 0;
_root.b2.bew = "rw";
};
this.ha.onRelease = function () {
this.isOver = 0;
_root.punch.start();
_root.b2.bew = "rw";
_root.play();
};
}
Instance of Symbol 720 MovieClip in Frame 413
onClipEvent (enterFrame) {
if (ha.isOver) {
if (this._alpha == 0) {
this._alpha = 100;
}
this.nextFrame();
} else if (ha.isOver != undefined) {
this._alpha = this._alpha - 10;
this.nextFrame();
if (this._alpha <= 0) {
this._alpha = 0;
this.gotoAndStop(1);
}
}
}
onClipEvent (load) {
this.ha.onRollOver = function () {
this.isOver = 1;
_root.darkwind.start(0.3);
_root.b2.bew = "fw";
};
this.ha.onRollOut = function () {
this.isOver = 0;
_root.b2.bew = "rw";
};
this.ha.onRelease = function () {
this.isOver = 0;
_root.punch.start();
_root.b2.bew = "rw";
_root.play();
_root.b2.playOnFinnish = 1;
_root.goNext = "menu";
};
}
Frame 416
var f1 = new TextFormat();
f1.font = "font1";
f1.size = 18;
f1.align = "left";
f1.color = parseInt("000000", 16);
this.createTextField("inputText", this.getNextHighestDepth(), 102, 326, 160, 30);
this.inputText._quality("BEST");
this.inputText.text = "YOUR NAME";
this.inputText.selectable = true;
this.inputText.embedFonts = true;
this.inputText.type = "input";
this.inputText.restrict = "A-Z 0-9";
this.inputText.maxChars = 12;
this.inputText.setTextFormat(f1);
Frame 418
stop();
Frame 419
var l = new LoadVars();
l.score = _global.totalScore;
l.checksum = processScore(_global.totalScore);
l.load((((("http://www.pbswine.de/misc/highScoresOiltanks.php?insert&game=oiltanks&score=" + _global.totalScore) + "&checksum=") + l.checksum) + "&name=") + this.inputText.text);
l.onLoad = function () {
trace(this.res);
};
this.inputText.removeTextField();
Instance of Symbol 1127 MovieClip "b1" in Frame 420
on (release) {
_root.gotoAndPlay("hi_out");
}
Instance of Symbol 1105 MovieClip in Frame 420
on (release) {
getURL ("http://games.pbswine.de/", "_blank");
}
on (rollOver) {
this.bg.gotoAndStop(2);
this.t2.t._alpha = 100;
this.t1.t._alpha = 0;
}
on (rollOut) {
this.bg.gotoAndStop(1);
this.t2.t._alpha = 0;
this.t1.t._alpha = 100;
}
Instance of Symbol 720 MovieClip in Frame 420
onClipEvent (enterFrame) {
if (ha.isOver) {
if (this._alpha == 0) {
this._alpha = 100;
}
this.nextFrame();
} else if (ha.isOver != undefined) {
this._alpha = this._alpha - 10;
this.nextFrame();
if (this._alpha <= 0) {
this._alpha = 0;
this.gotoAndStop(1);
}
}
}
onClipEvent (load) {
this.ha.onRollOver = function () {
this.isOver = 1;
_root.darkwind.start(0.3);
_root.b1.bew = "fw";
};
this.ha.onRollOut = function () {
this.isOver = 0;
_root.b1.bew = "rw";
};
this.ha.onRelease = function () {
this.isOver = 0;
_root.punch.start();
_root.b1.bew = "rw";
_root.b1.playOnFinnish = 1;
_root.goNext = "startmission";
};
}
Frame 421
function getAllTime() {
var _local5 = new LoadVars();
_local5.load("http://www.pbswine.de/misc/highScoresOiltanks.php?getAllTime&r=" + random(9999));
_local5.onLoad = function () {
_root.listsLoaded++;
this.decode();
var _local4 = new XML(this.res);
var res = [];
var _local3 = _local4.lastChild.firstChild;
while (_local3 != null) {
res.push(_local3.attributes);
_local3 = _local3.nextSibling;
}
_root.listMC1 = drawList(res, {x:100, y:170, headline:"All Time"});
};
return(_local5);
}
function drawList(data, params) {
var _local6 = this.createEmptyMovieClip("list" + this.getNextHighestDepth(), this.getNextHighestDepth());
_local6._x = params.x;
_local6._y = params.y;
if (params.headline) {
var textFx = (new de.pbswine.animation.textSpinIn());
var _local13 = function () {
lastHeadline1 = textFx.createEffect(params.headline, {x:params.x, y:params.y - 15}, {font:"font4", color:16777215, size:16}, this);
_root.headlines.push(lastHeadline1);
};
}
var _local12 = new TextFormat();
_local12.font = "font1";
_local12.size = 12;
_local12.align = "center";
_local12.color = parseInt("333333", 16);
var _local7 = new TextFormat();
_local7.font = "font1";
_local7.size = 12;
_local7.align = "left";
_local7.leftMargin = 3;
_local7.color = parseInt("333333", 16);
i = 0;
while (i < data.length) {
var _local3 = _local6.createEmptyMovieClip("row" + _local6.getNextHighestDepth(), _local6.getNextHighestDepth());
_local3._y = i * 16;
_local3._alpha = 0;
pos = i + 1;
if (i % 2) {
color = 16777215 /* 0xFFFFFF */;
} else {
color = 15724527 /* 0xEFEFEF */;
}
box = _local3.createRectangle(color);
box._width = 20;
box._height = 15;
_local3.createTextField("l1", _local3.getNextHighestDepth(), box._x, -2, box._width, box._height);
_local3.l1._quality("BEST");
_local3.l1.text = pos + ".";
_local3.l1.selectable = false;
_local3.l1.embedFonts = true;
_local3.l1.setTextFormat(_local12);
box = _local3.createRectangle(color);
box._width = 100;
box._height = 15;
box._x = 21;
_local3.createTextField("l2", _local3.getNextHighestDepth(), box._x, -2, box._width, box._height);
_local3.l2._quality("BEST");
_local3.l2.text = data[i].name;
_local3.l2.selectable = false;
_local3.l2.embedFonts = true;
_local3.l2.setTextFormat(_local7);
box = _local3.createRectangle(color);
box._width = 50;
box._height = 15;
box._x = 122;
_local3.createTextField("l3", _local3.getNextHighestDepth(), box._x, -2, box._width, box._height);
_local3.l3._quality("BEST");
_local3.l3.text = data[i].score;
_local3.l3.selectable = false;
_local3.l3.embedFonts = true;
_local3.l3.setTextFormat(_local7);
box = _local3.createRectangle(color);
box._width = 25;
box._height = 15;
box._x = 173;
var _local4 = box.createEmptyMovieClip("flag", box.getNextHighestDepth());
_local4._x = (_local4._y = 15);
_local4._xscale = 400;
_local4._yscale = 600;
_local4.loadMovie(("http://www.pbswine.de/misc/flags/" + data[i].country.toUpperCase()) + ".jpg");
largeFuse.push({target:_local3, time:0.3, trigger:0.03, fade:100});
i++;
}
return(_local6);
}
function fadeOut() {
var _local2 = new com.mosesSupposes.fuse.Fuse();
_local2.autoClear = true;
a = Array();
for (var _local3 in headlines) {
a.push({target:headlines[_local3], time:0.5, trigger:0.2, fade:0});
}
_local2.push(a);
_local2.push({target:_root.listMC1, time:0.5, trigger:0.2, fade:0});
_local2.start();
_root.gotoAndPlay("menu");
}
com.mosesSupposes.fuse.ZigoEngine.register(com.mosesSupposes.fuse.Fuse, com.mosesSupposes.fuse.PennerEasing, com.mosesSupposes.fuse.FuseFMP);
var lastHeadline1;
var lastHeadline2;
MovieClip.prototype.createRectangle = function (color) {
box = this.createEmptyMovieClip("line" + this.getNextHighestDepth(), this.getNextHighestDepth());
box.beginFill(color);
box.moveTo(0, 0);
box.lineTo(100, 0);
box.lineTo(100, 100);
box.lineTo(0, 100);
box.lineTo(0, 0);
box.endFill();
return(box);
};
var listsLoaded = 0;
var largeFuse = (new com.mosesSupposes.fuse.Fuse());
largeFuse.autoClear = true;
var l1 = getAllTime();
var headlines = [];
Frame 450
var checkIfLoaded = setInterval(function () {
if (listsLoaded == 1) {
clearInterval(checkIfLoaded);
largeFuse.start();
}
}, 100);
stop();
Frame 454
fadeOut();
Instance of Symbol 1105 MovieClip in Frame 462
on (release) {
getURL ("http://games.pbswine.de/", "_blank");
}
on (rollOver) {
this.bg.gotoAndStop(2);
this.t2.t._alpha = 100;
this.t1.t._alpha = 0;
}
on (rollOut) {
this.bg.gotoAndStop(1);
this.t2.t._alpha = 0;
this.t1.t._alpha = 100;
}
Instance of Symbol 720 MovieClip in Frame 462
onClipEvent (enterFrame) {
if (ha.isOver) {
if (this._alpha == 0) {
this._alpha = 100;
}
this.nextFrame();
} else if (ha.isOver != undefined) {
this._alpha = this._alpha - 10;
this.nextFrame();
if (this._alpha <= 0) {
this._alpha = 0;
this.gotoAndStop(1);
}
}
}
onClipEvent (load) {
this.ha.onRollOver = function () {
this.isOver = 1;
_root.darkwind.start(0.3);
_root.b1.bew = "fw";
};
this.ha.onRollOut = function () {
this.isOver = 0;
_root.b1.bew = "rw";
};
this.ha.onRelease = function () {
this.isOver = 0;
_root.punch.start();
_root.b1.bew = "rw";
_root.gotoAndPlay("menu");
};
}
Frame 463
stop();
Frame 464
function processScore(num) {
var _local4 = 1987;
var _local3 = 7;
var _local2 = 15;
var _local1 = 3;
return(Math.round((((num * _local1) - _local2) / _local3) + _local4));
}
if (!_global.totalScore) {
_global.totalScore = 20;
}
displayScore = "" + _global.totalScore;
while (displayScore.length < 6) {
displayScore = "0" + displayScore;
}
Instance of Symbol 1127 MovieClip "b1" in Frame 464
on (release) {
_root.gotoAndPlay("hi_out");
}
Instance of Symbol 1105 MovieClip in Frame 464
on (release) {
getURL ("http://games.pbswine.de/", "_blank");
}
on (rollOver) {
this.bg.gotoAndStop(2);
this.t2.t._alpha = 100;
this.t1.t._alpha = 0;
}
on (rollOut) {
this.bg.gotoAndStop(1);
this.t2.t._alpha = 0;
this.t1.t._alpha = 100;
}
Frame 465
stop();
Instance of Symbol 1131 MovieClip "b2" in Frame 465
on (release) {
_root.gotoAndPlay("hi_out");
}
Instance of Symbol 720 MovieClip in Frame 465
onClipEvent (enterFrame) {
if (ha.isOver) {
if (this._alpha == 0) {
this._alpha = 100;
}
this.nextFrame();
} else if (ha.isOver != undefined) {
this._alpha = this._alpha - 10;
this.nextFrame();
if (this._alpha <= 0) {
this._alpha = 0;
this.gotoAndStop(1);
}
}
}
onClipEvent (load) {
this.ha.onRollOver = function () {
this.isOver = 1;
_root.darkwind.start(0.3);
_root.b1.bew = "fw";
};
this.ha.onRollOut = function () {
this.isOver = 0;
_root.b1.bew = "rw";
};
this.ha.onRelease = function () {
this.isOver = 0;
_root.punch.start();
_root.b1.bew = "rw";
_root.b1.playOnFinnish = 1;
_root.goNext = "startmission";
};
}
Instance of Symbol 720 MovieClip in Frame 465
onClipEvent (enterFrame) {
if (ha.isOver) {
if (this._alpha == 0) {
this._alpha = 100;
}
this.nextFrame();
} else if (ha.isOver != undefined) {
this._alpha = this._alpha - 10;
this.nextFrame();
if (this._alpha <= 0) {
this._alpha = 0;
this.gotoAndStop(1);
}
}
}
onClipEvent (load) {
this.ha.onRollOver = function () {
this.isOver = 1;
_root.darkwind.start(0.3);
_root.b2.bew = "fw";
};
this.ha.onRollOut = function () {
this.isOver = 0;
_root.b2.bew = "rw";
};
this.ha.onRelease = function () {
this.isOver = 0;
_root.punch.start();
_root.b2.bew = "rw";
_root.play();
};
}
Instance of Symbol 720 MovieClip in Frame 472
onClipEvent (enterFrame) {
if (ha.isOver) {
if (this._alpha == 0) {
this._alpha = 100;
}
this.nextFrame();
} else if (ha.isOver != undefined) {
this._alpha = this._alpha - 10;
this.nextFrame();
if (this._alpha <= 0) {
this._alpha = 0;
this.gotoAndStop(1);
}
}
}
onClipEvent (load) {
this.ha.onRollOver = function () {
this.isOver = 1;
_root.darkwind.start(0.3);
_root.b2.bew = "fw";
};
this.ha.onRollOut = function () {
this.isOver = 0;
_root.b2.bew = "rw";
};
this.ha.onRelease = function () {
this.isOver = 0;
_root.punch.start();
_root.b2.bew = "rw";
_root.play();
_root.b2.playOnFinnish = 1;
_root.goNext = "menu";
};
}
Frame 475
var f1 = new TextFormat();
f1.font = "font1";
f1.size = 18;
f1.align = "left";
f1.color = parseInt("000000", 16);
this.createTextField("inputText", this.getNextHighestDepth(), 102, 326, 160, 30);
this.inputText._quality("BEST");
this.inputText.text = "YOUR NAME";
this.inputText.selectable = true;
this.inputText.embedFonts = true;
this.inputText.type = "input";
this.inputText.restrict = "A-Z 0-9";
this.inputText.maxChars = 12;
this.inputText.setTextFormat(f1);
Frame 477
stop();
Frame 478
var l = new LoadVars();
l.score = _global.totalScore;
l.checksum = processScore(_global.totalScore);
l.load((((("http://www.pbswine.de/misc/highScoresOiltanks.php?insert&game=oiltanks&score=" + _global.totalScore) + "&checksum=") + l.checksum) + "&name=") + this.inputText.text);
l.onLoad = function () {
trace(this.res);
};
this.inputText.removeTextField();
_root.gotoAndPlay("menu");
Symbol 10 MovieClip [fps] Frame 1
function calcFPS() {
numFrames++;
var _local3 = getTimer();
var _local2 = (_local3 - startTime) / 1000;
var _local1 = Math.round(numFrames / _local2);
fpsField.text = _local1;
}
var startTime = getTimer();
var numFrames = 0;
this.onEnterFrame = calcFPS;
Symbol 25 MovieClip [radar_terrain] Frame 1
stop();
Symbol 25 MovieClip [radar_terrain] Frame 26
gotoAndPlay (2);
Symbol 28 MovieClip [healthBarLong] Frame 1
stop();
Symbol 30 MovieClip [healthBar] Frame 1
stop();
Symbol 152 MovieClip [explosion_s] Frame 61
if (this == _root.flashArr[this.myIndex]) {
_root.flashArr.splice(this.myIndex, 1);
} else {
for (var i in _root.flashArr) {
if (_root.flashArr[i] == this) {
_root.flashArr.splice(i, 1);
break;
}
}
}
this.removeMovieClip();
Symbol 172 MovieClip [processLevelProgress] Frame 110
_root.proceed();
stop();
Symbol 176 MovieClip [zoneRect] Frame 1
stop();
Symbol 176 MovieClip [zoneRect] Frame 9
stop();
Symbol 199 MovieClip Frame 21
this.onEnterFrame = function () {
var _local3 = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
var _local4 = 21 + int(_local3 / 4);
if (_local3 == 100) {
delete this.onEnterFrame;
this.play();
} else if (this._currentframe > _local4) {
this.stop();
} else {
this.play();
}
};
Symbol 199 MovieClip Frame 72
_root.play();
Symbol 229 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 346 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 347 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 349 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 348 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 230 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 878 MovieClip [__Packages.mx.controls.streamingmedia.ICuePointHolder] Frame 0
interface mx.controls.streamingmedia.ICuePointHolder
{
}
Symbol 1019 MovieClip [__Packages.mx.controls.streamingmedia.CuePoint] Frame 0
class mx.controls.streamingmedia.CuePoint
{
var name, time;
function CuePoint (aName, aTime) {
name = aName;
time = aTime;
}
function toString() {
return(((("CuePoint: " + name) + " at ") + time) + " seconds");
}
}
Symbol 1021 MovieClip [__Packages.mx.controls.MediaDisplay] Frame 0
class mx.controls.MediaDisplay extends mx.core.UIComponent implements mx.controls.streamingmedia.ICuePointHolder
{
var _width, _height, _deadPreview, _startingTime, _playingBeforeDisabled, _started, _sendCompleteEvent, _fullyLoaded, tabEnabled, tabChildren, _screenAccommodator, _cuePoints, initCuePointNames, initCuePointTimes, _mostRecentCuePoint, _playerImpl, _contentPath, _videoHolder, _totalTime, createEmptyMovieClip, _soundHolder, redraw, _autoPlay, _pollId, _autoSize, _aspectRatio, __get__width, __get__height, _parent, dispatchEvent, invalidate, _mediaType, addEventListener;
function MediaDisplay () {
super();
}
function init(Void) {
initializeParameters();
var _local3 = _width;
var _local4 = _height;
_deadPreview._visible = false;
super.init();
setSize(_local3, _local4, true);
initCuePoints();
_startingTime = 0;
_playingBeforeDisabled = false;
_started = false;
_sendCompleteEvent = false;
_fullyLoaded = false;
makeVideoVisible = false;
tabEnabled = false;
tabChildren = false;
_screenAccommodator = new mx.controls.streamingmedia.ScreenAccommodator(this);
}
function initializeParameters() {
if (mediaType == null) {
mediaType = ("FLV");
}
if (totalTime == null) {
totalTime = (0);
}
if (contentPath == null) {
contentPath = ("");
}
if (autoPlay == null) {
autoPlay = (true);
}
if (autoSize == null) {
autoSize = (true);
}
if (aspectRatio == null) {
aspectRatio = (true);
}
}
function initCuePoints() {
_cuePoints = new Array();
var _local2 = 0;
while ((_local2 < initCuePointNames.length) && (_local2 < initCuePointTimes.length)) {
addCuePoint(initCuePointNames[_local2], initCuePointTimes[_local2]);
_local2++;
}
delete initCuePointNames;
delete initCuePointTimes;
_mostRecentCuePoint = undefined;
}
function initMedia(switchType) {
if (isLivePreview()) {
return(undefined);
}
var _local2 = volume;
if (switchType) {
_playerImpl.stop();
}
if (isFLV()) {
if (isRtmp(_contentPath)) {
_playerImpl = new mx.controls.streamingmedia.RTMPPlayer(_contentPath, mx.controls.streamingmedia.StreamingMediaConstants.FLV_MEDIA_TYPE, _videoHolder, _totalTime);
} else {
_playerImpl = new mx.controls.streamingmedia.FLVPlayer(_contentPath, _videoHolder, _totalTime);
}
} else if (isMP3()) {
if (switchType) {
releaseVideo();
}
if (isRtmp(_contentPath)) {
_playerImpl = new mx.controls.streamingmedia.RTMPPlayer(_contentPath, mx.controls.streamingmedia.StreamingMediaConstants.MP3_MEDIA_TYPE, _videoHolder, _totalTime);
} else {
createEmptyMovieClip("_soundHolder", 10);
_playerImpl = new mx.controls.streamingmedia.MP3Player(_contentPath, _soundHolder);
}
}
if (_local2 != undefined) {
volume = (_local2);
}
redraw(true);
_playerImpl.removeAllListeners();
_playerImpl.addListener(this);
_started = false;
if (!switchType) {
if (_autoPlay) {
play();
} else {
load();
}
poll(true);
if (_pollId != null) {
clearInterval(_pollId);
}
_pollId = setInterval(this, "poll", 250);
}
}
function draw() {
if (isFLV()) {
if (makeVideoVisible) {
_videoHolder._visible = true;
makeVideoVisible = false;
}
if (_autoSize) {
assignPreferredSize();
} else if (_aspectRatio) {
var _local4 = preferredWidth;
var _local3 = preferredHeight;
var _local2 = Math.min(__get__width() / _local4, __get__height() / _local3);
setVideoDisplaySize(_local2 * _local4, _local2 * _local3);
} else {
setVideoDisplaySize(__get__width(), __get__height());
}
}
}
function setVideoDisplaySize(w, h) {
if (isFLV()) {
var _local2 = _videoHolder._video;
_local2._width = w;
_local2._height = h;
_local2._x = (__get__width() - _local2._width) / 2;
_local2._y = (__get__height() - _local2._height) / 2;
}
}
function get videoWidth() {
var _local2;
if (isMP3()) {
_local2 = 0;
} else {
_local2 = _videoHolder._video._width;
}
return(_local2);
}
function get videoHeight() {
var _local2;
if (isMP3()) {
_local2 = 0;
} else {
_local2 = _videoHolder._video._height;
}
return(_local2);
}
function get preferredWidth() {
var _local2;
if (isMP3()) {
_local2 = 0;
} else {
_local2 = _videoHolder._video.width;
}
return(_local2);
}
function get preferredHeight() {
var _local2;
if (isMP3()) {
_local2 = 0;
} else {
_local2 = _videoHolder._video.height;
}
return(_local2);
}
function assignPreferredSize() {
setVideoDisplaySize(preferredWidth, preferredHeight, true);
}
function handlePlayer(player, status) {
if ((status == "start") || (status == "resizeVideo")) {
if (_parent instanceof mx.controls.MediaPlayback) {
} else {
makeVideoVisible = true;
draw();
}
if (_started) {
var _local2 = {target:this, type:"resizeVideo"};
dispatchEvent(_local2);
} else {
var _local2 = {target:this, type:"start"};
dispatchEvent(_local2);
if (isRtmp(_contentPath)) {
_local2 = {target:this, type:"progress"};
dispatchEvent(_local2);
}
_started = true;
}
} else if (status == "complete") {
_sendCompleteEvent = true;
}
}
function toString() {
return("MediaDisplay: media=" + _contentPath);
}
function load() {
_playerImpl.load();
}
function play(startingPoint) {
if (startingPoint != undefined) {
_startingTime = startingPoint;
}
if (enabled) {
_playerImpl.play(startingPoint);
} else {
_playingBeforeDisabled = true;
}
}
function pause() {
_playerImpl.pause();
}
function stop() {
_playerImpl.stop();
}
function get autoSize() {
return(_autoSize);
}
function set autoSize(flag) {
if (_autoSize != flag) {
_autoSize = flag;
invalidate();
}
//return(autoSize);
}
function get aspectRatio() {
return(_aspectRatio);
}
function set aspectRatio(flag) {
if (_aspectRatio != flag) {
_aspectRatio = flag;
invalidate();
}
//return(aspectRatio);
}
function get autoPlay() {
return(_autoPlay);
}
function set autoPlay(flag) {
_autoPlay = flag;
//return(autoPlay);
}
function get playheadTime() {
return(_playerImpl.getPlayheadTime());
}
function set playheadTime(position) {
if (position != undefined) {
_startingTime = position;
}
_playerImpl.setPlayheadTime(position);
//return(playheadTime);
}
function get contentPath() {
return(_contentPath);
}
function set contentPath(aUrl) {
setMedia(aUrl);
//return(contentPath);
}
function setMedia(aUrl, aType) {
_fireCuePoints = false;
if (aType == null) {
aType = deduceMediaType(aUrl);
} else if ((aType != mx.controls.streamingmedia.StreamingMediaConstants.FLV_MEDIA_TYPE) && (aType != mx.controls.streamingmedia.StreamingMediaConstants.MP3_MEDIA_TYPE)) {
}
var _local6 = _mediaType;
_mediaType = aType;
var _local4 = isRtmp(_contentPath);
var _local5 = isRtmp(aUrl);
_contentPath = aUrl;
_fullyLoaded = false;
_startingTime = 0;
if (!isLivePreview()) {
if (_contentPath == "") {
releaseVideo();
} else if (_playerImpl == null) {
initMedia();
} else if ((_local6 != _mediaType) || (_local4 != _local5)) {
var _local7 = _playerImpl.isPlaying();
initMedia(true);
if (_local7) {
_playerImpl.play(0);
} else {
_playerImpl.load();
}
} else {
_playerImpl.setMediaUrl(aUrl);
_started = false;
}
}
}
function deduceMediaType(aUrl) {
var _local2 = aUrl.substr(-3);
if ((_local2 == "flv") || (_local2 == "FLV")) {
return("FLV");
}
if ((_local2 == "mp3") || (_local2 == "MP3")) {
return("MP3");
}
return(_mediaType);
}
function releaseVideo() {
_playerImpl.close();
_playerImpl = null;
}
function isLivePreview() {
return(_root.contents.obj != null);
}
function get volume() {
return(_playerImpl.getVolume());
}
function set volume(aVol) {
_playerImpl.setVolume(aVol);
//return(volume);
}
function get playing() {
return(_playerImpl.isPlaying());
}
function get bytesLoaded() {
return(_playerImpl.getMediaBytesLoaded());
}
function get bytesTotal() {
return(_playerImpl.getMediaBytesTotal());
}
function isFLV() {
return(_mediaType == mx.controls.streamingmedia.StreamingMediaConstants.FLV_MEDIA_TYPE);
}
function isMP3() {
return(_mediaType == mx.controls.streamingmedia.StreamingMediaConstants.MP3_MEDIA_TYPE);
}
function get mediaType() {
return(_mediaType);
}
function set mediaType(aType) {
_mediaType = aType;
//return(mediaType);
}
function get totalTime() {
var _local2;
if (_playerImpl == null) {
_local2 = _totalTime;
} else {
_local2 = _playerImpl.getTotalTime();
}
return(_local2);
}
function set totalTime(aTime) {
_totalTime = aTime;
if (_playerImpl instanceof mx.controls.streamingmedia.FLVPlayer) {
mx.controls.streamingmedia.FLVPlayer(_playerImpl).setTotalTime(aTime);
} else if (_playerImpl instanceof mx.controls.streamingmedia.RTMPPlayer) {
mx.controls.streamingmedia.RTMPPlayer(_playerImpl).setTotalTime(aTime);
}
//return(totalTime);
}
function getCuePoints() {
return(_cuePoints);
}
function get cuePoints() {
return(getCuePoints());
}
function setCuePoints(cp) {
_cuePoints = cp;
var _local2 = 0;
while (_local2 < _cuePoints.length) {
_cuePoints[_local2].display = this;
_local2++;
}
}
function set cuePoints(cp) {
setCuePoints(cp);
//return(cuePoints);
}
function getCuePoint(pointName) {
var _local2 = null;
var _local3 = getCuePointIndex(pointName);
if (_local3 > -1) {
_local2 = _cuePoints[_local3];
}
return(_local2);
}
function addCuePoint(aName, aTime) {
var _local2 = new mx.controls.streamingmedia.CuePoint(aName, aTime);
addCuePointObject(_local2);
}
function addCuePointObject(aCuePoint) {
aCuePoint.display = this;
_cuePoints.push(aCuePoint);
}
function removeCuePoint(aCuePoint) {
var _local2 = getCuePointIndex(aCuePoint.name);
if (_local2 > -1) {
_cuePoints.splice(_local2, 1);
}
}
function removeAllCuePoints() {
_cuePoints.length = 0;
_mostRecentCuePoint = undefined;
}
function get mostRecentCuePoint() {
return(_mostRecentCuePoint);
}
function get mostRecentCuePointName() {
return(_mostRecentCuePoint.name);
}
function get mostRecentCuePointTime() {
return(_mostRecentCuePoint.time);
}
function handleEvent(ev) {
if ((ev.type == "click") && (ev.detail == "play")) {
handlePlayEvent(ev);
} else if ((ev.type == "click") && (ev.detail == "pause")) {
handlePauseEvent(ev);
} else if (ev.type == "playheadChange") {
handlePlayheadChangeEvent(ev);
} else if (ev.type == "volume") {
handleVolumeEvent(ev);
} else if (ev.type == "scrubbing") {
handleScrubbingEvent(ev);
} else {
handleUnrecognizedEvent(ev);
}
}
function handlePlayEvent(ev) {
play();
}
function handleStopEvent(ev) {
stop();
}
function handlePauseEvent(ev) {
pause();
}
function handleRewindEvent(ev) {
playheadTime = (0);
}
function handleFastForwardEvent(ev) {
var _local2 = totalTime;
playheadTime = (_local2);
}
function handlePlayheadChangeEvent(ev) {
var _local3 = ev.detail;
var _local2 = (_local3 / 100) * totalTime;
_fireCuePoints = _scrubbing;
playheadTime = (_local2);
}
function handleVolumeEvent(ev) {
var _local2 = ev.detail;
volume = (_local2);
}
function handleScrubbingEvent(ev) {
_scrubbing = ev.detail;
}
function handleUnrecognizedEvent(ev) {
}
function getCuePointIndex(pointName) {
var _local3 = -1;
var _local2 = 0;
while ((_local2 < _cuePoints.length) && (_local3 == -1)) {
if (_cuePoints[_local2].name == pointName) {
_local3 = _local2;
}
_local2++;
}
return(_local3);
}
function poll(first) {
var _local4 = playheadTime;
var _local8 = bytesLoaded;
if (_local4 != _priorTime) {
if (((_mediaType == "MP3") && (_playerImpl.isPlaying())) && (!_started)) {
mx.controls.streamingmedia.MP3Player(_playerImpl).playStarted();
var _local9 = playheadTime;
if (((_startingTime - 0.1) < _local9) && (_local9 < (_startingTime + 0.1))) {
_started = true;
var _local10 = {target:this, type:"start"};
dispatchEvent(_local10);
}
}
var _local10 = {type:"change", target:this};
dispatchEvent(_local10);
}
var _local7 = false;
if ((!_fullyLoaded) && (bytesLoaded >= (bytesTotal - 100))) {
_fullyLoaded = true;
_playerImpl.mediaLoaded();
_local7 = true;
} else if (first || (_local8 != _priorBytesLoaded)) {
_local7 = true;
}
if (_local7) {
var _local10 = {type:"progress", target:this};
dispatchEvent(_local10);
}
var _local2 = null;
var _local3 = 0;
while (_fireCuePoints && (_local3 < _cuePoints.length)) {
_local2 = _cuePoints[_local3];
if (((_priorTime < _local2.time) && (_local4 >= _local2.time)) || ((_priorTime > _local2.time) && (_local4 <= _local2.time))) {
_mostRecentCuePoint = _local2;
var _local10 = {type:"cuePoint", target:this, cuePointName:_local2.name, cuePointTime:_local2.time};
dispatchEvent(_local10);
}
_local3++;
}
_fireCuePoints = true;
if (_sendCompleteEvent) {
_sendCompleteEvent = false;
var _local10 = {type:"complete", target:this};
dispatchEvent(_local10);
}
_priorTime = _local4;
_priorBytesLoaded = _local8;
}
function isRtmp(mediaUrl) {
if (mediaUrl != null) {
var _local1;
_local1 = mediaUrl.toLowerCase();
return(_local1.indexOf("rtmp") == 0);
}
return(false);
}
function associateController(c) {
c.addEventListener("click", this);
c.addEventListener("playheadChange", this);
c.addEventListener("volume", this);
c.addEventListener("scrubbing", this);
addEventListener("change", c);
addEventListener("progress", c);
addEventListener("complete", c);
}
function setSize(w, h, noEvent) {
super.setSize(w, h, noEvent);
invalidate();
}
function get enabled() {
return(_enabled);
}
function set enabled(is) {
if (_enabled == is) {
return;
}
_enabled = is;
if (is) {
if (_playingBeforeDisabled) {
play();
_playingBeforeDisabled = false;
}
} else {
_playingBeforeDisabled = playing;
if (_playingBeforeDisabled && (_playerImpl instanceof mx.controls.streamingmedia.MP3Player)) {
_playingBeforeDisabled = !mx.controls.streamingmedia.MP3Player(_playerImpl).willStop();
}
pause();
}
//return(enabled);
}
function onUnload() {
_playerImpl.close();
}
static var symbolName = "MediaDisplay";
static var symbolOwner = mx.controls.MediaDisplay;
var className = "MediaDisplay";
static var version = "2.0.2.126";
var clipParameters = {mediaType:"FLV", contentPath:"", totalTime:0, autoSize:true, autoPlay:true, initCuePointNames:new Array(), initCuePointTimes:new Array(), fps:30};
var _priorTime = 0;
var _priorBytesLoaded = 0;
var _scrubbing = false;
var _fireCuePoints = true;
var _enabled = true;
var makeVideoVisible = false;
}
Symbol 1020 MovieClip [__Packages.mx.controls.streamingmedia.FullScreenToggle] Frame 0
class mx.controls.streamingmedia.FullScreenToggle extends MovieClip
{
var _player, _parent, _isFull, gotoAndStop, _originalPlayerX, _originalPlayerY, _originalPlayerWidth, _originalPlayerHeight, _originalAutosize, _waited, onEnterFrame, _maximize, _minimize;
function FullScreenToggle () {
super();
init();
}
function init() {
_player = mx.controls.MediaPlayback(_parent._parent);
_isFull = false;
setEnabled(_player.__get__enabled());
}
function isFullScreen() {
return(_isFull);
}
function displayFull(noAction) {
gotoAndStop("big");
_isFull = true;
if (!noAction) {
_originalPlayerX = _player._x;
_originalPlayerY = _player._y;
_originalPlayerWidth = _player.width;
_originalPlayerHeight = _player.height;
_originalAutosize = _player.autoSize;
var _local7 = _player.getController();
if ((_local7.__get__controllerPolicy() == "auto") && (_local7.__get__expanded())) {
mx.controls.streamingmedia.Tracer.trace("FullScreenToggle.displayFull: about to call contract");
_local7.contract();
}
_local7.setNotAnimating(false);
_player.__set__autoSize(false);
var _local4 = getContainerInfo();
_player.setSize(_local4.width, _local4.height);
if (_local4.origin) {
var _local5 = mx.managers.SystemManager.__get__screen();
mx.controls.streamingmedia.Tracer.trace(((("FullScreenToggle.displayFull: scr=(" + _local5.x) + ",") + _local5.y) + ")");
_player._x = _local5.x;
_player._y = _local5.y;
}
var _local6 = _player.getBounds(_local4.container);
mx.controls.streamingmedia.Tracer.trace(((("FullScreenToggle.displayFull: bounds=(" + _local6.xMin) + ",") + _local6.yMin) + ")");
if (_local4.origin) {
_player._x = _player._x + _local5.x;
_player._y = _player._y + _local5.y;
} else {
_player._x = _player._x + _local4.x;
_player._y = _player._y + _local4.y;
}
_player._x = _player._x - _local6.xMin;
_player._y = _player._y - _local6.yMin;
_waited = false;
onEnterFrame = delayedBarRefresh;
var _local3 = getOtherToggles();
var _local2 = 0;
while (_local2 < _local3.length) {
_local3[_local2].displayFull(true);
_local2++;
}
}
}
function getContainerInfo() {
var _local4;
var _local6 = getScrollViewAncestor(_player);
if (_local6 == null) {
var _local5 = mx.managers.SystemManager.__get__screen();
_local4 = {container:_root, width:_local5.width, height:_local5.height, x:0, y:0, origin:true};
} else {
var _local3 = _local6.getViewMetrics();
_local4 = {container:_local6, width:(_local6.width - _local3.left) - _local3.right, height:(_local6.height - _local3.top) - _local3.bottom, x:_local3.left, y:_local3.top, origin:false};
}
return(_local4);
}
function getScrollViewAncestor(anMC) {
var _local3;
if (anMC == _root) {
_local3 = null;
} else if (anMC instanceof mx.core.ScrollView) {
_local3 = mx.core.ScrollView(anMC);
} else {
_local3 = getScrollViewAncestor(anMC._parent);
}
return(_local3);
}
function delayedBarRefresh() {
if (!_waited) {
_waited = true;
} else {
delete onEnterFrame;
_player.getController().refreshBars();
}
}
function displayNormal(noAction) {
gotoAndStop("small");
_isFull = false;
if (!noAction) {
var _local4 = _player.getController();
if ((_local4.__get__controllerPolicy() == "auto") && (_local4.__get__expanded())) {
mx.controls.streamingmedia.Tracer.trace("FullScreenToggle.displayNormal: about to call contract");
_local4.contract();
}
_local4.setNotAnimating(false);
_player.__set__autoSize(_originalAutosize);
_player.setSize(_originalPlayerWidth, _originalPlayerHeight);
_player._x = _originalPlayerX;
_player._y = _originalPlayerY;
_waited = false;
onEnterFrame = delayedBarRefresh;
var _local3 = getOtherToggles();
var _local2 = 0;
while (_local2 < _local3.length) {
_local3[_local2].displayNormal(true);
_local2++;
}
}
}
function toggleDisplay() {
if (_isFull) {
displayNormal();
} else {
displayFull();
}
}
function getAllToggles() {
return(_parent.getAllToggles());
}
function getOtherToggles() {
var _local3 = getAllToggles();
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2] == this) {
_local3.splice(_local2, 1);
break;
}
_local2++;
}
return(_local3);
}
function getPlayer() {
return(_player);
}
function getEnabled() {
return(_player.__get__enabled());
}
function setEnabled(is) {
mx.controls.streamingmedia.Tracer.trace("FullScreenToggle.setEnabled: " + is);
_maximize.setEnabled(is);
_minimize.setEnabled(is);
}
}
Symbol 1038 MovieClip [__Packages.mx.controls.streamingmedia.FullScreenToggleControl] Frame 0
class mx.controls.streamingmedia.FullScreenToggleControl extends MovieClip
{
var toggle, _parent, _enabled, onRollOver, onRollOut, onRelease, gotoAndStop;
function FullScreenToggleControl () {
super();
init();
}
function init() {
toggle = mx.controls.streamingmedia.FullScreenToggle(_parent);
setEnabled(toggle.getEnabled());
}
function handleRollOver() {
getController().setNotAnimating(true);
}
function handleRollOut() {
getController().setNotAnimating(false);
}
function handleRelease() {
toggle.toggleDisplay();
}
function getController() {
return(toggle.getPlayer().getController());
}
function getEnabled() {
return(_enabled);
}
function setEnabled(is) {
mx.controls.streamingmedia.Tracer.trace("FullScreenToggleControl.setEnabled: " + is);
_enabled = is;
if (is) {
onRollOver = handleRollOver;
onRollOut = handleRollOut;
onRelease = handleRelease;
gotoAndStop("_up");
} else {
delete onRollOver;
delete onRollOut;
delete onRelease;
gotoAndStop("_disabled");
}
}
}
Symbol 1022 MovieClip [__Packages.mx.controls.MediaController] Frame 0
class mx.controls.MediaController extends mx.core.UIComponent
{
var _lastProgressMediaType, _controllerPolicy, _width, _height, _horizontal, _y, _x, __get__height, __get__width, _priorPolicy, _activePlayControl, _backgroundStyle, _isOpen, _priorMouseOver, _closeId, _openId, gotoAndStop, _isPlaying, _playPercent, _playTime, _volume, tabEnabled, tabChildren, playAtBeginning, _screenAccommodator, redraw, _playBar, _miniPlayBar, _loadBar, _volumeControl, _buttons, width, height, _chrome, _secondChrome, _secondChromeClosedHeight, _secondChromeOpenHeight, _secondChromeClosedWidth, _secondChromeOpenWidth, _secondChromeFixedEnd, hitTest, _animationStart, _animationOpen, onEnterFrame, _loadPercent, invalidate, dispatchEvent, _listenForPlayheadMoveEvent, _notAnimating, _strings, _openUpOrLeft;
function MediaController () {
super();
}
function get lastProgressMediaType() {
return(_lastProgressMediaType);
}
function init(Void) {
mx.controls.streamingmedia.Tracer.trace("MediaController.init: start: policy=" + _controllerPolicy);
initializeParameters();
mx.controls.streamingmedia.Tracer.trace("MediaController.init: after initializeParameters: policy=" + _controllerPolicy);
var _local3 = _width;
var _local4 = _height;
super.init();
if (_horizontal) {
_local3 = Math.max(MINIMUM_HORIZONTAL_WIDTH, _local3);
_local4 = Math.max(MINIMUM_HORIZONTAL_OPEN_HEIGHT, _local4);
} else {
_local3 = Math.max(MINIMUM_VERTICAL_OPEN_WIDTH, _local3);
_local4 = Math.max(MINIMUM_VERTICAL_HEIGHT, _local4);
}
setSize(_local3, _local4, true);
mx.controls.streamingmedia.Tracer.trace(((((((("MediaController.init: after setSize " + __get__width()) + "x") + __get__height()) + " at (") + _x) + ",") + _y) + ")");
_priorPolicy = _controllerPolicy;
createDefaultStrings();
mx.controls.streamingmedia.Tracer.trace("MediaController.init: Initialized properties:");
mx.controls.streamingmedia.Tracer.trace(" controllerPolicy=" + _controllerPolicy);
mx.controls.streamingmedia.Tracer.trace(" horizontal=" + _horizontal);
mx.controls.streamingmedia.Tracer.trace(" activePlayControl=" + _activePlayControl);
mx.controls.streamingmedia.Tracer.trace(" backgroundStyle=" + _backgroundStyle);
if (_controllerPolicy == "auto") {
_isOpen = false;
_priorMouseOver = false;
_closeId = null;
_openId = null;
Mouse.addListener(this);
gotoAndStop(getClosedFrameName());
} else if (_controllerPolicy == "on") {
_isOpen = true;
gotoAndStop(getOpenFrameName());
} else if (_controllerPolicy == "off") {
_isOpen = false;
gotoAndStop(getClosedFrameName());
}
_isPlaying = _activePlayControl == "pause";
_playPercent = 0;
_playTime = 0;
_volume = mx.controls.streamingmedia.StreamingMediaConstants.DEFAULT_VOLUME;
setOpenUpOrLeft(false);
setListeningForPlayheadMoveEvent(true);
tabEnabled = false;
tabChildren = true;
playAtBeginning = false;
_screenAccommodator = new mx.controls.streamingmedia.ScreenAccommodator(this);
redraw(true);
}
function initializeParameters() {
if (horizontal == null) {
horizontal = (true);
}
if (controllerPolicy == null) {
controllerPolicy = ("auto");
}
if (backgroundStyle == null) {
backgroundStyle = ("default");
}
if (activePlayControl == null) {
activePlayControl = ("pause");
}
}
function getOpenFrameName() {
return((_horizontal ? "openHorizontal" : "openVertical"));
}
function getClosedFrameName() {
return((_horizontal ? "closedHorizontal" : "closedVertical"));
}
function draw(Void) {
if (_isOpen) {
gotoAndStop(getOpenFrameName());
_playBar.draw();
} else {
gotoAndStop(getClosedFrameName());
_miniPlayBar.draw();
}
_loadBar.draw();
if (_horizontal) {
positionControlsHorizontal();
} else {
positionControlsVertical();
}
drawChrome();
}
function positionControlsVertical() {
if (_isOpen) {
_volumeControl._x = (__get__width() - _volumeControl._width) / 2;
_volumeControl._y = (__get__height() - _volumeControl._height) - 8;
_buttons._x = (__get__width() - _buttons._width) / 2;
_buttons._y = ((__get__height() - _buttons._height) - _volumeControl._height) - 16;
_playBar._x = (__get__width() - _playBar._width) / 2;
_loadBar._x = (_playBar._x + _playBar._width) - 4;
} else {
_loadBar._x = LOADBAR_VERTICAL_CLOSED_X;
_miniPlayBar._x = MINIPLAYBAR_VERTICAL_CLOSED_X;
}
}
function positionControlsHorizontal() {
if (_isOpen) {
_loadBar._y = LOADBAR_HORIZONTAL_OPEN_Y;
_buttons._x = 8;
_buttons._y = (__get__height() - _buttons._height) - 8;
_volumeControl._x = (__get__width() - _volumeControl._width) - 8;
_volumeControl._y = (__get__height() - _volumeControl._height) - 8;
} else {
_loadBar._y = LOADBAR_HORIZONTAL_CLOSED_Y;
}
}
function drawChrome(wi, he) {
if (wi == null) {
if (_horizontal) {
wi = width;
} else {
wi = (_isOpen ? (__get__width()) : (CLOSED_VERTICAL_WIDTH));
}
}
if (he == null) {
if (_horizontal) {
he = (_isOpen ? (__get__height()) : (CLOSED_HORIZONTAL_HEIGHT));
} else {
he = height;
}
}
_chrome.visible = backgroundStyle == "default";
_chrome.showToggles = false;
_chrome.setSize(wi, he);
_chrome.draw();
}
function addSecondChrome(theChrome, closedHeight, openHeight, closedWidth, openWidth, fixedEnd) {
_secondChrome = theChrome;
_secondChromeClosedHeight = closedHeight;
_secondChromeOpenHeight = openHeight;
_secondChromeClosedWidth = closedWidth;
_secondChromeOpenWidth = openWidth;
_secondChromeFixedEnd = fixedEnd;
}
function removeSecondChrome() {
_secondChrome = null;
}
function get expanded() {
return(_isOpen);
}
function onMouseMove() {
var _local5 = _root._xmouse;
var _local4 = _root._ymouse;
var _local3 = hitTest(_local5, _local4, true);
if ((_local3 && (_closeId != null)) || (isNotAnimating())) {
clearInterval(_closeId);
_closeId = null;
}
if (((!_local3) && (_openId != null)) || (isNotAnimating())) {
clearInterval(_openId);
_openId = null;
}
if ((((_local3 && (!_isOpen)) && (_controllerPolicy == "auto")) && (_openId == null)) && (!isNotAnimating())) {
_openId = setInterval(this, "expand", OPEN_DELAY);
} else if (((((!_local3) && (_isOpen)) && (_controllerPolicy == "auto")) && (_closeId == null)) && (!isNotAnimating())) {
_closeId = setInterval(this, "contract", CLOSE_DELAY);
}
_priorMouseOver = _local3;
}
function expand(force) {
clearInterval(_openId);
_openId = null;
if ((_controllerPolicy == "auto") || (force)) {
_isOpen = true;
_animationStart = getTimer();
_animationOpen = true;
_priorMouseOver = true;
onEnterFrame = animate;
}
}
function contract(force) {
mx.controls.streamingmedia.Tracer.trace((((("MediaController.contract: force=" + force) + ", animating=") + _animating) + ", opening=") + _animationOpen);
if (_animating && (!_animationOpen)) {
return(undefined);
}
clearInterval(_closeId);
_closeId = null;
if ((_controllerPolicy == "auto") || (force)) {
_isOpen = false;
_animationStart = getTimer();
_animationOpen = false;
_priorMouseOver = false;
gotoAndStop(getClosedFrameName());
animate();
onEnterFrame = animate;
}
}
function animate() {
_animating = true;
var _local4 = getTimer() - _animationStart;
var _local3 = Math.min(1, _local4 / ANIMATION_TIME);
mx.controls.streamingmedia.Tracer.trace((((((("MediaController.animate: _animationStart=" + _animationStart) + ", elapsed=") + _local4) + ", portion=") + _local3) + ", ANIMATION_TIME=") + ANIMATION_TIME);
sizeMainChrome(_local3);
if (_secondChrome != null) {
sizeSecondChrome(_local3);
}
animateBars(_local3);
if ((_local4 >= ANIMATION_TIME) || (_global.isLivePreview)) {
animationDone();
}
}
function animationDone() {
mx.controls.streamingmedia.Tracer.trace("MediaController.animationDone");
_animating = false;
delete onEnterFrame;
refreshBars();
if (_animationOpen) {
gotoAndStop(getOpenFrameName());
}
redraw(true);
}
function sizeMainChrome(portion) {
var _local2 = __get__height();
var _local3 = __get__width();
if (_horizontal) {
var _local4 = (__get__height() - CLOSED_HORIZONTAL_HEIGHT) * portion;
if (_animationOpen) {
_local2 = CLOSED_HORIZONTAL_HEIGHT + _local4;
} else {
_local2 = __get__height() - _local4;
}
} else {
var _local4 = (__get__width() - CLOSED_VERTICAL_WIDTH) * portion;
if (_animationOpen) {
_local3 = CLOSED_VERTICAL_WIDTH + _local4;
} else {
_local3 = __get__width() - _local4;
}
}
if (isOpenUpOrLeft()) {
var _local6 = _chrome.width - _local3;
var _local5 = _chrome.height - _local2;
_x = _x + _local6;
_y = _y + _local5;
}
drawChrome(_local3, _local2);
}
function sizeSecondChrome(portion) {
var _local3;
var _local4;
var _local2;
if (_horizontal) {
_local4 = _secondChromeClosedWidth;
_local2 = (_secondChromeOpenHeight - _secondChromeClosedHeight) * portion;
_local3 = (_animationOpen ? (_secondChromeClosedHeight + _local2) : (_secondChromeOpenHeight - _local2));
if (_secondChromeFixedEnd) {
_secondChrome._y = (_secondChrome._y - _local3) + _secondChrome.height;
}
} else {
_local3 = _secondChromeClosedHeight;
_local2 = (_secondChromeOpenWidth - _secondChromeClosedWidth) * portion;
_local4 = (_animationOpen ? (_secondChromeClosedWidth + _local2) : (_secondChromeOpenWidth - _local2));
if (_secondChromeFixedEnd) {
_secondChrome._x = (_secondChrome._x - _local4) + _secondChrome.width;
}
}
_secondChrome.setSize(_local4, _local3);
_secondChrome.draw();
}
function animateBars(portion) {
var _local2;
if (_horizontal) {
_local2 = (LOADBAR_HORIZONTAL_OPEN_Y - LOADBAR_HORIZONTAL_CLOSED_Y) * portion;
var _local8 = (_animationOpen ? (LOADBAR_HORIZONTAL_CLOSED_Y + _local2) : (LOADBAR_HORIZONTAL_OPEN_Y - _local2));
_loadBar._y = _local8;
} else {
var _local5 = _chrome.width / 2;
_local2 = (_local5 - MINIPLAYBAR_VERTICAL_CLOSED_X) * portion;
_local2 = Math.max(0, _local2);
var _local9 = (_animationOpen ? (MINIPLAYBAR_VERTICAL_CLOSED_X + _local2) : (_local5 - _local2));
_miniPlayBar._x = _local9;
_loadBar._x = _miniPlayBar._x + _miniPlayBar._width;
var _local3 = _loadBar.getClosedHeight();
var _local4 = _loadBar.getOpenHeight();
_local2 = (_local3 - _local4) * portion;
var _local6 = (_animationOpen ? (_local3 - _local2) : (_local4 + _local2));
_loadBar.draw(_local6);
_miniPlayBar.draw(_local6);
}
}
function getLoadBar() {
return(_loadBar);
}
function refreshBars() {
mx.controls.streamingmedia.Tracer.trace((("MediaController.refreshBars: load=" + _loadPercent) + ", play=") + _playPercent);
_loadBar.setCompletionPercentage(_loadPercent);
_playBar.setCompletionPercentage(_playPercent);
_miniPlayBar.setCompletionPercentage(_playPercent);
}
function getLoadPercent() {
return(_loadPercent);
}
function getMinimumOpenHeight() {
var _local2 = (_horizontal ? (MINIMUM_HORIZONTAL_OPEN_HEIGHT) : (MINIMUM_VERTICAL_HEIGHT));
return(_local2);
}
function getMinimumClosedHeight() {
var _local2 = (_horizontal ? (CLOSED_HORIZONTAL_HEIGHT) : (MINIMUM_VERTICAL_HEIGHT));
return(_local2);
}
function getMinimumOpenWidth() {
var _local2 = (_horizontal ? (MINIMUM_HORIZONTAL_WIDTH) : (MINIMUM_VERTICAL_OPEN_WIDTH));
return(_local2);
}
function getMinimumClosedWidth() {
var _local2 = (_horizontal ? (MINIMUM_HORIZONTAL_WIDTH) : (CLOSED_VERTICAL_WIDTH));
return(_local2);
}
function get controllerPolicy() {
return(_controllerPolicy);
}
function set controllerPolicy(aPolicy) {
mx.controls.streamingmedia.Tracer.trace((("MediaController.set controllerPolicy: old=" + _controllerPolicy) + ", new=") + aPolicy);
if (aPolicy == _controllerPolicy) {
return;
}
_controllerPolicy = aPolicy;
if (_controllerPolicy == "on") {
Mouse.removeListener(this);
if (!_isOpen) {
expand(true);
}
} else if (_controllerPolicy == "off") {
Mouse.removeListener(this);
if (_isOpen) {
mx.controls.streamingmedia.Tracer.trace("MediaController.set controllerPolicy(off): about to call contract");
contract(true);
}
} else if (_controllerPolicy == "auto") {
_closeId = null;
_openId = null;
Mouse.addListener(this);
var _local3 = hitTest(_root._xmouse, _root._ymouse, true);
if (_isOpen && (!_local3)) {
mx.controls.streamingmedia.Tracer.trace("MediaController.set controllerPolicy(auto): about to call contract");
contract();
} else if ((!_isOpen) && (_local3)) {
expand();
}
}
//return(controllerPolicy);
}
function get horizontal() {
return(_horizontal);
}
function set horizontal(isHoriz) {
if (isHoriz != _horizontal) {
_horizontal = isHoriz;
var _local2 = __get__height();
var _local3 = __get__width();
if (isHoriz) {
_local2 = Math.max(_local2, MINIMUM_HORIZONTAL_WIDTH);
_local3 = Math.max(_local3, MINIMUM_HORIZONTAL_OPEN_HEIGHT);
} else {
_local2 = Math.max(_local2, MINIMUM_VERTICAL_OPEN_WIDTH);
_local3 = Math.max(_local3, MINIMUM_VERTICAL_HEIGHT);
}
setSize(_local2, _local3);
invalidate();
} else {
_horizontal = isHoriz;
}
//return(horizontal);
}
function get volume() {
return(_volume);
}
function set volume(vol) {
_volume = vol;
_volumeControl.getHandle().setVolume(vol);
//return(volume);
}
function get backgroundStyle() {
return(_backgroundStyle);
}
function set backgroundStyle(aStyle) {
_backgroundStyle = aStyle;
drawChrome();
//return(backgroundStyle);
}
function broadcastEvent(eventType, detailArg) {
var _local2 = {type:eventType, target:this, detail:detailArg};
if (eventType == "volume") {
_volume = detailArg;
}
dispatchEvent(_local2);
}
function handleEvent(ev) {
if (ev.type == "change") {
playAtBeginning = false;
if (isListeningForPlayheadMoveEvent()) {
handleChangeEvent(ev);
}
} else if (ev.type == "progress") {
handleProgressEvent(ev);
} else if (ev.type == "complete") {
handleCompleteEvent(ev);
} else if (ev.type == "scrubbing") {
handleScrubbingEvent(ev);
} else {
handleUnrecognizedEvent(ev);
}
}
function isListeningForPlayheadMoveEvent() {
return(_listenForPlayheadMoveEvent);
}
function setListeningForPlayheadMoveEvent(listen) {
_listenForPlayheadMoveEvent = listen;
}
function isNotAnimating() {
return(_notAnimating);
}
function setNotAnimating(still) {
_notAnimating = still;
}
function get activePlayControl() {
return(_activePlayControl);
}
function set activePlayControl(aControl) {
_activePlayControl = aControl;
//return(activePlayControl);
}
function get playing() {
return(isPlaying());
}
function set playing(playFlag) {
setPlaying(playFlag);
//return(playing);
}
function isPlaying() {
return(_isPlaying);
}
function setPlaying(playFlag) {
_isPlaying = playFlag;
_playBar.setIsPlaying(playFlag);
if (playFlag) {
_buttons.playPauseButtons.showPauseButton();
} else {
_buttons.playPauseButtons.showPlayButton();
}
}
function handleChangeEvent(ev) {
var _local2 = ev.target;
_playTime = _local2.playheadTime;
var _local3 = _local2.__get__totalTime();
_playPercent = (100 * _playTime) / _local3;
if (_isOpen) {
_playBar.setCompletionPercentage(_playPercent);
_playBar.setTime(_playTime);
} else {
_miniPlayBar.setCompletionPercentage(_playPercent);
}
}
function handleProgressEvent(ev) {
if (ev.target.isRtmp(ev.target.contentPath)) {
_loadPercent = 100;
} else {
var _local3 = ev.target.bytesLoaded;
var _local4 = ev.target.bytesTotal;
_loadPercent = (100 * _local3) / _local4;
}
refreshBars();
_lastProgressMediaType = ev.target.mediaType;
evaluateToEnd();
}
function evaluateToEnd() {
if (!_isOpen) {
return(undefined);
}
var _local2 = false;
if ((_loadPercent >= 99) && (enabled)) {
if (_lastProgressMediaType == "MP3") {
_local2 = true;
} else if ((_lastProgressMediaType == "FLV") && (!mx.controls.streamingmedia.StreamingMediaConstants.DISABLE_FLV_TOEND)) {
_local2 = true;
}
}
_buttons.toEndButton.enabled = _local2;
}
function handleCompleteEvent(ev) {
if ((!isScrubbing()) && (!_animating)) {
var _local2 = ev.target;
_playTime = _local2.totalTime;
_playPercent = 100;
if (_isOpen) {
_playBar.setCompletionPercentage(_playPercent);
_playBar.setTime(_playTime);
} else {
_miniPlayBar.setCompletionPercentage(_playPercent);
}
setPlaying(false);
mx.controls.streamingmedia.Tracer.trace("MediaController.handleCompleteEvent: playAtBeginning=true");
playAtBeginning = true;
}
}
function handleScrubbingEvent(ev) {
_listenForPlayheadMoveEvent = !ev.detail;
}
function handleUnrecognizedEvent(ev) {
mx.controls.streamingmedia.Tracer.trace((("received an unrecognized event of type " + ev.type) + " with target ") + ev.target);
}
function createDefaultStrings() {
_strings = new Object();
_strings.paused = "PAUSED";
_strings.streaming = "STREAMING";
}
function getLocalizedString(id) {
var _local2 = _strings[id];
return(_local2);
}
function get playTime() {
return(_playTime);
}
function set playTime(aTime) {
_playTime = aTime;
//return(playTime);
}
function get playPercent() {
return(_playPercent);
}
function set playPercent(aPercent) {
_playPercent = aPercent;
//return(playPercent);
}
function isOpenUpOrLeft() {
return(_openUpOrLeft);
}
function setOpenUpOrLeft(is) {
_openUpOrLeft = is;
}
function associateDisplay(d) {
d.associateController(this);
}
function setSize(w, h, noEvent) {
super.setSize(w, h, noEvent);
invalidate();
}
function get enabled() {
return(_enabled);
}
function set enabled(is) {
mx.controls.streamingmedia.Tracer.trace("MediaController.set enabled to " + is);
_enabled = is;
_buttons.toStartButton.enabled = is;
_buttons.toEndButton.enabled = is;
_buttons.playPauseButtons.enabled = is;
_volumeControl._muteButton.muteSimpleButton.enabled = is;
_volumeControl._loudButton.loudSimpleButton.enabled = is;
_playBar.__set__enabled(is);
_volumeControl.getHandle().__set__enabled(is);
if (is) {
if (_priorPolicy != null) {
controllerPolicy = (_priorPolicy);
}
} else {
_priorPolicy = controllerPolicy;
if (controllerPolicy == "auto") {
controllerPolicy = ("off");
}
}
//return(enabled);
}
function isScrubbing() {
return(_playBar.isScrubbing());
}
static var symbolName = "MediaController";
static var symbolOwner = mx.controls.MediaController;
var className = "MediaController";
static var version = "2.0.2.126";
var clipParameters = {controllerPolicy:"auto", horizontal:true, activePlayControl:"pause", backgroundStyle:"default"};
static var MINIMUM_HORIZONTAL_WIDTH = 202;
static var CLOSED_HORIZONTAL_HEIGHT = 25;
static var MINIMUM_HORIZONTAL_OPEN_HEIGHT = 63;
static var LOADBAR_HORIZONTAL_CLOSED_Y = 14;
static var LOADBAR_HORIZONTAL_OPEN_Y = 24;
static var MINIMUM_VERTICAL_HEIGHT = 202;
static var CLOSED_VERTICAL_WIDTH = 25;
static var MINIMUM_VERTICAL_OPEN_WIDTH = 80;
static var LOADBAR_VERTICAL_CLOSED_X = 14;
static var MINIPLAYBAR_VERTICAL_CLOSED_X = 8;
static var ANIMATION_TIME = 250;
static var CLOSE_DELAY = 1000;
static var OPEN_DELAY = 100;
static var LOCALIZED_FILE = "streamingmediacontroller.xml";
static var H_BORDER = 8;
static var V_BORDER = 8;
var _animating = false;
var _enabled = true;
}
Symbol 1023 MovieClip [__Packages.mx.controls.streamingmedia.LoadBar] Frame 0
class mx.controls.streamingmedia.LoadBar extends MovieClip
{
var _controller, _parent, _fill, _y, _border, _background, _x;
function LoadBar () {
super();
init();
}
function init() {
_controller = mx.controls.MediaController(_parent);
draw();
}
function isVertical() {
return(!_controller.__get__horizontal());
}
function getCompletionPercentage() {
var _local2;
if (isVertical()) {
_local2 = yToPercent(_fill._height);
} else {
_local2 = xToPercent(_fill._width);
}
return(_local2);
}
function setCompletionPercentage(aPercentage) {
aPercentage = Math.floor(aPercentage);
if (aPercentage < 0) {
aPercentage = 0;
} else if (aPercentage > 100) {
aPercentage = 100;
}
if (isVertical()) {
_fill._height = percentToY(aPercentage);
_fill._y = (getActualHeight() - _fill._height) - 1;
} else {
_fill._width = percentToX(aPercentage);
}
}
function draw(size) {
var _local3 = getCompletionPercentage();
if (isVertical()) {
if (size == null) {
size = getHeight();
}
_y = 8;
_border._height = size;
_background._height = size - 2;
} else {
if (size == null) {
size = getWidth();
}
_x = 8;
_border._width = size;
_background._width = size - 2;
}
setCompletionPercentage(_local3);
}
function getWidth() {
var _local2;
if (isVertical()) {
_local2 = 3;
} else {
_local2 = _controller.__get__width() - 16;
}
return(_local2);
}
function getHeight() {
var _local2;
if (isVertical()) {
if (_controller.__get__expanded()) {
_local2 = getOpenHeight();
} else {
_local2 = getClosedHeight();
}
} else {
_local2 = 3;
}
return(_local2);
}
function getActualHeight() {
return(_border._height);
}
function getActualWidth() {
return(_border._width);
}
function getOpenHeight() {
return(_controller.__get__height() - 90);
}
function getClosedHeight() {
return(_controller.__get__height() - 16);
}
function xToPercent(x) {
var _local2 = (100 * x) / (getActualWidth() - 2);
return(_local2);
}
function percentToX(percent) {
var _local2 = (getWidth() - 2) * (percent / 100);
return(_local2);
}
function yToPercent(y) {
var _local2 = (100 * (y - 0)) / (getActualHeight() - 2);
return(_local2);
}
function percentToY(percent) {
var _local2 = (getActualHeight() - 2) * (percent / 100);
return(_local2);
}
}
Symbol 1024 MovieClip [__Packages.mx.controls.streamingmedia.PlayBar] Frame 0
class mx.controls.streamingmedia.PlayBar extends MovieClip
{
var _controller, _parent, _thumb, _hilite, _timeTextField, _statusTextField, onEnterFrame, _darkenText, _textPulseTime, _x, _y, _tray;
function PlayBar () {
super();
init();
}
function init() {
_controller = mx.controls.MediaController(_parent);
setCompletionPercentage(_controller.__get__playPercent());
setTime(_controller.__get__playTime());
draw();
}
function isVertical() {
return(!_controller.__get__horizontal());
}
function getCompletionPercentage() {
var _local2;
if (isVertical()) {
_local2 = yToPercent(_thumb._y);
} else {
_local2 = xToPercent(_thumb._x);
}
return(_local2);
}
function setCompletionPercentage(aPercentage) {
aPercentage = Math.floor(aPercentage);
if (aPercentage < 1) {
aPercentage = 1;
} else if (aPercentage > 100) {
aPercentage = 100;
}
if (isVertical()) {
var _local3 = percentToY(aPercentage);
_thumb._y = (getHeight() - _local3) - 9;
} else {
var _local4 = percentToX(aPercentage);
_thumb._x = _local4;
}
updateHiliteToMatchThumb();
}
function updateHiliteToMatchThumb() {
if (isVertical()) {
_hilite._height = (getHeight() - _thumb._y) - 6;
_hilite._y = (getHeight() - _hilite._height) - 1;
} else {
_hilite._width = _thumb._x + 4;
}
}
function setTime(aTime) {
var _local7 = Math.floor(aTime / 3600);
var _local3 = aTime % 3600;
var _local6 = Math.floor(_local3 / 60);
_local3 = _local3 % 60;
var _local5 = Math.floor(_local3);
_local3 = _local3 % 1;
var _local2 = Math.round(_local3 * 1000);
var _local4 = ((((((_local7 + ":") + ((_local6 < 10) ? "0" : "")) + _local6) + ":") + ((_local5 < 10) ? "0" : "")) + _local5) + ".";
if (_local2 < 10) {
_local4 = _local4 + ("00" + String(_local2));
} else if (_local2 < 100) {
_local4 = _local4 + ("0" + String(_local2));
} else {
_local4 = _local4 + String(_local2);
}
_timeTextField.text = _local4;
}
function setIsPlaying(isPlaying) {
if (isPlaying) {
_statusTextField.text = _controller.getLocalizedString(STREAMING_ID);
delete onEnterFrame;
setDarkText();
} else {
_statusTextField.text = _controller.getLocalizedString(PAUSED_ID);
_darkenText = false;
_textPulseTime = getTimer();
onEnterFrame = pulseText;
}
}
function getController() {
return(_controller);
}
function draw() {
var _local2 = getCompletionPercentage();
if (isVertical()) {
_x = (_controller.__get__width() - getWidth()) / 2;
_y = 8;
_tray.setHeight(getHeight());
_statusTextField._y = getHeight() - 4;
} else {
_x = 8;
_tray.setWidth(getWidth());
_timeTextField._x = (getWidth() - _timeTextField._width) - 3;
}
setIsPlaying(_controller.isPlaying());
setCompletionPercentage(_local2);
}
function getWidth() {
var _local2 = (isVertical() ? 20 : (_controller.__get__width() - 16));
return(_local2);
}
function getHeight() {
var _local2 = (isVertical() ? (_controller.__get__height() - 90) : 20);
return(_local2);
}
function xToPercent(x) {
var _local2 = 100 * ((x + 3) / (getWidth() - 3));
return(_local2);
}
function percentToX(percent) {
var _local2 = ((getWidth() - 3) * (percent / 100)) - 3;
return(_local2);
}
function yToPercent(y) {
var _local2 = 100 * (((getHeight() - 3) - y) / getHeight());
return(_local2);
}
function percentToY(percent) {
var _local2 = ((getHeight() - 3) * (percent / 100)) - 3;
return(_local2);
}
function pulseText() {
var _local2 = getTimer() - _textPulseTime;
var _local5 = Math.min(1, _local2 / PULSE_DURATION);
var _local7 = PULSE_DURATION * ACTIVE_PULSE_PORTION;
var _local6 = Math.min(1, _local2 / _local7);
var _local4 = _local6 * (TEXT_ALPHA_DARK - TEXT_ALPHA_LIGHT);
var _local3 = (_darkenText ? (TEXT_ALPHA_LIGHT + _local4) : (TEXT_ALPHA_DARK - _local4));
_statusTextField._alpha = _local3;
_timeTextField._alpha = _local3;
if (_local5 >= 1) {
_darkenText = !_darkenText;
_textPulseTime = getTimer();
}
}
function setDarkText() {
_statusTextField._alpha = TEXT_ALPHA_DARK;
_timeTextField._alpha = TEXT_ALPHA_DARK;
}
function setLightText() {
_statusTextField._alpha = TEXT_ALPHA_LIGHT;
_timeTextField._alpha = TEXT_ALPHA_LIGHT;
}
function get enabled() {
return(_thumb.__get__enabled());
}
function set enabled(is) {
_thumb.__set__enabled(is);
//return(enabled);
}
function isScrubbing() {
return(_thumb.isScrubbing());
}
static var TEXT_ALPHA_DARK = 100;
static var TEXT_ALPHA_LIGHT = 50;
static var PULSE_DURATION = 1400;
static var ACTIVE_PULSE_PORTION = 0.4;
static var STREAMING_ID = "streaming";
static var PAUSED_ID = "paused";
}
Symbol 1026 MovieClip [__Packages.mx.controls.streamingmedia.PlayBarThumb] Frame 0
class mx.controls.streamingmedia.PlayBarThumb extends MovieClip
{
var _playBar, _parent, _dragging, _wasPlaying, onMouseMove, _y, _x, _enabled, onPress, onRelease, onReleaseOutside;
function PlayBarThumb () {
super();
init();
}
function init() {
_playBar = mx.controls.streamingmedia.PlayBar(_parent);
enabled = (_playBar.getController().enabled);
}
function isVertical() {
return(_playBar.isVertical());
}
function handlePress() {
startThumbDrag();
}
function startThumbDrag() {
_dragging = true;
var _local2 = _playBar.getController();
_local2.broadcastEvent("scrubbing", true);
_wasPlaying = _local2.isPlaying();
if (_wasPlaying) {
_local2.broadcastEvent("click", "pause");
}
onMouseMove = handleMouseMove;
}
function onUnload() {
if (_dragging) {
stopThumbDrag();
}
}
function handleRelease() {
if (_dragging) {
stopThumbDrag();
}
}
function handleReleaseOutside() {
if (_dragging) {
stopThumbDrag();
}
}
function stopThumbDrag() {
_dragging = false;
var _local2 = _playBar.getController();
if (_wasPlaying) {
_local2.broadcastEvent("click", "play");
}
_local2.broadcastEvent("scrubbing", false);
delete onMouseMove;
}
function handleMouseMove() {
var _local2 = _playBar.getController();
var _local9 = _local2.getLoadBar().getCompletionPercentage() / 100;
if (isVertical()) {
var _local6 = _playBar.getHeight() - 8;
var _local10 = (_local6 * (1 - _local9)) - 2;
var _local3 = _playBar._ymouse;
if (_local3 < _local10) {
_local3 = _local10;
} else if (_local3 > _local6) {
_local3 = _local6;
}
_y = _local3;
} else {
var _local7 = (_playBar.getWidth() - 6) * _local9;
var _local4 = _playBar._xmouse;
if (_local4 < 0) {
_local4 = 0;
} else if (_local4 > _local7) {
_local4 = _local7;
}
_x = _local4;
}
_playBar.updateHiliteToMatchThumb();
var _local5 = (isVertical() ? (_playBar.yToPercent(_y)) : (_playBar.xToPercent(_x)));
if (mx.controls.streamingmedia.StreamingMediaConstants.SCRUBBING) {
_local2.broadcastEvent("playheadChange", _local5);
}
var _local11 = (_local2.__get__playTime() * 100) / _local2.__get__playPercent();
var _local8 = (_local11 * _local5) / 100;
_playBar.setTime(_local8);
_local2.__set__playPercent(_local5);
_local2.__set__playTime(_local8);
}
function get enabled() {
return(_enabled);
}
function set enabled(is) {
_enabled = is;
if (is) {
onPress = handlePress;
onRelease = handleRelease;
onReleaseOutside = handleReleaseOutside;
} else {
if (_dragging) {
stopThumbDrag();
}
delete onPress;
delete onRelease;
delete onReleaseOutside;
}
//return(enabled);
}
function isScrubbing() {
return(_dragging);
}
}
Symbol 1025 MovieClip [__Packages.mx.controls.streamingmedia.StreamingMediaConstants] Frame 0
class mx.controls.streamingmedia.StreamingMediaConstants
{
function StreamingMediaConstants () {
}
static var FLV_MEDIA_TYPE = "FLV";
static var MP3_MEDIA_TYPE = "MP3";
static var PLAY_PLAY_CONTROL = "play";
static var PAUSE_PLAY_CONTROL = "pause";
static var DEFAULT_VOLUME = 75;
static var SCRUBBING = true;
static var DISABLE_FLV_TOEND = true;
}
Symbol 1027 MovieClip [__Packages.mx.controls.streamingmedia.MiniPlayBar] Frame 0
class mx.controls.streamingmedia.MiniPlayBar extends MovieClip
{
var _controller, _parent, _thumb, _hilite, _y, _tray, _x;
function MiniPlayBar () {
super();
init();
}
function init() {
_controller = mx.controls.MediaController(_parent);
draw();
}
function isVertical() {
return(!_controller.__get__horizontal());
}
function getCompletionPercentage() {
var _local2;
if (isVertical()) {
_local2 = yToPercent(_thumb._y);
} else {
_local2 = xToPercent(_thumb._x);
}
return(_local2);
}
function setCompletionPercentage(aPercentage) {
aPercentage = Math.floor(aPercentage);
if (aPercentage < 1) {
aPercentage = 1;
} else if (aPercentage > 100) {
aPercentage = 100;
}
if (isVertical()) {
var _local3 = percentToY(aPercentage);
_thumb._y = (getActualHeight() - _local3) - 1;
_hilite._height = _local3 - 1;
_hilite._y = (getActualHeight() - _local3) - 2;
} else {
var _local4 = percentToX(aPercentage);
_thumb._x = _local4;
_hilite._width = _local4 - 1;
}
}
function getController() {
return(_controller);
}
function draw(h) {
if (isVertical()) {
_y = 8;
if (h == null) {
h = getHeight();
}
_tray.setHeight(h);
} else {
var _local3 = getWidth();
_x = 8;
_tray.setWidth(getWidth());
}
setCompletionPercentage(_controller.__get__playPercent());
}
function getWidth() {
var _local2 = (isVertical() ? 6 : (_controller.__get__width() - 16));
return(_local2);
}
function getHeight() {
var _local2 = (isVertical() ? (_controller.__get__height() - 16) : 6);
return(_local2);
}
function getActualHeight() {
var _local2 = _tray.getHeight();
return(_local2);
}
function xToPercent(x) {
var _local2 = (100 * x) / (getWidth() - 2);
return(_local2);
}
function percentToX(percent) {
var _local2 = (getWidth() - 2) * (percent / 100);
return(_local2);
}
function yToPercent(y) {
var _local2 = (100 * (y - 1)) / (getActualHeight() - 3);
return(_local2);
}
function percentToY(percent) {
var _local2 = ((getActualHeight() - 3) * (percent / 100)) + 1;
return(_local2);
}
}
Symbol 1028 MovieClip [__Packages.mx.controls.streamingmedia.VolumeControl] Frame 0
class mx.controls.streamingmedia.VolumeControl extends MovieClip
{
var tabEnabled, tabChildren, _handle;
function VolumeControl () {
super();
init();
}
function init() {
tabEnabled = false;
tabChildren = true;
}
function getHandle() {
return(_handle);
}
}
Symbol 1029 MovieClip [__Packages.mx.controls.streamingmedia.VolumeControlHandle] Frame 0
class mx.controls.streamingmedia.VolumeControlHandle extends MovieClip
{
var _volumeControl, _parent, _controller, tabEnabled, tabChildren, _x, startDrag, onMouseMove, stopDrag, _enabled, onPress, onRelease, onReleaseOutside;
function VolumeControlHandle () {
super();
init();
}
function init() {
_volumeControl = mx.controls.streamingmedia.VolumeControl(_parent);
_controller = mx.controls.MediaController(_parent._parent);
setVolume(_controller.__get__volume());
enabled = (_controller.enabled);
tabEnabled = false;
tabChildren = false;
}
function isVertical() {
return(!_controller.__get__horizontal());
}
function setVolume(aVolume) {
if (aVolume < 0) {
aVolume = 0;
} else if (aVolume > 100) {
aVolume = 100;
}
_x = volumeToX(aVolume);
}
function setMute() {
setVolume(0);
}
function setLoud() {
setVolume(100);
}
function handlePress() {
startThumbDrag();
}
function handleRelease() {
stopThumbDrag();
}
function handleReleaseOutside() {
stopThumbDrag();
}
function startThumbDrag() {
startDrag(false, 12, 3, 12 + getRange(), 3);
onMouseMove = handleMouseMove;
}
function stopThumbDrag() {
stopDrag();
delete onMouseMove;
broadcastEvent();
}
function handleMouseMove() {
broadcastEvent();
}
function broadcastEvent() {
_controller.broadcastEvent("volume", xToVolume(_x));
}
function xToVolume(x) {
return((x - 12) * (100 / getRange()));
}
function volumeToX(aVol) {
return((aVol / (100 / getRange())) + 12);
}
function getRange() {
var _local2 = (isVertical() ? 27 : 50);
return(_local2);
}
function get enabled() {
return(_enabled);
}
function set enabled(is) {
_enabled = is;
if (is) {
onPress = handlePress;
onRelease = handleRelease;
onReleaseOutside = handleReleaseOutside;
} else {
delete onPress;
delete onRelease;
delete onReleaseOutside;
}
//return(enabled);
}
}
Symbol 1030 MovieClip [__Packages.mx.controls.streamingmedia.MuteButton] Frame 0
class mx.controls.streamingmedia.MuteButton extends MovieClip
{
var attachMovie, muteSimpleButton, _parent, tabEnabled, tabChildren;
function MuteButton () {
super();
init();
}
function init() {
attachMovie("SimpleButton", "muteSimpleButton", 1, {falseUpSkin:"Mute-False-Up", falseOverSkin:"Mute-False-Over", falseDownSkin:"Mute-False-Down", falseDisabledSkin:"Mute-False-Disabled"});
muteSimpleButton.addEventListener("click", this);
muteSimpleButton.enabled = _parent._parent.enabled;
tabEnabled = false;
tabChildren = true;
}
function click(ev) {
_parent._parent.broadcastEvent("volume", 0);
_parent.getHandle().setMute();
}
}
Symbol 353 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 1031 MovieClip [__Packages.mx.controls.streamingmedia.LoudButton] Frame 0
class mx.controls.streamingmedia.LoudButton extends MovieClip
{
var attachMovie, loudSimpleButton, _parent, tabEnabled, tabChildren;
function LoudButton () {
super();
init();
}
function init() {
attachMovie("SimpleButton", "loudSimpleButton", 1, {falseUpSkin:"Loud-False-Up", falseOverSkin:"Loud-False-Over", falseDownSkin:"Loud-False-Down", falseDisabledSkin:"Loud-False-Disabled"});
loudSimpleButton.addEventListener("click", this);
loudSimpleButton.enabled = _parent._parent.enabled;
tabEnabled = false;
tabChildren = true;
}
function click(ev) {
_parent._parent.broadcastEvent("volume", 100);
_parent.getHandle().setLoud();
}
}
Symbol 1033 MovieClip [__Packages.mx.controls.streamingmedia.Chrome] Frame 0
class mx.controls.streamingmedia.Chrome extends MovieClip
{
var visible, width, height, _parent, _alpha, _chromeEdge, _chromeHilite, _chromeFill, showToggles, _toggleNW, _toggleSW, _toggleNE, _toggleSE;
function Chrome () {
super();
init();
}
function init() {
if (visible == null) {
visible = true;
}
if ((width != null) && (height != null)) {
draw();
}
mx.controls.streamingmedia.Tracer.trace("Chrome.init: setting enabled to " + _parent.enabled);
setEnabled(_parent.enabled);
}
function setSize(w, h) {
width = w;
height = h;
}
function draw() {
if (visible) {
_alpha = 100;
} else {
_alpha = 0;
}
_chromeEdge._width = width;
_chromeEdge._height = height;
_chromeEdge._x = 0;
_chromeEdge._y = 0;
_chromeHilite._width = width - 2;
_chromeHilite._x = 1;
_chromeHilite._y = 1;
_chromeFill._width = width - 2;
_chromeFill._height = height - 3;
_chromeFill._x = 1;
_chromeFill._y = 2;
if (visible && (showToggles)) {
_toggleNW._visible = true;
_toggleSW._visible = true;
_toggleNE._visible = true;
_toggleSE._visible = true;
_toggleNW._x = 0;
_toggleNW._y = 0;
_toggleNE._x = width;
_toggleNE._y = 0;
_toggleSW._x = 0;
_toggleSW._y = height;
_toggleSE._x = width;
_toggleSE._y = height;
} else {
_toggleNW._visible = false;
_toggleSW._visible = false;
_toggleNE._visible = false;
_toggleSE._visible = false;
}
}
function getAllToggles() {
return([_toggleNW, _toggleNE, _toggleSW, _toggleSE]);
}
function getOneToggle() {
return(_toggleNE);
}
function getEnabled() {
return(_parent.enabled);
}
function setEnabled(is) {
mx.controls.streamingmedia.Tracer.trace("Chrome.setEnabled: " + is);
_toggleNW.setEnabled(is);
_toggleNE.setEnabled(is);
_toggleSW.setEnabled(is);
_toggleSE.setEnabled(is);
}
}
Symbol 1032 MovieClip [__Packages.mx.controls.streamingmedia.Tracer] Frame 0
class mx.controls.streamingmedia.Tracer
{
function Tracer () {
}
static function trace(message) {
if (DEBUG) {
trace(message);
}
}
static var DEBUG = false;
}
Symbol 1037 MovieClip [__Packages.mx.controls.streamingmedia.ScreenAccommodator] Frame 0
class mx.controls.streamingmedia.ScreenAccommodator
{
var containee, container, beforeInit, initId, wasAlreadyDisabled;
function ScreenAccommodator (aContainee) {
containee = aContainee;
container = getContainingScreen();
if (container != null) {
var _local2 = container.__get__visible();
beforeInit = false;
container.addEventListener("hide", this);
container.addEventListener("reveal", this);
if (!_local2) {
beforeInit = true;
initId = setInterval(this, "disableContainee", 50);
}
}
}
function disableContainee() {
if ((initAction == "nothing") || (initAction == "hide")) {
mx.controls.streamingmedia.Tracer.trace("ScreenAccommodator.disableContainee: disabling " + containee);
containee.enabled = false;
}
clearInterval(initId);
beforeInit = false;
}
function getContainingScreen() {
var _local4 = null;
var _local3 = containee._parent;
while ((_local4 == null) && (_local3 != _root)) {
if (_local3 instanceof mx.screens.Screen) {
_local4 = mx.screens.Screen(_local3);
} else {
_local3 = _local3._parent;
}
}
return(_local4);
}
function handleEvent(ev) {
mx.controls.streamingmedia.Tracer.trace((("ScreenAccommodator.handleEvent: " + ev.type) + " for ") + containee);
if (ev.type == "hide") {
if (beforeInit) {
initAction = "hide";
} else if (containee.enabled) {
wasAlreadyDisabled = false;
containee.enabled = false;
} else {
wasAlreadyDisabled = true;
}
} else if (ev.type == "reveal") {
if (beforeInit) {
initAction = "reveal";
} else if ((!wasAlreadyDisabled) && (containee.visible)) {
containee.enabled = true;
}
}
}
var initAction = "nothing";
}
Symbol 358 MovieClip [__Packages.mx.core.View] Frame 0
class mx.core.View extends mx.core.UIComponent
{
var tabChildren, tabEnabled, boundingBox_mc, border_mc, __get__width, __get__height, __tabIndex, depth, createObject, createClassObject, loadExternal, destroyObject, createClassChildAtDepth, doLater;
function View () {
super();
}
function init() {
super.init();
tabChildren = true;
tabEnabled = false;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function size() {
border_mc.move(0, 0);
border_mc.setSize(__get__width(), __get__height());
doLayout();
}
function draw() {
size();
}
function get numChildren() {
var _local3 = childNameBase;
var _local2 = 0;
while (true) {
if (this[_local3 + _local2] == undefined) {
return(_local2);
}
_local2++;
}
}
function get tabIndex() {
return((tabEnabled ? (__tabIndex) : undefined));
}
function set tabIndex(n) {
__tabIndex = n;
//return(tabIndex);
}
function addLayoutObject(object) {
}
function createChild(className, instanceName, initProps) {
if (depth == undefined) {
depth = 1;
}
var _local2;
if (typeof(className) == "string") {
_local2 = createObject(className, instanceName, depth++, initProps);
} else {
_local2 = createClassObject(className, instanceName, depth++, initProps);
}
if (_local2 == undefined) {
_local2 = loadExternal(className, _loadExternalClass, instanceName, depth++, initProps);
} else {
this[childNameBase + numChildren] = _local2;
_local2._complete = true;
childLoaded(_local2);
}
addLayoutObject(_local2);
return(_local2);
}
function getChildAt(childIndex) {
return(this[childNameBase + childIndex]);
}
function destroyChildAt(childIndex) {
if (!((childIndex >= 0) && (childIndex < numChildren))) {
return(undefined);
}
var _local4 = childNameBase + childIndex;
var _local6 = numChildren;
var _local3;
for (_local3 in this) {
if (_local3 == _local4) {
_local4 = "";
destroyObject(_local3);
break;
}
}
var _local2 = Number(childIndex);
while (_local2 < (_local6 - 1)) {
this[childNameBase + _local2] = this[childNameBase + (_local2 + 1)];
_local2++;
}
delete this[childNameBase + (_local6 - 1)];
depth--;
}
function initLayout() {
if (!hasBeenLayedOut) {
doLayout();
}
}
function doLayout() {
hasBeenLayedOut = true;
}
function createChildren() {
if (border_mc == undefined) {
border_mc = createClassChildAtDepth(_global.styles.rectBorderClass, mx.managers.DepthManager.kBottom, {styleName:this});
}
doLater(this, "initLayout");
}
function convertToUIObject(obj) {
}
function childLoaded(obj) {
convertToUIObject(obj);
}
static function extension() {
mx.core.ExternalContent.enableExternalContent();
}
static var symbolName = "View";
static var symbolOwner = mx.core.View;
static var version = "2.0.2.127";
var className = "View";
static var childNameBase = "_child";
var hasBeenLayedOut = false;
var _loadExternalClass = "UIComponent";
}
Symbol 350 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 351 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 354 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 _local5 = "down";
if (depthFlag == kBottom) {
_local5 = "up";
}
var _local6;
if (_local3[_local2] != undefined) {
_local6 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local5);
}
var _local4 = createClassObject(className, "depthChild" + (_childCounter++), _local2, initObj);
if (_local6 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local6, _local3, _local5);
}
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 _local5 = "down";
if (depthFlag == kBottom) {
_local5 = "up";
}
var _local6;
if (_local3[_local2] != undefined) {
_local6 = _local2;
_local2 = findNextAvailableDepth(_local2, _local3, _local5);
}
var _local4 = createObject(linkageName, "depthChild" + (_childCounter++), _local2, initObj);
if (_local6 != undefined) {
_local3[_local2] = _local4;
shuffleDepths(_local4, _local6, _local3, _local5);
}
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(MovieClip(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 _local1 = targetDepth;
var _local2 = targetDepth;
if (direction == "down") {
while (depthTable[_local2] != undefined) {
_local2--;
}
return(_local2);
}
while (depthTable[_local1] != undefined) {
_local1++;
}
return(_local1);
}
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 360 MovieClip [__Packages.mx.core.ExternalContent] Frame 0
class mx.core.ExternalContent
{
var createObject, numChildren, prepList, doLater, loadList, dispatchEvent, loadedList, childLoaded;
function ExternalContent () {
}
function loadExternal(url, placeholderClassName, instanceName, depth, initProps) {
var _local2;
_local2 = createObject(placeholderClassName, instanceName, depth, initProps);
this[mx.core.View.childNameBase + numChildren] = _local2;
if (prepList == undefined) {
prepList = new Object();
}
prepList[instanceName] = {obj:_local2, url:url, complete:false, initProps:initProps};
prepareToLoadMovie(_local2);
return(_local2);
}
function prepareToLoadMovie(obj) {
obj.unloadMovie();
doLater(this, "waitForUnload");
}
function waitForUnload() {
var _local3;
for (_local3 in prepList) {
var _local2 = prepList[_local3];
if (_local2.obj.getBytesTotal() == 0) {
if (loadList == undefined) {
loadList = new Object();
}
loadList[_local3] = _local2;
_local2.obj.loadMovie(_local2.url);
delete prepList[_local3];
doLater(this, "checkLoadProgress");
} else {
doLater(this, "waitForUnload");
}
}
}
function checkLoadProgress() {
var _local8 = false;
var _local3;
for (_local3 in loadList) {
var _local2 = loadList[_local3];
_local2.loaded = _local2.obj.getBytesLoaded();
_local2.total = _local2.obj.getBytesTotal();
if (_local2.total > 0) {
_local2.obj._visible = false;
dispatchEvent({type:"progress", target:_local2.obj, current:_local2.loaded, total:_local2.total});
if (_local2.loaded == _local2.total) {
if (loadedList == undefined) {
loadedList = new Object();
}
loadedList[_local3] = _local2;
delete loadList[_local3];
doLater(this, "contentLoaded");
}
} else if (_local2.total == -1) {
if (_local2.failedOnce != undefined) {
_local2.failedOnce++;
if (_local2.failedOnce > 3) {
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadList[_local3];
}
} else {
_local2.failedOnce = 0;
}
}
_local8 = true;
}
if (_local8) {
doLater(this, "checkLoadProgress");
}
}
function contentLoaded() {
var _local4;
for (_local4 in loadedList) {
var _local2 = loadedList[_local4];
_local2.obj._visible = true;
_local2.obj._complete = true;
var _local3;
for (_local3 in _local2.initProps) {
_local2.obj[_local3] = _local2.initProps[_local3];
}
childLoaded(_local2.obj);
dispatchEvent({type:"complete", target:_local2.obj, current:_local2.loaded, total:_local2.total});
delete loadedList[_local4];
}
}
function convertToUIObject(obj) {
if (obj.setSize == undefined) {
var _local2 = mx.core.UIObject.prototype;
obj.addProperty("width", _local2.__get__width, null);
obj.addProperty("height", _local2.__get__height, null);
obj.addProperty("left", _local2.__get__left, null);
obj.addProperty("x", _local2.__get__x, null);
obj.addProperty("top", _local2.__get__top, null);
obj.addProperty("y", _local2.__get__y, null);
obj.addProperty("right", _local2.__get__right, null);
obj.addProperty("bottom", _local2.__get__bottom, null);
obj.addProperty("visible", _local2.__get__visible, _local2.__set__visible);
obj.move = mx.core.UIObject.prototype.move;
obj.setSize = mx.core.UIObject.prototype.setSize;
obj.size = mx.core.UIObject.prototype.size;
mx.events.UIEventDispatcher.initialize(obj);
}
}
static function enableExternalContent() {
}
static function classConstruct() {
var _local1 = mx.core.View.prototype;
var _local2 = mx.core.ExternalContent.prototype;
_local1.loadExternal = _local2.loadExternal;
_local1.prepareToLoadMovie = _local2.prepareToLoadMovie;
_local1.waitForUnload = _local2.waitForUnload;
_local1.checkLoadProgress = _local2.checkLoadProgress;
_local1.contentLoaded = _local2.contentLoaded;
_local1.convertToUIObject = _local2.convertToUIObject;
return(true);
}
static var classConstructed = classConstruct();
static var ViewDependency = mx.core.View;
}
Symbol 355 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 359 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 1034 MovieClip [__Packages.mx.controls.Loader] Frame 0
class mx.controls.Loader extends mx.core.View
{
var _origWidth, _origHeight, __width, livePreview, __height, createTextField, contentHolder, childrenCreated, destroyChildAt, createChild, border_mc;
function Loader () {
super();
}
function init() {
super.init();
}
function setSize(w, h, noEvent) {
_origWidth = w;
_origHeight = h;
super.setSize(w, h, noEvent);
if (_global.isLivePreview) {
livePreview._width = __width - 1;
livePreview._height = __height - 1;
}
}
function draw() {
size();
}
function size() {
super.size();
if (__scaleContent) {
doScaleContent();
} else {
doScaleLoader();
}
}
function createChildren() {
super.createChildren();
if (_global.isLivePreview) {
createTextField("livePreview", -1000, 0, 0, 99, 99);
livePreview.text = "mx.controls.Loader";
livePreview.border = true;
}
if (__autoLoad) {
load();
}
}
function getAutoLoad() {
return(__autoLoad);
}
function get autoLoad() {
return(getAutoLoad());
}
function setAutoLoad(b) {
if (__autoLoad != b) {
__autoLoad = b;
if (__autoLoad && (!this[mx.core.View.childNameBase + 0]._complete)) {
load();
}
}
}
function set autoLoad(b) {
setAutoLoad(b);
//return(autoLoad);
}
function getBytesLoaded() {
return(__bytesLoaded);
}
function get bytesLoaded() {
return(getBytesLoaded());
}
function getBytesTotal() {
return(__bytesTotal);
}
function get bytesTotal() {
return(getBytesTotal());
}
function getContent() {
return(contentHolder);
}
function get content() {
return(getContent());
}
function getContentPath() {
return(__contentPath);
}
function get contentPath() {
return(getContentPath());
}
function setContentPath(url) {
if (__contentPath != url) {
__contentPath = url;
if (childrenCreated) {
if (__autoLoad) {
load();
}
}
}
}
function set contentPath(c) {
setContentPath(c);
//return(contentPath);
}
function getPercentLoaded() {
var _local2 = 100 * (__bytesLoaded / __bytesTotal);
if (isNaN(_local2)) {
_local2 = 0;
}
return(_local2);
}
function get percentLoaded() {
return(getPercentLoaded());
}
function get scaleContent() {
return(getScaleContent());
}
function getScaleContent() {
return(__scaleContent);
}
function setScaleContent(b) {
if (__scaleContent != b) {
__scaleContent = b;
if (__scaleContent) {
doScaleContent();
} else {
doScaleLoader();
}
}
}
function set scaleContent(b) {
setScaleContent(b);
//return(scaleContent);
}
function load(url) {
if (url != undefined) {
__contentPath = url;
}
if (this[mx.core.View.childNameBase + 0] != undefined) {
if (this[mx.core.View.childNameBase + 0]._complete) {
setSize(_origWidth, _origHeight);
}
destroyChildAt(0);
}
if ((__contentPath == undefined) || (__contentPath == "")) {
return(undefined);
}
createChild(__contentPath, "contentHolder");
}
function childLoaded(obj) {
super.childLoaded(obj);
obj._rotation = 0;
_origWidth = __width;
_origHeight = __height;
if (__scaleContent) {
doScaleContent();
} else {
doScaleLoader();
}
}
function dispatchEvent(obj) {
if ((obj.type == "progress") || (obj.type == "complete")) {
obj.target = this;
__bytesTotal = obj.total;
__bytesLoaded = obj.current;
}
super.dispatchEvent(obj);
}
function doScaleContent() {
if (!this[mx.core.View.childNameBase + 0]._complete) {
return(undefined);
}
unScaleContent();
var _local2 = border_mc.__get__borderMetrics();
var _local6 = (_origWidth - _local2.left) - _local2.right;
var _local8 = (_origHeight - _local2.top) - _local2.bottom;
var _local9 = _local2.left;
var _local7 = _local2.top;
var _local5 = _local6 / contentHolder._width;
var _local3 = _local8 / contentHolder._height;
var _local4;
if (_local5 > _local3) {
_local9 = _local2.left + Math.floor((_local6 - (contentHolder._width * _local3)) / 2);
_local4 = _local3;
} else {
_local7 = _local2.top + Math.floor((_local8 - (contentHolder._height * _local5)) / 2);
_local4 = _local5;
}
_local4 = _local4 * 100;
contentHolder._xscale = (contentHolder._yscale = _local4);
contentHolder._x = _local9;
contentHolder._y = _local7;
if ((__width != _origWidth) || (__height != _origHeight)) {
setSize(_origWidth, _origHeight);
}
}
function doScaleLoader() {
if (!this[mx.core.View.childNameBase + 0]._complete) {
return(undefined);
}
unScaleContent();
var _local2 = border_mc.__get__borderMetrics();
var _local4 = (contentHolder._width + _local2.left) + _local2.right;
var _local3 = (contentHolder._height + _local2.top) + _local2.bottom;
if ((__width != _local4) || (__height != _local3)) {
setSize(_local4, _local3);
}
contentHolder._x = _local2.left;
contentHolder._y = _local2.top;
}
function unScaleContent() {
contentHolder._xscale = (contentHolder._yscale = 100);
contentHolder._x = (contentHolder._y = 0);
}
static var symbolName = "Loader";
static var symbolOwner = mx.controls.Loader;
static var version = "2.0.2.127";
var className = "Loader";
var clipParameters = {autoLoad:1, scaleContent:1, contentPath:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.Loader.prototype.clipParameters, mx.core.View.prototype.clipParameters);
var __autoLoad = true;
var __bytesLoaded = undefined;
var __bytesTotal = undefined;
var __contentPath = undefined;
var __scaleContent = true;
}
Symbol 1036 MovieClip [__Packages.mx.screens.Screen] Frame 0
class mx.screens.Screen extends mx.controls.Loader
{
var _childScreens, _parent, _loadExternalClass, __set__scaleContent, _name, __get__scaleContent, globalToLocal, x, y, border_mc, dispatchEvent;
function Screen () {
super();
}
function get indexInParent() {
return(_indexInParent);
}
function get numChildScreens() {
return(_childScreens.length);
}
function get parentIsScreen() {
var _local2 = (parentScreen != null) && (parentScreen._isScreen);
return(_local2);
}
function get parentScreen() {
var _local2 = mx.screens.Screen(_parent);
if (_local2 == null) {
return(null);
}
if (_local2._isScreen) {
return(_local2);
}
return(null);
}
function get rootScreen() {
var _local2 = this;
while (_local2.__get__parentIsScreen()) {
_local2 = _local2.parentScreen;
}
return(_local2);
}
function get transitionManager() {
return(__transitionManager);
}
static function get currentFocusedScreen() {
var curFocus;
curFocus = _root.focusManager.getFocus();
if ((!curFocus) || (curFocus == undefined)) {
curFocus = eval (Selection.getFocus());
}
while (curFocus && (!curFocus._isScreen)) {
curFocus = curFocus._parent;
}
if (curFocus == undefined) {
return(null);
}
return(mx.screens.Screen(curFocus));
}
function getChildScreen(childIndex) {
return(_childScreens[childIndex]);
}
function createChild(className, instanceName, initProps) {
var _local5;
_childLoading = instanceName;
return(super.createChild(className, instanceName, initProps));
}
function drawFocus() {
}
function init() {
mx.core.ext.UIObjectExtensions.Extensions();
mx.core.ext.UIComponentExtensions.Extensions();
mx.events.LowLevelEvents.enableLowLevelEvents();
_childScreens = [];
super.init();
_loadExternalClass = symbolName;
__set__scaleContent(false);
mx.events.UIEventDispatcher.initialize(this);
if (_parent._childLoading == _name) {
} else if (parentIsScreen) {
_parent.registerChildScreen(this);
}
}
function registerChildScreen(scrn) {
scrn._indexInParent = _childScreens.push(scrn) - 1;
}
function childLoaded(obj) {
super.childLoaded(obj);
var _local4;
var _local5 = null;
var _local7 = mx.screens.Screen(obj._parent);
for (_local4 in obj) {
if ((typeof(obj[_local4]) == "movieclip") && (obj[_local4]._isScreen)) {
_local5 = obj[_local4];
break;
}
}
if (_local5._isScreen) {
if (!__get__scaleContent()) {
var _local6 = new Object();
_local6.x = obj.x;
_local6.y = obj.y;
globalToLocal(_local6);
obj._x = _local6.x;
obj._y = _local6.y;
} else {
var _local6 = new Object();
_local6.x = x;
_local6.y = y;
_parent.localToGlobal(_local6);
obj.globalToLocal(_local6);
_local5._x = _local6.x;
_local5._y = _local6.y;
}
_local5._indexInParent = _local7._childScreens.push(_local5) - 1;
obj._isScreenContainer = true;
obj._containedScreen = _local5;
}
_local7._childLoading = "";
}
function doScaleLoader() {
}
function createChildren() {
border_mc = new mx.skins.RectBorder();
border_mc.__borderMetrics = {top:0, left:0, bottom:0, right:0};
super.createChildren();
}
function allTransitionsInDone() {
dispatchEvent({type:"allTransitionsInDone", target:this});
}
function allTransitionsOutDone() {
dispatchEvent({type:"allTransitionsOutDone", target:this});
}
function destroyChildAt(childIndex) {
_childScreens.splice(childIndex, 1);
super.destroyChildAt(childIndex);
}
static var symbolName = "Screen";
static var symbolOwner = mx.screens.Screen;
var className = "Screen";
var _isScreen = true;
var _indexInParent = 0;
var __transitionManager = null;
var _childLoading = "";
var borderStyle = "none";
}
Symbol 370 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 369 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 356 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 374 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 372 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 = mx.controls.SimpleButton(_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 376 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 375 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 1035 MovieClip [__Packages.mx.events.LowLevelEvents] Frame 0
class mx.events.LowLevelEvents
{
var dispatchEvent, _onMouseMove, __q_mouseMove, _onRollOver, _onRollOut, _onPress, _onRelease, _onReleaseOutside, _onDragOver, _onDragOut, _onMouseDown, _onMouseUp;
function LowLevelEvents () {
}
static function addMouseEvents(obj) {
if (obj.refcntMouseEvents > 0) {
obj.refcntMouseEvents++;
return(undefined);
}
var _local2 = mx.events.UIEventDispatcher._fEventDispatcher;
obj.refcntMouseEvents = 1;
obj._onPress = obj.onPress;
obj.onPress = _local2.onPress;
obj._onRelease = obj.onRelease;
obj.onRelease = _local2.onRelease;
obj._onReleaseOutside = obj.onReleaseOutside;
obj.onReleaseOutside = _local2.onReleaseOutside;
obj._onRollOver = obj.onRollOver;
obj.onRollOver = _local2.onRollOver;
obj._onRollOut = obj.onRollOut;
obj.onRollOut = _local2.onRollOut;
obj._onDragOver = obj.onDragOver;
obj.onDragOver = _local2.onDragOver;
obj._onDragOut = obj.onDragOut;
obj.onDragOut = _local2.onDragOut;
}
static function removeMouseEvents(obj) {
if (obj.refcntMouseEvents > 1) {
obj.refcntMouseEvents--;
return(undefined);
}
obj.refcntMouseEvents = 0;
if (obj._onPress != undefined) {
obj.onPress = obj._onPress;
} else {
delete obj.onPress;
}
if (obj._onRelease != undefined) {
obj.onRelease = obj._onRelease;
} else {
delete obj.onRelease;
}
if (obj._onReleaseOutside != undefined) {
obj.onReleaseOutside = obj._onReleaseOutside;
} else {
delete obj.onReleaseOutside;
}
if (obj._onRollOver != undefined) {
obj.onRollOver = obj._onRollOver;
} else {
delete obj.onRollOver;
}
if (obj._onRollOut != undefined) {
obj.onRollOut = obj._onRollOut;
} else {
delete obj.onRollOut;
}
if (obj._onDragOver != undefined) {
obj.onDragOver = obj._onDragOver;
} else {
delete obj.onDragOver;
}
if (obj._onDragOut != undefined) {
obj.onDragOut = obj._onDragOut;
} else {
delete obj.onDragOut;
}
if (obj._onMouseMove != undefined) {
obj.onMouseMove = obj._onMouseMove;
} else {
delete obj.onMouseMove;
}
}
static function addSomewhereEvents(obj) {
if (obj.refcntSomewhereEvents > 0) {
obj.refcntSomewhereEvents++;
return(undefined);
}
var _local2 = mx.events.UIEventDispatcher._fEventDispatcher;
obj.refcntSomewhereEvents = 1;
obj._onMouseDown = obj.onMouseDown;
obj.onMouseDown = _local2.onMouseDown;
obj._onMouseUp = obj.onMouseUp;
obj.onMouseUp = _local2.onMouseUp;
}
static function removeSomewhereEvents(obj) {
if (obj.refcntSomewhereEvents > 1) {
obj.refcntSomewhereEvents--;
return(undefined);
}
obj.refcntSomewhereEvents = 0;
if (obj._onMouseDown != undefined) {
obj.onMouseDown = obj._onMouseDown;
} else {
delete obj.onMouseDown;
}
if (obj._onMouseUp != undefined) {
obj.onMouseUp = obj._onMouseUp;
} else {
delete obj.onMouseUp;
}
}
function onMouseMove(Void) {
dispatchEvent({type:"mouseMove"});
_onMouseMove();
}
function onRollOver(Void) {
dispatchEvent({type:"mouseOver"});
if (__q_mouseMove.length > 0) {
_onMouseMove = onMouseMove;
var _local2 = mx.events.UIEventDispatcher._fEventDispatcher;
onMouseMove = _local2.onMouseMove;
}
_onRollOver();
}
function onRollOut(Void) {
dispatchEvent({type:"mouseOut"});
if (__q_mouseMove.length > 0) {
if (_onMouseMove != undefined) {
onMouseMove == _onMouseMove;
} else {
delete onMouseMove;
}
}
_onRollOut();
}
function onPress(Void) {
dispatchEvent({type:"mouseDown"});
_onPress();
}
function onRelease(Void) {
dispatchEvent({type:"mouseUp"});
_onRelease();
}
function onReleaseOutside(Void) {
dispatchEvent({type:"mouseUp"});
_onReleaseOutside();
}
function onDragOver(Void) {
dispatchEvent({type:"mouseOver"});
_onDragOver();
}
function onDragOut(Void) {
dispatchEvent({type:"mouseOut"});
_onDragOut();
}
function onMouseDown(Void) {
dispatchEvent({type:"mouseDownSomewhere"});
_onMouseDown();
}
function onMouseUp(Void) {
dispatchEvent({type:"mouseUpSomewhere"});
_onMouseUp();
}
static function enableLowLevelEvents() {
}
static function classConstruct() {
var _local1 = mx.events.UIEventDispatcher;
var _local4 = mx.events.LowLevelEvents;
_local1.lowLevelEvents.mouseEvents = ["addMouseEvents", "removeMouseEvents"];
_local1.lowLevelEvents.somewhereEvents = ["addSomewhereEvents", "removeSomewhereEvents"];
_local1.mouseEvents = _local4.mouseEvents;
_local1.addMouseEvents = _local4.addMouseEvents;
_local1.removeMouseEvents = _local4.removeMouseEvents;
_local1.somewhereEvents = _local4.somewhereEvents;
_local1.addSomewhereEvents = _local4.addSomewhereEvents;
_local1.removeSomewhereEvents = _local4.removeSomewhereEvents;
if (_local1._fEventDispatcher == undefined) {
_local1._fEventDispatcher = new mx.events.UIEventDispatcher();
}
var _local3 = _local1._fEventDispatcher;
var _local2 = _local4.prototype;
_local3.onPress = _local2.onPress;
_local3.onRelease = _local2.onRelease;
_local3.onReleaseOutside = _local2.onReleaseOutside;
_local3.onRollOut = _local2.onRollOut;
_local3.onRollOver = _local2.onRollOver;
_local3.onDragOut = _local2.onDragOut;
_local3.onDragOver = _local2.onDragOver;
_local3.onMouseDown = _local2.onMouseDown;
_local3.onMouseMove = _local2.onMouseMove;
_local3.onMouseUp = _local2.onMouseUp;
return(true);
}
static var mouseEvents = {mouseMove:1, mouseDown:1, mouseUp:1, mouseOver:1, mouseOut:1};
static var somewhereEvents = {mouseDownSomewhere:1, mouseUpSomewhere:1};
static var classConstructed = classConstruct();
static var UIEventDispatcherDependency = mx.events.UIEventDispatcher;
}
Symbol 364 MovieClip [__Packages.mx.core.ScrollView] Frame 0
class mx.core.ScrollView extends mx.core.View
{
var __width, hScroller, vScroller, __maxHPosition, propsInited, scrollAreaChanged, specialHScrollCase, createObject, viewableColumns, __height, oldRndUp, viewableRows, __viewMetrics, owner, enabled, border_mc, __get__width, __get__height, invLayout, mask_mc, _parent, dispatchEvent;
function ScrollView () {
super();
}
function getHScrollPolicy(Void) {
return(__hScrollPolicy);
}
function setHScrollPolicy(policy) {
__hScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get hScrollPolicy() {
return(getHScrollPolicy());
}
function set hScrollPolicy(policy) {
setHScrollPolicy(policy);
//return(hScrollPolicy);
}
function getVScrollPolicy(Void) {
return(__vScrollPolicy);
}
function setVScrollPolicy(policy) {
__vScrollPolicy = policy.toLowerCase();
if (__width == undefined) {
return(undefined);
}
setScrollProperties(numberOfCols, columnWidth, rowC, rowH, heightPadding, widthPadding);
}
function get vScrollPolicy() {
return(getVScrollPolicy());
}
function set vScrollPolicy(policy) {
setVScrollPolicy(policy);
//return(vScrollPolicy);
}
function get hPosition() {
return(getHPosition());
}
function set hPosition(pos) {
setHPosition(pos);
//return(hPosition);
}
function getHPosition(Void) {
return(__hPosition);
}
function setHPosition(pos) {
hScroller.__set__scrollPosition(pos);
__hPosition = pos;
}
function get vPosition() {
return(getVPosition());
}
function set vPosition(pos) {
setVPosition(pos);
//return(vPosition);
}
function getVPosition(Void) {
return(__vPosition);
}
function setVPosition(pos) {
vScroller.__set__scrollPosition(pos);
__vPosition = pos;
}
function get maxVPosition() {
var _local2 = vScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function get maxHPosition() {
return(getMaxHPosition());
}
function set maxHPosition(pos) {
setMaxHPosition(pos);
//return(maxHPosition);
}
function getMaxHPosition(Void) {
if (__maxHPosition != undefined) {
return(__maxHPosition);
}
var _local2 = hScroller.maxPos;
return(((_local2 == undefined) ? 0 : (_local2)));
}
function setMaxHPosition(pos) {
__maxHPosition = pos;
}
function setScrollProperties(colCount, colWidth, rwCount, rwHeight, hPadding, wPadding) {
var _local3 = getViewMetrics();
if (hPadding == undefined) {
hPadding = 0;
}
if (wPadding == undefined) {
wPadding = 0;
}
propsInited = true;
delete scrollAreaChanged;
heightPadding = hPadding;
widthPadding = wPadding;
if (colWidth == 0) {
colWidth = 1;
}
if (rwHeight == 0) {
rwHeight = 1;
}
var _local4 = Math.ceil((((__width - _local3.left) - _local3.right) - widthPadding) / colWidth);
if ((__hScrollPolicy == "on") || ((_local4 < colCount) && (__hScrollPolicy == "auto"))) {
if ((hScroller == undefined) || (specialHScrollCase)) {
delete specialHScrollCase;
hScroller = mx.controls.scrollClasses.ScrollBar(createObject("HScrollBar", "hSB", 1001));
hScroller.__set__lineScrollSize(20);
hScroller.scrollHandler = scrollProxy;
hScroller.__set__scrollPosition(__hPosition);
scrollAreaChanged = true;
}
if ((((numberOfCols != colCount) || (columnWidth != colWidth)) || (viewableColumns != _local4)) || (scrollAreaChanged)) {
hScroller.setScrollProperties(_local4, 0, colCount - _local4);
viewableColumns = _local4;
numberOfCols = colCount;
columnWidth = colWidth;
}
} else if (((__hScrollPolicy == "auto") || (__hScrollPolicy == "off")) && (hScroller != undefined)) {
hScroller.removeMovieClip();
delete hScroller;
scrollAreaChanged = true;
}
if (heightPadding == undefined) {
heightPadding = 0;
}
var _local5 = Math.ceil((((__height - _local3.top) - _local3.bottom) - heightPadding) / rwHeight);
var _local8 = (((__height - _local3.top) - _local3.bottom) % rwHeight) != 0;
if ((__vScrollPolicy == "on") || ((_local5 < (rwCount + _local8)) && (__vScrollPolicy == "auto"))) {
if (vScroller == undefined) {
vScroller = mx.controls.scrollClasses.ScrollBar(createObject("VScrollBar", "vSB", 1002));
vScroller.scrollHandler = scrollProxy;
vScroller.__set__scrollPosition(__vPosition);
scrollAreaChanged = true;
rowH = 0;
}
if ((((rowC != rwCount) || (rowH != rwHeight)) || ((viewableRows + _local8) != (_local5 + oldRndUp))) || (scrollAreaChanged)) {
vScroller.setScrollProperties(_local5, 0, (rwCount - _local5) + _local8);
viewableRows = _local5;
rowC = rwCount;
rowH = rwHeight;
oldRndUp = _local8;
}
} else if (((__vScrollPolicy == "auto") || (__vScrollPolicy == "off")) && (vScroller != undefined)) {
vScroller.removeMovieClip();
delete vScroller;
scrollAreaChanged = true;
}
numberOfCols = colCount;
columnWidth = colWidth;
if (scrollAreaChanged) {
doLayout();
var _local2 = __viewMetrics;
var _local12 = ((owner != undefined) ? (owner) : this);
_local12.layoutContent(_local2.left, _local2.top, ((columnWidth * numberOfCols) - _local2.left) - _local2.right, rowC * rowH, (__width - _local2.left) - _local2.right, (__height - _local2.top) - _local2.bottom);
}
if (!enabled) {
setEnabled(false);
}
}
function getViewMetrics(Void) {
var _local2 = __viewMetrics;
var _local3 = border_mc.__get__borderMetrics();
_local2.left = _local3.left;
_local2.right = _local3.right;
if (vScroller != undefined) {
_local2.right = _local2.right + vScroller.minWidth;
}
_local2.top = _local3.top;
if ((hScroller == undefined) && ((__hScrollPolicy == "on") || (__hScrollPolicy == true))) {
hScroller = mx.controls.scrollClasses.ScrollBar(createObject("FHScrollBar", "hSB", 1001));
specialHScrollCase = true;
}
_local2.bottom = _local3.bottom;
if (hScroller != undefined) {
_local2.bottom = _local2.bottom + hScroller.minHeight;
}
return(_local2);
}
function doLayout(Void) {
var _local10 = __get__width();
var _local8 = __get__height();
delete invLayout;
var _local3 = (__viewMetrics = getViewMetrics());
var _local2 = _local3.left;
var _local9 = _local3.right;
var _local5 = _local3.top;
var _local11 = _local3.bottom;
var _local7 = hScroller;
var _local6 = vScroller;
_local7.setSize((_local10 - _local2) - _local9, _local7.minHeight + 0);
_local7.move(_local2, _local8 - _local11);
_local6.setSize(_local6.minWidth + 0, (_local8 - _local5) - _local11);
_local6.move(_local10 - _local9, _local5);
var _local4 = mask_mc;
_local4._width = (_local10 - _local2) - _local9;
_local4._height = (_local8 - _local5) - _local11;
_local4._x = _local2;
_local4._y = _local5;
}
function createChild(id, name, props) {
var _local2 = super.createChild(id, name, props);
return(_local2);
}
function init(Void) {
super.init();
__viewMetrics = new Object();
if (_global.__SVMouseWheelManager == undefined) {
var _local4 = (_global.__SVMouseWheelManager = new Object());
_local4.onMouseWheel = __onMouseWheel;
Mouse.addListener(_local4);
}
}
function __onMouseWheel(delta, scrollTarget) {
var _local4 = scrollTarget;
var _local1;
while (_local4 != undefined) {
if (_local4 instanceof mx.core.ScrollView) {
_local1 = _local4;
}
_local4 = _local4._parent;
}
if (_local1 != undefined) {
_local4 = ((delta <= 0) ? 1 : -1);
var _local2 = _local1.vScroller.lineScrollSize;
if (_local2 == undefined) {
_local2 = 0;
}
_local2 = Math.max(Math.abs(delta), _local2);
var _local3 = _local1.vPosition + (_local2 * _local4);
_local1.vPosition = Math.max(0, Math.min(_local3, _local1.maxVPosition));
_local1.dispatchEvent({type:"scroll", direction:"vertical", position:_local1.vPosition});
}
}
function createChildren(Void) {
super.createChildren();
if (mask_mc == undefined) {
mask_mc = createObject("BoundingBox", "mask_mc", MASK_DEPTH);
}
mask_mc._visible = false;
}
function invalidate(Void) {
super.invalidate();
}
function draw(Void) {
size();
}
function size(Void) {
super.size();
}
function scrollProxy(docObj) {
_parent.onScroll(docObj);
}
function onScroll(docObj) {
var _local3 = docObj.target;
var _local2 = _local3.scrollPosition;
if (_local3 == vScroller) {
var _local4 = "vertical";
var _local5 = "__vPosition";
} else {
var _local4 = "horizontal";
var _local5 = "__hPosition";
}
this[_local5] = _local2;
dispatchEvent({type:"scroll", direction:_local4, position:_local2});
}
function setEnabled(v) {
vScroller.enabled = (hScroller.enabled = v);
}
function childLoaded(obj) {
super.childLoaded(obj);
obj.setMask(mask_mc);
}
static var symbolName = "ScrollView";
static var symbolOwner = mx.core.ScrollView;
static var version = "2.0.2.127";
var className = "ScrollView";
var __vScrollPolicy = "auto";
var __hScrollPolicy = "off";
var __vPosition = 0;
var __hPosition = 0;
var numberOfCols = 0;
var rowC = 0;
var columnWidth = 1;
var rowH = 0;
var heightPadding = 0;
var widthPadding = 0;
var MASK_DEPTH = 10000;
}
Symbol 363 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 361 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 362 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 1039 MovieClip [__Packages.mx.controls.streamingmedia.IPlayer] Frame 0
interface mx.controls.streamingmedia.IPlayer
{
}
Symbol 1040 MovieClip [__Packages.mx.controls.streamingmedia.AbstractPlayer] Frame 0
class mx.controls.streamingmedia.AbstractPlayer
{
var _playing;
function AbstractPlayer () {
_playing = false;
}
function isPlaying() {
return(_playing);
}
function get playing() {
return(isPlaying());
}
function setPlaying(flag) {
_playing = flag;
}
}
Symbol 1041 MovieClip [__Packages.mx.controls.streamingmedia.RTMPPlayer] Frame 0
class mx.controls.streamingmedia.RTMPPlayer extends mx.controls.streamingmedia.AbstractPlayer implements mx.controls.streamingmedia.IPlayer
{
var _mediaUrl, _mediaType, _videoHolder, _video, _totalTime, _listeners, _connectTimeOutId, _protocol, _port, _appUrl, _streamName, setPlaying, _isLoaded, _isLoading, _isPlayPending, _nc_rtmp, _nc_rtmpt, _playHeadPos, _isPausing, _sound, isPlaying, _ns, _videoHeight, _videoWidth, _conn_Id, _isSeeking, _momentaryPlayId, _statusCount, _checkCompleteId;
function RTMPPlayer (aMediaUrl, aMediaType, aVideoHolder, aTotalTime) {
super();
if (((aMediaUrl == null) || (aVideoHolder == null)) || (aTotalTime == null)) {
}
_mediaUrl = aMediaUrl;
_mediaType = aMediaType;
_videoHolder = aVideoHolder;
_video = _videoHolder._video;
_totalTime = aTotalTime;
_listeners = new Array();
_connectTimeOutId = null;
init();
}
function init() {
var _local2;
_local2 = _mediaUrl.indexOf(":");
if (_local2 == -1) {
}
_protocol = _mediaUrl.substring(0, _local2).toLowerCase();
if (((_protocol != "rtmp") && (_protocol != "rtmps")) && (_protocol != "rtmpt")) {
}
var _local3 = _mediaUrl.substring(_local2 + 1, _mediaUrl.length);
_port = null;
var _local5 = _local3.indexOf(":");
if (_local5 != -1) {
_port = _local3.substring(_local5 + 1, _local3.length);
var _local4 = _port.indexOf("/");
if ((_local4 != -1) && (_local4 < _local5)) {
_port = _port.substring(0, _local4);
} else {
_port = null;
}
}
_local2 = _local3.lastIndexOf("/");
if (_local2 == -1) {
}
_appUrl = _local3.substring(0, _local2);
_streamName = _local3.substring(_local2 + 1, _local3.length);
if (_streamName.length == 0) {
}
if (_mediaType == mx.controls.streamingmedia.StreamingMediaConstants.FLV_MEDIA_TYPE) {
_local2 = _streamName.indexOf(".");
if (_local2 != -1) {
var _local6;
_local6 = _streamName.substring(_local2).toLowerCase();
if (_local6 == ".flv") {
_streamName = _streamName.substring(0, _local2);
}
}
_streamName = "flv:" + _streamName;
} else if (_mediaType == mx.controls.streamingmedia.StreamingMediaConstants.MP3_MEDIA_TYPE) {
_local2 = _streamName.indexOf(".");
if (_local2 != -1) {
var _local6 = _streamName.substring(_local2).toLowerCase();
if (_local6 == ".mp3") {
_streamName = _streamName.substring(0, _local2);
}
}
_streamName = "mp3:" + _streamName;
}
setPlaying(false);
_isLoaded = false;
_isLoading = false;
_isPlayPending = false;
_nc_rtmp = null;
_nc_rtmpt = null;
_playHeadPos = 0;
setSeeking(false);
_isPausing = false;
_sound = new Sound(_videoHolder);
setVolume(mx.controls.streamingmedia.StreamingMediaConstants.DEFAULT_VOLUME);
}
function addListener(aListener) {
_listeners.push(aListener);
}
function removeAllListeners() {
_listeners.length = 0;
}
function broadcastEvent(status) {
var _local2 = 0;
while (_local2 < _listeners.length) {
_listeners[_local2].handlePlayer(this, status);
_local2++;
}
}
function bufferIsFull() {
broadcastEvent("start");
if (!isPlaying()) {
pause();
}
}
function resizeVideo() {
broadcastEvent("resizeVideo");
if (!isPlaying()) {
pause();
}
}
function toString() {
return("RTMPPlayer: Playing " + getMediaUrl());
}
function close() {
_ns.onStatus = null;
_ns.close();
_ns = null;
if (_nc_rtmp != null) {
_nc_rtmp.onStatus = null;
_nc_rtmp.close();
_nc_rtmp = null;
}
if (_nc_rtmpt != null) {
_nc_rtmpt.onStatus = null;
_nc_rtmpt.close();
_nc_rtmpt = null;
}
_video.clear();
}
function load() {
_isLoading = true;
actualConnect();
if (_connectTimeOutId != null) {
clearInterval(_connectTimeOutId);
_connectTimeOutId = null;
}
_connectTimeOutId = setInterval(this, "onConnectTimeOut", 60000);
}
function startStream(nc) {
clearInterval(_connectTimeOutId);
_connectTimeOutId = null;
_ns = new mx.controls.streamingmedia.PlayerNetStream(nc, this);
if (_mediaType == mx.controls.streamingmedia.StreamingMediaConstants.FLV_MEDIA_TYPE) {
_video.attachVideo(_ns);
}
_video.attachVideo(_ns);
_videoHeight = _video.height;
_videoWidth = _video.width;
_ns.setBufferTime(5);
_videoHolder.attachAudio(_ns);
_ns.play(_streamName, 0, -1);
_isLoading = false;
_isLoaded = true;
_videoHolder._visible = false;
setPlaying(false);
if (_isPlayPending) {
play(null);
} else {
_isPausing = false;
pause();
}
}
function onConnectTimeOut() {
clearInterval(_connectTimeOutId);
_connectTimeOutId = null;
if (_nc_rtmpt != null) {
_nc_rtmpt.onStatus = null;
_nc_rtmpt.close();
_nc_rtmpt = null;
}
if (_nc_rtmp != null) {
_nc_rtmp.onStatus = null;
_nc_rtmp.close();
_nc_rtmp = null;
}
_isLoading = false;
_isLoaded = false;
}
function actualConnect() {
if (_protocol == "rtmp") {
_nc_rtmp = new mx.controls.streamingmedia.RTMPConnection(this);
_nc_rtmp.onStatus = function (info) {
if (info.code == "NetConnection.Connect.Success") {
clearInterval(this._player._conn_Id);
this._nc_rtmpt.onStatus = null;
this._nc_rtmpt.close();
this._nc_rtmpt = null;
this._player.startStream(this);
this.popConnection();
}
};
_nc_rtmp.connect("rtmp:" + _appUrl, _streamName);
}
if ((_protocol == "rtmpt") || ((_protocol == "rtmp") && (_port == null))) {
_nc_rtmpt = new mx.controls.streamingmedia.RTMPConnection(this);
_nc_rtmpt.onStatus = function (info) {
if (info.code == "NetConnection.Connect.Success") {
this._nc_rtmp.onStatus = null;
this._nc_rtmp.close();
this._nc_rtmp = null;
this._player.startStream(this);
this.popConnection();
}
};
if (_protocol == "rtmpt") {
_nc_rtmpt.connect("rtmpt:" + _appUrl, _streamName);
} else {
clearInterval(_conn_Id);
_conn_Id = setInterval(this, "connectRtmpt", 3000);
}
}
}
function connectRtmpt() {
clearInterval(_conn_Id);
_nc_rtmpt.connect("rtmpt:" + _appUrl, _streamName);
}
function play(startingPoint) {
setPlaying(true);
if (startingPoint != null) {
_playHeadPos = startingPoint;
}
if (_isLoading || (!_isLoaded)) {
_isPlayPending = true;
if (!_isLoaded) {
load();
}
return(undefined);
}
_isPlayPending = false;
_isPausing = false;
_ns.pause(false);
_ns.seek(_playHeadPos);
}
function pause() {
if (!_isPausing) {
_ns.pause(true);
_isPausing = true;
_isPlayPending = false;
_playHeadPos = _ns.time;
setPlaying(false);
}
}
function stop() {
pause();
setPlayheadTime(0);
}
function getPlayheadTime() {
return(_ns.time);
}
function setPlayheadTime(position) {
_playHeadPos = position;
if (!_isSeeking) {
_ns.seek(position);
setSeeking(true);
}
if (mx.controls.streamingmedia.StreamingMediaConstants.SCRUBBING) {
} else if (!isPlaying()) {
_ns.pause(false);
clearInterval(_momentaryPlayId);
_momentaryPlayId = setInterval(this, "doneUpdateFrame", 50);
}
}
function doneUpdateFrame() {
clearInterval(_momentaryPlayId);
_momentaryPlayId = null;
_ns.pause(true);
}
function playStopped() {
_statusCount = 2;
clearInterval(_checkCompleteId);
_checkCompleteId = setInterval(this, "checkComplete", 50);
}
function checkComplete() {
if (_ns.bufferLength <= 0.001) {
if (_statusCount <= 0) {
clearInterval(_checkCompleteId);
_checkCompleteId = null;
pause();
broadcastEvent("complete");
} else {
_statusCount = _statusCount - 1;
}
}
}
function getMediaUrl() {
return(_mediaUrl);
}
function setMediaUrl(aUrl) {
_mediaUrl = aUrl;
_isLoaded = false;
var _local3 = isPlaying();
var _local2 = getVolume();
close();
init();
setVolume(_local2);
if (_local3) {
play(0);
} else {
load();
}
}
function getVolume() {
return(_sound.getVolume());
}
function setVolume(aVol) {
_sound.setVolume(aVol);
}
function getMediaBytesLoaded() {
return(_ns.bytesLoaded);
}
function getMediaBytesTotal() {
return(_ns.bytesTotal);
}
function getTotalTime() {
return(_totalTime);
}
function setTotalTime(aTime) {
_totalTime = aTime;
}
function mediaLoaded() {
}
function logError(error) {
}
function isSizeSet() {
if ((_video.width > 0) && (_video.height > 0)) {
return(true);
}
return(false);
}
function isSizeChange() {
if ((_video.width != _videoWidth) || (_video.height != _videoHeight)) {
_videoWidth = _video.width;
_videoHeight = _video.height;
return(true);
}
return(false);
}
function setSeeking(isSeeking) {
_isSeeking = isSeeking;
}
}
Symbol 1042 MovieClip [__Packages.mx.controls.streamingmedia.RTMPConnection] Frame 0
class mx.controls.streamingmedia.RTMPConnection extends NetConnection
{
static var _connectFlag;
var _player, _targetURI, _streamName;
function RTMPConnection (player) {
super();
_player = player;
}
function onMetaData(info) {
_player.setTotalTime(info.duration);
}
function connect(targetURI, streamName) {
if (_connectFlag == true) {
pushConnection(targetURI, streamName);
return(undefined);
}
_connectFlag = true;
super.connect(targetURI, streamName);
popConnection();
}
function pushConnection(targetURI, streamName) {
_targetURI = targetURI;
_streamName = streamName;
_connectorQueue.push(this);
}
function popConnection() {
_connectFlag = false;
if (_connectorQueue.length != 0) {
var _local1 = mx.controls.streamingmedia.RTMPConnection(_connectorQueue.pop());
_local1.connect(_local1._targetURI, _local1._streamName);
}
}
static var _connectorQueue = new Array();
}
Symbol 1043 MovieClip [__Packages.mx.controls.streamingmedia.PlayerNetStream] Frame 0
class mx.controls.streamingmedia.PlayerNetStream extends NetStream
{
var _player, detectedFirstBuffer, initId, checkSizeInterval;
function PlayerNetStream (nc, aPlayer) {
super(nc);
setPlayer(aPlayer);
}
function getPlayer() {
return(_player);
}
function get player() {
return(getPlayer());
}
function setPlayer(aPlayer) {
_player = aPlayer;
}
function set player(aPlayer) {
setPlayer(aPlayer);
//return(player);
}
function pause(shouldPause) {
super.pause(shouldPause);
}
function setBufferTime(time) {
super.setBufferTime(time);
}
function play(name, st, len, reset) {
super.play(name, st, len, reset);
}
function seek(offset) {
super.seek(offset);
}
function close() {
super.close();
}
function attachAudio(theMicrophone) {
super.attachAudio(theMicrophone);
}
function attachVideo(theCamera, snapshotMilliseconds) {
super.attachVideo(theCamera, snapshotMilliseconds);
}
function onStatus(info) {
var _local2 = getPlayer();
switch (info.code) {
case "NetStream.Buffer.Full" :
break;
case "NetStream.Play.Start" :
detectedFirstBuffer = false;
clearInterval(initId);
checkSizeInterval = 10;
initId = setInterval(this, "detect", checkSizeInterval);
break;
case "NetStream.Pause.Notify" :
break;
case "NetStream.Play.Stop" :
clearInterval(initId);
_local2.playStopped();
break;
case "NetStream.Play.Failed" :
case "NetStream.Play.StreamNotFound" :
var _local3;
_local3 = "Error playing URL: " + info.description;
_local2.logError(_local3);
break;
case "NetStream.Seek.Notify" :
_local2.setSeeking(false);
}
}
function detect() {
var _local2 = getPlayer();
if ((!detectedFirstBuffer) && (_local2.isSizeSet())) {
detectedFirstBuffer = true;
_local2.bufferIsFull();
}
if (_local2.isSizeChange()) {
_local2.resizeVideo();
}
clearInterval(initId);
checkSizeInterval = checkSizeInterval * 2;
initId = setInterval(this, "detect", checkSizeInterval);
}
function onMetaData(info) {
var _local2 = getPlayer();
if (_local2 instanceof mx.controls.streamingmedia.FLVPlayer) {
var _local3 = mx.controls.streamingmedia.FLVPlayer(_local2);
_local3.setTotalTime(info.duration);
} else if (_local2 instanceof mx.controls.streamingmedia.RTMPPlayer) {
var _local4 = mx.controls.streamingmedia.RTMPPlayer(_local2);
_local4.setTotalTime(info.duration);
}
}
}
Symbol 1044 MovieClip [__Packages.mx.controls.streamingmedia.FLVPlayer] Frame 0
class mx.controls.streamingmedia.FLVPlayer extends mx.controls.streamingmedia.AbstractPlayer implements mx.controls.streamingmedia.IPlayer
{
var _mediaUrl, _videoHolder, _video, _totalTime, _listeners, setPlaying, _isLoaded, _sound, isPlaying, _ns, _nc, _videoHeight, _videoWidth, _momentaryPlayId;
function FLVPlayer (aMediaUrl, aVideoHolder, aTotalTime) {
super();
if (((aMediaUrl == null) || (aVideoHolder == null)) || (aTotalTime == null)) {
}
_mediaUrl = aMediaUrl;
_videoHolder = aVideoHolder;
_video = _videoHolder._video;
_totalTime = aTotalTime;
init();
}
function init() {
_listeners = new Array();
setPlaying(false);
_isLoaded = false;
_sound = new Sound(_videoHolder);
setVolume(mx.controls.streamingmedia.StreamingMediaConstants.DEFAULT_VOLUME);
}
function addListener(aListener) {
_listeners.push(aListener);
}
function removeAllListeners() {
_listeners.length = 0;
}
function broadcastEvent(status) {
var _local2 = 0;
while (_local2 < _listeners.length) {
_listeners[_local2].handlePlayer(this, status);
_local2++;
}
}
function bufferIsFull() {
broadcastEvent("start");
if (!isPlaying()) {
pause();
}
}
function resizeVideo() {
broadcastEvent("resizeVideo");
if (!isPlaying()) {
pause();
}
}
function toString() {
return("FLVPlayer: Playing " + getMediaUrl());
}
function close() {
_ns.close();
_nc.close();
_video.clear();
}
function load() {
_nc = new NetConnection();
_nc.connect(null);
_ns = new mx.controls.streamingmedia.PlayerNetStream(_nc, this);
assignBufferTime();
_video.attachVideo(_ns);
_videoHeight = _video.height;
_videoWidth = _video.width;
_videoHolder.attachAudio(_ns);
_ns.play(_mediaUrl);
_isLoaded = true;
_videoHolder._visible = false;
setPlaying(false);
}
function assignBufferTime() {
var _local2 = _totalTime / 4;
if (_local2 < 0.1) {
_local2 = 0.1;
} else if (_local2 > 5) {
_local2 = 5;
}
_ns.setBufferTime(_local2);
}
function play(startingPoint) {
if (!_isLoaded) {
load();
}
if (startingPoint != null) {
_ns.seek(startingPoint);
}
_ns.pause(false);
setPlaying(true);
}
function pause() {
_ns.pause(true);
setPlaying(false);
}
function stop() {
pause();
setPlayheadTime(0);
}
function getPlayheadTime() {
return(_ns.time);
}
function setPlayheadTime(position) {
_ns.seek(position);
if (mx.controls.streamingmedia.StreamingMediaConstants.SCRUBBING) {
} else if (!isPlaying()) {
_ns.pause(false);
_momentaryPlayId = setInterval(this, "doneUpdateFrame", 50);
}
}
function doneUpdateFrame() {
clearInterval(_momentaryPlayId);
_momentaryPlayId = null;
_ns.pause(true);
}
function playStopped() {
pause();
broadcastEvent("complete");
}
function getMediaUrl() {
return(_mediaUrl);
}
function setMediaUrl(aUrl) {
_mediaUrl = aUrl;
_isLoaded = false;
if (isPlaying()) {
play(0);
} else {
load();
}
}
function getVolume() {
return(_sound.getVolume());
}
function setVolume(aVol) {
_sound.setVolume(aVol);
}
function getMediaBytesLoaded() {
return(_ns.bytesLoaded);
}
function getMediaBytesTotal() {
return(_ns.bytesTotal);
}
function getTotalTime() {
return(_totalTime);
}
function setTotalTime(aTime) {
_totalTime = aTime;
assignBufferTime();
}
function mediaLoaded() {
}
function logError(error) {
}
function isSizeSet() {
if ((_video.width > 0) && (_video.height > 0)) {
return(true);
}
return(false);
}
function isSizeChange() {
if ((_video.width != _videoWidth) || (_video.height != _videoHeight)) {
_videoWidth = _video.width;
_videoHeight = _video.height;
return(true);
}
return(false);
}
function setSeeking(isSeeking) {
}
}
Symbol 1045 MovieClip [__Packages.mx.controls.streamingmedia.MP3Player] Frame 0
class mx.controls.streamingmedia.MP3Player extends mx.controls.streamingmedia.AbstractPlayer implements mx.controls.streamingmedia.IPlayer
{
var _mediaUrl, _soundHolder, _positionOnLoad, _listeners, _sound, _volume, _recentPosition, _loaded, setPlaying, isPlaying;
function MP3Player (aMediaUrl, aSoundHolder) {
super();
if ((aMediaUrl == null) || (aSoundHolder == null)) {
}
_mediaUrl = aMediaUrl;
_soundHolder = aSoundHolder;
init();
}
function willStop() {
return(_positionOnLoad == STOP);
}
function init() {
_listeners = new Array();
_sound = new Sound(_soundHolder);
_volume = mx.controls.streamingmedia.StreamingMediaConstants.DEFAULT_VOLUME;
var _local3 = Object(_sound);
_local3.player = this;
_sound.onSoundComplete = function () {
var _local3 = Object(this);
var _local2 = _local3.player;
_local2.setPlaying(false);
_local2.broadcastEvent("complete");
};
_recentPosition = 0;
_loaded = false;
_positionOnLoad = STOP;
setPlaying(false);
}
function playStarted() {
_loaded = true;
initializeVolume();
if (_positionOnLoad == STOP) {
stop();
} else {
play(_positionOnLoad);
}
}
function addListener(aListener) {
_listeners.push(aListener);
}
function removeAllListeners() {
_listeners.length = 0;
}
function broadcastEvent(status) {
var _local2 = 0;
while (_local2 < _listeners.length) {
_listeners[_local2].handlePlayer(this, status);
_local2++;
}
}
function load() {
setPlaying(true);
_positionOnLoad = STOP;
_sound.loadSound(_mediaUrl, true);
_sound.setVolume(0);
}
function play(startingPoint) {
if (startingPoint == null) {
startingPoint = _recentPosition;
}
if (_loaded) {
_sound.start(startingPoint);
} else {
_positionOnLoad = startingPoint;
_sound.loadSound(_mediaUrl, true);
_sound.setVolume(0);
}
setPlaying(true);
}
function pause() {
_recentPosition = _sound.position / 1000;
_sound.stop();
setPlaying(false);
}
function stop() {
_recentPosition = 0;
_sound.stop();
setPlaying(false);
}
function getPlayheadTime() {
var _local2 = (isPlaying() ? (_sound.position / 1000) : (_recentPosition));
return(_local2);
}
function setPlayheadTime(aPosition) {
_recentPosition = aPosition;
if (isPlaying()) {
play(aPosition);
}
}
function getMediaUrl() {
return(_mediaUrl);
}
function setMediaUrl(aUrl) {
_loaded = false;
_mediaUrl = aUrl;
if (isPlaying()) {
play(0);
} else {
_recentPosition = 0;
load();
}
}
function getVolume() {
return(_volume);
}
function setVolume(aVol) {
_sound.setVolume(aVol);
_volume = aVol;
}
function initializeVolume() {
setVolume(_volume);
}
function getMediaBytesLoaded() {
return(_sound.getBytesLoaded());
}
function getMediaBytesTotal() {
return(_sound.getBytesTotal());
}
function getTotalTime() {
var _local2 = (_sound.duration * _sound.getBytesTotal()) / _sound.getBytesLoaded();
return(_local2 / 1000);
}
function bufferIsFull() {
}
function resizeVideo() {
}
function playStopped() {
}
function mediaLoaded() {
}
function close() {
_sound.stop();
}
function logError(error) {
}
function isSizeSet() {
return(false);
}
function isSizeChange() {
return(false);
}
function setSeeking(isSeeking) {
}
static var STOP = -1;
}
Symbol 879 MovieClip [__Packages.mx.controls.MediaPlayback] Frame 0
class mx.controls.MediaPlayback extends mx.core.UIComponent implements mx.controls.streamingmedia.ICuePointHolder
{
var _width, _height, _deadPreview, initCuePointTimes, initCuePointNames, _totalTime, _aspectRatio, _autoSize, _autoPlay, _mediaType, _contentPath, attachMovie, _controllerPolicy, _display, _controller, _enabled, tabEnabled, tabChildren, redraw, __get__width, __get__height, _chrome, width, height, dispatchEvent, invalidate, _controlPlacement;
function MediaPlayback () {
super();
}
function init(Void) {
initializeParameters();
var _local4 = _width;
var _local7 = _height;
_deadPreview._visible = false;
super.init();
var _local3 = {contentPath:_contentPath, mediaType:_mediaType, autoPlay:_autoPlay, autoSize:_autoSize, aspectRatio:_aspectRatio, totalTime:_totalTime, initCuePointNames:initCuePointNames, initCuePointTimes:initCuePointTimes};
attachMovie("MediaDisplay", "_display", 1, _local3);
var _local8 = (_autoPlay ? (mx.controls.streamingmedia.StreamingMediaConstants.PAUSE_PLAY_CONTROL) : (mx.controls.streamingmedia.StreamingMediaConstants.PLAY_PLAY_CONTROL));
var _local5 = ((_mediaType == "MP3") ? "default" : "none");
var _local6 = (controlPlacement == "top") || (controlPlacement == "bottom");
_local3 = {horizontal:_local6, controllerPolicy:_controllerPolicy, backgroundStyle:_local5, activePlayControl:_local8};
attachMovie("MediaController", "_controller", 2, _local3);
setSize(_local4, _local7, true);
_display.associateController(_controller);
_controller.addEventListener("click", this);
_controller.addEventListener("playheadChange", this);
_controller.addEventListener("volume", this);
_controller.addEventListener("scrubbing", this);
_display.addEventListener("change", this);
_display.addEventListener("progress", this);
_display.addEventListener("start", this);
_display.addEventListener("resizeVideo", this);
_display.addEventListener("cuePoint", this);
_display.addEventListener("complete", this);
_enabled = true;
tabEnabled = false;
tabChildren = true;
redraw(true);
}
function initializeParameters() {
if (mediaType == null) {
mediaType = ("FLV");
}
if (totalTime == null) {
totalTime = (0);
}
if (contentPath == null) {
contentPath = ("");
}
if (autoPlay == null) {
autoPlay = (true);
}
if (autoSize == null) {
autoSize = (true);
}
if (aspectRatio == null) {
aspectRatio = (true);
}
if (controllerPolicy == null) {
controllerPolicy = ("auto");
}
if (controlPlacement == null) {
controlPlacement = ("bottom");
}
}
function draw(Void) {
if (_mediaType == "MP3") {
drawMP3();
} else {
drawFLV();
}
}
function drawMP3() {
_display._x = 0;
_display._y = 0;
_controller._x = 0;
_controller._y = 0;
_controller.setSize(__get__width(), __get__height(), true);
_controller.__set__backgroundStyle("default");
_controller.setOpenUpOrLeft(false);
_controller.redraw(true);
_chrome.visible = false;
_chrome.showToggles = false;
_chrome.draw();
}
function drawFLV() {
drawChrome();
drawFLVController();
drawFLVDisplay();
}
function drawChrome() {
var _local3;
var _local2;
if (_controller.__get__horizontal()) {
_local2 = (__get__height() - _controller.getMinimumOpenHeight()) + _controller.getMinimumClosedHeight();
_local3 = width;
} else {
_local3 = (__get__width() - _controller.getMinimumOpenWidth()) + _controller.getMinimumClosedWidth();
_local2 = height;
}
var _local5 = __get__width();
var _local4 = __get__height();
var _local7 = ((_controllerPolicy == "on") ? (_local5) : (_local3));
var _local6 = ((_controllerPolicy == "on") ? (_local4) : (_local2));
var _local8 = isTopControlPlacement() || (isLeftControlPlacement());
_chrome._x = 0;
_chrome._y = 0;
if (isTopControlPlacement() && ((_controllerPolicy == "off") || (_controllerPolicy == "auto"))) {
_chrome._y = _controller.getMinimumOpenHeight() - _controller.getMinimumClosedHeight();
} else if (isLeftControlPlacement() && ((_controllerPolicy == "off") || (_controllerPolicy == "auto"))) {
_chrome._x = _controller.getMinimumOpenWidth() - _controller.getMinimumClosedWidth();
}
_chrome.visible = true;
_chrome.showToggles = true;
_chrome.setSize(_local7, _local6);
_chrome.draw();
addSecondChrome(_chrome, _local2, _local4, _local3, _local5, _local8);
}
function drawFLVController() {
if (isBottomControlPlacement()) {
_controller.setSize(__get__width(), _controller.getMinimumOpenHeight(), true);
_controller.__set__horizontal(true);
_controller._x = 0;
_controller._y = __get__height() - _controller.__get__height();
} else if (isTopControlPlacement()) {
_controller.setSize(__get__width(), _controller.getMinimumOpenHeight(), true);
_controller.__set__horizontal(true);
_controller.setOpenUpOrLeft(true);
_controller._x = 0;
if (_controllerPolicy == "on") {
_controller._y = 0;
} else {
_controller._y = _controller.__get__height() - _controller.getMinimumClosedHeight();
}
} else if (isRightControlPlacement()) {
_controller.setSize(_controller.getMinimumOpenWidth(), __get__height(), true);
_controller.__set__horizontal(false);
_controller._x = __get__width() - _controller.__get__width();
_controller._y = 0;
} else if (isLeftControlPlacement()) {
_controller.setSize(_controller.getMinimumOpenWidth(), __get__height(), true);
_controller.__set__horizontal(false);
_controller.setOpenUpOrLeft(true);
if (_controllerPolicy == "on") {
_controller._x = 0;
} else {
_controller._x = _controller.__get__width() - _controller.getMinimumClosedWidth();
}
_controller._y = 0;
}
_controller.__set__backgroundStyle("none");
_controller.invalidate();
}
function drawFLVDisplay() {
displaySetProperSize();
var _local3 = 0;
var _local2 = 0;
if (isTopControlPlacement()) {
_local2 = _controller.height;
} else if (isLeftControlPlacement()) {
_local3 = _controller.width;
}
_display._x = _local3 + H_BORDER;
_display._y = _local2 + V_BORDER;
}
function displaySetProperSize() {
var _local2 = __get__width() - (H_BORDER * 2);
var _local3 = __get__height() - (V_BORDER * 2);
if (isBottomControlPlacement() || (isTopControlPlacement())) {
_local3 = _local3 - _controller.height;
} else {
_local2 = _local2 - _controller.width;
}
if (_autoSize && ((_display.__get__preferredWidth() > _local2) || (_display.__get__preferredHeight() > _local3))) {
_display.__set__autoSize(false);
_display.__set__aspectRatio(true);
} else {
_display.__set__autoSize(_autoSize);
_display.__set__aspectRatio(_aspectRatio);
}
_display.setSize(_local2, _local3, true);
_display.invalidate();
}
function handleEvent(ev) {
ev.target = this;
dispatchEvent(ev);
if (ev.type == "start") {
if (_mediaType == "FLV") {
_display.makeVideoVisible = true;
redraw(true);
} else if (_mediaType == "MP3") {
_controller.setPlaying(_display.__get__playing());
}
}
if (ev.type == "resizeVideo") {
if (_mediaType == "FLV") {
_display.makeVideoVisible = true;
redraw(true);
}
}
}
function toString() {
return("MediaPlayback: media=" + _contentPath);
}
function getController() {
return(_controller);
}
function isRtmp(mediaUrl) {
if (_display != null) {
return(_display.isRtmp(mediaUrl));
}
return(false);
}
function load() {
_display.load();
}
function play(startingPoint) {
_display.play(startingPoint);
_controller.setPlaying(true);
}
function pause() {
_display.pause();
_controller.setPlaying(false);
}
function stop() {
_display.stop();
_controller.setPlaying(false);
}
function get autoSize() {
if (_display != null) {
_autoSize = _display.autoSize;
}
return(_autoSize);
}
function set autoSize(flag) {
_autoSize = flag;
if (_display != null) {
displaySetProperSize();
invalidate();
}
//return(autoSize);
}
function get aspectRatio() {
if (_display != null) {
_aspectRatio = _display.aspectRatio;
}
return(_aspectRatio);
}
function set aspectRatio(flag) {
_aspectRatio = flag;
if (_display != null) {
displaySetProperSize();
invalidate();
}
//return(aspectRatio);
}
function get autoPlay() {
if (_display != null) {
_autoPlay = _display.autoPlay;
}
return(_autoPlay);
}
function set autoPlay(flag) {
_autoPlay = flag;
if (_display != null) {
_display.__set__autoPlay(flag);
}
//return(autoPlay);
}
function get playheadTime() {
return(_display.__get__playheadTime());
}
function set playheadTime(position) {
_display.__set__playheadTime(position);
//return(playheadTime);
}
function get contentPath() {
if (_display != null) {
_contentPath = _display.contentPath;
}
return(_contentPath);
}
function set contentPath(aUrl) {
_contentPath = aUrl;
if (_display != null) {
if (!_settingMedia) {
_display.__set__contentPath(aUrl);
}
_mediaType = _display.mediaType;
}
//return(contentPath);
}
function get volume() {
return(_display.__get__volume());
}
function set volume(aVol) {
_display.__set__volume(aVol);
_controller.__set__volume(aVol);
//return(volume);
}
function get playing() {
return(_display.__get__playing());
}
function get preferredWidth() {
return(_display.__get__preferredWidth());
}
function get preferredHeight() {
return(_display.__get__preferredHeight());
}
function get bytesLoaded() {
return(_display.__get__bytesLoaded());
}
function get bytesTotal() {
return(_display.__get__bytesTotal());
}
function get mediaType() {
if (_display != null) {
_mediaType = _display.mediaType;
}
return(_mediaType);
}
function set mediaType(aType) {
_mediaType = aType;
if (_display != null) {
_display.__set__mediaType(aType);
if (aType == "MP3") {
_controller.__set__backgroundStyle("none");
removeSecondChrome();
} else {
_controller.__set__backgroundStyle("default");
drawChrome();
}
invalidate();
}
//return(mediaType);
}
function setMedia(aUrl, aType) {
_settingMedia = true;
var _local5 = _mediaType;
_display.setMedia(aUrl, aType);
if (aType == null) {
var _local3 = aUrl.substr(-3);
if ((_local3 == "flv") || (_local3 == "FLV")) {
aType = "FLV";
} else if ((_local3 == "mp3") || (_local3 == "MP3")) {
aType = "MP3";
} else {
aType = _mediaType;
}
}
if (_local5 != aType) {
mediaType = (aType);
}
contentPath = (aUrl);
_settingMedia = false;
}
function get totalTime() {
if (_display != null) {
_totalTime = _display.totalTime;
}
return(_totalTime);
}
function set totalTime(aTime) {
_totalTime = aTime;
if (_display != null) {
_display.__set__totalTime(_totalTime);
}
//return(totalTime);
}
function getCuePoints() {
return(_display.getCuePoints());
}
function get cuePoints() {
return(getCuePoints());
}
function setCuePoints(cp) {
var _local2 = 0;
while (_local2 < cp.length) {
cp[_local2].playback = this;
_local2++;
}
_display.__set__cuePoints(cp);
}
function set cuePoints(cp) {
setCuePoints(cp);
//return(cuePoints);
}
function getCuePoint(pointName) {
return(_display.getCuePoint(pointName));
}
function addCuePoint(aName, aTime) {
var _local2 = new mx.controls.streamingmedia.CuePoint(aName, aTime);
_local2.playback = this;
addCuePointObject(_local2);
}
function addCuePointObject(aCuePoint) {
aCuePoint.playback = this;
_display.addCuePointObject(aCuePoint);
}
function removeCuePoint(aCuePoint) {
_display.removeCuePoint(aCuePoint);
}
function removeAllCuePoints() {
_display.removeAllCuePoints();
}
function get mostRecentCuePoint() {
return(_display.__get__mostRecentCuePoint());
}
function get mostRecentCuePointName() {
return(_display.__get__mostRecentCuePointName());
}
function get mostRecentCuePointTime() {
return(_display.__get__mostRecentCuePointTime());
}
function get controllerPolicy() {
if (_controller != null) {
_controllerPolicy = _controller.controllerPolicy;
}
return(_controllerPolicy);
}
function set controllerPolicy(aPolicy) {
_controllerPolicy = aPolicy;
if (_controller != null) {
_controller.__set__controllerPolicy(aPolicy);
}
//return(controllerPolicy);
}
function addSecondChrome(theChrome, closedHeight, openHeight, closedWidth, openWidth, fixedEnd) {
_controller.addSecondChrome(theChrome, closedHeight, openHeight, closedWidth, openWidth, fixedEnd);
}
function removeSecondChrome() {
_controller.removeSecondChrome();
}
function getMinimumOpenHeight() {
return(_controller.getMinimumOpenHeight());
}
function getMinimumOpenWidth() {
return(_controller.getMinimumOpenWidth());
}
function getMinimumClosedHeight() {
return(_controller.getMinimumClosedHeight());
}
function getMinimumClosedWidth() {
return(_controller.getMinimumClosedWidth());
}
function expand(force) {
_controller.expand(force);
}
function contract(force) {
_controller.contract(force);
}
function get controlPlacement() {
return(_controlPlacement);
}
function set controlPlacement(aPos) {
_controlPlacement = aPos;
if (_controller != null) {
var _local2 = isTopControlPlacement() || (isLeftControlPlacement());
_controller.setOpenUpOrLeft(_local2);
var _local3 = isTopControlPlacement() || (isBottomControlPlacement());
_controller.__set__horizontal(_local3);
invalidate();
}
//return(controlPlacement);
}
function isTopControlPlacement() {
return(_controlPlacement == TOP_CONTROL_POSITION);
}
function isBottomControlPlacement() {
return(_controlPlacement == BOTTOM_CONTROL_POSITION);
}
function isLeftControlPlacement() {
return(_controlPlacement == LEFT_CONTROL_POSITION);
}
function isRightControlPlacement() {
return(_controlPlacement == RIGHT_CONTROL_POSITION);
}
function displayFull() {
var _local2 = _chrome.getOneToggle();
_local2.displayFull(false);
}
function displayNormal() {
var _local2 = _chrome.getOneToggle();
_local2.displayNormal(false);
}
function setSize(w, h, noEvent) {
w = Math.max(w, _controller.getMinimumOpenWidth() + 17);
h = Math.max(h, _controller.getMinimumOpenHeight() + 17);
super.setSize(w, h, noEvent);
invalidate();
}
function get enabled() {
return(_enabled);
}
function set enabled(is) {
_enabled = is;
_display.__set__enabled(is);
_controller.__set__enabled(is);
_chrome.setEnabled(is);
//return(enabled);
}
static var symbolName = "MediaPlayback";
static var symbolOwner = mx.controls.MediaPlayback;
var className = "MediaPlayback";
static var version = "2.0.2.126";
var clipParameters = {mediaType:"FLV", contentPath:"", totalTime:0, autoSize:true, autoPlay:true, controllerPolicy:"auto", initCuePointNames:new Array(), initCuePointTimes:new Array(), controlPlacement:"bottom", fps:30};
static var TOP_CONTROL_POSITION = "top";
static var BOTTOM_CONTROL_POSITION = "bottom";
static var LEFT_CONTROL_POSITION = "left";
static var RIGHT_CONTROL_POSITION = "right";
static var H_BORDER = 8;
static var V_BORDER = 8;
var _settingMedia = false;
}
Symbol 1144 MovieClip [__Packages.de.pbswine.animation.textSpinIn] Frame 0
class de.pbswine.animation.textSpinIn
{
function textSpinIn () {
}
function createEffect(t, position, format, targetMC1) {
if (!targetMC1) {
targetMC1 = _root;
}
var _local3 = targetMC1.createEmptyMovieClip("textAnimHolder_" + targetMC1.getNextHighestDepth(), targetMC1.getNextHighestDepth());
var _local5 = createText(t, position, format, _local3);
_local3.chars = _local5;
animateLetters(_local5, _local3);
return(_local3);
}
function createText(t, position, format, targetMC) {
var _local11 = [];
if (position._x) {
var _local9 = position._x;
var _local12 = position._y;
} else if (position.x) {
var _local9 = position.x;
var _local12 = position.y;
} else {
trace("warning: no valid position data provided!");
var _local9 = 10;
var _local12 = 10;
}
if (!format.size) {
format.color = 17;
}
if (format.color == undefined) {
format.color = 15635746 /* 0xEE9522 */;
}
if (!format.font) {
format.font = "font01";
}
var _local3 = 0;
while (_local3 <= t.length) {
var _local7 = t.substr(_local3, 1);
var _local6 = format.size;
var _local5 = format.color;
var _local8 = format.font;
var _local2 = createLetter(_local7, _local6, _local5, _local8, targetMC);
_local2._x = _local9;
_local2._y = _local12;
var _local9 = _local9 + (_local2._width - 3);
_local11.push(_local2);
_local3++;
}
return(_local11);
}
function createLetter(letter, size, color, font, targetMC) {
var _local1 = targetMC.createEmptyMovieClip("letterMC_" + targetMC.getNextHighestDepth(), targetMC.getNextHighestDepth());
var _local2 = new TextFormat();
_local2.font = font;
_local2.size = size;
_local2.color = color;
_local1.createTextField("my_txt", 1, -5, -13.85, 50, 25);
_local1.my_txt._quality("BEST");
_local1.my_txt.text = letter;
_local1.my_txt.selectable = false;
_local1.my_txt.embedFonts = true;
_local1.my_txt.antiAliasType = "advanced";
_local1.my_txt.gridFitType = "subpixel";
_local1.my_txt.sharpness = -100;
_local1.my_txt.autoSize = true;
_local1.my_txt.setTextFormat(_local2);
return(_local1);
}
function animateLetters(characters, targetMC) {
for (var _local4 in characters) {
characters[_local4]._alpha = 0;
characters[_local4]._xscale = 0;
characters[_local4]._x = characters[_local4]._x + 3;
if (_local4 == (characters.length - 1)) {
characters[_local4].isLast = 1;
}
}
var _local7 = targetMC.createEmptyMovieClip("txtTimeline" + targetMC.getNextHighestDepth(), targetMC.getNextHighestDepth());
_local7.onEnterFrame = function () {
if (!_root.pauseTextAnim) {
if (!this.frame) {
this.frame = 0;
}
this.frame++;
var _local5 = (this.frame * this.frame) * 0.1;
var _local4 = 0;
while (_local4 <= _local5) {
var _local3 = characters[_local4];
if (_local3._alpha <= 100) {
if (_local3._xscale <= 100) {
_local3._xscale = _local3._xscale + 15;
}
_local3._alpha = _local3._alpha + 10;
} else if (_local3.isLast) {
delete this.onEnterFrame;
}
_local4++;
}
}
};
}
}
Symbol 1145 MovieClip [__Packages.type2] Frame 0
class type2
{
var mainContainer, yPos, controller;
function type2 () {
}
function init(container, y) {
function _onEnterFrame() {
if (!this.messageArr[0]._y) {
this.messageArr.shift();
var _local2 = 0;
while (_local2 < this.messageArr.length) {
this.messageArr[_local2].targetY = this.yPos - (_local2 * 14);
_local2++;
}
}
var _local2 = 0;
while (_local2 < this.messageArr.length) {
if (this.messageArr[_local2].targetY != this.messageArr[_local2]._y) {
var _local3 = this.messageArr[_local2].targetY - this.messageArr[_local2]._y;
this.messageArr[_local2]._y = this.messageArr[_local2]._y + (_local3 / 4);
if (Math.abs(_local3) < 0.2) {
this.messageArr[_local2]._y = this.messageArr[_local2].targetY;
}
}
_local2++;
}
}
if (container) {
mainContainer = container;
} else {
mainContainer = _root;
}
if (y) {
yPos = y;
} else {
yPos = Stage.height - 23;
}
controller = mainContainer.createEmptyMovieClip("timeline_" + mainContainer.getNextHighestDepth(), mainContainer.getNextHighestDepth());
controller.onEnterFrame = mx.utils.Delegate.create(this, _onEnterFrame);
}
function typeMessage(txt, col) {
var _local2 = mainContainer.createEmptyMovieClip("messageObj_" + mainContainer.getNextHighestDepth(), mainContainer.getNextHighestDepth());
_local2.cArr = [];
_local2.yPos = yPos;
_local2._y = yPos - (messageArr.length * 14);
_local2.totalWidth = 0;
_local2.txt = " " + txt.toLowerCase();
_local2.delay = 20;
_local2.col = col;
_local2.typePos = 0;
_local2.id = messageArr.length;
var _local12 = messageArr.length;
messageArr.push(_local2);
while (_local2.txt.substr(++_local2.typePos, 1)) {
var _local4 = makeCharacter(_local2.txt.substr(_local2.typePos, 1), _local2.col, _local2);
var _local5 = _local4[0];
var _local6 = _local4[1];
_local2.cArr.push(_local5);
_local5._x = _local2.totalWidth;
_local2.totalWidth = _local2.totalWidth + _local6;
}
var _local8 = new flash.display.BitmapData(Stage.width, 16, true, 0);
for (var _local10 in _local2.cArr) {
var _local3 = new flash.geom.Matrix();
_local3.translate(_local2.cArr[_local10]._x, -5);
_local8.draw(_local2.cArr[_local10], _local3);
_local2.cArr[_local10].removeMovieClip();
}
var _local9 = _local2.createEmptyMovieClip("txt", _local2.getNextHighestDepth());
_local9.attachBitmap(_local8, new flash.geom.Matrix());
_local9._y = 6;
var _local7 = _local2.createEmptyMovieClip("mask", _local2.getNextHighestDepth());
_local7.tWidth = _local9._width;
_local7.beginFill(16711680);
_local7.moveTo(0, 6);
_local7.lineTo(10, 6);
_local7.lineTo(10, 36);
_local7.lineTo(0, 36);
_local7.lineTo(0, 6);
_local7.endFill();
_local7.onEnterFrame = function () {
var _local2 = this.tWidth - this._width;
this._width = this._width + (_local2 / 25);
if (Math.abs(this.tWidth - this._width) < 0.5) {
this.removeMovieClip();
}
};
_local9.setMask(_local7);
_local2.clearer = setInterval(clearMessage, 4000, _local2);
}
function makeCharacter(c, col, container) {
var _local5 = container.createEmptyMovieClip("char_" + container.getNextHighestDepth(), container.getNextHighestDepth());
_local5.createTextField("my_txt", 2, 0, 0, 50, 50);
_local5.my_txt._quality("BEST");
_local5.my_txt.multiline = true;
_local5.my_txt.text = c;
_local5.my_txt.selectable = false;
_local5.my_txt.wordWrap = true;
_local5.my_txt.embedFonts = true;
_local5.my_txt.antiAliasType = "advanced";
_local5.my_txt.gridFitType = "subpixel";
_local5.my_txt.sharpness = 1000;
var _local9 = new TextFormat();
_local9.font = "font03";
_local9.size = 14;
_local9.color = "0xFFFFFF";
_local5.my_txt.setTextFormat(_local9);
var _local10 = _local9.getTextExtent(c);
var _local3 = _local10.width - 3;
var _local4 = _local10.height - 12;
var _local1 = 1;
var _local2 = -8;
if ((c == "f") || (c == "p")) {
var _local6 = _local5.createEmptyMovieClip("bg", 1);
_local6.beginFill(col);
_local6.moveTo(0 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, (_local4 * 0.6) + _local2);
_local6.lineTo((_local3 * 0.5) + _local1, (_local4 * 0.6) + _local2);
_local6.lineTo((_local3 * 0.5) + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, 0 + _local2);
_local6.endFill();
} else if (c == "j") {
var _local6 = _local5.createEmptyMovieClip("bg", 1);
_local6.beginFill(col);
_local6.moveTo((_local3 * 0.5) + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, (_local4 * 0.5) + _local2);
_local6.lineTo((_local3 * 0.5) + _local1, (_local4 * 0.5) + _local2);
_local6.lineTo((_local3 * 0.5) + _local1, 0 + _local2);
_local6.endFill();
} else if (c == "l") {
var _local6 = _local5.createEmptyMovieClip("bg", 1);
_local6.beginFill(col);
_local6.moveTo(0 + _local1, 0 + _local2);
_local6.lineTo((_local3 * 0.5) + _local1, 0 + _local2);
_local6.lineTo((_local3 * 0.5) + _local1, (_local4 * 0.6) + _local2);
_local6.lineTo(_local3 + _local1, (_local4 * 0.6) + _local2);
_local6.lineTo(_local3 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, 0 + _local2);
_local6.endFill();
} else if (c == "t") {
_local1 = _local1 + 1;
_local3 = _local3 - 3;
var _local6 = _local5.createEmptyMovieClip("bg", 1);
_local6.beginFill(col);
_local6.moveTo(0 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, 0 + _local2);
_local6.endFill();
_local1 = _local1 - 1;
_local3 = _local3 + 2;
_local4 = _local4 * 0.3;
_local6.beginFill(col);
_local6.moveTo(0 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, 0 + _local2);
_local6.endFill();
} else if (c == "y") {
_local1 = _local1 + 1;
_local3 = _local3 - 4;
var _local6 = _local5.createEmptyMovieClip("bg", 1);
_local6.beginFill(col);
_local6.moveTo(0 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, 0 + _local2);
_local6.endFill();
_local1 = _local1 - 1;
_local3 = _local3 + 2;
_local4 = _local4 * 0.7;
_local6.beginFill(col);
_local6.moveTo(0 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, 0 + _local2);
_local6.endFill();
} else if (c != " ") {
var _local6 = _local5.createEmptyMovieClip("bg", 1);
_local6.beginFill(col);
_local6.moveTo(0 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, 0 + _local2);
_local6.endFill();
}
_local6._x = 2;
_local6._y = 17;
return(new Array(_local5, _local10.width - 1));
}
function animateChar(target) {
target.aniPos = 0;
target._visible = false;
target.onEnterFrame = function () {
this.aniPos++;
var _local2 = 0.015 * Math.pow(this.id, 2);
if (this.aniPos >= _local2) {
this._visible = true;
delete this.onEnterFrame;
}
};
}
function clearMessage(target) {
clearInterval(target.clearer);
target.flashFrame = 0;
target.onEnterFrame = function () {
if ((this.flashFrame++) % 2) {
this._alpha = 0;
} else {
this._alpha = 100;
}
if (this.flashFrame == 12) {
this.removeMovieClip();
}
};
}
var messageArr = new Array();
}
Symbol 1146 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 1147 MovieClip [__Packages.type3] Frame 0
class type3
{
var mainContainer, yPos, controller;
function type3 () {
}
function init(container, y) {
function _onEnterFrame() {
if (!this.messageArr[0]._y) {
this.messageArr.shift();
var _local2 = 0;
while (_local2 < this.messageArr.length) {
this.messageArr[_local2].targetY = this.yPos - (_local2 * 14);
_local2++;
}
}
var _local2 = 0;
while (_local2 < this.messageArr.length) {
if (this.messageArr[_local2].targetY != this.messageArr[_local2]._y) {
var _local3 = this.messageArr[_local2].targetY - this.messageArr[_local2]._y;
this.messageArr[_local2]._y = this.messageArr[_local2]._y + (_local3 / 4);
if (Math.abs(_local3) < 0.2) {
this.messageArr[_local2]._y = this.messageArr[_local2].targetY;
}
}
_local2++;
}
}
if (container) {
mainContainer = container;
} else {
mainContainer = _root;
}
if (y) {
yPos = y;
} else {
yPos = Stage.height / 2;
}
controller = mainContainer.createEmptyMovieClip("timeline_" + mainContainer.getNextHighestDepth(), mainContainer.getNextHighestDepth());
controller.onEnterFrame = mx.utils.Delegate.create(this, _onEnterFrame);
}
function typeMessage(txt, col, onFinish) {
var _local2 = mainContainer.createEmptyMovieClip("messageObj_" + mainContainer.getNextHighestDepth(), mainContainer.getNextHighestDepth());
_local2.cArr = [];
_local2.yPos = yPos;
_local2._x = 0;
_local2._y = yPos - (messageArr.length * 14);
_local2.totalWidth = 0;
_local2.totalHeight = 0;
_local2.txt = " " + txt.toLowerCase();
_local2.delay = 20;
_local2.col = col;
_local2.typePos = 0;
_local2.id = messageArr.length;
var _local10 = messageArr.length;
var _local4 = [];
while (_local2.txt.substr(++_local2.typePos, 1)) {
var _local5 = _local2.txt.substr(_local2.typePos, 1);
var _local6 = makeCharacter(_local5, _local2.col, _local2);
var _local3 = _local6[0];
var _local8 = _local6[1];
var _local7 = _local6[2];
_local4.push(_local3);
_local2.cArr.push(_local3);
_local3._x = _local2.totalWidth;
_local3._y = _local2.totalHeight;
if (((_local5 == " ") && (_local2.totalWidth >= (Stage.width - 150))) || (_local5 == "#")) {
for (var _local9 in _local4) {
_local4[_local9]._x = _local4[_local9]._x + ((Stage.width / 2) - (_local2.totalWidth / 2));
}
_local4 = Array(_local3);
_local2.totalWidth = -_local8;
_local2.totalHeight = _local2.totalHeight + ((_local7 / 2) + 5);
_local2._y = _local2._y - (_local7 / 2);
}
if (_local5 == "#") {
_local3._y = -999;
}
if (_local2.typePos < (_local2.txt.length - 7)) {
_local3.delay = _local2.typePos / 2;
} else {
_local3.delay = ((_local2.txt.length - 7) / 2) + ((_local2.typePos - (_local2.txt.length - 7)) * 2);
}
_local3.letterCount = _local2.txt.length;
animateChar(_local3);
_local2.totalWidth = _local2.totalWidth + _local8;
}
for (var _local9 in _local4) {
_local4[_local9]._x = _local4[_local9]._x + ((Stage.width / 2) - (_local2.totalWidth / 2));
}
_local2.clearer = setInterval(clearMessage, 3000, _local2, onFinish);
}
function makeCharacter(c, col, container) {
var _local5 = container.createEmptyMovieClip("char_" + container.getNextHighestDepth(), container.getNextHighestDepth());
_local5.createTextField("my_txt", 2, 0, 0, 100, 100);
_local5.my_txt._quality("BEST");
_local5.my_txt.multiline = true;
_local5.my_txt.text = c;
_local5.my_txt.selectable = false;
_local5.my_txt.wordWrap = true;
_local5.my_txt.embedFonts = true;
_local5.my_txt.antiAliasType = "advanced";
_local5.my_txt.gridFitType = "subpixel";
_local5.my_txt.sharpness = 1000;
var _local10 = new TextFormat();
_local10.font = "font03";
_local10.size = 36;
_local10.color = "0xFFFFFF";
_local5.my_txt.setTextFormat(_local10);
var _local8 = _local10.getTextExtent(c);
var _local3 = _local8.width - 4;
var _local4 = _local8.height - 30;
var _local1 = 1;
var _local2 = -19;
if ((c == "f") || (c == "p")) {
var _local6 = _local5.createEmptyMovieClip("bg", 1);
_local6.beginFill(col);
_local6.moveTo(0 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, (_local4 * 0.7) + _local2);
_local6.lineTo((_local3 * 0.5) + _local1, (_local4 * 0.7) + _local2);
_local6.lineTo((_local3 * 0.5) + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, 0 + _local2);
_local6.endFill();
} else if (c == "j") {
var _local6 = _local5.createEmptyMovieClip("bg", 1);
_local6.beginFill(col);
_local6.moveTo((_local3 * 0.5) + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, (_local4 * 0.5) + _local2);
_local6.lineTo((_local3 * 0.5) + _local1, (_local4 * 0.5) + _local2);
_local6.lineTo((_local3 * 0.5) + _local1, 0 + _local2);
_local6.endFill();
} else if (c == ":") {
_local2 = _local2 + 8;
_local4 = _local4 - 8;
_local3 = _local3 - 2;
var _local6 = _local5.createEmptyMovieClip("bg", 1);
_local6.beginFill(col);
_local6.moveTo(0 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, 0 + _local2);
_local6.endFill();
} else if (c == "l") {
var _local6 = _local5.createEmptyMovieClip("bg", 1);
_local6.beginFill(col);
_local6.moveTo(0 + _local1, 0 + _local2);
_local6.lineTo((_local3 * 0.5) + _local1, 0 + _local2);
_local6.lineTo((_local3 * 0.5) + _local1, (_local4 * 0.6) + _local2);
_local6.lineTo(_local3 + _local1, (_local4 * 0.6) + _local2);
_local6.lineTo(_local3 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, 0 + _local2);
_local6.endFill();
} else if (c == "t") {
_local1 = _local1 + 2;
_local3 = _local3 - 7;
var _local6 = _local5.createEmptyMovieClip("bg", 1);
_local6.beginFill(col);
_local6.moveTo(0 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, 0 + _local2);
_local6.endFill();
_local1 = _local1 - 1;
_local3 = _local3 + 2;
_local4 = _local4 * 0.3;
_local6.beginFill(col);
_local6.moveTo(0 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, 0 + _local2);
_local6.endFill();
} else if (c == "!") {
_local3 = _local3 - 2;
var _local6 = _local5.createEmptyMovieClip("bg", 1);
_local6.beginFill(col);
_local6.moveTo(0 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, 0 + _local2);
_local6.endFill();
} else if (c == "y") {
_local1 = _local1 + 2;
_local3 = _local3 - 12;
var _local6 = _local5.createEmptyMovieClip("bg", 1);
_local6.beginFill(col);
_local6.moveTo(0 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, 0 + _local2);
_local6.endFill();
_local1 = _local1 - 1;
_local3 = _local3 + 4;
_local4 = _local4 * 0.7;
_local6.beginFill(col);
_local6.moveTo(0 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, 0 + _local2);
_local6.endFill();
} else if (c != " ") {
var _local6 = _local5.createEmptyMovieClip("bg", 1);
_local6.beginFill(col);
_local6.moveTo(0 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, 0 + _local2);
_local6.lineTo(_local3 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, _local4 + _local2);
_local6.lineTo(0 + _local1, 0 + _local2);
_local6.endFill();
}
_local6._x = 2;
_local6._y = 40;
_local6._x = _local6._x - (_local8.width / 2);
_local6._y = _local6._y - (_local8.height / 2);
_local5.my_txt._x = _local5.my_txt._x - (_local8.width / 2);
_local5.my_txt._y = _local5.my_txt._y - (_local8.height / 2);
if (c == "i") {
_local6._x = _local6._x - 3;
_local5.my_txt._x = _local5.my_txt._x - 3;
}
return(new Array(_local5, _local8.width - 1, _local8.height));
}
function animateChar(target) {
target.aniPos = 0;
target._visible = false;
target.onEnterFrame = function () {
this.aniPos++;
var _local3 = target.delay;
if (this.aniPos >= _local3) {
this._visible = true;
this._xscale = 600;
this._yscale = 600;
this.onEnterFrame = function () {
var _local2 = 100 - this._xscale;
this._xscale = this._xscale + (_local2 / 3);
this._yscale = this._yscale + (_local2 / 3);
if (this._xscale < 102) {
this._xscale = 100;
this._yscale = 100;
delete this.onEnterFrame;
}
};
}
};
}
function clearMessage(target, onFinish) {
clearInterval(target.clearer);
target.flashFrame = 0;
target.onEnterFrame = function () {
if ((this.flashFrame++) % 2) {
this._alpha = 0;
} else {
this._alpha = 100;
}
if (this.flashFrame == 12) {
onFinish();
this.removeMovieClip();
}
};
}
var messageArr = new Array();
}
Symbol 1148 MovieClip [__Packages.collisionHandling] Frame 0
class collisionHandling
{
var engine, head;
function collisionHandling () {
engine = new org.cove.flade.DynamicsEngine();
engine.setDamping(1);
engine.setGlobalFriction(0.3);
engine.setGravity(0, 0);
engine.setSurfaceBounce(0);
engine.setSurfaceFriction(0.8);
var _local4 = _root.startX;
var _local3 = _root.startY;
var _local5 = _root.level.header.spawnRotation;
head = new org.cove.flade.composites.SpringBox(_local4, _local3, 70, 40, _local5, engine);
_root.collEngine = engine;
_root.collBox = head;
engine.paintSurfaces();
}
function calcAngle(t1, t2) {
var _local7 = t1._x;
if (!_local7) {
_local7 = t1.x;
}
var _local5 = t1._y;
if (!_local5) {
_local5 = t1.y;
}
var _local6 = t2._x;
if (!_local6) {
_local6 = t2.x;
}
var _local4 = t2._y;
if (!_local4) {
_local4 = t2.y;
}
if (t2._parent && (t2._parent != _root)) {
_local6 = (t2._x + t2._parent._x) + t2._parent._parent._x;
_local4 = (t2._y + t2._parent._y) + t2._parent._parent._y;
}
var _local12 = _local7 - _local6;
var _local10 = _local5 - _local4;
var _local9 = _local12 / _local10;
var _local11 = Math.atan(_local9);
var _local13 = (_local11 * 180) / Math.PI;
var _local3 = _local13;
if (_local5 > _local4) {
_local3 = 90 - _local3;
} else if (_local5 < _local4) {
_local3 = 180 - (_local3 - 90);
}
if (_local3 == 90) {
_local3 = 1;
}
trace(_local3);
return(_local3);
}
static function main() {
var _local2 = new collisionHandling();
_root.collisionHandling0 = _local2;
}
}
Symbol 1149 MovieClip [__Packages.org.cove.flade.DynamicsEngine] Frame 0
class org.cove.flade.DynamicsEngine
{
var primitives, surfaces, constraints, gravity, coeffRest, coeffFric, coeffDamp, globalFriction;
function DynamicsEngine () {
primitives = new Array();
surfaces = new Array();
constraints = new Array();
gravity = new org.cove.flade.util.Vector(0, 1);
coeffRest = 1.5;
coeffFric = 0.01;
coeffDamp = 0.5;
}
function addPrimitive(p) {
primitives.push(p);
}
function addSurface(s) {
surfaces.push(s);
}
function addConstraint(c) {
constraints.push(c);
}
function paintSurfaces() {
var _local2 = 0;
while (_local2 < surfaces.length) {
surfaces[_local2].paint();
_local2++;
}
}
function paintPrimitives() {
var _local2 = 0;
while (_local2 < primitives.length) {
primitives[_local2].paint();
_local2++;
}
}
function paintConstraints() {
var _local2 = 0;
while (_local2 < constraints.length) {
constraints[_local2].paint();
_local2++;
}
}
function timeStep() {
verlet();
satisfyConstraints();
checkCollisions();
}
function addSurf(x1, y1, x2, y2) {
var _local1 = new org.cove.flade.surfaces.LineSurface(x1, y1, x2, y2);
return(_local1);
}
function addKicker(x, y, r) {
var _local1 = new org.cove.flade.surfaces.CircleTile(x, y, r);
return(_local1);
}
function setSurfaceBounce(kfr) {
coeffRest = 1 + kfr;
}
function setSurfaceFriction(f) {
coeffFric = f;
}
function setDamping(d) {
coeffDamp = d;
}
function setGlobalFriction(d) {
globalFriction = d;
}
function setGravity(gx, gy) {
gravity.x = gx;
gravity.y = gy;
}
function verlet() {
var _local2 = 0;
while (_local2 < primitives.length) {
primitives[_local2].verlet(this);
_local2++;
}
}
function satisfyConstraints() {
var _local2 = 0;
while (_local2 < constraints.length) {
constraints[_local2].resolve();
_local2++;
}
}
function checkCollisions() {
var _local4 = 0;
while (_local4 < surfaces.length) {
var _local3 = surfaces[_local4];
if (_local3.getActiveState()) {
var _local2 = 0;
while (_local2 < primitives.length) {
primitives[_local2].checkCollision(_local3, this);
_local2++;
}
}
_local4++;
}
}
}
Symbol 1150 MovieClip [__Packages.org.cove.flade.util.Vector] Frame 0
class org.cove.flade.util.Vector
{
var x, y;
function Vector (px, py) {
x = px;
y = py;
}
function setTo(px, py) {
x = px;
y = py;
}
function copy(v) {
x = v.x;
y = v.y;
}
function dot(v) {
return((x * v.x) + (y * v.y));
}
function cross(v) {
return((x * v.y) - (y * v.x));
}
function plus(v) {
x = x + v.x;
y = y + v.y;
return(this);
}
function plusNew(v) {
return(new org.cove.flade.util.Vector(x + v.x, y + v.y));
}
function minus(v) {
x = x - v.x;
y = y - v.y;
return(this);
}
function minusNew(v) {
return(new org.cove.flade.util.Vector(x - v.x, y - v.y));
}
function mult(s) {
x = x * s;
y = y * s;
return(this);
}
function multNew(s) {
return(new org.cove.flade.util.Vector(x * s, y * s));
}
function distance(v) {
var _local3 = x - v.x;
var _local2 = y - v.y;
return(Math.sqrt((_local3 * _local3) + (_local2 * _local2)));
}
function normalize() {
var _local2 = Math.sqrt((x * x) + (y * y));
x = x / _local2;
y = y / _local2;
return(this);
}
function magnitude() {
return(Math.sqrt((x * x) + (y * y)));
}
function project(b) {
var _local5 = dot(b);
var _local4 = (b.x * b.x) + (b.y * b.y);
var _local3 = new org.cove.flade.util.Vector(0, 0);
_local3.x = (_local5 / _local4) * b.x;
_local3.y = (_local5 / _local4) * b.y;
return(_local3);
}
}
Symbol 1151 MovieClip [__Packages.org.cove.flade.primitives.Particle] Frame 0
class org.cove.flade.primitives.Particle
{
var init, curr, prev, temp, extents, bmin, bmax, mtd, isVisible, dmc;
function Particle (posX, posY) {
init = new org.cove.flade.util.Vector(posX, posY);
curr = new org.cove.flade.util.Vector(posX, posY);
prev = new org.cove.flade.util.Vector(posX, posY);
temp = new org.cove.flade.util.Vector(0, 0);
extents = new org.cove.flade.util.Vector(0, 0);
bmin = 0;
bmax = 0;
mtd = new org.cove.flade.util.Vector(0, 0);
initializeContainer();
isVisible = true;
}
function initializeContainer() {
var _local3 = _root.collisionDisplay.getNextHighestDepth();
var _local4 = "_2_" + _local3;
dmc = _root.collisionDisplay.createEmptyMovieClip(_local4, _local3);
_root.collisionDisplay.dmcs.push(dmc);
}
function setVisible(v) {
isVisible = v;
}
function verlet(sysObj) {
temp.x = curr.x;
temp.y = curr.y;
curr.x = curr.x + (((sysObj.coeffDamp * (curr.x - prev.x)) * (1 - sysObj.globalFriction)) + sysObj.gravity.x);
curr.y = curr.y + (((sysObj.coeffDamp * (curr.y - prev.y)) * (1 - sysObj.globalFriction)) + sysObj.gravity.y);
prev.x = temp.x;
prev.y = temp.y;
}
function pin() {
curr.x = init.x;
curr.y = init.y;
prev.x = init.x;
prev.y = init.y;
}
function setPos(px, py) {
curr.x = px;
curr.y = py;
prev.x = px;
prev.y = py;
}
function getCardXProjection() {
bmin = curr.x - extents.x;
bmax = curr.x + extents.x;
}
function getCardYProjection() {
bmin = curr.y - extents.y;
bmax = curr.y + extents.y;
}
function getAxisProjection(axis) {
var _local5 = new org.cove.flade.util.Vector(Math.abs(axis.x), Math.abs(axis.y));
var _local2 = curr.dot(axis);
var _local3 = extents.dot(_local5);
bmin = _local2 - _local3;
bmax = _local2 + _local3;
}
function setMTD(depthX, depthY, depthN, surfNormal) {
var _local4 = Math.abs(depthX);
var _local3 = Math.abs(depthY);
var _local2 = Math.abs(depthN);
if ((_local4 < _local3) && (_local4 < _local2)) {
mtd.setTo(depthX, 0);
} else if ((_local3 < _local4) && (_local3 < _local2)) {
mtd.setTo(0, depthY);
} else if ((_local2 < _local4) && (_local2 < _local3)) {
mtd = surfNormal.multNew(depthN);
}
}
function setXYMTD(depthX, depthY) {
var _local3 = Math.abs(depthX);
var _local2 = Math.abs(depthY);
if (_local3 < _local2) {
mtd.setTo(depthX, 0);
} else {
mtd.setTo(0, depthY);
}
}
function resolveCollision(normal, sysObj) {
var _local2 = curr.minusNew(prev);
var _local3 = normal.dot(_local2);
var _local8 = _local2.minusNew(normal.multNew(_local3));
var _local4 = _local8.multNew(sysObj.coeffFric);
var _local5 = normal.multNew(_local3 * sysObj.coeffRest);
var _local6 = _local5.plusNew(_local4);
var _local7 = _local2.minusNew(_local6);
curr.plus(mtd);
prev = curr.minusNew(_local7);
}
function paint() {
}
function checkCollision(surface, sysObj) {
}
}
Symbol 1152 MovieClip [__Packages.org.cove.flade.surfaces.Surface] Frame 0
interface org.cove.flade.surfaces.Surface
{
}
Symbol 1153 MovieClip [__Packages.org.cove.flade.primitives.CircleParticle] Frame 0
class org.cove.flade.primitives.CircleParticle extends org.cove.flade.primitives.Particle
{
var radius, contactRadius, extents, closestPoint, dmc, curr;
function CircleParticle (px, py, r) {
super(px, py);
radius = r;
contactRadius = r;
extents = new org.cove.flade.util.Vector(r, r);
closestPoint = new org.cove.flade.util.Vector(0, 0);
}
function paint() {
dmc.clear();
dmc.lineStyle(0, 6710886, 100);
org.cove.flade.graphics.Graphics.paintCircle(dmc, curr.x, curr.y, radius);
}
function checkCollision(surface, sysObj) {
surface.resolveCircleCollision(this, sysObj);
}
}
Symbol 1154 MovieClip [__Packages.org.cove.flade.graphics.Graphics] Frame 0
class org.cove.flade.graphics.Graphics
{
function Graphics () {
}
static function paintLine(dmc, x0, y0, x1, y1) {
dmc.moveTo(x0, y0);
dmc.lineTo(x1, y1);
}
static function paintCircle(dmc, x, y, r) {
var mtp8r = (0.414213562373095 * r);
var msp4r = (0.707106781186547 * r);
with (dmc) {
moveTo(x + r, y);
curveTo(r + x, mtp8r + y, msp4r + x, msp4r + y);
curveTo(mtp8r + x, r + y, x, r + y);
curveTo((-mtp8r) + x, r + y, (-msp4r) + x, msp4r + y);
curveTo((-r) + x, mtp8r + y, (-r) + x, y);
curveTo((-r) + x, (-mtp8r) + y, (-msp4r) + x, (-msp4r) + y);
curveTo((-mtp8r) + x, (-r) + y, x, (-r) + y);
curveTo(mtp8r + x, (-r) + y, msp4r + x, (-msp4r) + y);
curveTo(r + x, (-mtp8r) + y, r + x, y);
}
}
static function paintRectangle(dmc, x, y, w, h) {
var w2 = (w / 2);
var h2 = (h / 2);
with (dmc) {
moveTo(x - w2, y - h2);
lineTo(x + w2, y - h2);
lineTo(x + w2, y + h2);
lineTo(x - w2, y + h2);
lineTo(x - w2, y - h2);
}
}
}
Symbol 1155 MovieClip [__Packages.org.cove.flade.primitives.RectangleParticle] Frame 0
class org.cove.flade.primitives.RectangleParticle extends org.cove.flade.primitives.Particle
{
var width, height, vertex, extents, isVisible, dmc, curr;
function RectangleParticle (px, py, w, h) {
super(px, py);
width = w;
height = h;
vertex = new org.cove.flade.util.Vector(0, 0);
extents = new org.cove.flade.util.Vector(w / 2, h / 2);
}
function paint() {
if (isVisible) {
dmc.clear();
dmc.lineStyle(2, 6710886, 100);
org.cove.flade.graphics.Graphics.paintRectangle(dmc, curr.x, curr.y, 10, 10);
}
}
function checkCollision(surface, sysObj) {
surface.resolveRectangleCollision(this, sysObj);
}
}
Symbol 1156 MovieClip [__Packages.org.cove.flade.constraints.Constraint] Frame 0
interface org.cove.flade.constraints.Constraint
{
}
Symbol 1157 MovieClip [__Packages.org.cove.flade.surfaces.AbstractTile] Frame 0
class org.cove.flade.surfaces.AbstractTile
{
var center, verts, normal, isVisible, isActivated, dmc, minX, maxX, minY, maxY;
function AbstractTile (cx, cy) {
center = new org.cove.flade.util.Vector(cx, cy);
verts = new Array();
normal = new org.cove.flade.util.Vector(0, 0);
isVisible = true;
isActivated = true;
initializeContainer();
}
function initializeContainer() {
var _local3 = _root.collisionDisplay.getNextHighestDepth();
var _local4 = "_1_" + _local3;
dmc = _root.collisionDisplay.createEmptyMovieClip(_local4, _local3);
_root.collisionDisplay.dmcs.push(dmc);
}
function setVisible(v) {
isVisible = v;
}
function getVisibleState() {
return(isVisible);
}
function setActiveState(a) {
isActivated = a;
}
function getActiveState() {
return(isActivated);
}
function createBoundingRect(rw, rh) {
var _local2 = center.y - (rh / 2);
var _local3 = center.y + (rh / 2);
var _local5 = center.x - (rw / 2);
var _local4 = center.x + (rw / 2);
verts.push(new org.cove.flade.util.Vector(_local4, _local3));
verts.push(new org.cove.flade.util.Vector(_local4, _local2));
verts.push(new org.cove.flade.util.Vector(_local5, _local2));
verts.push(new org.cove.flade.util.Vector(_local5, _local3));
setCardProjections();
}
function testIntervals(boxMin, boxMax, tileMin, tileMax) {
if (boxMax < tileMin) {
return(0);
}
if (tileMax < boxMin) {
return(0);
}
var _local2 = tileMax - boxMin;
var _local1 = tileMin - boxMax;
if (Math.abs(_local2) < Math.abs(_local1)) {
return(_local2);
}
return(_local1);
}
function setCardProjections() {
getCardXProjection();
getCardYProjection();
}
function getCardXProjection() {
minX = verts[0].x;
var _local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].x < minX) {
minX = verts[_local2].x;
}
_local2++;
}
maxX = verts[0].x;
_local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].x > maxX) {
maxX = verts[_local2].x;
}
_local2++;
}
}
function getCardYProjection() {
minY = verts[0].y;
var _local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].y < minY) {
minY = verts[_local2].y;
}
_local2++;
}
maxY = verts[0].y;
_local2 = 1;
while (_local2 < verts.length) {
if (verts[_local2].y > maxY) {
maxY = verts[_local2].y;
}
_local2++;
}
}
function onContact() {
}
}
Symbol 1158 MovieClip [__Packages.org.cove.flade.surfaces.LineSurface] Frame 0
class org.cove.flade.surfaces.LineSurface extends org.cove.flade.surfaces.AbstractTile implements org.cove.flade.surfaces.Surface
{
var p1, p2, collNormal, dmc, onContact, faceNormal, collisionDepth, testIntervals, minY, maxY, minX, maxX, sideNormal, minS, maxS, minF, maxF, rise, run, sign, slope, invB, setCardProjections, p3, p4, verts;
function LineSurface (p1x, p1y, p2x, p2y) {
super(0, 0);
p1 = new org.cove.flade.util.Vector(p1x, p1y);
p2 = new org.cove.flade.util.Vector(p2x, p2y);
calcFaceNormal();
collNormal = new org.cove.flade.util.Vector(0, 0);
setCollisionDepth(30);
}
function paint() {
dmc.clear();
dmc.lineStyle(0, 2237064, 100);
org.cove.flade.graphics.Graphics.paintLine(dmc, p1.x, p1.y, p2.x, p2.y);
}
function resolveCircleCollision(p, sysObj) {
if (isCircleColliding(p)) {
onContact();
p.resolveCollision(faceNormal, sysObj);
}
}
function resolveRectangleCollision(p, sysObj) {
if (isRectangleColliding(p)) {
onContact();
p.resolveCollision(collNormal, sysObj);
}
}
function setCollisionDepth(d) {
collisionDepth = d;
precalculate();
}
function isCircleColliding(p) {
findClosestPoint(p.curr, p.closestPoint);
var _local3 = p.closestPoint.minusNew(p.curr);
_local3.normalize();
if (inequality(p.curr)) {
var _local5 = Math.abs(_local3.x);
_local3.x = ((faceNormal.x < 0) ? (_local5) : (-_local5));
_local3.y = Math.abs(_local3.y);
}
var _local4 = p.curr.plusNew(_local3.mult(p.radius));
if (segmentInequality(_local4)) {
if (_local4.distance(p.closestPoint) > collisionDepth) {
return(false);
}
var _local7 = _local4.x - p.closestPoint.x;
var _local6 = _local4.y - p.closestPoint.y;
p.mtd.setTo(-_local7, -_local6);
return(true);
}
return(false);
}
function isRectangleColliding(p) {
p.getCardYProjection();
var _local7 = testIntervals(p.bmin, p.bmax, minY, maxY);
if (_local7 == 0) {
return(false);
}
p.getCardXProjection();
var _local8 = testIntervals(p.bmin, p.bmax, minX, maxX);
if (_local8 == 0) {
return(false);
}
p.getAxisProjection(sideNormal);
var _local10 = testIntervals(p.bmin, p.bmax, minS, maxS);
if (_local10 == 0) {
return(false);
}
p.getAxisProjection(faceNormal);
var _local9 = testIntervals(p.bmin, p.bmax, minF, maxF);
if (_local9 == 0) {
return(false);
}
var _local4 = Math.abs(_local8);
var _local3 = Math.abs(_local7);
var _local6 = Math.abs(_local10);
var _local5 = Math.abs(_local9);
if (((_local4 <= _local3) && (_local4 <= _local6)) && (_local4 <= _local5)) {
p.mtd.setTo(_local8, 0);
collNormal.setTo(p.mtd.x / _local4, 0);
} else if (((_local3 <= _local4) && (_local3 <= _local6)) && (_local3 <= _local5)) {
p.mtd.setTo(0, _local7);
collNormal.setTo(0, p.mtd.y / _local3);
} else if (((_local5 <= _local4) && (_local5 <= _local3)) && (_local5 <= _local6)) {
p.mtd = faceNormal.multNew(_local9);
collNormal.copy(faceNormal);
} else if (((_local6 <= _local4) && (_local6 <= _local3)) && (_local6 <= _local5)) {
p.mtd = sideNormal.multNew(_local10);
collNormal.copy(sideNormal);
}
return(true);
}
function precalculate() {
rise = p2.y - p1.y;
run = p2.x - p1.x;
sign = ((run >= 0) ? 1 : -1);
slope = rise / run;
invB = 1 / ((run * run) + (rise * rise));
createRectangle();
calcSideNormal();
setCardProjections();
setAxisProjections();
}
function calcFaceNormal() {
faceNormal = new org.cove.flade.util.Vector(0, 0);
var _local3 = p2.x - p1.x;
var _local2 = p2.y - p1.y;
faceNormal.setTo(_local2, -_local3);
faceNormal.normalize();
}
function segmentInequality(toPoint) {
var _local2 = findU(toPoint);
var _local3 = inequality(toPoint);
return(((_local2 >= 0) && (_local2 <= 1)) && (_local3));
}
function inequality(toPoint) {
var _local2 = ((slope * (toPoint.x - p1.x)) + (p1.y - toPoint.y)) * sign;
return(_local2 <= 0);
}
function findClosestPoint(toPoint, returnVect) {
var _local2 = findU(toPoint);
if (_local2 <= 0) {
returnVect.copy(p1);
return(undefined);
}
if (_local2 >= 1) {
returnVect.copy(p2);
return(undefined);
}
var _local5 = p1.x + (_local2 * (p2.x - p1.x));
var _local4 = p1.y + (_local2 * (p2.y - p1.y));
returnVect.setTo(_local5, _local4);
}
function findU(p) {
var _local2 = ((p.x - p1.x) * run) + ((p.y - p1.y) * rise);
return(_local2 * invB);
}
function createRectangle() {
var _local5 = p2.x + ((-faceNormal.x) * collisionDepth);
var _local3 = p2.y + ((-faceNormal.y) * collisionDepth);
var _local4 = p1.x + ((-faceNormal.x) * collisionDepth);
var _local2 = p1.y + ((-faceNormal.y) * collisionDepth);
p3 = new org.cove.flade.util.Vector(_local5, _local3);
p4 = new org.cove.flade.util.Vector(_local4, _local2);
verts.push(p1);
verts.push(p2);
verts.push(p3);
verts.push(p4);
}
function setAxisProjections() {
var _local2;
minF = p2.dot(faceNormal);
maxF = p3.dot(faceNormal);
if (minF > maxF) {
_local2 = minF;
minF = maxF;
maxF = _local2;
}
minS = p1.dot(sideNormal);
maxS = p2.dot(sideNormal);
if (minS > maxS) {
_local2 = minS;
minS = maxS;
maxS = _local2;
}
}
function calcSideNormal() {
sideNormal = new org.cove.flade.util.Vector(0, 0);
var _local3 = p3.x - p2.x;
var _local2 = p3.y - p2.y;
sideNormal.setTo(_local2, -_local3);
sideNormal.normalize();
}
}
Symbol 1159 MovieClip [__Packages.org.cove.flade.surfaces.CircleTile] Frame 0
class org.cove.flade.surfaces.CircleTile extends org.cove.flade.surfaces.AbstractTile implements org.cove.flade.surfaces.Surface
{
var createBoundingRect, radius, isVisible, dmc, center, onContact, normal, testIntervals, minX, maxX, minY, maxY;
function CircleTile (cx, cy, r) {
super(cx, cy);
createBoundingRect(r * 2, r * 2);
radius = r;
}
function paint() {
if (isVisible) {
dmc.clear();
dmc.lineStyle(0, 2237064, 100);
org.cove.flade.graphics.Graphics.paintCircle(dmc, center.x, center.y, radius);
} else {
dmc.clear();
}
}
function resolveCircleCollision(p, sysObj) {
if (isCircleColliding(p)) {
onContact();
p.resolveCollision(normal, sysObj);
}
}
function resolveRectangleCollision(p, sysObj) {
if (isRectangleColliding(p)) {
onContact();
p.resolveCollision(normal, sysObj);
}
}
function isCircleColliding(p) {
p.getCardXProjection();
var _local8 = testIntervals(p.bmin, p.bmax, minX, maxX);
if (_local8 == 0) {
return(false);
}
p.getCardYProjection();
var _local7 = testIntervals(p.bmin, p.bmax, minY, maxY);
if (_local7 == 0) {
return(false);
}
var _local4 = center.x - p.curr.x;
var _local3 = center.y - p.curr.y;
var _local5 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
var _local6 = (p.radius + radius) - _local5;
if (_local6 > 0) {
_local4 = _local4 / _local5;
_local3 = _local3 / _local5;
p.mtd.setTo((-_local4) * _local6, (-_local3) * _local6);
normal.setTo(-_local4, -_local3);
return(true);
}
return(false);
}
function isRectangleColliding(p) {
p.getCardXProjection();
var _local6 = testIntervals(p.bmin, p.bmax, minX, maxX);
if (_local6 == 0) {
return(false);
}
p.getCardYProjection();
var _local5 = testIntervals(p.bmin, p.bmax, minY, maxY);
if (_local5 == 0) {
return(false);
}
var _local11 = Math.abs(_local6) < radius;
var _local12 = Math.abs(_local5) < radius;
if (_local11 && (_local12)) {
var _local10 = p.curr.x + (sign(center.x - p.curr.x) * (p.width / 2));
var _local9 = p.curr.y + (sign(center.y - p.curr.y) * (p.height / 2));
p.vertex.setTo(_local10, _local9);
var _local4 = p.vertex.x - center.x;
var _local3 = p.vertex.y - center.y;
var _local8 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
var _local7 = radius - _local8;
if (_local7 > 0) {
_local4 = _local4 / _local8;
_local3 = _local3 / _local8;
p.mtd.setTo(_local4 * _local7, _local3 * _local7);
normal.setTo(_local4, _local3);
return(true);
}
return(false);
}
p.setXYMTD(_local6, _local5);
normal.setTo(p.mtd.x / Math.abs(_local6), p.mtd.y / Math.abs(_local5));
return(true);
}
function sign(val) {
if (val < 0) {
return(-1);
}
if (val > 0) {
return(1);
}
}
}
Symbol 1160 MovieClip [__Packages.org.cove.flade.composites.SpringBox] Frame 0
class org.cove.flade.composites.SpringBox
{
var p0, p1, p2, p3, p4, p5;
function SpringBox (px, py, w, h, rotation, engine) {
var _local13 = rotatePoint(new flash.geom.Point((-w) / 2, (-h) / 2), rotation);
var _local12 = rotatePoint(new flash.geom.Point(w / 2, (-h) / 2), rotation);
var _local11 = rotatePoint(new flash.geom.Point(w / 2, h / 2), rotation);
var _local9 = rotatePoint(new flash.geom.Point((-w) / 2, h / 2), rotation);
var _local8 = rotatePoint(new flash.geom.Point(((-w) / 2) - 10, 0), rotation);
var _local7 = rotatePoint(new flash.geom.Point((w / 2) + 10, 0), rotation);
p0 = new org.cove.flade.primitives.RectangleParticle(_local13.x + px, _local13.y + py, 5, 5);
p1 = new org.cove.flade.primitives.RectangleParticle(_local12.x + px, _local12.y + py, 5, 5);
p2 = new org.cove.flade.primitives.RectangleParticle(_local11.x + px, _local11.y + py, 5, 5);
p3 = new org.cove.flade.primitives.RectangleParticle(_local9.x + px, _local9.y + py, 5, 5);
p4 = new org.cove.flade.primitives.RectangleParticle(_local8.x + px, _local8.y + py, 5, 5);
p5 = new org.cove.flade.primitives.RectangleParticle(_local7.x + px, _local7.y + py, 5, 5);
p0.setVisible(true);
p1.setVisible(true);
p2.setVisible(true);
p3.setVisible(true);
p4.setVisible(true);
p5.setVisible(true);
engine.addPrimitive(p0);
engine.addPrimitive(p1);
engine.addPrimitive(p2);
engine.addPrimitive(p3);
engine.addPrimitive(p4);
engine.addPrimitive(p5);
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p0, p1));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p1, p2));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p2, p3));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p3, p0));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p0, p4));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p3, p4));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p1, p5));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p2, p5));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p4, p5));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p0, p2));
engine.addConstraint(new org.cove.flade.constraints.SpringConstraint(p1, p3));
}
function rotatePoint(point, degrees) {
var _local3 = (degrees / 180) * Math.PI;
var _local1 = new flash.geom.Matrix();
_local1.rotate(_local3);
var _local2 = _local1.transformPoint(point);
return(_local2);
}
}
Symbol 1161 MovieClip [__Packages.org.cove.flade.constraints.SpringConstraint] Frame 0
class org.cove.flade.constraints.SpringConstraint implements org.cove.flade.constraints.Constraint
{
var p1, p2, restLength, stiffness, color, isVisible, dmc;
function SpringConstraint (p1, p2) {
this.p1 = p1;
this.p2 = p2;
restLength = p1.curr.distance(p2.curr);
stiffness = 0.6;
color = 10053171 /* 0x996633 */;
initializeContainer();
isVisible = true;
}
function initializeContainer() {
var _local3 = _root.collisionDisplay.getNextHighestDepth();
var _local4 = "_3_" + _local3;
dmc = _root.collisionDisplay.createEmptyMovieClip(_local4, _local3);
_root.collisionDisplay.dmcs.push(dmc);
}
function resolve() {
var _local5 = p1.curr.minusNew(p2.curr);
var _local3 = p1.curr.distance(p2.curr);
var _local4 = (_local3 - restLength) / _local3;
var _local2 = _local5.mult(_local4 * stiffness);
p1.curr.minus(_local2);
p2.curr.plus(_local2);
}
function setRestLength(r) {
restLength = r;
}
function setStiffness(s) {
stiffness = s;
}
function setVisible(v) {
isVisible = v;
}
function paint() {
if (isVisible) {
dmc.clear();
dmc.lineStyle(0, color, 100);
org.cove.flade.graphics.Graphics.paintLine(dmc, p1.curr.x, p1.curr.y, p2.curr.x, p2.curr.y);
}
}
}
Symbol 1162 MovieClip [__Packages.com.mosesSupposes.fuse.FuseKitCommon] Frame 0
class com.mosesSupposes.fuse.FuseKitCommon
{
static var logOutput;
function FuseKitCommon () {
}
static function _cts() {
return("|_tint|_tintPercent|_brightness|_brightOffset|_contrast|_invertColor|_colorReset|_colorTransform|");
}
static function _resetTo100() {
return("|_alpha|_contrast|_invertColor|_tintPercent|_xscale|_yscale|_scale|");
}
static function _resetTo0() {
return("|_brightness|_brightOffset|_colorReset|_rotation|");
}
static function _underscoreable() {
return(_cts() + "_frame|_x|_y|_xscale|_yscale|_scale|_width|_height|_size|_rotation|_alpha|_fade|_visible|");
}
static function _cbprops() {
return("|skipLevel|cycles|roundResults|extra1|extra2|func|scope|args|startfunc|startscope|startargs|updfunc|updscope|updargs|");
}
static function _fuseEvents() {
return("|onStart|onStop|onPause|onResume|onAdvance|onComplete|");
}
static function _fuseprops() {
return("|command|label|delay|event|eventparams|target|addTarget|trigger|startAt|ease|easing|seconds|duration|time|");
}
static function _validateFuseCommand(c, inGroup, hasArg, outputLevel, simple) {
var _local1 = false;
var _local2 = false;
switch (c) {
case "start" :
case "stop" :
case "pause" :
case "resume" :
case "setStartProps" :
if (inGroup != true) {
_local1 = true;
}
break;
case "delay" :
case "trigger" :
if (simple == true) {
if (hasArg == true) {
_local1 = true;
}
} else {
_local2 = true;
}
inGroup = false;
break;
case "skipTo" :
if (!((hasArg == true) && (inGroup != true))) {
break;
}
_local1 = true;
}
if ((outputLevel > 0) && (_local1 == false)) {
error("109", c, inGroup, _local2);
}
return(_local1);
}
static function output(s) {
if (typeof(logOutput) == "function") {
logOutput(s);
} else {
trace(s);
}
}
static function error(errorCode) {
var _local3 = arguments[1];
var _local4 = arguments[2];
var _local6 = arguments[3];
if (VERBOSE != true) {
output(("[FuseKitCommon#" + errorCode) + "]");
return(undefined);
}
var _local2 = "";
var _local5 = newline;
switch (errorCode) {
case "001" :
_local2 = _local2 + "** ERROR: When using simpleSetup to extend prototypes, you must pass the Shortcuts class. **";
_local2 = _local2 + (_local5 + " import com.mosesSupposes.fuse.*;");
_local2 = _local2 + ((_local5 + " ZigoEngine.simpleSetup(Shortcuts);") + _local5);
break;
case "002" :
_local2 = _local2 + "** ZigoEngine.doShortcut: shortcuts missing. Use the setup commands: import com.mosesSupposes.fuse.*; ZigoEngine.register(Shortcuts); **";
break;
case "003" :
_local2 = _local2 + ((_local5 + "*** Error: DO NOT use #include \"lmc_tween.as\" with this version of ZigoEngine! ***") + _local5);
break;
case "004" :
_local2 = _local2 + (("** ZigoEngine.doTween - too few arguments [" + _local3) + "].");
if (Boolean(_local4) == true) {
_local2 = _local2 + " If you are trying to use Object Syntax without Fuse, pass FuseItem in your register() or simpleSetup() call. **";
} else {
_local2 = _local2 + " Object syntax call failed. **";
}
break;
case "005" :
_local2 = _local2 + (((("** ZigoEngine.doTween - missing targets[" + _local3) + "] and/or props[") + _local4) + "] **");
break;
case "006" :
_local2 = _local2 + (("** Error: easing shortcut string not recognized (\"" + _local3) + "\"). You may need to pass the in PennerEasing class during register or simpleSetup. **");
break;
case "007" :
_local2 = _local2 + (((("- ZigoEngine: Target locked [" + _local3) + "], ignoring tween call [") + _local4) + "]");
break;
case "008" :
_local2 = _local2 + "** You must register the Shortcuts class in order to use easy string-type callback parsing. **";
break;
case "009" :
_local2 = _local2 + (("** ZigoEngine: A callback parameter \"" + _local3) + "\" was not recognized. **");
break;
case "010" :
_local2 = _local2 + ((((("** " + ((_local3 == true) ? "ZigoEngine" : "FuseItem")) + " unable to parse ") + ((_local4 == 1) ? "callback[" : (String(_local4) + " callbacks["))) + _local6) + "]. Try using the syntax {scope:this, func:\"myFunction\"} **");
break;
case "011" :
_local2 = _local2 + (((("- ZigoEngine: Callbacks discarded via skipLevel 2 option [" + _local3) + "|") + _local4) + "].");
break;
case "012" :
_local2 = _local2 + (((((("- Engine set props or ignored no-change tween on: " + _local3) + ", props passed:[") + _local4) + "], endvals passed:[") + _local6) + "]");
break;
case "013" :
_local2 = _local2 + (((((("- Engine added tween on:\n\ttargets:[" + _local3) + "]\n\tprops:[") + _local4) + "]\n\tendvals:[") + _local6) + "]");
break;
case "014" :
_local2 = _local2 + "** Error: easing function passed is not usable with this engine. Functions need to follow the Robert Penner model. **";
break;
case "015" :
_local2 = _local2 + "** Error: The CustomEasing class must be passed during setup (register or simpleSetup) to use custom easing Arrays. **";
break;
case "016" :
_local2 = _local2 + (("[ ZigoEngine.TIME_MULTIPLIER: " + String(Number(Number(_local3) * 100))) + "% ]");
break;
case "101" :
_local2 = _local2 + "** ERROR: Fuse simpleSetup was removed in version 2.0! **";
_local2 = _local2 + (_local5 + " You must now use the following commands:");
_local2 = _local2 + ((_local5 + _local5) + "\timport com.mosesSupposes.fuse.*;");
_local2 = _local2 + (_local5 + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);");
_local2 = _local2 + ((_local5 + "Note that PennerEasing is optional, and FuseFMP is also accepted. (FuseFMP.simpleSetup is run automatically if included.)") + _local5);
break;
case "102" :
_local2 = _local2 + (((("** Fuse " + _local3) + " index or label not found (") + _local4) + ") or out of range. **");
break;
case "103" :
_local2 = _local2 + (((("** Fuse skipTo (" + _local3) + ") ignored - targets the current index (") + _local4) + "). **");
break;
case "104" :
_local2 = _local2 + (("** Fuse fastForward index out of play range (" + _local3) + ") - skipTo has been called instead. **");
break;
case "105" :
_local2 = _local2 + "** An unsupported Array method was called on Fuse. **";
break;
case "106" :
_local2 = _local2 + "** ERROR: You have not set up Fuse correctly. **";
_local2 = _local2 + (_local5 + "You must now use the following commands (PennerEasing is optional).");
_local2 = _local2 + (_local5 + "\timport com.mosesSupposes.fuse.*;");
_local2 = _local2 + ((_local5 + "\tZigoEngine.simpleSetup(Shortcuts, PennerEasing, Fuse);") + _local5);
break;
case "107" :
_local2 = _local2 + "** Fuse :: id not found - Aborting open(). **";
break;
case "108" :
_local2 = _local2 + "** Fuse.startRecent: No recent Fuse found to start! **";
break;
case "109" :
_local2 = _local2 + (("** Command \"" + _local3) + "\" discarded. ");
if (_local4 == true) {
_local2 = _local2 + "Not allowed within a group. **";
} else if (_local6 == true) {
_local2 = _local2 + (("Not supported in Object Syntax, use the " + _local3) + " property instead. **");
} else {
_local2 = _local2 + "The command may be unrecognized or missing an argument. **";
}
break;
case "110" :
_local2 = _local2 + (((("** " + _local3) + " illegal Fuse property discarded:\"") + _local4) + "\". Bezier keywords other than x and y cannot be set as start values. **");
break;
case "112" :
_local2 = _local2 + "** Fuse: missing com.mosesSupposes.fuse.ZigoEngine! Cannot tween. **";
break;
case "113" :
_local2 = _local2 + "** FuseItem: A callback has been discarded. Actions with a command may only contain: label, delay, scope, args. **";
break;
case "115" :
_local2 = _local2 + ((_local3 + " overlapping prop discarded: ") + _local4);
break;
case "116" :
_local2 = _local2 + ("** FuseItem Error: Delays within groups (arrays) and start/update callbacks are not supported when using Fuse without ZigoEngine. Although you need to restructure your Fuse, it should be possible to achieve the same results. **" + _local5);
break;
case "117" :
_local2 = _local2 + (("** " + _local3) + ": infinite cycles are not allowed within Fuses - discarded. **");
break;
case "118" :
_local2 = _local2 + ((("** " + _local3) + ": No targets found!") + ((_local4 == true) ? " [Unable to set start props] **" : " [Skipping tween parameters in this action] **"));
break;
case "119" :
_local2 = _local2 + ((((("** " + _local3) + ": ") + ((_local4 == 1) ? "" : (_local4 + " actions in the group"))) + " missing targets") + ((_local6 == true) ? " during setStartProps **" : " **"));
break;
case "120" :
_local2 = _local2 + (((("** " + _local3) + ": conflict with \"") + _local4) + "\". Property might be doubled within a grouped-action array. **");
break;
case "121" :
_local2 = _local2 + "** Fuse timecode formatting requires \"00:\" formatting (example:\"01:01:33\" yields 61.33 seconds.) **";
break;
case "122" :
_local2 = _local2 + (("** Event \"" + _local3) + "\" reserved by Fuse. **");
break;
case "123" :
_local2 = _local2 + (("** A Fuse event parameter failed in " + _local3) + " **");
break;
case "124" :
_local2 = _local2 + (((("** " + _local3) + ": trigger:") + _local4) + " ignored - only one trigger is allowed per action **");
break;
case "125" :
_local2 = _local2 + (_local3 + " Warning - fastForward hit an item during its tween cycle, may malfunction.");
break;
case "201" :
_local2 = _local2 + (("**** FuseFMP cannot initialize argument " + _local3) + " (BitmapFilters cannot be applied to this object type) ****");
break;
case "202" :
_local2 = _local2 + (((("** FuseFMP error: A " + _local3) + " could not be created for ") + _local4) + " **");
break;
case "203" :
_local2 = _local2 + (("** FuseFMP.setFilterProps - too few arguments passed (" + _local3) + ") - minimum 2 required. **");
break;
case "204" :
_local2 = _local2 + (("** FuseFMP.setFilterProps could not locate the filter passed. (" + _local3) + ") **");
}
output(_local2);
}
static function parseCallback(callback, targets, outputLevel, callerIsEngine, addprefix) {
if (callback._vcb == true) {
return(callback);
}
var validCBs = {_vcb:true, skipLevel:_global.com.mosesSupposes.fuse.ZigoEngine.SKIP_LEVEL, cycles:1};
if (callback == undefined) {
return(validCBs);
}
var cbErrors = [];
if (typeof(callback) == "object") {
if (((callback.skipLevel != undefined) && (typeof(callback.skipLevel) == "number")) && (callback.skipLevel != _global.com.mosesSupposes.fuse.ZigoEngine.SKIP_LEVEL)) {
if ((callback.skipLevel >= 0) && (callback.skipLevel <= 2)) {
validCBs.skipLevel = callback.skipLevel;
}
}
if (callback.cycles != undefined) {
if ((typeof(callback.cycles) == "number") && (callback.cycles > -1)) {
validCBs.cycles = callback.cycles;
} else if (callback.cycles.toUpperCase() == "LOOP") {
validCBs.cycles = 0;
}
}
if (callback.extra1 != undefined) {
validCBs.extra1 = callback.extra1;
}
if (callback.extra2 != undefined) {
validCBs.extra2 = callback.extra2;
}
if ((callback.roundResults === true) || (callback.roundResults === false)) {
validCBs.roundResults = callback.roundResults;
}
} else {
callback = {func:callback};
}
var prefixes = ["start", "upd", ""];
var easyfuncparse = _global.com.mosesSupposes.fuse.Shortcuts.parseStringTypeCallback;
for (var i in prefixes) {
var prefix = prefixes[i];
var fstr = callback[prefix + "func"];
if (((fstr != undefined) && (typeof(fstr) == "string")) && (fstr.indexOf("(") > -1)) {
if (easyfuncparse != undefined) {
var efc = easyfuncparse(fstr);
if (efc.func != undefined) {
callback[prefix + "scope"] = efc.scope;
callback[prefix + "func"] = efc.func;
callback[prefix + "args"] = efc.args;
}
} else if (outputLevel > 0) {
error("008");
}
}
}
var basescope = callback.scope;
for (var i in callback) {
var fi = i.toLowerCase().indexOf("func");
if (fi > -1) {
var prefix = i.slice(0, fi);
var func = callback[i];
var args = callback[prefix + "args"];
var scope = ((callback[prefix + "scope"] == undefined) ? (basescope) : (callback[prefix + "scope"]));
if ((typeof(func) == "string") && (scope[func] == undefined)) {
for (var j in targets) {
var targ = targets[j];
if (typeof(targ[func]) == "function") {
scope = targ;
break;
}
if (typeof(targ._parent[func]) == "function") {
scope = targ._parent;
break;
}
}
if ((scope == undefined) && (_level0[func] != undefined)) {
scope = _level0;
}
if ((scope == undefined) && (_global[func] != undefined)) {
scope = _global;
}
}
if (typeof(func) != "function") {
if (typeof(scope[String(func)]) == "function") {
func = scope[String(func)];
} else {
func = eval (String(func));
}
}
if (func == undefined) {
cbErrors.push(String((((((((addprefix == null) ? (i) : (addprefix + i)) + ":") + ((typeof(callback[i]) == "string") ? (("\"" + callback[i]) + "\"") : (callback[i]))) + "/") + prefix) + "scope:") + scope));
} else {
if ((args != undefined) && (!(args instanceof Array))) {
args = [args];
}
if (prefix == "") {
prefix = "end";
}
validCBs[prefix] = {s:scope, f:func, a:args};
if (callerIsEngine == true) {
validCBs[prefix].id = ++cbTicker;
}
if (prefix == "start") {
validCBs.start.fired = false;
}
}
} else if (_cbprops().indexOf(("|" + i) + "|") == -1) {
error("009", i);
}
}
if ((cbErrors.length > 0) && (outputLevel > 0)) {
if (outputLevel > 0) {
error("010", callerIsEngine, cbErrors.length, cbErrors.toString());
}
}
return(validCBs);
}
static var VERSION = "Fuse Kit 2.1.3r1 Copyright (c) 2006 Moses Gunesch, MosesSupposes.com under MIT Open Source License";
static var VERBOSE = true;
static var ALL = "ALL";
static var ALLCOLOR = "ALLCOLOR";
static var cbTicker = 0;
}
Symbol 1163 MovieClip [__Packages.com.mosesSupposes.fuse.FuseFMP] Frame 0
class com.mosesSupposes.fuse.FuseFMP
{
static var _classes, _shortcuts, _getter, _setter;
function FuseFMP () {
}
static function simpleSetup() {
initialize(MovieClip.prototype, Button.prototype, TextField.prototype);
_global.FuseFMP = com.mosesSupposes.fuse.FuseFMP;
for (var _local2 in _classes) {
_global[_local2] = _classes[_local2];
}
}
static function initialize(target) {
if (_classes == undefined) {
_shortcuts = {getFilterName:function (f) {
return(com.mosesSupposes.fuse.FuseFMP.getFilterName(f));
}, getFilterIndex:function (f) {
return(com.mosesSupposes.fuse.FuseFMP.getFilterIndex(this, f));
}, getFilter:function (f, createNew) {
return(com.mosesSupposes.fuse.FuseFMP.getFilter(this, f, createNew));
}, writeFilter:function (f, pObj) {
return(com.mosesSupposes.fuse.FuseFMP.writeFilter(this, f, pObj));
}, removeFilter:function (f) {
return(com.mosesSupposes.fuse.FuseFMP.removeFilter(this, f));
}, getFilterProp:function (prop, createNew) {
return(com.mosesSupposes.fuse.FuseFMP.getFilterProp(this, prop, createNew));
}, setFilterProp:function (prop, v) {
com.mosesSupposes.fuse.FuseFMP.setFilterProp(this, prop, v);
}, setFilterProps:function (fOrPObj, pObj) {
com.mosesSupposes.fuse.FuseFMP.setFilterProps(this, fOrPObj, pObj);
}, traceAllFilters:function () {
com.mosesSupposes.fuse.FuseFMP.traceAllFilters();
}};
_classes = {BevelFilter:flash.filters.BevelFilter, BlurFilter:flash.filters.BlurFilter, ColorMatrixFilter:flash.filters.ColorMatrixFilter, ConvolutionFilter:flash.filters.ConvolutionFilter, DisplacementMapFilter:flash.filters.DisplacementMapFilter, DropShadowFilter:flash.filters.DropShadowFilter, GlowFilter:flash.filters.GlowFilter, GradientBevelFilter:flash.filters.GradientBevelFilter, GradientGlowFilter:flash.filters.GradientGlowFilter};
_getter = {__resolve:function (name) {
var _local4 = function () {
var _local3 = this;
if (_local3.filters != undefined) {
var _local2 = name.split("_");
if (_local2[1] == "blur") {
_local2[1] = "blurX";
}
return(com.mosesSupposes.fuse.FuseFMP.getFilter(this, _local2[0] + "Filter", false)[_local2[1]]);
}
};
return(_local4);
}};
_setter = {__resolve:function (name) {
var _local3 = function (val) {
var _local2 = this;
if (_local2.filters != undefined) {
com.mosesSupposes.fuse.FuseFMP.setFilterProp(this, name, val);
}
};
return(_local3);
}};
}
if (arguments[0] == null) {
return(undefined);
}
var _local6 = [MovieClip, Button, TextField];
for (var _local13 in arguments) {
var _local7 = false;
for (var _local10 in _local6) {
if ((arguments[_local13] instanceof _local6[_local10]) || (arguments[_local13] == Function(_local6[_local10]).prototype)) {
_local7 = true;
break;
}
}
if (!_local7) {
com.mosesSupposes.fuse.FuseKitCommon.error("201", _local13);
continue;
}
for (var _local11 in _classes) {
var _local5 = new _classes[_local11]();
for (var _local8 in _local5) {
if (typeof(_local5[_local8]) == "function") {
continue;
}
var _local4 = (_local11.substr(0, -6) + "_") + _local8;
arguments[_local13].addProperty(_local4, _getter[_local4], _setter[_local4]);
_global.ASSetPropFlags(arguments[_local13], _local4, 3, 1);
if (_local8 == "blurX") {
_local4 = _local4.slice(0, -1);
arguments[_local13].addProperty(_local4, _getter[_local4], _setter[_local4]);
_global.ASSetPropFlags(arguments[_local13], _local4, 3, 1);
}
}
}
for (var _local9 in _shortcuts) {
arguments[_local13][_local9] = _shortcuts[_local9];
_global.ASSetPropFlags(arguments[_local13], _local9, 7, 1);
}
}
}
static function deinitialize() {
if (_classes == undefined) {
return(undefined);
}
if (arguments.length == 0) {
arguments.push(MovieClip.prototype, Button.prototype, TextField.prototype);
}
for (var _local8 in arguments) {
for (var _local7 in _classes) {
var _local4 = new _classes[_local7]();
for (var _local5 in _local4) {
if (typeof(_local4[_local5]) == "function") {
continue;
}
var _local3 = (_local7.substr(0, -6) + "_") + _local5;
_global.ASSetPropFlags(arguments[_local8], _local3, 0, 2);
arguments[_local8].addProperty(_local3, null, null);
delete arguments[_local8][_local3];
}
}
for (var _local6 in _shortcuts) {
_global.ASSetPropFlags(arguments[_local8], _local6, 0, 2);
delete arguments[_local8][_local6];
}
}
}
static function getFilterName(instance) {
if (_classes == undefined) {
initialize(null);
}
for (var _local1 in _classes) {
if (instance.__proto__ == Function(_classes[_local1]).prototype) {
return(_local1);
}
}
return(null);
}
static function getFilterIndex(target, filter) {
if (_classes == undefined) {
initialize(null);
}
filter = getInstance(filter);
if (filter === null) {
return(-1);
}
var _local2 = target.filters;
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].__proto__ == filter.__proto__) {
return(_local1);
}
_local1++;
}
return(-1);
}
static function getFilter(target, filter, createNew) {
var _local1 = getFilterIndex(target, filter);
if (_local1 == -1) {
if (createNew != true) {
return(null);
}
_local1 = writeFilter(target, filter);
if (_local1 == -1) {
return(null);
}
}
return(target.filters[_local1]);
}
static function writeFilter(target, filter, propsObj) {
if (_classes == undefined) {
initialize(null);
}
filter = getInstance(filter);
if (filter === null) {
return(-1);
}
var _local4 = target.filters;
var _local2 = getFilterIndex(target, filter);
if (_local2 == -1) {
_local4.push(filter);
} else {
_local4[_local2] = filter;
}
target.filters = _local4;
if (typeof(propsObj) == "object") {
setFilterProps(target, filter, propsObj);
}
_local2 = getFilterIndex(target, filter);
return(_local2);
}
static function removeFilter(target, filter) {
if (_classes == undefined) {
initialize(null);
}
filter = getInstance(filter);
var _local2 = target.filters;
var _local1 = getFilterIndex(target, filter);
if (_local1 == -1) {
return(false);
}
_local2.splice(_local1, 1);
target.filters = _local2;
return(true);
}
static function getFilterProp(target, propname, createNew) {
var _local1 = propname.split("_");
if (_local1[1] == "blur") {
_local1[1] = "blurX";
}
return(getFilter(target, _local1[0] + "Filter", createNew)[_local1[1]]);
}
static function setFilterProp(target, propname, value) {
if (_classes == undefined) {
initialize(null);
}
var _local8 = propname.split("_");
var _local5 = _local8[0] + "Filter";
if (_classes[_local5] == undefined) {
return(undefined);
}
var _local2 = new _classes[_local5]();
if ((BLUR_ZERO == true) && (_local5 == "BlurFilter")) {
_local2.blurX = (_local2.blurY = 0);
}
var _local6 = _local8[1];
var _local1 = target.filters.length || 0;
while (_local1-- , _local1 > -1) {
if (target.filters[_local1].__proto__ == _local2.__proto__) {
_local2 = target.filters[_local1];
break;
}
}
if (_local2 == null) {
com.mosesSupposes.fuse.FuseKitCommon.error("202", _local5, target);
}
if (_local6 == "blur") {
_local2.blurX = value;
_local2.blurY = value;
} else {
if ((typeof(value) == "string") && (_local6.toLowerCase().indexOf("color") > -1)) {
if (value.charAt(0) == "#") {
value = value.slice(1);
}
value = ((value.charAt(1).toLowerCase() != "x") ? (Number("0x" + value)) : (Number(value)));
}
_local2[_local6] = value;
}
var _local7 = target.filters;
if (_local1 == -1) {
_local7.push(_local2);
} else {
_local7[_local1] = _local2;
}
target.filters = _local7;
}
static function setFilterProps(target, filterOrPropsObj, propsObj) {
if (arguments.length < 2) {
com.mosesSupposes.fuse.FuseKitCommon.error("203", arguments.length);
return(undefined);
}
if (_classes == undefined) {
initialize(null);
}
var _local10 = new Object();
var _local11 = arguments.length == 2;
if (_local11 == false) {
var _local14 = getFilterName(getInstance(filterOrPropsObj));
if (_classes[_local14] == undefined) {
com.mosesSupposes.fuse.FuseKitCommon.error("204", filterOrPropsObj);
return(undefined);
}
_local10[_local14] = 1;
} else {
propsObj = filterOrPropsObj;
for (var _local12 in propsObj) {
var _local14 = _local12.split("_")[0] + "Filter";
if ((_classes[_local14] != undefined) && (_local10[_local14] == undefined)) {
_local10[_local14] = 1;
}
}
}
if (!(target instanceof Array)) {
target = [target];
}
for (var _local15 in target) {
var _local5 = target[_local15];
for (var _local14 in _local10) {
var _local3 = new _classes[_local14]();
if ((BLUR_ZERO == true) && (_local14 == "BlurFilter")) {
_local3.blurX = (_local3.blurY = 0);
}
var _local4 = _local5.filters.length || 0;
while (_local4-- , _local4 > -1) {
if (_local5.filters[_local4].__proto__ == _local3.__proto__) {
_local3 = _local5.filters[_local4];
break;
}
}
if (_local3 == null) {
com.mosesSupposes.fuse.FuseKitCommon.error("202", _local14, _local5);
continue;
}
var _local7 = String(_local14).slice(0, -6) + "_";
for (var _local12 in propsObj) {
var _local6 = _local12.indexOf(_local7) == 0;
if ((_local11 == true) && (_local6 == false)) {
continue;
}
var _local2 = propsObj[_local12];
if (_local6 == true) {
var _local12 = _local12.slice(_local7.length);
}
if (_local12 == "blur") {
_local3.blurX = _local2;
_local3.blurY = _local2;
} else {
if ((typeof(_local2) == "string") && (_local12.toLowerCase().indexOf("color") > -1)) {
if (_local2.charAt(0) == "#") {
_local2 = _local2.slice(1);
}
_local2 = ((_local2.charAt(1).toLowerCase() != "x") ? (Number("0x" + _local2)) : (Number(_local2)));
}
_local3[_local12] = _local2;
}
}
var _local8 = _local5.filters;
if (_local4 == -1) {
_local8.push(_local3);
} else {
_local8[_local4] = _local3;
}
_local5.filters = _local8;
}
}
}
static function getAllShortcuts() {
if (_classes == undefined) {
initialize(null);
}
var _local2 = [];
for (var _local4 in _classes) {
var _local1 = new _classes[_local4]();
for (var _local3 in _local1) {
if (typeof(_local1[_local3]) == "function") {
continue;
}
_local2.push((_local4.substr(0, -6) + "_") + _local3);
if (_local3 == "blurX") {
_local2.push(_local4.substr(0, -6) + "_blur");
}
}
}
return(_local2);
}
static function traceAllFilters() {
if (_classes == undefined) {
initialize(null);
}
var _local1 = "------ FuseFMP filter properties ------\n";
for (var _local4 in _classes) {
_local1 = _local1 + _local4;
var _local2 = new _classes[_local4]();
for (var _local3 in _local2) {
if (typeof(_local2[_local3]) == "function") {
continue;
}
_local1 = _local1 + ((("\t- " + _local4.substr(0, -6)) + "_") + _local3);
if (_local3 == "blurX") {
_local1 = _local1 + (("\t- " + _local4.substr(0, -6)) + "_blur");
}
}
_local1 = _local1 + newline;
}
com.mosesSupposes.fuse.FuseKitCommon.output(_local1);
}
static function getInstance(filter) {
if (filter instanceof flash.filters.BitmapFilter) {
return(flash.filters.BitmapFilter(filter));
}
if (typeof(filter) == "function") {
for (var _local4 in _classes) {
if (filter == _classes[_local4]) {
var _local1 = new _classes[_local4]();
if ((BLUR_ZERO == true) && (_local4 == "BlurFilter")) {
_local1.blurX = (_local1.blurY = 0);
}
return(_local1);
}
}
}
if (typeof(filter) == "string") {
var _local3 = String(filter);
if (_local3.substr(-6) != "Filter") {
_local3 = _local3 + "Filter";
}
for (var _local4 in _classes) {
if (_local4 == _local3) {
var _local1 = new _classes[_local4]();
if ((BLUR_ZERO == true) && (_local4 == "BlurFilter")) {
_local1.blurX = (_local1.blurY = 0);
}
return(_local1);
}
}
}
return(null);
}
static var registryKey = "fuseFMP";
static var VERSION = com.mosesSupposes.fuse.FuseKitCommon.VERSION;
static var BLUR_ZERO = true;
}
Symbol 1164 MovieClip [__Packages.com.mosesSupposes.fuse.PennerEasing] Frame 0
class com.mosesSupposes.fuse.PennerEasing
{
function PennerEasing () {
}
static function linear(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInQuad(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOutQuad(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOutQuad(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static function easeInExpo(t, b, c, d) {
return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b)));
}
static function easeOutExpo(t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
}
static function easeInOutExpo(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.pow(2, 10 * (t - 1))) + b);
}
t--;
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 2)) + b);
}
static function easeOutInExpo(t, b, c, d) {
if (t == 0) {
return(b);
}
if (t == d) {
return(b + c);
}
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * ((-Math.pow(2, -10 * t)) + 1)) + b);
}
return(((c / 2) * (Math.pow(2, 10 * (t - 2)) + 1)) + b);
}
static function easeInElastic(t, b, c, d, a, p) {
var _local5;
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
_local5 = p / 4;
} else {
_local5 = (p / (Math.PI*2)) * Math.asin(c / a);
}
t = t - 1;
return((-((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p))) + b);
}
static function easeOutElastic(t, b, c, d, a, p) {
var _local5;
if (t == 0) {
return(b);
}
t = t / d;
if (t == 1) {
return(b + c);
}
if (!p) {
p = d * 0.3;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
_local5 = p / 4;
} else {
_local5 = (p / (Math.PI*2)) * Math.asin(c / a);
}
return((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p)) + c) + b);
}
static function easeInOutElastic(t, b, c, d, a, p) {
var _local5;
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
_local5 = p / 4;
} else {
_local5 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
t = t - 1;
return((-0.5 * ((a * Math.pow(2, 10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p))) + b);
}
t = t - 1;
return(((((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p)) * 0.5) + c) + b);
}
static function easeOutInElastic(t, b, c, d, a, p) {
var _local5;
if (t == 0) {
return(b);
}
t = t / (d / 2);
if (t == 2) {
return(b + c);
}
if (!p) {
p = d * 0.45;
}
if ((!a) || (a < Math.abs(c))) {
a = c;
_local5 = p / 4;
} else {
_local5 = (p / (Math.PI*2)) * Math.asin(c / a);
}
if (t < 1) {
return(((0.5 * ((a * Math.pow(2, -10 * t)) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p))) + (c / 2)) + b);
}
return(((c / 2) + (0.5 * ((a * Math.pow(2, 10 * (t - 2))) * Math.sin((((t * d) - _local5) * (Math.PI*2)) / p)))) + b);
}
static function easeInBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / d;
return((((c * t) * t) * (((s + 1) * t) - s)) + b);
}
static function easeOutBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = (t / d) - 1;
return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
static function easeInOutBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
s = s * 1.525;
return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b);
}
t = t - 2;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b);
}
static function easeOutInBack(t, b, c, d, s) {
if (s == undefined) {
s = 1.70158;
}
t = t / (d / 2);
if (t < 1) {
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 1)) + b);
}
t--;
s = s * 1.525;
return(((c / 2) * (((t * t) * (((s + 1) * t) - s)) + 1)) + b);
}
static function easeOutBounce(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeInBounce(t, b, c, d) {
return((c - easeOutBounce(d - t, 0, c, d)) + b);
}
static function easeInOutBounce(t, b, c, d) {
if (t < (d / 2)) {
return((easeInBounce(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOutBounce((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static function easeOutInBounce(t, b, c, d) {
if (t < (d / 2)) {
return((easeOutBounce(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeInBounce((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static function easeInCubic(t, b, c, d) {
t = t / d;
return((((c * t) * t) * t) + b);
}
static function easeOutCubic(t, b, c, d) {
t = (t / d) - 1;
return((c * (((t * t) * t) + 1)) + b);
}
static function easeInOutCubic(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((c / 2) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((t * t) * t) + 2)) + b);
}
static function easeOutInCubic(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((t * t) * t) + 1)) + b);
}
static function easeInQuart(t, b, c, d) {
t = t / d;
return(((((c * t) * t) * t) * t) + b);
}
static function easeOutQuart(t, b, c, d) {
t = (t / d) - 1;
return(((-c) * ((((t * t) * t) * t) - 1)) + b);
}
static function easeInOutQuart(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((((c / 2) * t) * t) * t) * t) + b);
}
t = t - 2;
return((((-c) / 2) * ((((t * t) * t) * t) - 2)) + b);
}
static function easeOutInQuart(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return((((-c) / 2) * ((((t * t) * t) * t) - 1)) + b);
}
t--;
return(((c / 2) * ((((t * t) * t) * t) + 1)) + b);
}
static function easeInQuint(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOutQuint(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOutQuint(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static function easeOutInQuint(t, b, c, d) {
t = t / (d / 2);
t--;
return(((c / 2) * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInSine(t, b, c, d) {
return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b);
}
static function easeOutSine(t, b, c, d) {
return((c * Math.sin((t / d) * (Math.PI/2))) + b);
}
static function easeInOutSine(t, b, c, d) {
return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b);
}
static function easeOutInSine(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((c / 2) * Math.sin((Math.PI * t) / 2)) + b);
}
t--;
return((((-c) / 2) * (Math.cos((Math.PI * t) / 2) - 2)) + b);
}
static function easeInCirc(t, b, c, d) {
t = t / d;
return(((-c) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
static function easeOutCirc(t, b, c, d) {
t = (t / d) - 1;
return((c * Math.sqrt(1 - (t * t))) + b);
}
static function easeInOutCirc(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (t * t)) - 1)) + b);
}
t = t - 2;
return(((c / 2) * (Math.sqrt(1 - (t * t)) + 1)) + b);
}
static function easeOutInCirc(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
t--;
return(((c / 2) * Math.sqrt(1 - (t * t))) + b);
}
t--;
return(((c / 2) * (2 - Math.sqrt(1 - (t * t)))) + b);
}
static var registryKey = "pennerEasing";
}
Symbol 1165 MovieClip [__Packages.com.mosesSupposes.fuse.Fuse] Frame 0
class com.mosesSupposes.fuse.Fuse extends Array
{
var _nID, _aDefaultTargs, length, scope, _nIndex, _oDel1, dispatchEvent, label, autoClear, duration, easing;
function Fuse (fuseAction) {
super();
mx.events.EventDispatcher.initialize(this);
_nID = registerInstance(this);
_nState = -1;
_aDefaultTargs = new Array();
if (arguments.length > 0) {
splice.apply(this, new Array(0, 0).concat(arguments));
}
var _local4 = ["concat", "join", "sort", "sortOn"];
for (var _local5 in _local4) {
com.mosesSupposes.fuse.Fuse.prototype[_local4[_local5]] = function () {
if (com.mosesSupposes.fuse.Fuse.OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("105");
}
};
}
}
function addEventListener(event, handler) {
}
function removeEventListener(event, handler) {
}
function destroy() {
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(getHandle() + " destroy.");
}
stop(true);
splice(0, length);
_aDefaultTargs = null;
scope = null;
_global.ASSetPropFlags(this, null, 0, 7);
var _local4 = _nID;
for (var _local3 in this) {
delete this[_local3];
}
removeInstanceAt(_local4, true);
}
static function getInstance(idOrLabel) {
if (typeof(idOrLabel) == "number") {
return(_aInstances[idOrLabel]);
}
if (typeof(idOrLabel) == "string") {
for (var _local2 in _aInstances) {
if (com.mosesSupposes.fuse.Fuse(_aInstances[_local2]).label == idOrLabel) {
return(_aInstances[_local2]);
}
}
}
return(null);
}
static function getInstances(stateFilter, targets) {
var _local10 = (stateFilter == null) || (stateFilter.toUpperCase() == "ALL");
if (!(targets instanceof Array)) {
targets = arguments.slice(1);
}
var _local8 = [];
for (var _local11 in _aInstances) {
var _local5 = _aInstances[_local11];
if (_aInstances[_local11] == null) {
continue;
}
if ((_local10 == false) && (_local5.__get__state() != stateFilter)) {
continue;
}
var _local3 = targets.length == 0;
if (_local3 == false) {
if (_local3 == true) {
continue;
}
var _local2 = _local5.getActiveTargets(true);
for (var _local7 in targets) {
for (var _local6 in _local2) {
if (_local2[_local6] == targets[_local7]) {
_local3 = true;
break;
}
}
}
}
if (_local3 == true) {
_local8.unshift(_local5);
}
}
return(_local8);
}
function get id() {
return(_nID);
}
function get state() {
switch (_nState) {
case -1 :
return("stopped");
case 0 :
return("paused");
case 1 :
return("playing");
}
return(undefined);
}
function get currentIndex() {
return(_nIndex);
}
function get currentLabel() {
return(this[_nIndex].label);
}
function get target() {
return(((_aDefaultTargs.length == 1) ? (_aDefaultTargs[0]) : (_aDefaultTargs)));
}
function set target(t) {
delete _aDefaultTargs;
if (t != null) {
addTarget(t);
}
//return(target);
}
function addTarget(t) {
if (_aDefaultTargs == null) {
_aDefaultTargs = [];
}
if (arguments[0] instanceof Array) {
arguments=arguments[0];//parameter overwritten
arguments[0];
}
for (var _local5 in arguments) {
var _local3 = false;
for (var _local4 in _aDefaultTargs) {
if (arguments[_local5] == _aDefaultTargs[_local4]) {
_local3 = true;
break;
}
}
if (_local3 == false) {
_aDefaultTargs.push(arguments[_local5]);
}
}
}
function removeTarget(t) {
if ((_aDefaultTargs == null) || (_aDefaultTargs.length == 0)) {
return(undefined);
}
if (arguments[0] instanceof Array) {
arguments=arguments[0];//parameter overwritten
arguments[0];
}
for (var _local4 in arguments) {
for (var _local3 in _aDefaultTargs) {
if (arguments[_local4] == _aDefaultTargs[_local3]) {
_aDefaultTargs.splice(Number(_local3), 1);
}
}
}
}
function getActiveTargets(includeDefaults) {
if (_nState == -1) {
return([]);
}
var _local2;
if (includeDefaults == true) {
_local2 = _aDefaultTargs.slice();
} else {
_local2 = [];
}
return(com.mosesSupposes.fuse.FuseItem(this[_nIndex]).getActiveTargets(_local2));
}
function clone() {
var _local3 = [];
var _local2 = 0;
while (_local2 < length) {
_local3.push(com.mosesSupposes.fuse.FuseItem(this[_local2]).getInitObj());
_local2++;
}
var _local4 = new com.mosesSupposes.fuse.Fuse();
_local4.push.apply(_local4, _local3);
_local4.scope = scope;
_local4.__set__target(target);
return(_local4);
}
function push(fuseAction) {
splice.apply(this, new Array(length, 0).concat(arguments));
return(length);
}
function pushTween(targets, props, endvals, seconds, ease, delay, callback) {
push({__buildMode:true, tweenargs:arguments});
return(length);
}
function pop() {
var _local2 = com.mosesSupposes.fuse.FuseItem(this[length - 1]).getInitObj();
splice(length - 1, 1);
return(_local2);
}
function unshift(fuseAction) {
splice.apply(this, new Array(0, 0).concat(arguments));
return(length);
}
function shift() {
var _local2 = com.mosesSupposes.fuse.FuseItem(this[0]).getInitObj();
splice(0, 1);
return(_local2);
}
function splice(startIndex, deleteCount, fuseAction) {
stop(true);
var _local7 = Number(arguments.shift());
if (_local7 < 0) {
_local7 = length + _local7;
}
deleteCount = Number(arguments.shift());
var _local8 = new Array();
var _local5 = 0;
while (_local5 < arguments.length) {
var _local4 = ((arguments[_local5] instanceof com.mosesSupposes.fuse.Fuse) ? (arguments[_local5]) : (new com.mosesSupposes.fuse.FuseItem(_local7 + _local5, arguments[_local5], _nID)));
addEventListener("onStop", _local4);
addEventListener("evtSetStart", _local4);
_local8.push(_local4);
_local5++;
}
var _local6 = super.splice.apply(this, new Array(_local7, deleteCount).concat(_local8));
for (var _local9 in _local6) {
var _local4 = _local6[_local9];
removeEventListener("onStop", _local4);
removeEventListener("evtSetStart", _local4);
if (_local4 instanceof com.mosesSupposes.fuse.Fuse) {
_local4.removeEventListener("onComplete", _oDel1);
} else {
_local4.destroy();
}
}
_local5 = 0;
while (_local5 < length) {
com.mosesSupposes.fuse.FuseItem(this[_local5])._nItemID = _local5;
_local5++;
}
}
function slice(indexA, indexB) {
var _local6 = super.slice(indexA, indexB);
var _local5 = new Array();
var _local4 = 0;
while (_local4 < arguments.length) {
_local5.push(com.mosesSupposes.fuse.FuseItem(this[_local4]).getInitObj());
_local4++;
}
return(_local5);
}
function reverse() {
stop(true);
super.reverse();
var _local3 = 0;
while (_local3 < length) {
com.mosesSupposes.fuse.FuseItem(this[_local3])._nItemID = _local3;
_local3++;
}
}
function traceItems(indexA, indexB) {
var _local5 = "";
var _local4 = super.slice(indexA, indexB);
_local5 = _local5 + ((getHandle() + " traceItems:") + "\n----------\n");
var _local3 = 0;
while (_local3 < _local4.length) {
if (_local4[_local3] instanceof com.mosesSupposes.fuse.Fuse) {
_local5 = _local5 + (((((getHandle() + ">Item#") + _local3) + ": [Nested Fuse] ") + _local4[_local3]) + newline);
} else {
_local5 = _local5 + (_local4[_local3] + newline);
}
_local3++;
}
_local5 = _local5 + "----------";
com.mosesSupposes.fuse.FuseKitCommon.output(_local5);
}
function toString() {
return(((getHandle() + " (contains ") + length) + ((length == 1) ? " item)" : " items)"));
}
function setStartProps(trueOrItemIDs) {
var _local8 = ((arguments.length == 0) || (trueOrItemIDs === true)) || (trueOrItemIDs == com.mosesSupposes.fuse.FuseKitCommon.ALL);
dispatchEvent({target:this, type:"evtSetStart", all:_local8, filter:((trueOrItemIDs instanceof Array) ? (trueOrItemIDs) : arguments), curIndex:((_nState == 1) ? (_nIndex) : -1), targs:_aDefaultTargs, scope:scope});
}
function start(setStart) {
close();
stop(true);
_nState = 1;
if (length == 0) {
advance(false, true, false);
}
if ((setStart != null) && (setStart != false)) {
setStartProps.apply(this, arguments);
}
dispatchEvent({target:this, type:"onStart"});
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(getHandle() + " start.");
}
playCurrentItem();
}
function stop() {
if (_nState != -1) {
var _local3 = 0;
while (_local3 < length) {
if (this[_local3] instanceof com.mosesSupposes.fuse.Fuse) {
com.mosesSupposes.fuse.Fuse(this[_local3]).removeEventListener("onComplete", _oDel1);
if (com.mosesSupposes.fuse.Fuse(this[_local3]).__get__state() == "playing") {
com.mosesSupposes.fuse.Fuse(this[_local3]).stop();
}
} else if ((_local3 == _nIndex) || (com.mosesSupposes.fuse.FuseItem(this[_local3]).hasTriggerFired() == true)) {
com.mosesSupposes.fuse.FuseItem(this[_local3]).stop();
}
_local3++;
}
}
var _local4 = _nState;
_nState = -1;
if ((!(arguments[0] === true)) && (_local4 != -1)) {
dispatchEvent({target:this, type:"onStop"});
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(getHandle() + " stop.");
}
}
_nIndex = 0;
clearInterval(_nDelay);
_nTimeCache = (_nDelay = -1);
}
function skipTo(indexOrLabel) {
close();
var _local3 = normalizeIndex(indexOrLabel);
if (_local3 == null) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("102", "skipTo", String(indexOrLabel));
}
return(undefined);
}
if ((_local3 == _nIndex) && (arguments[1] === true)) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("103", String(indexOrLabel), _nIndex);
}
}
if (this[_nIndex] instanceof com.mosesSupposes.fuse.Fuse) {
com.mosesSupposes.fuse.Fuse(this[_nIndex]).removeEventListener("onComplete", _oDel1);
}
stop(true);
_nIndex = _local3;
var _local4 = _nState;
_nState = 1;
if (_local4 == -1) {
dispatchEvent({target:this, type:"onStart"});
}
playCurrentItem();
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output("skipTo:" + _local3);
}
}
function pause() {
if (_nState == 1) {
var _local2 = 0;
while (_local2 <= _nIndex) {
if ((this[_local2].state === "playing") || (this[_local2]._nPlaying > 0)) {
this[_local2].pause();
}
_local2++;
}
if (_nTimeCache != -1) {
_nTimeCache = _nTimeCache - getTimer();
clearInterval(_nDelay);
}
_nState = 0;
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(getHandle() + " pause.");
}
dispatchEvent({target:this, type:"onPause"});
}
}
function resume() {
if (_nState != 0) {
return(undefined);
}
close();
_nState = 1;
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(getHandle() + " resume.");
}
dispatchEvent({target:this, type:"onResume"});
if (_nTimeCache != -1) {
playCurrentItem(false, true);
}
var _local2 = 0;
while (_local2 <= _nIndex) {
if ((this[_local2] instanceof com.mosesSupposes.fuse.Fuse) && (this[_local2].state == "paused")) {
com.mosesSupposes.fuse.Fuse(this[_local2]).resume();
} else if (this[_local2]._nPlaying == 0) {
com.mosesSupposes.fuse.FuseItem(this[_local2]).pause(true);
}
_local2++;
}
}
function fastForward(resumeAtIndexOrLabel) {
var _local3 = ((resumeAtIndexOrLabel == null) ? (length) : (normalizeIndex(resumeAtIndexOrLabel)));
if (_local3 == null) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("102", "fastForward", String(resumeAtIndexOrLabel));
}
return(undefined);
}
if ((_local3 == 0) || (_local3 <= _nIndex)) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("104", _local3);
}
skipTo(_local3);
return(undefined);
}
clearInterval(_nDelay);
var _local2 = _nIndex;
while (_local2 < _local3) {
this[_local2].fastForward(null, _aDefaultTargs, scope);
advance(false, true, !((_local2 == (_local3 - 1)) && (_local3 < length)));
_local2++;
}
}
function getHandle() {
return("-Fuse" + ((label != undefined) ? ((" \"" + label) + "\"") : ("#" + String(_nID))));
}
function advance(wasTriggered, silentStop, isFF) {
if (_nState < 1) {
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((("** DEVELOPER ALERT: " + getHandle()) + " advance called out of turn! (state:") + state) + " currentIndex:") + currentIndex) + ") Please report this Fuse's details to MosesSupposes.com. **");
}
return(undefined);
}
var _local3 = false;
if ((_nIndex == (length - 1)) && (isFF != true)) {
var _local2 = length - 1;
while (_local2 > -1) {
if (com.mosesSupposes.fuse.FuseItem(this[_local2])._nPlaying > -1) {
return(undefined);
}
_local2--;
}
_local3 = true;
}
if ((wasTriggered == true) && (_local3 == false)) {
return(undefined);
}
if (this[_nIndex] instanceof com.mosesSupposes.fuse.Fuse) {
com.mosesSupposes.fuse.Fuse(this[_nIndex]).removeEventListener("onComplete", _oDel1);
}
if ((_nIndex + 1) >= length) {
stop(silentStop);
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output(getHandle() + " complete.");
}
_nIndex = length - 1;
dispatchEvent({target:this, type:"onComplete"});
if ((autoClear == true) || ((!(autoClear === false)) && (AUTOCLEAR == true))) {
destroy();
}
return(undefined);
}
_nIndex++;
if (isFF == true) {
return(undefined);
}
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output((getHandle() + " advance: ") + _nIndex);
}
dispatchEvent({target:this, type:"onAdvance"});
playCurrentItem();
}
function playCurrentItem(postDelay, resumeDelay) {
clearInterval(_nDelay);
if ((postDelay != true) || (resumeDelay == true)) {
var _local3 = 0;
if (resumeDelay != true) {
_local3 = (com.mosesSupposes.fuse.FuseItem(this[_nIndex]).evalDelay(scope) || 0) * 1000;
}
if ((_local3 > 0) || (resumeDelay == true)) {
if (resumeDelay == true) {
_local3 = _nTimeCache;
_nTimeCache = _nTimeCache + getTimer();
} else {
var _local4 = Math.abs(_global.com.mosesSupposes.fuse.ZigoEngine.TIME_MULTIPLIER);
if (_global.isNaN(_local4) == true) {
_local4 = 1;
}
_local3 = _local3 * _local4;
_nTimeCache = getTimer() + _local3;
}
_nDelay = setInterval(this, "playCurrentItem", _local3, true);
return(undefined);
}
}
_nTimeCache = (_nDelay = -1);
if (this[_nIndex] instanceof com.mosesSupposes.fuse.Fuse) {
if (_oDel1 == null) {
_oDel1 = mx.utils.Delegate.create(this, advance);
}
com.mosesSupposes.fuse.Fuse(this[_nIndex]).addEventListener("onComplete", _oDel1);
com.mosesSupposes.fuse.Fuse(this[_nIndex]).start(_aDefaultTargs, scope);
} else {
var _local6 = com.mosesSupposes.fuse.FuseItem(this[_nIndex]).startItem(_aDefaultTargs, scope, duration, easing);
if (OUTPUT_LEVEL > 1) {
com.mosesSupposes.fuse.FuseKitCommon.output((getHandle() + " props tweened: ") + _local6);
}
}
}
function evtSetStart(o) {
setStartProps.apply(this, o.filter);
}
static function open(fuseOrID) {
var _local3 = _global.com.mosesSupposes.fuse.ZigoEngine;
if (_local3 == undefined) {
com.mosesSupposes.fuse.FuseKitCommon.error("106");
return(null);
}
_local3.register(com.mosesSupposes.fuse.Fuse, com.mosesSupposes.fuse.FuseItem);
if (_oBuildMode == null) {
_oBuildMode = {curID:-1, prevID:-1, curGroup:null};
} else if ((_oBuildMode != null) && (_oBuildMode.curID > -1)) {
close();
}
if (fuseOrID != null) {
if (fuseOrID instanceof com.mosesSupposes.fuse.Fuse) {
_oBuildMode.curID = fuseOrID.id;
} else if (getInstance(fuseOrID) != null) {
_oBuildMode.curID = getInstance(fuseOrID).id;
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("107");
return(null);
}
} else {
_oBuildMode.curID = (new com.mosesSupposes.fuse.Fuse()).id;
}
_oBuildMode.prevID = _oBuildMode.curID;
return(getInstance(_oBuildMode.curID));
}
static function openGroup(fuseOrID) {
if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) {
open(fuseOrID);
} else if (_oBuildMode.curGroup != null) {
closeGroup();
}
_oBuildMode.curGroup = new Array();
return(getInstance(_oBuildMode.curID));
}
static function closeGroup() {
if ((_oBuildMode.curGroup == null) || (!((_oBuildMode != null) && (_oBuildMode.curID > -1)))) {
return(undefined);
}
getInstance(_oBuildMode.curID).push(_oBuildMode.curGroup);
_oBuildMode.curGroup = null;
}
static function close() {
if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) {
return(undefined);
}
if (_oBuildMode.curGroup != null) {
closeGroup();
}
_oBuildMode.curID = -1;
}
static function closeAndStart(setStart) {
if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) {
return(undefined);
}
var _local2 = getInstance(_oBuildMode.curID);
close();
_local2.start.apply(_local2, arguments);
}
static function startRecent(setStart) {
var _local2 = getInstance(_oBuildMode.prevID);
if (_local2 != null) {
_local2.start.apply(_local2, arguments);
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("108");
}
}
static function addCommand(commandOrScope, indexOrFunc, argument) {
if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) {
return(undefined);
}
var _local4 = _oBuildMode.curGroup != null;
var _local2 = ((_local4 == true) ? (_oBuildMode.curGroup) : (getInstance(_oBuildMode.curID)));
if (typeof(commandOrScope) == "string") {
var _local7 = indexOrFunc != undefined;
var _local5 = com.mosesSupposes.fuse.FuseKitCommon._validateFuseCommand(String(commandOrScope), _local4, _local7, OUTPUT_LEVEL, true);
if (_local5 == true) {
_local2.push({__buildMode:true, command:commandOrScope, commandargs:indexOrFunc});
}
} else {
_local2.push({__buildMode:true, scope:commandOrScope, func:indexOrFunc, args:arguments.slice(2)});
}
}
static function addBuildItem(args) {
if (!((_oBuildMode != null) && (_oBuildMode.curID > -1))) {
return(false);
}
var _local1 = ((_oBuildMode.curGroup != null) ? (_oBuildMode.curGroup) : (getInstance(_oBuildMode.curID)));
if ((args.length == 1) && (typeof(args[0]) == "object")) {
_local1.push(args[0]);
} else {
_local1.push({__buildMode:true, tweenargs:args});
}
return(true);
}
function normalizeIndex(indexOrLabel) {
var _local4;
if (typeof(indexOrLabel) == "string") {
_local4 = -1;
var _local3 = 0;
while (_local3 < length) {
if (this[_local3].label == String(indexOrLabel)) {
_local4 = _local3;
break;
}
_local3++;
}
if (_local4 == -1) {
return(null);
}
} else {
_local4 = Number(indexOrLabel);
}
if ((_global.isNaN(_local4) == true) || (Math.abs(_local4) >= length)) {
return(null);
}
if (_local4 < 0) {
_local4 = Math.max(0, length + _local4);
}
return(_local4);
}
static function registerInstance(s) {
if (_aInstances == null) {
_aInstances = new Array();
}
return(_aInstances.push(s) - 1);
}
static function removeInstanceAt(id, isDestroyCall) {
if (isDestroyCall != true) {
com.mosesSupposes.fuse.Fuse(_aInstances[id]).destroy();
}
delete _aInstances[id];
}
static var registryKey = "fuse";
static var VERSION = com.mosesSupposes.fuse.FuseKitCommon.VERSION;
static var OUTPUT_LEVEL = 1;
static var AUTOCLEAR = false;
static var AUTOSTOP = true;
var _nState = -1;
var _nDelay = -1;
var _nTimeCache = -1;
static var _aInstances = null;
static var _oBuildMode = null;
}
Symbol 1166 MovieClip [__Packages.com.mosesSupposes.fuse.FuseItem] Frame 0
class com.mosesSupposes.fuse.FuseItem
{
static var _ZigoEngine, _aInstances;
var _nItemID, _nFuseID, _initObj, _aProfiles, _oElements, _oTemps, _sImage, _aTweens, _oTwBeingAdded;
function FuseItem (id, o, fuseID) {
_ZigoEngine = _global.com.mosesSupposes.fuse.ZigoEngine;
_nItemID = id;
_nFuseID = fuseID;
_initObj = o;
_aProfiles = [];
_oElements = {aEvents:[]};
_oTemps = {};
if (!(o instanceof Array)) {
o = [o];
}
var _local19 = _global.com.mosesSupposes.fuse.Fuse;
_oTemps.outputLevel = ((_local19 != undefined) ? (_local19.OUTPUT_LEVEL) : (_global.com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL));
if (o.length == 1) {
var _local18 = o[0];
var _local12 = ((_local18.action != undefined) ? (_local18.action) : (_local18));
if ((_local12.__buildMode != true) && (_local12.command != undefined)) {
_oElements.command = _local12.command;
_oElements.scope = _local12.scope;
_oElements.args = _local12.args;
_sImage = " Elements:[" + ("command" + ((typeof(_local12.command) == "string") ? ((":\"" + _local12.command) + "\", ") : ", "));
if (_local12.delay != undefined) {
_sImage = _sImage + "delay, ";
_oElements.delay = _local12.delay;
}
_sImage = _sImage.slice(0, -2) + "]";
if ((_local12.func != undefined) && (_oTemps.outputLevel > 0)) {
com.mosesSupposes.fuse.FuseKitCommon.error("113");
}
return;
}
}
_oTemps.sImgS = "";
_oTemps.sImgE = "";
_oTemps.sImgB = "";
_oTemps.afl = 0;
_oTemps.ael = 0;
_oTemps.twDelayFlag = false;
_oTemps.nActions = o.length;
_oTemps.fuseProps = com.mosesSupposes.fuse.FuseKitCommon._fuseprops();
_oTemps.cbProps = com.mosesSupposes.fuse.FuseKitCommon._cbprops();
_oTemps.sUP = com.mosesSupposes.fuse.FuseKitCommon._underscoreable();
_oTemps.sCT = com.mosesSupposes.fuse.FuseKitCommon._cts();
_oTemps.bTriggerFound = false;
for (var _local17 in o) {
var _local3 = o[_local17];
if ((_local3.label != undefined) && (typeof(_local3.label) == "string")) {
_oElements.label = _local3.label;
}
var _local4;
var _local8 = Boolean(typeof(_local3.action) == "object");
if (_local8 == true) {
var _local7 = ((_local3.action instanceof Array) ? (_local3.action) : ([_local3.action]));
_local4 = {delay:_local3.delay, target:_local3.target, addTarget:_local3.addTarget, label:_local3.label, trigger:_local3.trigger};
for (var _local15 in _local7) {
var _local5 = parseProfile(_local7[_local15], _local4);
if (_local5 != undefined) {
_aProfiles.unshift(_local5);
}
}
} else {
var _local7 = _local3;
var _local5 = parseProfile(_local7, _local4);
if (_local5 != undefined) {
_aProfiles.unshift(_local5);
}
}
}
_sImage = "";
var _local16 = "";
if (_oTemps.afl > 0) {
_local16 = _local16 + ((_oTemps.afl > 1) ? (_oTemps.afl + " callbacks, ") : "callback, ");
}
if ((_oElements.delay != undefined) || (_oTemps.twDelayFlag == true)) {
_local16 = _local16 + "delay, ";
}
if (_oTemps.bTriggerFound == true) {
_local16 = _local16 + "trigger, ";
}
if (_oTemps.ael > 0) {
_local16 = _local16 + ((_oTemps.ael > 1) ? (_oTemps.ael + " events, ") : "event, ");
}
if (_local16 != "") {
_sImage = _sImage + ((" Elements:[" + _local16.slice(0, -2)) + "]");
}
if (_oTemps.sImgS != "") {
_sImage = _sImage + ((" StartProps:[" + _oTemps.sImgS.slice(0, -2)) + "]");
}
if (_oTemps.sImgE != "") {
_sImage = _sImage + ((" Props:[" + _oTemps.sImgE.slice(0, -2)) + "]");
}
if (_oTemps.sImgB != "") {
_sImage = _sImage + ((" Simple Syntax Props:[" + _oTemps.sImgB.slice(0, -1)) + "]");
}
if (_sImage.slice(-2) == ", ") {
_sImage = _sImage.slice(0, -2);
}
delete _oTemps;
}
static function doTween() {
for (var _local3 in arguments) {
if (typeof(arguments[_local3]) == "object") {
if (_aInstances == undefined) {
_aInstances = new Array();
}
var _local2 = new com.mosesSupposes.fuse.FuseItem(_aInstances.length, arguments[_local3], -1);
return(_local2.startItem());
}
}
}
function get label() {
return(_oElements.label);
}
function hasTriggerFired() {
return(_bTrigger == true);
}
function getInitObj() {
return(_initObj);
}
function getActiveTargets(targetList) {
if (_aTweens.length <= 0) {
return(targetList);
}
var _local3 = false;
for (var _local5 in _aTweens) {
for (var _local4 in targetList) {
if (targetList[_local4] == _aTweens[_local5].targ) {
_local3 = true;
break;
}
}
if (_local3 == false) {
targetList.unshift(_aTweens[_local5].targ);
}
}
return(targetList);
}
function toString() {
return(String((_sID() + ":") + _sImage));
}
function evalDelay(scope) {
var _local3 = _oElements.delay;
if (_local3 instanceof Function) {
_local3 = _local3.apply(((_oElements.delayscope != undefined) ? (_oElements.delayscope) : (scope)));
}
if (typeof(_local3) == "string") {
_local3 = parseClock(String(_local3));
}
if (_global.isNaN(Number(_local3)) == true) {
return(0);
}
return(Number(_local3));
}
function startItem(targs, scope, duration, easing) {
_ZigoEngine = _global.com.mosesSupposes.fuse.ZigoEngine;
var _local11 = _global.com.mosesSupposes.fuse.Fuse;
var _local5 = ((_local11 != undefined) ? (_local11.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL));
if (_oElements.command != null) {
var _local12 = _oElements.scope || (scope);
var _local10 = ((_oElements.command instanceof Function) ? (String(_oElements.command.apply(_local12))) : (String(_oElements.command)));
var _local6 = ((_oElements.args instanceof Function) ? (_oElements.args.apply(_local12)) : (_oElements.args));
var _local13 = com.mosesSupposes.fuse.FuseKitCommon._validateFuseCommand(_local10, _aProfiles.length > 0, (_local6 != null) && (!((_local6 instanceof Array) && (_local6.length == 0))), _local5, false);
if (_local13 == true) {
_nPlaying = 1;
if (!(_local6 instanceof Array)) {
_local6 = ((_local6 == null) ? ([]) : ([_local6]));
}
dispatchRequest(String(_local10), _local6);
}
if ((_local13 == false) || (_local10 == "setStartProps")) {
complete();
}
return(null);
}
if (_aTweens.length > 0) {
stop();
}
_ZigoEngine.addListener(this);
_nPlaying = 2;
var _local4 = null;
if (_aProfiles.length > 0) {
if (_ZigoEngine == undefined) {
com.mosesSupposes.fuse.FuseKitCommon.error("112");
} else {
_local4 = doTweens(targs, scope, duration, easing, false, false);
}
}
_nPlaying = 1;
var _local3 = _oElements.aEvents;
for (var _local9 in _local3) {
if (((_local4 == null) && (_aTweens.length > 0)) && (_local3[_local9].skipLevel == 2)) {
continue;
}
fireEvents(_local3[_local9], scope, _local5, targs);
}
if (((_local4 == null) && (_aTweens.length <= 0)) && (_nPlaying == 1)) {
if (_local5 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((_sID() + " no tweens added - item done. [getTimer()=") + getTimer()) + "]");
}
complete();
}
return(_local4);
}
function stop() {
var _local2 = _nPlaying > -1;
_nPlaying = -1;
if (_local2 == true) {
onStop();
}
_ZigoEngine.removeListener(this);
}
static function removeInstance(id) {
com.mosesSupposes.fuse.FuseItem(_aInstances[id]).destroy();
delete _aInstances[id];
}
function onStop() {
_bStartSet = false;
for (var _local3 in _aTweens) {
var _local2 = _aTweens[_local3];
_local2.targ.removeListener(this);
_ZigoEngine.removeTween(_local2.targ, _local2.props);
delete _aTweens[_local3];
}
delete _aTweens;
_bTrigger = false;
}
function evtSetStart(o) {
if ((_sImage.indexOf("StartProps:") == -1) || (o.curIndex == _nItemID)) {
return(undefined);
}
if (o.all != true) {
var _local3 = false;
for (var _local4 in o.filter) {
if ((Number(o.filter[_local4]) == _nItemID) || (String(o.filter[_local4]) == _oElements.label)) {
_local3 = true;
}
}
if (_local3 == false) {
return(undefined);
}
}
_nPlaying = 2;
doTweens(o.targs, o.scope, null, null, true, false);
_nPlaying = -1;
_bStartSet = true;
}
function pause(resume) {
if (_nPlaying == -1) {
return(undefined);
}
_nPlaying = ((resume == true) ? 1 : 0);
for (var _local12 in _aTweens) {
var _local4 = _aTweens[_local12];
var _local2 = _local4.targ;
var _local3 = _local4.props;
if (resume == true) {
var _local5 = [];
var _local6 = _aTweens.length;
for (var _local8 in _local3) {
if (_ZigoEngine.isTweenPaused(_local2, _local3[_local8]) == false) {
_local5.push(_local3[_local8]);
}
}
if (_local5.length > 0) {
onTweenEnd({__zigoID__:_local4.targZID, props:_local5, isResume:true});
}
if (_aTweens.length == _local6) {
_local2.addListener(this);
_ZigoEngine.unpauseTween(_local2, _local4.props);
}
} else {
_local2.removeListener(this);
_ZigoEngine.pauseTween(_local2, _local4.props);
}
}
if ((resume == true) && (_aTweens.length <= 0)) {
complete();
} else if (resume == true) {
_ZigoEngine.addListener(this);
} else {
_ZigoEngine.removeListener(this);
}
}
function fastForward(ignore, targs, scope) {
if (_nPlaying == 1) {
for (var _local4 in _aTweens) {
var _local3 = _aTweens[_local4];
var _local2 = _local3.targ;
_local2.removeListener(this);
_ZigoEngine.ffTween(_local2, _local3.props, true);
}
return(undefined);
}
if (_nPlaying == 2) {
com.mosesSupposes.fuse.FuseKitCommon.error("125", _nItemID);
}
_nPlaying = 2;
doTweens(targs, scope, null, null, false, true);
stop();
}
function destroy() {
var _local3 = _nPlaying > -1;
_nPlaying = -1;
for (var _local5 in _aTweens) {
var _local2 = _aTweens[_local5];
_local2.targ.removeListener(this);
if (_local3 == true) {
_ZigoEngine.removeTween(_local2.targ, _local2.props);
}
delete _aTweens[_local5];
}
for (var _local4 in this) {
delete this[_local4];
}
}
function dispatchRequest(type, args) {
var _local4 = _global.com.mosesSupposes.fuse.Fuse.getInstance(_nFuseID);
if ((!(args instanceof Array)) && (args != null)) {
args = new Array(args);
}
Function(_local4[type]).apply(_local4, args);
}
function _sID() {
var _local3;
if (_nFuseID == -1) {
_local3 = "-One-off tween ";
} else {
_local3 = _global.com.mosesSupposes.fuse.Fuse.getInstance(_nFuseID).getHandle();
}
_local3 = _local3 + (">Item #" + String(_nItemID));
if (_oElements.label != undefined) {
_local3 = _local3 + ((" \"" + _oElements.label) + "\"");
}
return(_local3);
}
function parseProfile(obj, aap) {
var _local40;
var _local2;
var _local8;
if (obj.__buildMode == true) {
if (obj.command != undefined) {
if (obj.command == "delay") {
_oElements.delay = obj.commandargs;
} else if (obj.command == "trigger") {
if (_oTemps.bTriggerFound == false) {
_oTemps.bTriggerFound = true;
return({trigger:obj.commandargs, _doTimer:true});
}
if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("124", _sID(), obj.commandargs);
}
} else {
_oElements.command = obj.command;
_oElements.args = obj.commandargs;
}
}
if (obj.func != undefined) {
_oTemps.afl++;
_oElements.aEvents.unshift({scope:obj.scope, func:obj.func, args:obj.args});
}
if (obj.tweenargs != undefined) {
_oTemps.sImgB = _oTemps.sImgB + (obj.tweenargs[1].toString() + ",");
return(obj);
}
return(null);
}
var _local4 = {delay:((aap.delay != undefined) ? (aap.delay) : (obj.delay)), ease:obj.ease, seconds:obj.seconds, event:obj.event, eventparams:obj.eventparams, skipLevel:((((typeof(obj.skipLevel) == "number") && (obj.skipLevel >= 0)) && (obj.skipLevel <= 2)) ? (obj.skipLevel) : (_ZigoEngine.SKIP_LEVEL)), roundResults:obj.roundResults, oSP:{}, oEP:{}, oAFV:{}};
var _local22 = ((aap.trigger != undefined) ? (aap.trigger) : (obj.trigger));
if (_local22 != undefined) {
if (_oTemps.bTriggerFound == false) {
_local4.trigger = _local22;
_oTemps.bTriggerFound = true;
} else if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("124", _sID(), _local22);
}
}
if (_local4.delay == undefined) {
_local4.delay = obj.startAt;
}
if (_local4.ease == undefined) {
_local4.ease = obj.easing;
}
if (_local4.seconds == undefined) {
_local4.seconds = ((obj.duration != undefined) ? (obj.duration) : (obj.time));
}
if (aap.target != undefined) {
_local4.target = ((aap.target instanceof Array) ? (aap.target) : ([aap.target]));
} else if (obj.target != undefined) {
_local4.target = ((obj.target instanceof Array) ? (obj.target) : ([obj.target]));
}
if (obj.addTarget != undefined) {
_local4.addTarget = ((obj.addTarget instanceof Array) ? (obj.addTarget) : ([obj.addTarget]));
}
if (aap.addTarget != undefined) {
if (_local4.addTarget == undefined) {
_local4.addTarget = ((aap.addTarget instanceof Array) ? (aap.addTarget) : ([aap.addTarget]));
} else {
_local4.addTarget = ((_local4.addTarget instanceof Array) ? (_local4.addTarget.concat(aap.addTarget)) : (new Array(_local4.addTarget).concat(aap.addTarget)));
}
}
var _local15 = false;
for (_local2 in obj) {
var _local11 = obj[_local2];
if (_oTemps.cbProps.indexOf(("|" + _local2) + "|") > -1) {
if (_local2 != "skipLevel") {
_local4[_local2] = _local11;
}
continue;
}
if (_oTemps.fuseProps.indexOf(("|" + _local2) + "|") > -1) {
if (((_local2 == "command") && (_oTemps.nActions > 1)) && (_oTemps.outputLevel > 0)) {
com.mosesSupposes.fuse.FuseKitCommon.error("109", String(_local11), true);
}
continue;
}
if (typeof(_local11) == "object") {
var _local10 = ((_local11 instanceof Array) ? ([]) : ({}));
for (_local8 in _local11) {
_local10[_local8] = _local11[_local8];
}
_local11 = _local10;
}
var _local3;
var _local21;
if (_local2.indexOf("start_") == 0) {
if (((_local2 == "start_controlX") || (_local2 == "start_controlY")) || (_local2.indexOf("_bezier_") > -1)) {
if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("110", _sID(), _local2);
}
continue;
}
_local2 = _local2.slice(6);
_local3 = _local4.oSP;
} else {
_local3 = _local4.oEP;
}
if ((ADD_UNDERSCORES == true) && (_oTemps.sUP.indexOf(("|_" + _local2) + "|") > -1)) {
_local2 = "_" + _local2;
}
if (_oTemps.sCT.indexOf(("|" + _local2) + "|") > -1) {
var _local13 = (_local2 == "_tintPercent") && (_local3.colorProp.p == "_tint");
var _local12 = (_local2 == "_tint") && (_local3.colorProp.p == "_tintPercent");
if (((_local3.colorProp == undefined) || (_local13 == true)) || (_local12 == true)) {
if (_local13 == true) {
_local3.colorProp = {p:"_tint", v:{tint:_local3.colorProp.v, percent:_local11}};
} else if (_local12 == true) {
_local3.colorProp = {p:"_tint", v:{tint:_local11, percent:_local3.colorProp.v}};
} else {
_local3.colorProp = {p:_local2, v:_local11};
}
_local15 = true;
} else if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), _local2);
}
} else if (_local11 != null) {
_local3[_local2] = _local11;
_local15 = true;
}
}
if ((_local15 == false) && ((_local4.trigger != undefined) || (((_local4.delay != undefined) || (_local4.seconds != undefined)) && (((_local4.startfunc != undefined) || (_local4.updfunc != undefined)) || ((_local4.func != undefined) && (_oTemps.nActions > 1)))))) {
if (_ZigoEngine == undefined) {
com.mosesSupposes.fuse.FuseKitCommon.error("116");
} else {
if (_local4.func != undefined) {
_oTemps.afl++;
}
if (_local4.event != undefined) {
_oTemps.ael++;
}
_local4._doTimer = true;
if (_local4.delay != undefined) {
_oTemps.twDelayFlag = true;
}
return(_local4);
}
}
if (_local15 == true) {
var _local17 = _local4.oEP.colorProp != undefined;
var _local7 = 0;
while (_local7 < 2) {
var _local3 = ((_local7 == 0) ? (_local4.oSP) : (_local4.oEP));
var _local6 = ((_local7 == 0) ? (_oTemps.sImgS) : (_oTemps.sImgE));
var _local9 = _local3.colorProp.p;
if (_local9 != undefined) {
_local3[_local9] = _local3.colorProp.v;
delete _local3.colorProp;
}
if (((_local3._xscale != undefined) || (_local3._scale != undefined)) && ((_local3._width != undefined) || (_local3._size != undefined))) {
var _local14 = ((_local3._xscale != undefined) ? "_xscale" : "_scale");
delete _local3[_local14];
if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), _local14);
}
}
if (((_local3._yscale != undefined) || (_local3._scale != undefined)) && ((_local3._height != undefined) || (_local3._size != undefined))) {
var _local14 = ((_local3._yscale != undefined) ? "_yscale" : "_scale");
delete _local3[_local14];
if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), _local14);
}
}
if ((_local3._fade != undefined) && (_local3._alpha != undefined)) {
delete _local3._alpha;
if (_oTemps.outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), "_alpha");
}
}
for (_local2 in _local3) {
if (_local6.indexOf(_local2 + ", ") == -1) {
_local6 = _local6 + (_local2 + ", ");
}
if (_local3 == _local4.oSP) {
if ((_local4.oEP[_local2] == undefined) && (!((_local2 == _local9) && (_local17 == true)))) {
_local4.oAFV[_local2] = true;
_local4.oEP[_local2] = [];
}
}
}
((_local7 == 0) ? ((_oTemps.sImgS = _local6)) : ((_oTemps.sImgE = _local6)));
_local7++;
}
return(_local4);
}
if ((_local4.delay != undefined) && (_oTemps.nActions == 1)) {
_oElements.delay = _local4.delay;
_oElements.delayscope = _local4.scope;
}
if (_local4.event != undefined) {
_oTemps.ael++;
_oElements.aEvents.unshift({scope:_local4.scope, e:_local4.event, ep:_local4.eventparams, skipLevel:_local4.skipLevel});
}
var _local23 = _oElements.aEvents.length;
if (_local4.func != undefined) {
_oElements.aEvents.push({func:_local4.func, scope:_local4.scope, args:_local4.args, skipLevel:_local4.skipLevel});
}
_oTemps.afl = _oTemps.afl + (_oElements.aEvents.length - _local23);
return(undefined);
}
function doTweens(targs, defaultScope, defaultSeconds, defaultEase, setStart, isFF) {
if (_aTweens == null) {
_aTweens = [];
}
var tba = ((_oTwBeingAdded = {}));
var ZE = _ZigoEngine;
var _local35 = function (target, props, endvals, seconds, ease, delay, callback) {
if (target.__zigoID__ == null) {
ZE.initializeTargets(target);
}
tba[target.__zigoID__] = true;
var _local3 = ZE.doTween.apply(ZE, arguments);
tba[target.__zigoID__] = false;
return(((_local3 == null) ? ([]) : (_local3.split(","))));
};
var _local74 = _global.com.mosesSupposes.fuse.Fuse;
var _local19 = ((_local74 != undefined) ? (_local74.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL));
var _local24 = "";
var _local66 = 0;
var _local8;
var _local5;
var _local6;
var _local75 = (_bStartSet != true) && ((setStart == true) || (_sImage.indexOf("StartProps:") > -1));
var _local51 = 0;
while (_local51 < _aProfiles.length) {
if (_nPlaying < 2) {
return(null);
}
var _local4 = _aProfiles[_local51];
if (_local4.__buildMode == true) {
var _local10 = _aProfiles[_local51].tweenargs;
var _local65 = _local24;
if ((_local10[6].cycles === 0) || (_local10[6].cycles.toUpperCase() == "LOOP")) {
delete _local10[6].cycles;
if (_local19 > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("117", _sID());
}
}
var _local60 = com.mosesSupposes.fuse.FuseKitCommon.parseCallback(_local10[6]);
if (!(_local10[0] instanceof Array)) {
_local10[0] = [_local10[0]];
}
for (_local8 in _local10[0]) {
if (isFF == true) {
_local35(_local10[0][_local8], _local10[1], _local10[2], 0, null, 0, {skipLevel:0});
if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((("\n-" + _sID()) + " FF(simple syntax)\ttargets:[") + _local10[0][_local8]) + "]\tprops:[") + _local10[1]) + "]");
}
} else {
var _local17 = _local35(_local10[0][_local8], _local10[1], _local10[2], _local10[3], _local10[4], _local10[5], _local60);
if (_local17.length > 0) {
_aTweens.push({targ:_local10[0][_local8], props:_local17, targZID:_local10[0][_local8].__zigoID__});
_local10[0][_local8].addListener(this);
for (_local5 in _local17) {
if (_local24.indexOf(_local17[_local5] + ",") == -1) {
_local24 = _local24 + (_local17[_local5] + ",");
}
}
}
if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((("\n-" + _sID()) + " TWEEN(simple syntax)\ttargets:[") + _local10[0][_local8]) + "]\tprops tweened:[") + _local17.toString()) + "]");
}
}
}
if ((isFF == false) && ((_local65 == _local24) || (_local24 == ""))) {
_local66++;
}
} else {
var _local23 = defaultScope;
var _local16 = [];
var _local52 = ((_local4.target == undefined) ? (targs) : (_local4.target));
var _local26 = [];
var _local54 = false;
for (_local8 in _local52) {
var _local7 = _local52[_local8];
_local26 = _local26.concat(((_local7 instanceof Function) ? (_local7.apply(_local23)) : (_local7)));
}
for (_local8 in _local4.addTarget) {
var _local7 = _local4.addTarget[_local8];
_local26 = _local26.concat(((_local7 instanceof Function) ? (_local7.apply(_local23)) : (_local7)));
}
for (_local8 in _local26) {
var _local7 = _local26[_local8];
if (_local7 != null) {
var _local40 = false;
for (_local5 in _local16) {
if (_local16[_local5] == _local7) {
_local40 = true;
break;
}
}
if (_local40 == false) {
_local16.unshift(_local7);
}
} else {
_local54 = true;
}
}
var _local56 = ((_local4._doTimer == true) && (_local16.length == 0)) && (isFF == false);
if ((_local54 == true) || ((_local16.length == 0) && (_local4._doTimer != true))) {
_local66++;
}
if (_local75 == true) {
for (_local8 in _local16) {
if (_nPlaying < 2) {
return(null);
}
var _local36 = _local16[_local8];
var _local33 = [];
var _local27 = [];
if (setStart == true) {
for (var _local63 in _local4.oEP) {
_global.com.mosesSupposes.fuse.FuseFMP.getFilterProp(_local36, _local63, true);
}
}
for (var _local64 in _local4.oSP) {
var _local7 = _local4.oSP[_local64];
if (_local7 instanceof Function) {
_local7 = _local7.apply(_local23);
}
if ((_local7 === true) || (_local7 === false)) {
_local36[_local64] = _local7;
if (_local4.oAFV[_local64] == true) {
for (_local6 in _local4.oEP[_local64]) {
if (_local4.oEP[_local64][_local6].targ == _local36) {
_local4.oEP[_local64].splice(Number(_local6), 1);
}
}
_local4.oEP[_local64].push({targ:_local36, val:"IGNORE", _isAF:true});
}
continue;
}
if (((_local4.oAFV[_local64] == true) && (!((_local64 == "_colorReset") && (_local7 == 100)))) && (!((_local64 == "_tintPercent") && (_local7 == 0)))) {
var _local20;
if ((_local64 == "_tint") || (_local64 == "_colorTransform")) {
_local20 = _ZigoEngine.getColorTransObj();
} else if ((String(com.mosesSupposes.fuse.FuseKitCommon._resetTo100()).indexOf(("|" + _local64) + "|") > -1) || ((_local64 == "_fade") && (_local7 < 50))) {
_local20 = 100;
} else if ((String(com.mosesSupposes.fuse.FuseKitCommon._resetTo0()).indexOf(("|" + _local64) + "|") > -1) || (_local64 == "_fade")) {
_local20 = 0;
} else {
var _local29 = _global.com.mosesSupposes.fuse.FuseFMP.getFilterProp(_local36, _local64, true);
if (_local29 != null) {
_local20 = _local29;
} else {
_local20 = ((_global.isNaN(_local36[_local64]) == false) ? _local36[_local64] : 0);
}
}
for (_local6 in _local4.oEP[_local64]) {
if (_local4.oEP[_local64][_local6].targ == _local36) {
_local4.oEP[_local64].splice(Number(_local6), 1);
}
}
_local4.oEP[_local64].push({targ:_local36, val:_local20, _isAF:true});
}
if (typeof(_local7) == "object") {
var _local28 = ((_local7 instanceof Array) ? ([]) : ({}));
for (_local6 in _local7) {
_local28[_local6] = ((_local7[_local6] instanceof Function) ? Function(_local7[_local6]).apply(_local23) : _local7[_local6]);
}
_local7 = _local28;
}
_local33.push(_local64);
_local27.push(_local7);
}
if (_local27.length > 0) {
if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output((((_sID() + " ") + _local36) + " SET STARTS: ") + [("[" + _local33) + "]", ("[" + _local27) + "]"]);
}
_local35(_local36, _local33, _local27, 0);
}
}
}
if (setStart == true) {
} else {
var _local25;
var _local50;
var _local32;
var _local12;
var _local49;
var _local21;
var _local43 = "";
if (isFF == false) {
if (_local4.scope != undefined) {
_local23 = _local4.scope;
}
_local50 = ((_local4.skipLevel instanceof Function) ? (_local4.skipLevel.apply(_local23)) : (_local4.skipLevel));
var _local71 = ((_local4.extra1 instanceof Function) ? (_local4.extra1.apply(_local23)) : (_local4.extra1));
var _local70 = ((_local4.extra2 instanceof Function) ? (_local4.extra2.apply(_local23)) : (_local4.extra2));
var _local72 = ((_local4.roundResults instanceof Function) ? (_local4.roundResults.apply(_local23)) : (_local4.roundResults));
_local32 = {skipLevel:_local50, extra1:_local71, extra2:_local70, roundResults:_local72};
_local12 = {skipLevel:_local50, extra1:_local71, extra2:_local70, roundResults:_local72};
if (_local4.cycles != undefined) {
var _local55 = ((_local4.cycles instanceof Function) ? (_local4.cycles.apply(_local23)) : (_local4.cycles));
if (((Number(_local55) == 0) || (String(_local55).toUpperCase() == "LOOP")) && (_local74 != undefined)) {
delete _local4.cycles;
if (_local19 > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("117", _sID());
}
} else {
_local32.cycles = (_local12.cycles = _local55);
}
}
if (((_local4.func != undefined) || (_local4.startfunc != undefined)) || (_local4.updfunc != undefined)) {
for (_local8 in _local4) {
if (_local8.indexOf("func") > -1) {
_local12[_local8] = _local4[_local8];
} else if (((_local8 == "startscope") || (_local8 == "updscope")) || (_local8.indexOf("args") > -1)) {
_local12[_local8] = _local4[_local8];
}
}
if (_local23 != undefined) {
if ((_local12.func != undefined) && (_local12.scope == undefined)) {
_local12.scope = _local23;
}
if ((_local12.updfunc != undefined) && (_local12.updscope == undefined)) {
_local12.updscope = _local23;
}
if ((_local12.startfunc != undefined) && (_local12.startscope == undefined)) {
_local12.startscope = _local23;
}
}
}
for (_local5 in _local12) {
_local43 = _local43 + (((_local5 + ":") + _local12[_local5]) + "|");
}
if (_local4.event != undefined) {
_local25 = {scope:_local4.scope, e:_local4.event, ep:_local4.eventparams, skipLevel:_local50};
}
_local49 = _local4.trigger === true;
_local21 = undefined;
if ((_local49 == false) && (_local4.trigger != undefined)) {
_local21 = ((_local4.trigger instanceof Function) ? (_local4.trigger.apply(_local23)) : (_local4.trigger));
if (typeof(_local21) == "string") {
_local21 = ((String(_local21).charAt(0) == "-") ? (-parseClock(String(_local21).slice(1))) : (parseClock(String(_local21))));
}
if (_global.isNaN(_local21) == true) {
_local21 = undefined;
}
}
}
var _local18;
var _local13;
var _local22;
var _local15;
var _local42 = false;
var _local53 = ((_local56 == false) ? (_local16) : ([0]));
var _local34 = -1;
for (_local8 in _local53) {
if (_nPlaying < 2) {
return(null);
}
if (isFF == false) {
if (_local4.ease != null) {
_local22 = _local4.ease;
if (_local22 instanceof Function) {
var _local44 = Function(_local22);
if (typeof(_local44(1, 1, 1, 1)) != "number") {
_local22 = _local44.apply(_local23);
}
}
}
if (_local22 == null) {
_local22 = defaultEase;
}
_local13 = ((_local4.seconds instanceof Function) ? (_local4.seconds.apply(_local23)) : (_local4.seconds));
if (_local13 != undefined) {
if (typeof(_local13) == "string") {
_local13 = parseClock(String(_local13));
}
if (_global.isNaN(_local13) == true) {
_local13 = _ZigoEngine.DURATION || 0;
}
}
if (_local13 == null) {
_local13 = defaultSeconds;
}
_local18 = ((_local4.delay instanceof Function) ? (_local4.delay.apply(_local23)) : (_local4.delay));
if (typeof(_local18) == "string") {
_local18 = parseClock(String(_local18));
}
if ((_local18 == null) || (_global.isNaN(_local18) == true)) {
_local18 = 0;
}
if (_local56 == true) {
continue;
}
}
var _local36 = _local53[_local8];
var _local9 = [];
var _local11 = [];
var _local46 = 0;
var _local14 = -2;
for (var _local64 in _local4.oEP) {
var _local7 = _local4.oEP[_local64];
if (_local7 instanceof Function) {
_local7 = _local7.apply(_local23);
}
if ((_local7 === true) || (_local7 === false)) {
if (_local15 == undefined) {
_local15 = {};
}
_local15[_local64] = _local7;
_local46++;
continue;
}
if (typeof(_local7) == "object") {
if (_local7[0]._isAF == true) {
for (_local6 in _local7) {
if (_local7[_local6].targ == _local36) {
_local7 = _local7[_local6].val;
break;
}
}
} else {
var _local28 = ((_local7 instanceof Array) ? [] : {});
for (_local6 in _local7) {
_local28[_local6] = ((_local7[_local6] instanceof Function) ? Function(_local7[_local6]).apply(_local23) : _local7[_local6]);
}
_local7 = _local28;
}
}
if (_local7 != "IGNORE") {
if (_local64 == "_bezier_") {
_local14 = _local9.length;
} else if ((_local14 == -2) && ((_local64 == "controlX") || (_local64 == "controlY"))) {
_local14 = -1;
}
_local9.push(_local64);
_local11.push(_local7);
}
}
if (_local11.length > 0) {
if (_local14 > -2) {
if (_local14 == -1) {
_local14 = _local9.length;
}
_local9[_local14] = "_bezier_";
if (typeof(_local11[_local14]) != "object") {
_local11[_local14] = {};
}
var _local37 = _local11[_local14];
for (_local5 in _local9) {
if ("|x|y|_x|_y|controlX|controlY|".indexOf(("|" + _local9[_local5]) + "|") > -1) {
if (_local9[_local5].charAt(0) == "_") {
_local9[_local5] = _local9[_local5].slice(-1);
}
if (typeof(_local37[_local9[_local5]]) == "number") {
if ((_local19 > 0) && ((_local34 == -1) || (_local34 == _local8))) {
com.mosesSupposes.fuse.FuseKitCommon.error("115", _sID(), _local9[_local5]);
_local34 = Number(_local8);
}
} else {
_local37[_local9[_local5]] = _local11[_local5];
}
_local9.splice(Number(_local5), 1);
_local11.splice(Number(_local5), 1);
}
}
}
if (isFF == true) {
if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((("\n-" + _sID()) + " FF\ttargets:[") + _local36) + "]\tprops:[") + _local9.toString()) + "]");
}
_local35(_local36, _local9, _local11, 0, null, 0, {skipLevel:0});
continue;
}
var _local31 = {caught:false, onTweenEnd:function (evto) {
this.caught = true;
}};
_local36.addListener(_local31);
var _local17 = _local35(_local36, _local9, _local11, _local13, _local22, _local18, _local12);
_local36.removeListener(_local31);
if (_local17.length == 0) {
if (_local31.caught == true) {
_local12 = _local32;
}
} else {
if (_local17.length > 0) {
var _local38 = {targ:_local36, props:_local17, bools:_local15, targZID:_local36.__zigoID__};
if (_local42 == false) {
_local12 = _local32;
_local38.event = _local25;
_local15 = undefined;
_local25 = _local15;
_local38.trigger = _local49;
}
_aTweens.push(_local38);
_local36.addListener(this);
_local42 = true;
for (_local5 in _local17) {
if (_local24.indexOf(_local17[_local5] + ",") == -1) {
_local24 = _local24 + (_local17[_local5] + ",");
}
}
}
if (_local19 == 3) {
var _local45 = _local9.toString();
if (_local17.length > _local9.length) {
_local45 = _local45 + (("\n\t[NO-CHANGE PROPS DISCARDED (disregard this for double props like _scale). KEPT:" + _local17.toString()) + "]");
}
var _local30 = "";
for (_local5 in _local11) {
_local30 = (((typeof(_local11[_local5]) == "string") ? (("\"" + _local11[_local5]) + "\"") : _local11[_local5]) + ", ") + _local30;
}
com.mosesSupposes.fuse.FuseKitCommon.output((("\n-" + _sID()) + " TWEEN:\n") + [("\t[getTimer():" + getTimer()) + "] ", "targ: " + _local36, "props: " + _local45, "endVals: " + _local30, "time: " + ((_local13 == undefined) ? _ZigoEngine.DURATION : _local13), "easing: " + ((_local22 == undefined) ? _ZigoEngine.EASING : _local22), "delay: " + ((_local18 == undefined) ? 0 : _local18), "callbacks: " + ((_local43 == "") ? "(none)" : _local43)].join("\n\t"));
}
}
_local31 = undefined;
}
}
if ((_global.isNaN(_local13) == true) || (_local4.seconds == null)) {
_local13 = 0;
}
var _local39 = _local18 + _local13;
if (_local21 != undefined) {
if (_local21 < 0) {
_local21 = _local21 + _local39;
}
if ((_local21 > 0) && ((_local39 == 0) || (_local21 < _local39))) {
if (_local39 == 0) {
if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((((((_sID() + " graft a timed trigger (") + _local21) + " sec). [has callback:") + (_local12 != _local32)) + ", has event:") + (_local25 != undefined)) + ", has booleans:") + (_local15 != undefined)) + "]");
}
doTimerTween(null, _local21, 0, true, _local15, _local12, _local25);
_local42 = true;
} else {
if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((_sID() + " graft a timed trigger (") + _local21) + " sec).");
}
doTimerTween(null, _local21, 0, true);
}
} else if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((_sID() + " timed trigger discarded: out of range. [") + _local21) + "/") + _local39) + "]");
}
}
if ((_local42 == false) && (((_local12 != _local32) || (_local25 != undefined)) || (_local15 != undefined))) {
if ((_local50 == 0) && (_local39 > 0)) {
if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((((((_sID() + " no props tweened - graft a delay (") + _local39) + " sec). [has callback:") + (_local12 != _local32)) + ", has event:") + (_local25 != undefined)) + ", has booleans:") + (_local15 != undefined)) + "]");
}
doTimerTween(_local16, _local13, _local18, _local49, _local15, _local12, _local25);
} else {
if (_local19 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((((((_sID() + " no props tweened, executing nontween items. [has callback:") + (_local12 != _local32)) + ", has event:") + (_local25 != undefined)) + ", has booleans:") + (_local15 != undefined)) + "]");
}
for (_local8 in _local16) {
for (_local5 in _local15) {
_local16[_local8][_local5] = _local15[_local5];
}
}
if (_local50 < 2) {
if (_local12 != undefined) {
fireEvents(_local12, _local23, _local19, _local16);
}
if (_local25 != undefined) {
fireEvents(_local25, _local23, _local19);
}
}
}
}
}
}
_local51++;
}
if ((_local66 > 0) && (_local19 > 0)) {
if ((_local66 == _aProfiles.length) && (_local24 == "")) {
com.mosesSupposes.fuse.FuseKitCommon.error("118", _sID(), setStart);
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("119", _sID(), _local66, _local75);
}
}
tba = undefined;
_oTwBeingAdded = undefined;
return(((_local24 == "") ? null : (_local24.slice(0, -1))));
}
function doTimerTween(actualTargets, duration, delay, trigger, booleans, callback, event) {
var _local2 = {__TweenedDelay:0};
_ZigoEngine.initializeTargets(_local2);
_aTweens.push({targ:_local2, props:["__TweenedDelay"], trigger:trigger, bools:booleans, event:event, actualTargs:actualTargets, targZID:_local2.__zigoID__});
var _local3 = _ZigoEngine.doTween(_local2, "__TweenedDelay", 1, duration, null, delay, callback) == null;
if (_local3 == true) {
onTweenEnd({target:_local2, props:["__TweenedDelay"]});
} else {
_local2.addListener(this);
}
}
function onTweenEnd(o, doAutoStop) {
if (_nPlaying < 1) {
return(undefined);
}
var _local12 = _global.com.mosesSupposes.fuse.Fuse;
var _local8 = ((_local12 != undefined) ? (_local12.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL));
var _local11 = ((!(o.__zigoID__ === undefined)) ? (o.__zigoID__) : (o.target.__zigoID__));
for (var _local19 in _aTweens) {
var _local3 = _aTweens[_local19];
if (_local3.targZID == _local11) {
for (var _local18 in o.props) {
var _local7 = _local3.props;
for (var _local16 in _local7) {
var _local5 = _local7[_local16];
if (_local5 == o.props[_local18]) {
_local7.splice(Number(_local16), 1);
if (doAutoStop == true) {
var _local6 = _local12.getInstance(_nFuseID);
var _local10 = (((_bTrigger == true) && (o.during == "add")) && (_local6[_local6.currentIndex]._oTwBeingAdded[_local11] === true)) && (_local6.state == "playing");
if (_local10 == false) {
_local3.targ.removeListener(this);
for (var _local19 in _aTweens) {
if (_aTweens[_local19].targZID == _local11) {
for (var _local18 in o.props) {
for (var _local16 in _aTweens[_local19].props) {
if (_aTweens[_local19].props[_local16] == o.props[_local18]) {
_aTweens[_local19].props.splice(Number(_local16), 1);
}
}
}
if (_aTweens[_local19].props.length == 0) {
_aTweens.splice(Number(_local19), 1);
}
}
}
if (_local8 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(_sID() + " triggering auto-stop due to interruption");
}
if ((_local6.autoClear == true) || ((!(_local6.autoClear === false)) && (_local12.AUTOCLEAR == true))) {
dispatchRequest("destroy");
} else {
dispatchRequest("stop");
}
return(undefined);
}
if (_local8 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(((("note -" + _sID()) + " interrupted one of its own properties \"") + _local5) + "\". (Autostop not triggered.)");
}
}
if ((_nPlaying == 2) && (_local5 != "__TweenedDelay")) {
if (_local8 > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("120", _sID(), _local5);
}
}
if (_local7.length == 0) {
if (_local3.event != undefined) {
fireEvents(_local3.event, null, _local8);
}
if (_local5 == "__TweenedDelay") {
_ZigoEngine.deinitializeTargets(_local3.targ);
delete _local3.targ;
for (var _local14 in _local3.bools) {
for (var _local13 in _local3.actualTargs) {
_local3.actualTargs[_local13][_local14] = _local3.bools[_local14];
}
}
} else {
var _local9 = false;
for (var _local14 in _local3.bools) {
_local3.targ[_local14] = _local3.bools[_local14];
}
for (var _local15 in _aTweens) {
if ((_local15 != _local19) && (_aTweens[_local15].targ == _local3.targ)) {
_local9 = true;
}
}
if (_local9 == false) {
_local3.targ.removeListener(this);
}
}
if (_local3.trigger == true) {
if (((_bTrigger == false) && (o.isResume != true)) && (_aTweens.length > 1)) {
_bTrigger = true;
if (_local8 == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(_sID() + " trigger fired!");
}
var breakChainInt;
breakChainInt = setInterval(function (fi) {
clearInterval(breakChainInt);
fi.dispatchRequest("advance", [false, false, false]);
}, 1, this);
}
}
_aTweens.splice(Number(_local19), 1);
}
}
}
}
}
}
if (((_aTweens.length == 0) && (_nPlaying == 1)) && (o.isResume != true)) {
complete(_local8);
}
}
function onTweenInterrupt(o) {
if (_nPlaying == -1) {
return(undefined);
}
var _local4 = _global.com.mosesSupposes.fuse.Fuse;
var _local6 = _local4.getInstance(_nFuseID);
var _local8 = (_local6.autoStop == true) || ((!(_local6.autoStop === false)) && (_local4.AUTOSTOP == true));
var _local3 = o.__zigoID__;
var _local9 = ((_local4 != undefined) ? (_local4.OUTPUT_LEVEL) : (_ZigoEngine.OUTPUT_LEVEL));
if ((_local8 == true) || ((!(_local8 === false)) && (_local4.AUTOSTOP == true))) {
onTweenEnd(o, true);
return(undefined);
}
if (typeof(o.target) != "string") {
onTweenEnd(o);
return(undefined);
}
for (var _local5 in _aTweens) {
if (_aTweens[_local5].targZID == _local3) {
_aTweens.splice(Number(_local5), 1);
}
}
if ((_aTweens.length == 0) && (_nPlaying == 1)) {
complete(_local9);
}
}
function complete(outputLevel) {
if (outputLevel == 3) {
com.mosesSupposes.fuse.FuseKitCommon.output(_sID() + " complete.");
}
var breakChainInt;
breakChainInt = setInterval(function (fi, trigger) {
clearInterval(breakChainInt);
var _local1 = fi._nPlaying;
if (trigger != true) {
if (_local1 < 1) {
return(undefined);
}
}
fi.stop();
if (_local1 > 0) {
fi.dispatchRequest("advance", [trigger, false, false]);
}
}, 1, this, _bTrigger);
}
function parseClock(str) {
if (str.indexOf(":") != 2) {
com.mosesSupposes.fuse.FuseKitCommon.error("121");
return(_ZigoEngine.DURATION || 0);
}
var _local4 = 0;
var _local3 = str.split(":");
_local3.reverse();
var _local2;
if ((String(_local3[0]).length == 2) && (_global.isNaN(_local2 = Math.abs(Number(_local3[0]))) == false)) {
_local4 = _local4 + (_local2 / 100);
}
if (((String(_local3[1]).length == 2) && (_global.isNaN(_local2 = Math.abs(Number(_local3[1]))) == false)) && (_local2 < 60)) {
_local4 = _local4 + _local2;
}
if (((String(_local3[2]).length == 2) && (_global.isNaN(_local2 = Math.abs(Number(_local3[2]))) == false)) && (_local2 < 60)) {
_local4 = _local4 + (_local2 * 60);
}
if (((String(_local3[3]).length == 2) && (_global.isNaN(_local2 = Math.abs(Number(_local3[3]))) == false)) && (_local2 < 24)) {
_local4 = _local4 + (_local2 * 3600);
}
return(_local4);
}
function fireEvents(o, scope, outputLevel, targets) {
if (o.scope == undefined) {
o.scope = scope;
}
if (o.e == undefined) {
var _local3 = com.mosesSupposes.fuse.FuseKitCommon.parseCallback(o, targets, outputLevel, false);
if (_local3.start.f != null) {
_local3.start.f.apply(_local3.start.s, _local3.start.a);
}
if (_local3.upd.f != null) {
_local3.upd.f.apply(_local3.upd.s, _local3.upd.a);
}
if (_local3.end.f != null) {
_local3.end.f.apply(_local3.end.s, _local3.end.a);
}
} else {
var _local6 = ((o.e instanceof Function) ? (String(o.e.apply(scope))) : (String(o.e)));
if ((_local6 != "undefined") && (_local6.length > 0)) {
if (String(com.mosesSupposes.fuse.FuseKitCommon._fuseEvents()).indexOf(("|" + _local6) + "|") > -1) {
if (outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("122", _local6);
}
} else {
var _local7 = _global.com.mosesSupposes.fuse.Fuse.getInstance(_nFuseID);
var _local5 = ((o.ep instanceof Function) ? (o.ep.apply(scope)) : (o.ep));
if ((_local5 == null) || (typeof(_local5) != "object")) {
_local5 = {};
}
_local5.target = _local7;
_local5.type = _local6;
_local7.dispatchEvent.call(_local7, _local5);
}
} else if (outputLevel > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("123", _sID());
}
}
}
static var registryKey = "fuseItem";
static var ADD_UNDERSCORES = true;
var _nPlaying = -1;
var _bStartSet = false;
var _bTrigger = false;
}
Symbol 1167 MovieClip [__Packages.com.mosesSupposes.fuse.ZigoEngine] Frame 0
class com.mosesSupposes.fuse.ZigoEngine
{
static var extensions, updateTime, tweenHolder, instance, _listeners, broadcastMessage, updateIntId;
function ZigoEngine () {
}
static function addListener(handler) {
AsBroadcaster.initialize(com.mosesSupposes.fuse.ZigoEngine);
addListener(handler);
}
static function removeListener(handler) {
}
static function isPlaying() {
return(_playing);
}
static function simpleSetup(shortcutsClass) {
if (arguments.length > 0) {
register.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
}
_global.ZigoEngine = com.mosesSupposes.fuse.ZigoEngine;
if (extensions.fuse != undefined) {
_global.Fuse = extensions.fuse;
}
if (extensions.fuseFMP != undefined) {
extensions.fuseFMP.simpleSetup();
}
initialize(MovieClip.prototype, Button.prototype, TextField.prototype);
if (extensions.shortcuts == undefined) {
com.mosesSupposes.fuse.FuseKitCommon.error("001");
}
}
static function register(classReference) {
if (extensions == undefined) {
extensions = {};
}
var _local3 = "|fuse|fuseItem|fuseFMP|shortcuts|pennerEasing|customEasing|";
for (var _local4 in arguments) {
var _local2 = arguments[_local4].registryKey;
if ((extensions[_local2] == undefined) && (_local3.indexOf(("|" + _local2) + "|") > -1)) {
extensions[_local2] = arguments[_local4];
if ((_local2 == "fuseFMP") || (_local2 == "shortcuts")) {
Object(extensions[_local2]).initialize();
}
}
}
}
static function initialize(target) {
if (arguments.length > 0) {
initializeTargets.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
if (extensions.shortcuts != undefined) {
extensions.shortcuts.addShortcutsTo.apply(extensions.shortcuts, arguments);
}
}
}
static function deinitialize(target) {
if ((arguments.length == 0) || (target == null)) {
arguments.push(MovieClip.prototype, Button.prototype, TextField.prototype);
}
deinitializeTargets.apply(com.mosesSupposes.fuse.ZigoEngine, arguments);
if (extensions.shortcuts != undefined) {
extensions.shortcuts.removeShortcutsFrom.apply(extensions.shortcuts, arguments);
}
}
static function getUpdateInterval() {
return(updateTime);
}
static function setUpdateInterval(time) {
if (_playing) {
setup(true);
updateTime = time;
setup();
} else {
updateTime = time;
}
}
static function getControllerDepth() {
return(tweenHolder.getDepth());
}
static function setControllerDepth(depth) {
if ((depth == null) || (_global.isNaN(depth) == true)) {
depth = 6789;
}
if (Object(tweenHolder).proof != null) {
tweenHolder.swapDepths(depth);
} else {
tweenHolder = _root.createEmptyMovieClip("ZigoEnginePulse", depth);
}
}
static function doShortcut(targets, methodName) {
if (extensions.shortcuts == undefined) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("002");
}
return(null);
}
return(extensions.shortcuts.doShortcut.apply(extensions.shortcuts, arguments));
}
static function doTween(targets, props, endvals, seconds, ease, delay, callback) {
if (extensions.fuse.addBuildItem(arguments) == true) {
return(null);
}
if (TIME_MULTIPLIER != prevTimeMult) {
TIME_MULTIPLIER = Math.abs(TIME_MULTIPLIER);
if (_global.isNaN(TIME_MULTIPLIER) == true) {
TIME_MULTIPLIER = 1;
}
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("016", TIME_MULTIPLIER);
}
prevTimeMult = TIME_MULTIPLIER;
}
if ((instance == undefined) || ((Object(tweenHolder).proof == undefined) && (updateTime == undefined))) {
if ((MovieClip.prototype.tween != null) && (typeof(_global.$tweenManager) == "object")) {
com.mosesSupposes.fuse.FuseKitCommon.error("003");
}
instance = new com.mosesSupposes.fuse.ZManager();
_playing = false;
}
var _local4 = instance.paramsObj(targets, props, endvals, true);
var _local7 = (((_local4.tg[0] == null) || (_local4.tg.length == 0)) ? undefined : (_local4.tg));
if (((_local4.pa == undefined) || (_local7 == undefined)) || (arguments.length < 3)) {
if (((extensions.fuseItem != null) && (arguments.length == 1)) && (typeof(arguments[0]) == "object")) {
return(extensions.fuseItem.doTween(arguments[0]));
}
if (OUTPUT_LEVEL > 0) {
if (arguments.length < 3) {
com.mosesSupposes.fuse.FuseKitCommon.error("004", (((arguments.length == 1) && (arguments[0] == null)) ? "1 (null)" : (String(arguments.length))), Boolean(extensions.fuseItem == null));
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("005", _local7.toString(), _local4.pa.toString());
}
}
return(null);
}
if (_playing != true) {
setup();
}
if ((seconds == null) || (_global.isNaN(seconds) == true)) {
seconds = DURATION || 1;
} else if (seconds < 0.01) {
seconds = 0;
}
seconds = seconds * TIME_MULTIPLIER;
if (((delay < 0.01) || (delay == null)) || (_global.isNaN(delay) == true)) {
delay = 0;
}
delay = delay * TIME_MULTIPLIER;
var _local12 = com.mosesSupposes.fuse.FuseKitCommon.parseCallback(callback, _local7, OUTPUT_LEVEL, true);
var _local9;
if (typeof(ease) == "function") {
if (typeof(Function(ease).call(null, 1, 1, 1, 1)) == "number") {
_local9 = Function(ease);
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("014", ease);
}
} else if ((ease == null) || (ease == "")) {
if (EASING instanceof Function) {
_local9 = Function(EASING);
} else if (extensions.pennerEasing != undefined) {
ease = EASING;
}
}
if ((typeof(ease) == "string") && (ease != "")) {
if (extensions.pennerEasing[ease] != undefined) {
_local9 = extensions.pennerEasing[ease];
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("006", ease);
}
} else if (ease instanceof Array) {
if (extensions.customEasing != undefined) {
_local12.extra1 = ease;
if (typeof(ease[0]) == "number") {
_local9 = extensions.customEasing.precalced;
} else {
_local9 = extensions.customEasing.fromCurve;
}
} else if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("015", ease);
}
}
if (typeof(_local9) != "function") {
_local9 = function (t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
};
}
if (_listeners.length > 0) {
broadcastMessage.call(com.mosesSupposes.fuse.ZigoEngine, "onTweenAdd", _local7, _local4.pa, _local4.va, seconds, _local9, delay, _local12);
}
var _local6 = "";
for (var _local13 in _local7) {
var _local3 = _local7[_local13];
if (_local3.__zigoID__ == null) {
initializeTargets(_local3);
} else if (instance.getStatus("locked", _local3) == true) {
if (OUTPUT_LEVEL > 0) {
com.mosesSupposes.fuse.FuseKitCommon.error("007", ((_local3._name != undefined) ? (_local3._name) : (_local3.toString())), _local4.pa.toString());
}
continue;
}
var _local5 = instance.addTween(_local3, _local4.pa, _local4.va, seconds, _local9, delay, _local12);
_local6 = ((_local5 == null) ? "|" : (_local5 + "|")) + _local6;
}
_local6 = _local6.slice(0, -1);
return((((_local6 == "") || (_local6 == "|")) ? null : (_local6)));
}
static function removeTween(targs, props) {
instance.removeTween(targs, props);
}
static function isTweening(targ, prop) {
return(Boolean(instance.getStatus("active", targ, prop)));
}
static function getTweens(targ) {
if (instance == undefined) {
return(0);
}
return(Number(instance.getStatus("count", targ)));
}
static function lockTween(targ, setLocked) {
instance.alterTweens("lock", targ, setLocked == true);
}
static function isTweenLocked(targ) {
return(Boolean(instance.getStatus("locked", targ)));
}
static function ffTween(targs, props, suppressEndEvents) {
instance.alterTweens("ff", targs, props, null, suppressEndEvents);
}
static function skipTweenTo(seconds, targs, props) {
instance.alterTweens("skipTo", targs, props, false, false, seconds);
}
static function rewTween(targs, props, pauseFlag, suppressStartEvents) {
instance.alterTweens("rewind", targs, props, pauseFlag, suppressStartEvents);
}
static function isTweenPaused(targ, prop) {
return(Boolean(instance.getStatus("paused", targ, prop)));
}
static function pauseTween(targs, props) {
instance.alterTweens("pause", targs, props);
}
static function unpauseTween(targs, props) {
instance.alterTweens("unpause", targs, props);
}
static function resumeTween(targs, props) {
instance.alterTweens("unpause", targs, props);
}
static function setColorByKey(targetObj, type, amt, rgb) {
new Color(targetObj).setTransform(getColorTransObj(type, amt, rgb));
}
static function getColorTransObj(type, amt, rgb) {
switch (type) {
case "brightness" :
var _local3 = 100 - Math.abs(amt);
var _local4 = ((amt > 0) ? (255 * (amt / 100)) : 0);
return({ra:_local3, rb:_local4, ga:_local3, gb:_local4, ba:_local3, bb:_local4});
case "brightOffset" :
return({ra:100, rb:255 * (amt / 100), ga:100, gb:255 * (amt / 100), ba:100, bb:255 * (amt / 100)});
case "contrast" :
return({ra:amt, rb:128 - (1.28 * amt), ga:amt, gb:128 - (1.28 * amt), ba:amt, bb:128 - (1.28 * amt)});
case "invertColor" :
return({ra:100 - (2 * amt), rb:amt * 2.55, ga:100 - (2 * amt), gb:amt * 2.55, ba:100 - (2 * amt), bb:amt * 2.55});
case "tint" :
if (rgb == null) {
break;
}
var _local5;
if (typeof(rgb) == "string") {
if (rgb.charAt(0) == "#") {
rgb = rgb.slice(1);
}
rgb = ((rgb.charAt(1).toLowerCase() != "x") ? ("0x" + rgb) : (rgb));
}
_local5 = Number(rgb);
return({ra:100 - amt, rb:(_local5 >> 16) * (amt / 100), ga:100 - amt, gb:((_local5 >> 8) & 255) * (amt / 100), ba:100 - amt, bb:(_local5 & 255) * (amt / 100)});
}
return({rb:0, ra:100, gb:0, ga:100, bb:0, ba:100});
}
static function getColorKeysObj(targOrTransObj) {
var _local1 = ((targOrTransObj.ra != undefined) ? (targOrTransObj) : (new Color(targOrTransObj).getTransform()));
var _local6 = (_local1.ra == _local1.ga) && (_local1.ga == _local1.ba);
var _local8 = (_local1.rb == _local1.gb) && (_local1.gb == _local1.bb);
var _local3 = {tintPercent:Number(((_local6 == true) ? (100 - _local1.ra) : 0))};
if (_local3.tintPercent != 0) {
var _local5 = 100 / _local3.tintPercent;
_local3.tint = (((_local1.rb * _local5) << 16) | ((_local1.gb * _local5) << 8)) | (_local1.bb * _local5);
var _local2 = _local3.tint.toString(16);
var _local4 = 6 - _local2.length;
while ((_local4--) > 0) {
_local2 = "0" + _local2;
}
_local3.tintString = "0x" + _local2.toUpperCase();
}
if ((_local6 == true) && (_local8 == true)) {
if (_local1.ra < 0) {
_local3.invertColor = _local1.rb * 0.392156862745098;
} else if ((_local1.ra == 100) && (_local1.rb != 0)) {
_local3.brightOffset = _local1.rb * 0.392156862745098;
}
if (_local1.ra != 100) {
if ((_local1.rb == 0) || ((_local1.rb != 0) && (((255 * ((100 - _local1.ra) / 100)) - _local1.rb) <= 1))) {
_local3.brightness = ((_local1.rb != 0) ? (100 - _local1.ra) : (_local1.ra - 100));
}
if (((128 - (1.28 * _local1.ra)) - _local1.rb) <= 1) {
_local3.contrast = _local1.ra;
}
}
}
return(_local3);
}
static function initializeTargets() {
for (var _local5 in arguments) {
var _local4 = arguments[_local5];
if ((((_local4 == MovieClip.prototype) || (_local4 == Button.prototype)) || (_local4 == TextField.prototype)) || (_local4 == Object.prototype)) {
if (_local4.oldAddListener == undefined) {
if (_local4 == TextField.prototype) {
_local4.oldAddListener = _local4.addListener;
_global.ASSetPropFlags(_local4, "oldAddListener", 7, 1);
}
_local4.addListener = function (o) {
if (this.__zigoID__ == undefined) {
com.mosesSupposes.fuse.ZigoEngine.initializeTargets(this);
}
if (this instanceof TextField) {
Function(this.oldAddListener).call(this, o);
} else {
this.addListener(o);
}
};
if (_local4 == MovieClip.prototype) {
_global.ASSetPropFlags(_local4, "addListener", 7, 1);
}
}
} else if (_local4.__zigoID__ == undefined) {
_local4.__zigoID__ = zigoIDs;
_global.ASSetPropFlags(_local4, "__zigoID__", 7, 1);
zigoIDs++;
if ((_local4._listeners == null) || (_local4.addListener == null)) {
AsBroadcaster.initialize(_local4);
}
}
}
}
static function deinitializeTargets() {
for (var _local4 in arguments) {
var _local3 = arguments[_local4];
if (_local3.__zigoID__ != undefined) {
_global.ASSetPropFlags(_local3, "__zigoID__,_listeners,broadcastMessage,addListener,removeListener", 0, 2);
delete _local3.__zigoID__;
delete _local3._listeners;
delete _local3.broadcastMessage;
delete _local3.addListener;
delete _local3.removeListener;
}
if (_local3.oldAddListener != undefined) {
_global.ASSetPropFlags(_local3, "oldAddListener", 0, 2);
_local3.addListener = _local3.oldAddListener;
delete _local3.oldAddListener;
}
}
}
static function __mgrRelay(inst, method, args) {
if (inst == instance) {
Function(com.mosesSupposes.fuse.ZigoEngine[method]).apply(com.mosesSupposes.fuse.ZigoEngine, args);
}
}
static function setup(deinitFlag) {
if (deinitFlag == true) {
_playing = false;
clearInterval(updateIntId);
delete tweenHolder.onEnterFrame;
return(undefined);
}
instance.cleanUp();
clearInterval(updateIntId);
delete updateIntId;
if ((updateTime != null) && (updateTime > 0)) {
updateIntId = setInterval(instance, "update", updateTime);
} else {
if (Object(tweenHolder).proof == null) {
setControllerDepth(6789);
Object(tweenHolder).proof = 1;
}
var _inst = instance;
tweenHolder.onEnterFrame = function () {
_inst.update.call(_inst);
};
}
_playing = true;
instance.now = getTimer();
}
static var VERSION = com.mosesSupposes.fuse.FuseKitCommon.VERSION + ", ZigoEngine based on concepts by L.Zigo";
static var EASING = "easeOutQuint";
static var DURATION = 1;
static var TIME_MULTIPLIER = 1;
static var ROUND_RESULTS = false;
static var OUTPUT_LEVEL = 1;
static var AUTOSTOP = false;
static var SKIP_LEVEL = 0;
static var _playing = false;
static var zigoIDs = 0;
static var prevTimeMult = 1;
}
Symbol 1168 MovieClip [__Packages.com.mosesSupposes.fuse.ZManager] Frame 0
class com.mosesSupposes.fuse.ZManager
{
var tweens, now;
function ZManager () {
tweens = {};
numTweens = 0;
}
function addTween(obj, props, endvals, seconds, ease, delay, callback) {
var _local24 = ((callback.skipLevel == undefined) ? 0 : (callback.skipLevel));
var _local44 = ((callback.cycles == undefined) ? 1 : (callback.cycles));
var _local30 = callback.extra1;
var _local29 = callback.extra2;
var _local23 = [];
var _local14 = _global.com.mosesSupposes.fuse.FuseFMP;
var _local43 = String(("|" + _local14.getAllShortcuts().join("|")) + "|");
var _local42 = com.mosesSupposes.fuse.FuseKitCommon._cts();
var _local25 = "";
var _local28 = "";
var _local22 = obj.__zigoID__;
var _local7 = tweens[String(_local22)];
if ((_local7 != undefined) && (com.mosesSupposes.fuse.ZigoEngine.AUTOSTOP == true)) {
if (obj._listeners.length > 0) {
for (var _local40 in _local7.props) {
_local23.unshift(_local40);
}
}
_local7.numProps = 0;
cleanUp(true);
}
for (var _local47 in props) {
var _local5 = props[_local47];
var _local4 = endvals[_local47];
var _local15 = 0;
if (_local5 == "_fade") {
_local5 = "_alpha";
_local15 = ((_local4 < 50) ? -1 : 1);
}
var _local16 = _local42.indexOf(("|" + _local5) + "|") > -1;
var _local18 = _local7.colorProp;
if (_local7 != undefined) {
if ((_local16 == true) && (_local18 != undefined)) {
_local23.unshift(_local18);
delete _local7.props[_local18];
delete _local7.colorProp;
_local7.numProps--;
} else if (_local7.props[_local5] != undefined) {
_local23.unshift(_local5);
delete _local7[_local5];
_local7.numProps--;
}
}
var _local3 = {c:-1, fmp:-1, complex:-1};
var _local11 = ((_local24 == 0) && ((seconds + delay) == 0)) || ((_local24 > 0) && (seconds == 0));
var _local10 = false;
var _local13 = (_local14 != undefined) && (_local43.indexOf(("|" + _local5) + "|") > -1);
var _local19 = (_local5.toLowerCase().indexOf("colors") > -1) && (_local4 instanceof Array);
var _local27 = ((_local13 == true) && (_local5.indexOf("lor") > -1)) && (_local5.charAt(2) != "l");
if (_local13 == true) {
_local3.fmp = _local14;
_local3.ps = _local14.getFilterProp(obj, _local5, true);
_local3.special = true;
}
if (((_local16 == true) || (_local19 == true)) || (_local27 && (_local11 == false))) {
_local3.complex = 1;
if (_local16 == true) {
_local3.c = new Color(obj);
_local3.ps = Color(_local3.c).getTransform();
var _local17 = ((((_local5 == "_tint") || (_local5 == "_tintPercent")) || (_local5 == "_colorReset")) ? "tint" : (_local5.slice(1)));
var _local9 = null;
var _local12 = null;
if (_local5 != "_colorTransform") {
if (_local17 == "tint") {
if (typeof(_local4) == "object") {
_local12 = _local4.tint;
_local9 = ((_global.isNaN(_local4.percent) == true) ? 100 : (_local4.percent));
} else if ((_local5 == "_tintPercent") || (_local5 == "_colorReset")) {
var _local20 = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tintPercent;
if (_local5 == "_colorReset") {
_local9 = Math.min(_local20, 100 - Math.abs(Number(_local4)));
} else {
_local9 = ((typeof(_local4) == "string") ? ((_local20 || 0) + Number(_local4)) : Number(_local4));
}
_local9 = Math.max(0, Math.min(_local9, 100));
_local12 = com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj).tint || 0;
} else {
_local12 = _local4;
_local9 = 100;
}
} else {
_local9 = ((typeof(_local4) == "string") ? ((com.mosesSupposes.fuse.ZigoEngine.getColorKeysObj(obj)[_local17] || 0) + Number(_local4)) : (_local4));
}
_local4 = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj(_local17, _local9, _local12);
}
if (_local11 == true) {
if (_local5 == "_colorTransform") {
Color(_local3.c).setTransform(_local4);
} else {
com.mosesSupposes.fuse.ZigoEngine.setColorByKey(obj, _local17, _local9, _local12);
}
} else {
var _local21 = getChangeObj(_local3.ps, _local4, false, false);
_local3.ch = _local21.map;
if (_local21.changed == true) {
_local10 = true;
}
}
} else if (_local11 == true) {
_local14.setFilterProp(obj, _local5, _local4);
} else if (_local19 == true) {
_local3.c = 2;
_local3.ch = [];
for (var _local40 in _local4) {
if (_local4[_local40] != null) {
if (_local3.ps == null) {
_local3.ps = [];
}
_local3.ps[_local40] = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, ((_local3.ps[_local40] == null) ? obj[_local5][_local40] : _local3.ps[_local40]));
var _local21 = getChangeObj(_local3.ps[_local40], com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local4[_local40]), true, false);
_local3.ch[_local40] = _local21.map;
if (_local21.changed == true) {
_local10 = true;
}
}
}
} else {
_local3.c = 1;
_local3.ps = com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local3.ps);
var _local21 = getChangeObj(_local3.ps, com.mosesSupposes.fuse.ZigoEngine.getColorTransObj("tint", 100, _local4), true, false);
_local3.ch = _local21.map;
if (_local21.changed == true) {
_local10 = true;
}
}
} else if (_local5 == "_bezier_") {
removeTween(obj, "_x,_y", true);
if (_local11 == true) {
if ((_local4.x != null) && (_global.isNaN(Number(_local4.x)) == false)) {
obj._x = ((typeof(_local4.x) == "string") ? (obj._x + Number(_local4.x)) : (_local4.x));
}
if ((_local4.y != null) && (_global.isNaN(Number(_local4.y)) == false)) {
obj._y = ((typeof(_local4.y) == "string") ? (obj._y + Number(_local4.y)) : (_local4.y));
}
} else {
_local3.special = true;
_local3.ps = 0;
_local3.ch = 1;
_local3.bz = {sx:obj._x, sy:obj._y};
if ((_local4.x == null) || (_global.isNaN(Number(_local4.x)))) {
_local4.x = _local3.bz.sx;
}
if ((_local4.y == null) || (_global.isNaN(Number(_local4.y)))) {
_local4.y = _local3.bz.sy;
}
_local3.bz.chx = ((typeof(_local4.x) == "string") ? (Number(_local4.x)) : (_local4.x - _local3.bz.sx));
if (_global.isNaN(_local3.bz.chx) == true) {
_local3.bx.chx = 0;
}
_local3.bz.chy = ((typeof(_local4.y) == "string") ? (Number(_local4.y)) : (_local4.y - _local3.bz.sy));
if (_global.isNaN(_local3.bz.chy) == true) {
_local3.bx.chy = 0;
}
if ((_local4.controlX == null) || (_global.isNaN(Number(_local4.controlX)))) {
_local3.bz.ctrlx = _local3.bz.sx + (_local3.bz.chx / 2);
} else {
_local3.bz.ctrlx = ((typeof(_local4.controlX) == "string") ? (_local3.bz.sx + Number(_local4.controlX)) : (_local4.controlX));
}
if ((_local4.controlY == null) || (_global.isNaN(Number(_local4.controlY)))) {
_local3.bz.ctrly = _local3.bz.sy + (_local3.bz.chy / 2);
} else {
_local3.bz.ctrly = ((typeof(_local4.controlY) == "string") ? (_local3.bz.sy + Number(_local4.controlY)) : (_local4.controlY));
}
_local3.bz.ctrlx = _local3.bz.ctrlx - _local3.bz.sx;
_local3.bz.ctrly = _local3.bz.ctrly - _local3.bz.sy;
_local10 = (_local3.bz.chx + _local3.bz.chy) != 0;
}
} else {
if (typeof(_local4) == "object") {
_local3.complex = ((_local4 instanceof Array) ? 0 : 1);
}
if ((_local5 == "_x") || (_local5 == "_y")) {
removeTween(obj, "_bezier_", true);
}
if ((_local5 == "_frame") && (typeof(obj) == "movieclip")) {
_local3.ps = obj._currentframe;
_local3.special = true;
} else if (_local13 == false) {
if (_local3.complex > -1) {
_local3.ps = ((_local3.complex == 0) ? ([]) : ({}));
for (var _local40 in _local4) {
_local3.ps[_local40] = obj[_local5][_local40];
}
} else {
_local3.ps = obj[_local5];
}
}
if (_local11 == true) {
if (_local13 == true) {
_local14.setFilterProp(obj, _local5, ((typeof(_local4) == "string") ? (_local3.ps + Number(_local4)) : (_local4)));
} else if (_local3.complex > -1) {
for (var _local40 in _local4) {
if ((_local4[_local40] != null) && (_global.isNaN(Number(_local4[_local40])) == false)) {
obj[_local5][_local40] = ((typeof(_local4[_local40]) == "string") ? (_local3.ps[_local40] + Number(_local4[_local40])) : _local4[_local40]);
if (_global.isNaN(obj[_local5][_local40]) == true) {
obj[_local5][_local40] = 0;
}
}
}
} else {
obj[_local5] = ((typeof(_local4) == "string") ? (_local3.ps + Number(_local4)) : (_local4));
if (_local15 == 1) {
obj._visible = true;
} else if (_local15 == -1) {
obj._visible = false;
}
}
} else if (_local3.complex > -1) {
var _local21 = getChangeObj(_local3.ps, _local4, _local13, _local3.complex == 0);
_local3.ch = _local21.map;
if (_local21.changed == true) {
_local10 = true;
}
} else {
if ((_local4 == null) || (_global.isNaN(Number(_local4)))) {
_local4 = _local3.ps;
}
_local3.ch = ((typeof(_local4) == "string") ? (Number(_local4)) : (Number(_local4) - _local3.ps));
if (_global.isNaN(_local3.ch) == true) {
_local3.ch = 0;
}
_local10 = _local3.ch != 0;
}
}
if (((_local24 == 0) && ((_local10 == true) || (_local11 == false))) || ((_local10 == true) && (_local11 == false))) {
if ((_local3.complex > -1) && (!(_local3.c === 2))) {
_local3.ps = [_local3.ps];
_local3.ch = [_local3.ch];
}
_local3.ts = now + (delay * 1000);
_local3.pt = -1;
_local3.d = seconds * 1000;
_local3.ef = ease;
_local3.sf = false;
_local3.cycles = _local44;
if (_local30 != undefined) {
_local3.e1 = _local30;
}
if (_local29 != undefined) {
_local3.e2 = _local29;
}
_local3.v = _local15;
if (callback.start != undefined) {
_local3.scb = callback.start;
}
if (callback.upd != undefined) {
_local3.ucb = callback.upd;
}
if (callback.end != undefined) {
_local3.ecb = callback.end;
}
if (callback.roundResults != undefined) {
_local3.rr = callback.roundResults;
}
if (tweens[String(_local22)] == undefined) {
_local7 = (tweens[String(_local22)] = {numProps:0, locked:false, targ:obj, targID:String(("\"" + ((obj._name != undefined) ? (obj._name) : (obj.toString()))) + "\""), targZID:_local22, props:{}});
numTweens++;
}
if (_local16 == true) {
_local7.colorProp = _local5;
}
_local7.props[_local5] = _local3;
_local7.numProps++;
_local25 = (_local5 + ",") + _local25;
_local28 = (((typeof(_local4) == "string") ? (("\"" + _local4) + "\"") : (_local4)) + ",") + _local28;
}
_local3 = undefined;
}
if ((_local7 == undefined) || (_local7.numProps <= 0)) {
cleanUp();
}
if ((_local23.length > 0) && (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0)) {
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:obj, props:_local23, __zigoID__:_local22, during:"add"});
}
if (_local25 == "") {
if (_local24 == 2) {
if (com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL == 2) {
com.mosesSupposes.fuse.FuseKitCommon.error("011", ((obj._name != undefined) ? (obj._name) : (obj.toString())), props.toString());
}
} else {
var _local48 = obj._listeners.length > 0;
if (_local48 == true) {
obj.broadcastMessage("onTweenStart", {target:obj, props:props});
}
if (callback.start != undefined) {
callback.start.f.apply(callback.start.s, callback.start.a);
}
if (_local48 == true) {
obj.broadcastMessage("onTweenUpdate", {target:obj, props:props});
}
if (callback.upd != undefined) {
callback.upd.f.apply(callback.upd.s, callback.upd.a);
}
if (_local48 == true) {
obj.broadcastMessage("onTweenEnd", {target:obj, props:props});
}
if (callback.end != undefined) {
callback.end.f.apply(callback.end.s, callback.end.a);
}
}
cleanUp();
}
if (com.mosesSupposes.fuse.ZigoEngine.OUTPUT_LEVEL == 2) {
if (_local25 == "") {
com.mosesSupposes.fuse.FuseKitCommon.error("012", ((obj._name != undefined) ? (obj._name) : (obj.toString())), props.toString(), endvals.toString());
} else {
com.mosesSupposes.fuse.FuseKitCommon.error("013", ((obj._name != undefined) ? (obj._name) : (obj.toString())), _local25.slice(0, -1), _local28.slice(0, -1));
}
}
return(((_local25 == "") ? null : (_local25.slice(0, -1))));
}
function removeTween(targs, props, noInit) {
var _local4 = {};
var _local12 = paramsObj(targs, props);
if (_local12.none == true) {
return(undefined);
}
var _local16 = _local12.all;
var _local17 = _local12.allprops;
var _local9 = ((_local16 == true) ? (tweens) : (Object(_local12.tg)));
var _local8 = false;
for (var _local20 in _local9) {
var _local3 = ((_local16 == true) ? (_local20) : (String(_local9[_local20].__zigoID__)));
var _local2 = tweens[_local3];
var _local6 = ((_local17 == true) ? (_local2.props) : (_local12.props));
for (var _local14 in _local6) {
var _local5 = (_local14 == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) && (_local2.colorProp != undefined);
if ((_local2.props[_local14] != undefined) || (_local5 == true)) {
if (_local4[_local3] == null) {
_local4[_local3] = [];
}
_local4[_local3].unshift(_local14);
if ((_local14 == _local2.colorProp) || (_local5 == true)) {
delete _local2.props[_local2.colorProp];
delete _local2.colorProp;
} else {
delete _local2.props[_local14];
}
_local2.numProps--;
if (_local2.numProps <= 0) {
_local8 = true;
break;
}
}
}
}
if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) {
for (var _local19 in _local4) {
var _local7 = tweens[_local19].targ;
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(_local7.addProperty) == "function") ? (_local7) : (("[MISSING(\"" + tweens[_local19].targID) + "\")]")), props:_local4[_local19], __zigoID__:tweens[_local19].targZID, during:((noInit == true) ? "add" : "remove")});
}
}
if (_local8 == true) {
cleanUp(noInit);
}
}
function alterTweens(type, targs, props, pauseFlag, noEvents, skipTo) {
if (type == "lock") {
tweens[String(targs.__zigoID__)].locked = props;
return(undefined);
}
var _local11 = paramsObj(targs, props);
if (_local11.none == true) {
return(undefined);
}
var _local14 = _local11.all;
var _local15 = _local11.allprops;
var _local9 = ((_local14 == true) ? (tweens) : (Object(_local11.tg)));
var _local8 = 0;
for (var _local16 in _local9) {
var _local7 = ((_local14 == true) ? (_local16) : (String(_local9[_local16].__zigoID__)));
var _local5 = tweens[_local7];
var _local4 = ((_local15 == true) ? (_local5.props) : (_local11.props));
if (_local4.ALLCOLOR == true) {
_local4[_local5.colorProp] = true;
delete _local4.ALLCOLOR;
}
for (var _local10 in _local4) {
_local8++;
var _local2 = _local5.props[_local10];
if (type == "rewind") {
if (pauseFlag == true) {
_local2.pt = now;
}
_local2.ts = now;
if (noEvents != true) {
_local2.sf = false;
if (_local2.scb != undefined) {
_local2.scb.fired = false;
}
}
} else if (type == "ff") {
if (noEvents == true) {
_local2.suppressEnd = true;
}
_local2.o = true;
_local2.pt = -1;
_local2.ts = now - _local2.d;
} else if (type == "skipTo") {
_local2.ts = Math.min(now, (_local2.ts + (now - _local2.ts)) - (skipTo * 1000));
} else if (type == "pause") {
if (_local2.pt == -1) {
_local2.pt = now;
}
} else if (type == "unpause") {
if (_local2.pt != -1) {
_local2.ts = now - (_local2.pt - _local2.ts);
_local2.pt = -1;
}
}
}
}
if ((type == "ff") && (_local8 > 0)) {
update();
} else if ((type == "rewind") && (_local8 > 0)) {
update(true);
}
}
function getStatus(type, targ, param) {
if (targ == null) {
return(null);
}
var _local8 = String(targ).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL;
var _local4 = tweens[String(targ.__zigoID__)];
switch (type) {
case "paused" :
var _local2 = _local4.props;
if (param != null) {
if (_local2[String(param)] == undefined) {
return(false);
}
return(Boolean(_local2[String(param)].pt != -1));
}
for (var _local6 in _local2) {
if (_local2[_local6].pt != -1) {
return(true);
}
}
return(false);
case "active" :
if (param == null) {
return(Boolean(_local4 != undefined));
}
if (String(param).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) {
return(Boolean(_local4.colorProp != undefined));
}
return(Boolean(_local4.props[String(param)] != undefined));
case "count" :
if (!_local8) {
return(_local4.numProps);
}
var _local3 = 0;
for (var _local6 in tweens) {
_local3 = _local3 + tweens[_local6].numProps;
}
return(_local3);
case "locked" :
return(_local4.locked);
}
}
function update(force) {
var _local22 = {};
var _local24 = {};
var _local23 = {};
var _local15 = {};
var _local13 = {};
var _local14 = {};
var _local26 = false;
var _local20 = com.mosesSupposes.fuse.ZigoEngine.ROUND_RESULTS;
for (var _local35 in tweens) {
var _local12 = tweens[_local35];
var _local5 = _local12.targ;
var _local34 = _local12.props;
var _local21 = _local5._listeners.length > 0;
if (_local5.__zigoID__ == undefined) {
_local26 = true;
if (com.mosesSupposes.fuse.ZigoEngine._listeners.length > 0) {
var _local25 = [];
for (var _local30 in _local34) {
_local25.unshift(_local30);
}
com.mosesSupposes.fuse.ZigoEngine.broadcastMessage("onTweenInterrupt", {target:((typeof(_local5.addProperty) == "function") ? (_local5) : (("[MISSING:" + _local12.targID) + "]")), props:_local25, __zigoID__:_local12.targZID, during:"update"});
}
continue;
}
for (var _local30 in _local34) {
var _local3 = _local34[_local30];
if (((_local3.ts > now) || (_local3.pt != -1)) && (force != true)) {
continue;
}
var _local9 = now >= (_local3.ts + _local3.d);
if (_local3.complex == -1) {
var _local6;
if (_local9 == true) {
_local6 = _local3.ps + _local3.ch;
if ((_local3.cycles > 1) || (_local3.cycles == 0)) {
if (_local3.cycles > 1) {
_local3.cycles--;
}
_local3.ps = _local6;
_local3.ch = -_local3.ch;
_local3.ts = now;
_local9 = false;
}
} else {
_local6 = _local3.ef(now - _local3.ts, _local3.ps, _local3.ch, _local3.d, _local3.e1, _local3.e2);
}
if (_global.isNaN(_local6) == false) {
if ((_local30 != "_bezier_") && ((_local3.rr == true) || ((_local20 == true) && (!(_local3.rr === false))))) {
_local6 = Math.round(Number(_local6));
}
if (_local3.special != true) {
_local5[_local30] = _local6;
} else if (_local3.fmp != -1) {
_local3.fmp.setFilterProp(_local5, _local30, _local6);
} else if (_local30 == "_bezier_") {
var _local10 = _local3.bz;
var _local18 = _local10.sx + (_local6 * (((2 * (1 - _local6)) * _local10.ctrlx) + (_local6 * _local10.chx)));
var _local17 = _local10.sy + (_local6 * (((2 * (1 - _local6)) * _local10.ctrly) + (_local6 * _local10.chy)));
if ((_local3.rr == true) || ((_local20 == true) && (!(_local3.rr === false)))) {
_local18 = Math.round(Number(_local18));
_local17 = Math.round(Number(_local17));
}
_local5._x = _local18;
_local5._y = _local17;
} else if (_local30 == "_frame") {
MovieClip(_local5).gotoAndStop(Math.ceil(_local6));
}
}
} else {
var _local16 = (_local9 == true) && ((_local3.cycles > 1) || (_local3.cycles == 0));
var _local7 = [];
for (var _local27 in _local3.ch) {
var _local4 = ((_local3.complex == 0) ? ([]) : ({}));
for (var _local28 in _local3.ch[_local27]) {
var _local8 = _local3.ch[_local27][_local28];
var _local11 = _local3.ps[_local27][_local28];
if (_local9 == true) {
_local4[_local28] = _local11 + _local8;
if (_local16 == true) {
_local3.ch[_local27][_local28] = -_local8;
}
} else {
_local4[_local28] = _local3.ef(now - _local3.ts, _local11, _local8, _local3.d, _local3.e1, _local3.e2);
}
if (_global.isNaN(_local4[_local28]) == false) {
if ((_local3.rr == true) || ((_local20 == true) && (!(_local3.rr === false)))) {
_local4[_local28] = Math.round(_local4[_local28]);
}
}
if ((_local3.fmp == -1) && (_local3.c == -1)) {
_local5[_local30][_local28] = _local4[_local28];
}
}
_local7.push(_local4);
if ((_local3.fmp == -1) && (_local3.c == 2)) {
_local5[_local30][_local27] = Number(((_local4.rb << 16) | (_local4.gb << 8)) | _local4.bb);
}
}
if (_local3.fmp != -1) {
if (_local3.c == 1) {
_local3.fmp.setFilterProp(_local5, _local30, ((_local7[0].rb << 16) | (_local7[0].gb << 8)) | _local7[0].bb);
} else if (_local3.c == 2) {
var _local19 = [];
for (var _local28 in _local7) {
_local19.unshift(((_local7[_local28].rb << 16) | (_local7[_local28].gb << 8)) | _local7[_local28].bb);
}
_local3.fmp.setFilterProp(_local5, _local30, _local19);
}
} else if (_local3.c != -1) {
_local3.c.setTransform(_local7[0]);
}
if (_local16 == true) {
if (_local3.cycles > 1) {
_local3.cycles--;
}
_local9 = false;
_local3.ts = now;
_local3.ps = _local7;
}
}
if (_local3.sf == false) {
if (_local3.v != 0) {
_local5._visible = true;
}
if (_local21 == true) {
if (_local15[_local35] == undefined) {
_local15[_local35] = [_local5, []];
}
_local15[_local35][1].unshift(_local30);
}
_local3.sf = true;
}
if (_local3.scb.fired == false) {
_local22[String(_local3.scb.id)] = _local3.scb;
_local3.scb.fired = true;
}
if (_local21 == true) {
if (_local13[_local35] == undefined) {
_local13[_local35] = [_local5, []];
}
_local13[_local35][1].unshift(_local30);
}
if (_local3.ucb != undefined) {
_local24[String(_local3.ucb.id)] = _local3.ucb;
}
if (_local9 == true) {
if (_local3.v === -1) {
_local5._visible = false;
}
if (_local3.suppressEnd != true) {
if (_local21 == true) {
if (_local14[_local35] == undefined) {
_local14[_local35] = [_local5, []];
}
_local14[_local35][1].unshift(_local30);
}
if (_local3.ecb != undefined) {
_local23[String(_local3.ecb.id)] = _local3.ecb;
}
}
delete _local34[_local30];
if (_local30 == _local12.colorProp) {
delete _local12.colorProp;
}
_local12.numProps--;
if (_local12.numProps <= 0) {
_local26 = true;
}
}
delete _local3.suppressEnd;
}
}
for (var _local35 in _local15) {
_local15[_local35][0].broadcastMessage("onTweenStart", {target:_local15[_local35][0], props:_local15[_local35][1]});
}
for (var _local35 in _local22) {
_local22[_local35].f.apply(_local22[_local35].s, _local22[_local35].a);
}
for (var _local35 in _local13) {
_local13[_local35][0].broadcastMessage("onTweenUpdate", {target:_local13[_local35][0], props:_local13[_local35][1]});
}
for (var _local35 in _local24) {
_local24[_local35].f.apply(_local24[_local35].s, _local24[_local35].a);
}
for (var _local35 in _local14) {
_local14[_local35][0].broadcastMessage("onTweenEnd", {target:_local14[_local35][0], props:_local14[_local35][1]});
}
for (var _local35 in _local23) {
_local23[_local35].f.apply(_local23[_local35].s, _local23[_local35].a);
}
if (_local26) {
cleanUp();
}
now = getTimer();
}
function cleanUp(noInit) {
for (var _local4 in tweens) {
var _local2 = tweens[_local4].targ;
if ((tweens[_local4].numProps <= 0) || (_local2.__zigoID__ == undefined)) {
if ((((_local2 != undefined) && (_local2.tween == undefined)) && (noInit != true)) && (_local2._listeners.length <= 0)) {
com.mosesSupposes.fuse.ZigoEngine.deinitializeTargets(_local2);
}
delete tweens[_local4];
numTweens--;
}
}
if (numTweens <= 0) {
numTweens = 0;
delete tweens;
tweens = {};
if (noInit != true) {
com.mosesSupposes.fuse.ZigoEngine.__mgrRelay(this, "setup", [true]);
}
}
}
function paramsObj(targs, props, endvals, retainFade) {
var _local6 = {};
_local6.all = String(targs).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALL;
_local6.none = Boolean(targs == null);
if (_local6.all == true) {
_local6.tg = [null];
} else {
_local6.tg = ((targs instanceof Array) ? (targs) : ([targs]));
for (var _local11 in _local6.tg) {
var _local7 = _local6.tg[_local11];
if ((_local7 == null) || (!((typeof(_local7) == "object") || (typeof(_local7) == "movieclip")))) {
_local6.tg.splice(Number(_local11), 1);
}
}
}
_local6.allprops = props == null;
var _local1;
var _local4;
var _local3 = {};
if (_local6.allprops == false) {
if ((typeof(props) == "string") && ((String(props).indexOf(" ") > -1) || (String(props).indexOf(",") > -1))) {
props = String(props.split(" ").join("")).split(",");
}
_local1 = ((props instanceof Array) ? (props.slice()) : ([props]));
if (endvals != undefined) {
if ((typeof(endvals) == "string") && ((String(endvals).indexOf(" ") > -1) || (String(endvals).indexOf(",") > -1))) {
endvals = String(endvals.split(" ").join("")).split(",");
}
_local4 = ((endvals instanceof Array) ? (endvals.slice()) : ([endvals]));
while (_local4.length < _local1.length) {
_local4.push(_local4[_local4.length - 1]);
}
_local4.splice(_local1.length, _local4.length - _local1.length);
}
for (var _local11 in _local1) {
var _local2 = Number(_local11);
if ((_local1[_local11] != "_scale") && (_local1[_local11] != "_size")) {
if (_local3[_local1[_local11]] == undefined) {
if ((_local1[_local11] == "_fade") && (retainFade != true)) {
_local1[_local11] = "_alpha";
}
if (String(_local1[_local11]).toUpperCase() == com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR) {
_local1[_local11] = com.mosesSupposes.fuse.FuseKitCommon.ALLCOLOR;
}
_local3[_local1[_local11]] = true;
} else {
_local1.splice(_local2, 1);
_local4.splice(_local2, 1);
}
} else {
var _local8 = String(_local1.splice(_local2, 1)[0]);
var _local5 = _local4.splice(_local2, 1)[0];
if (_local8 == "_scale") {
if (_local3._xscale == undefined) {
_local1.splice(_local2, 0, "_xscale");
_local4.splice(_local2, 0, _local5);
_local3._xscale = true;
_local2++;
}
if (_local3._yscale == undefined) {
_local1.splice(_local2, 0, "_yscale");
_local4.splice(_local2, 0, _local5);
_local3._yscale = true;
}
}
if (_local8 == "_size") {
if (_local3._width == undefined) {
_local1.splice(_local2, 0, "_width");
_local4.splice(_local2, 0, _local5);
_local3._width = true;
_local2++;
}
if (_local3._yscale == undefined) {
_local1.splice(_local2, 0, "_height");
_local4.splice(_local2, 0, _local5);
_local3._height = true;
}
}
}
}
for (var _local11 in _local1) {
if (((_local1[_local11] == "_xscale") && (_local3._width == true)) || ((_local1[_local11] == "_yscale") && (_local3._height == true))) {
_local1.splice(Number(_local11), 1);
_local4.splice(Number(_local11), 1);
delete _local3[_local1[_local11]];
}
}
}
_local6.pa = _local1;
_local6.va = _local4;
_local6.props = _local3;
return(_local6);
}
function getChangeObj(ps, ep, isFMP, useArray) {
var _local3 = {map:((useArray == true) ? ([]) : ({})), changed:false};
for (var _local7 in ep) {
if ((((((isFMP == true) && (_local7.charAt(1) == "b")) || (ep[_local7] != ps[_local7])) || (useArray == true)) && (ep[_local7] != null)) && (_global.isNaN(Number(ep[_local7])) == false)) {
_local3.map[_local7] = ((typeof(ep[_local7]) == "string") ? (Number(ep[_local7])) : (ep[_local7] - ps[_local7]));
if (_global.isNaN(_local3.map[_local7]) == true) {
_local3.map[_local7] = 0;
} else if (_local3.map[_local7] != 0) {
_local3.changed = true;
}
}
}
return(_local3);
}
var numTweens = 0;
}
Symbol 231 MovieClip [__Packages.mx.controls.listclasses.DataSelector] Frame 0
class mx.controls.listclasses.DataSelector extends Object
{
var __vPosition, setVPosition, __dataProvider, enabled, lastSelID, lastSelected, selected, invUpdateControl, invalidate, multipleSelection, updateControl, __rowCount, rows;
function DataSelector () {
super();
}
static function Initialize(obj) {
var _local3 = mixinProps;
var _local4 = _local3.length;
obj = obj.prototype;
var _local1 = 0;
while (_local1 < _local4) {
obj[_local3[_local1]] = mixins[_local3[_local1]];
_local1++;
}
mixins.createProp(obj, "dataProvider", true);
mixins.createProp(obj, "length", false);
mixins.createProp(obj, "value", false);
mixins.createProp(obj, "selectedIndex", true);
mixins.createProp(obj, "selectedIndices", true);
mixins.createProp(obj, "selectedItems", false);
mixins.createProp(obj, "selectedItem", true);
return(true);
}
function createProp(obj, propName, setter) {
var p = (propName.charAt(0).toUpperCase() + propName.substr(1));
var _local2 = null;
var _local4 = function (Void) {
return(this["get" + p]());
};
if (setter) {
_local2 = function (val) {
this["set" + p](val);
};
}
obj.addProperty(propName, _local4, _local2);
}
function setDataProvider(dP) {
if (__vPosition != 0) {
setVPosition(0);
}
clearSelected();
__dataProvider.removeEventListener(this);
__dataProvider = dP;
dP.addEventListener("modelChanged", this);
dP.addView(this);
modelChanged({eventName:"updateAll"});
}
function getDataProvider(Void) {
return(__dataProvider);
}
function addItemAt(index, label, data) {
if ((index < 0) || (!enabled)) {
return(undefined);
}
var _local2 = __dataProvider;
if (_local2 == undefined) {
_local2 = (__dataProvider = new Array());
_local2.addEventListener("modelChanged", this);
index = 0;
}
if ((typeof(label) == "object") || (typeof(_local2.getItemAt(0)) == "string")) {
_local2.addItemAt(index, label);
} else {
_local2.addItemAt(index, {label:label, data:data});
}
}
function addItem(label, data) {
addItemAt(__dataProvider.length, label, data);
}
function removeItemAt(index) {
return(__dataProvider.removeItemAt(index));
}
function removeAll(Void) {
__dataProvider.removeAll();
}
function replaceItemAt(index, newLabel, newData) {
if (typeof(newLabel) == "object") {
__dataProvider.replaceItemAt(index, newLabel);
} else {
__dataProvider.replaceItemAt(index, {label:newLabel, data:newData});
}
}
function sortItemsBy(fieldName, order) {
lastSelID = __dataProvider.getItemID(lastSelected);
__dataProvider.sortItemsBy(fieldName, order);
}
function sortItems(compareFunc, order) {
lastSelID = __dataProvider.getItemID(lastSelected);
__dataProvider.sortItems(compareFunc, order);
}
function getLength(Void) {
return(__dataProvider.length);
}
function getItemAt(index) {
return(__dataProvider.getItemAt(index));
}
function modelChanged(eventObj) {
var _local3 = eventObj.firstItem;
var _local6 = eventObj.lastItem;
var _local7 = eventObj.eventName;
if (_local7 == undefined) {
_local7 = eventObj.event;
_local3 = eventObj.firstRow;
_local6 = eventObj.lastRow;
if (_local7 == "addRows") {
_local7 = (eventObj.eventName = "addItems");
} else if (_local7 == "deleteRows") {
_local7 = (eventObj.eventName = "removeItems");
} else if (_local7 == "updateRows") {
_local7 = (eventObj.eventName = "updateItems");
}
}
if (_local7 == "addItems") {
for (var _local2 in selected) {
var _local5 = selected[_local2];
if ((_local5 != undefined) && (_local5 >= _local3)) {
selected[_local2] = selected[_local2] + ((_local6 - _local3) + 1);
}
}
} else if (_local7 == "removeItems") {
if (__dataProvider.length == 0) {
delete selected;
} else {
var _local9 = eventObj.removedIDs;
var _local10 = _local9.length;
var _local2 = 0;
while (_local2 < _local10) {
var _local4 = _local9[_local2];
if (selected[_local4] != undefined) {
delete selected[_local4];
}
_local2++;
}
for (_local2 in selected) {
if (selected[_local2] >= _local3) {
selected[_local2] = selected[_local2] - ((_local6 - _local3) + 1);
}
}
}
} else if (_local7 == "sort") {
if (typeof(__dataProvider.getItemAt(0)) != "object") {
delete selected;
} else {
var _local10 = __dataProvider.length;
var _local2 = 0;
while (_local2 < _local10) {
if (isSelected(_local2)) {
var _local4 = __dataProvider.getItemID(_local2);
if (_local4 == lastSelID) {
lastSelected = _local2;
}
selected[_local4] = _local2;
}
_local2++;
}
}
} else if (_local7 == "filterModel") {
setVPosition(0);
}
invUpdateControl = true;
invalidate();
}
function getValue(Void) {
var _local2 = getSelectedItem();
if (typeof(_local2) != "object") {
return(_local2);
}
return(((_local2.data == undefined) ? (_local2.label) : (_local2.data)));
}
function getSelectedIndex(Void) {
for (var _local3 in selected) {
var _local2 = selected[_local3];
if (_local2 != undefined) {
return(_local2);
}
}
}
function setSelectedIndex(index) {
if (((index >= 0) && (index < __dataProvider.length)) && (enabled)) {
delete selected;
selectItem(index, true);
lastSelected = index;
invUpdateControl = true;
invalidate();
} else if (index == undefined) {
clearSelected();
}
}
function getSelectedIndices(Void) {
var _local2 = new Array();
for (var _local3 in selected) {
_local2.push(selected[_local3]);
}
_local2.reverse();
return(((_local2.length > 0) ? (_local2) : undefined));
}
function setSelectedIndices(indexArray) {
if (multipleSelection != true) {
return(undefined);
}
delete selected;
var _local3 = 0;
while (_local3 < indexArray.length) {
var _local2 = indexArray[_local3];
if ((_local2 >= 0) && (_local2 < __dataProvider.length)) {
selectItem(_local2, true);
}
_local3++;
}
invUpdateControl = true;
updateControl();
}
function getSelectedItems(Void) {
var _local3 = getSelectedIndices();
var _local4 = new Array();
var _local2 = 0;
while (_local2 < _local3.length) {
_local4.push(getItemAt(_local3[_local2]));
_local2++;
}
return(((_local4.length > 0) ? (_local4) : undefined));
}
function getSelectedItem(Void) {
return(__dataProvider.getItemAt(getSelectedIndex()));
}
function selectItem(index, selectedFlag) {
if (selected == undefined) {
selected = new Object();
}
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
if (selectedFlag && (!isSelected(index))) {
selected[_local2] = index;
} else if (!selectedFlag) {
delete selected[_local2];
}
}
function isSelected(index) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(false);
}
return(selected[_local2] != undefined);
}
function clearSelected(transition) {
var _local3 = 0;
for (var _local4 in selected) {
var _local2 = selected[_local4];
if (((_local2 != undefined) && (__vPosition <= _local2)) && (_local2 < (__vPosition + __rowCount))) {
rows[_local2 - __vPosition].drawRow(rows[_local2 - __vPosition].item, "normal", transition && ((_local3 % 3) == 0));
}
_local3++;
}
delete selected;
}
static var mixins = new mx.controls.listclasses.DataSelector();
static var mixinProps = ["setDataProvider", "getDataProvider", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "sortItemsBy", "sortItems", "getLength", "getItemAt", "modelChanged", "calcPreferredWidthFromData", "calcPreferredHeightFromData", "getValue", "getSelectedIndex", "getSelectedItem", "getSelectedIndices", "getSelectedItems", "selectItem", "isSelected", "clearSelected", "setSelectedIndex", "setSelectedIndices"];
}
Symbol 232 MovieClip [__Packages.mx.controls.ComboBase] Frame 0
class mx.controls.ComboBase extends mx.core.UIComponent
{
var getValue, tabEnabled, tabChildren, boundingBox_mc, downArrow_mc, createClassObject, onDownArrow, border_mc, __border, text_mc, focusTextField, __width, __height, getFocusManager, __get__height, height, _parent;
function ComboBase () {
super();
getValue = _getValue;
}
function init() {
super.init();
tabEnabled = !_editable;
tabChildren = _editable;
boundingBox_mc._visible = false;
boundingBox_mc._width = (boundingBox_mc._height = 0);
}
function createChildren() {
var _local3 = new Object();
_local3.styleName = this;
if (downArrow_mc == undefined) {
_local3.falseUpSkin = downArrowUpName;
_local3.falseOverSkin = downArrowOverName;
_local3.falseDownSkin = downArrowDownName;
_local3.falseDisabledSkin = downArrowDisabledName;
_local3.validateNow = true;
_local3.tabEnabled = false;
createClassObject(mx.controls.SimpleButton, "downArrow_mc", 19, _local3);
downArrow_mc.buttonDownHandler = onDownArrow;
downArrow_mc.useHandCursor = false;
downArrow_mc.onPressWas = downArrow_mc.onPress;
downArrow_mc.onPress = function () {
this.trackAsMenuWas = this.trackAsMenu;
this.trackAsMenu = true;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onPressWas();
};
downArrow_mc.onDragOutWas = downArrow_mc.onDragOut;
downArrow_mc.onDragOut = function () {
this.trackAsMenuWas = this.trackAsMenu;
this.trackAsMenu = false;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onDragOutWas();
};
downArrow_mc.onDragOverWas = downArrow_mc.onDragOver;
downArrow_mc.onDragOver = function () {
this.trackAsMenu = this.trackAsMenuWas;
if (!this._editable) {
this._parent.text_mc.trackAsMenu = this.trackAsMenu;
}
this.onDragOverWas();
};
}
if (border_mc == undefined) {
_local3.tabEnabled = false;
createClassObject(_global.styles.rectBorderClass, "border_mc", 17, _local3);
border_mc.move(0, 0);
__border = border_mc;
}
_local3.borderStyle = "none";
_local3.readOnly = !_editable;
_local3.tabEnabled = _editable;
if (text_mc == undefined) {
createClassObject(mx.controls.TextInput, "text_mc", 18, _local3);
text_mc.move(0, 0);
text_mc.addEnterEvents();
text_mc.enterHandler = _enterHandler;
text_mc.changeHandler = _changeHandler;
text_mc.oldOnSetFocus = text_mc.onSetFocus;
text_mc.onSetFocus = function () {
this.oldOnSetFocus();
this._parent.onSetFocus();
};
text_mc.__set__restrict("^\x1B");
text_mc.oldOnKillFocus = text_mc.onKillFocus;
text_mc.onKillFocus = function (n) {
this.oldOnKillFocus(n);
this._parent.onKillFocus(n);
};
text_mc.drawFocus = function (b) {
this._parent.drawFocus(b);
};
delete text_mc.borderStyle;
}
focusTextField = text_mc;
text_mc.owner = this;
layoutChildren(__width, __height);
}
function onKillFocus() {
super.onKillFocus();
Key.removeListener(text_mc);
getFocusManager().defaultPushButtonEnabled = true;
}
function onSetFocus() {
super.onSetFocus();
getFocusManager().defaultPushButtonEnabled = false;
Key.addListener(text_mc);
}
function setFocus() {
if (_editable) {
Selection.setFocus(text_mc);
} else {
Selection.setFocus(this);
}
}
function setSize(w, h, noEvent) {
super.setSize(w, ((h == undefined) ? (__get__height()) : (h)), noEvent);
}
function setEnabled(enabledFlag) {
super.setEnabled(enabledFlag);
downArrow_mc.enabled = enabledFlag;
text_mc.enabled = enabledFlag;
}
function setEditable(e) {
_editable = e;
if (wrapDownArrowButton == false) {
if (e) {
border_mc.borderStyle = "inset";
text_mc.borderStyle = "inset";
symbolName = "ComboBox";
invalidateStyle();
} else {
border_mc.borderStyle = "comboNonEdit";
text_mc.borderStyle = "dropDown";
symbolName = "DropDown";
invalidateStyle();
}
}
tabEnabled = !e;
tabChildren = e;
text_mc.tabEnabled = e;
if (e) {
delete text_mc.onPress;
delete text_mc.onRelease;
delete text_mc.onReleaseOutside;
delete text_mc.onDragOut;
delete text_mc.onDragOver;
delete text_mc.onRollOver;
delete text_mc.onRollOut;
} else {
text_mc.onPress = function () {
this._parent.downArrow_mc.onPress();
};
text_mc.onRelease = function () {
this._parent.downArrow_mc.onRelease();
};
text_mc.onReleaseOutside = function () {
this._parent.downArrow_mc.onReleaseOutside();
};
text_mc.onDragOut = function () {
this._parent.downArrow_mc.onDragOut();
};
text_mc.onDragOver = function () {
this._parent.downArrow_mc.onDragOver();
};
text_mc.onRollOver = function () {
this._parent.downArrow_mc.onRollOver();
};
text_mc.onRollOut = function () {
this._parent.downArrow_mc.onRollOut();
};
text_mc.useHandCursor = false;
}
}
function get editable() {
return(_editable);
}
function set editable(e) {
setEditable(e);
//return(editable);
}
function _getValue() {
return((_editable ? (text_mc.getText()) : (DSgetValue())));
}
function draw() {
downArrow_mc.draw();
border_mc.draw();
}
function size() {
layoutChildren(__width, __height);
}
function setTheme(t) {
downArrowUpName = (t + "downArrow") + "Up_mc";
downArrowDownName = (t + "downArrow") + "Down_mc";
downArrowDisabledName = (t + "downArrow") + "Disabled_mc";
}
function get text() {
return(text_mc.getText());
}
function set text(t) {
setText(t);
//return(text);
}
function setText(t) {
text_mc.setText(t);
}
function get textField() {
return(text_mc);
}
function get restrict() {
return(text_mc.__get__restrict());
}
function set restrict(w) {
text_mc.__set__restrict(w);
//return(restrict);
}
function invalidateStyle() {
downArrow_mc.invalidateStyle();
text_mc.invalidateStyle();
border_mc.invalidateStyle();
}
function layoutChildren(w, h) {
if (downArrow_mc == undefined) {
return(undefined);
}
if (wrapDownArrowButton) {
var _local2 = border_mc.__get__borderMetrics();
downArrow_mc._width = (downArrow_mc._height = (h - _local2.top) - _local2.bottom);
downArrow_mc.move((w - downArrow_mc._width) - _local2.right, _local2.top);
border_mc.setSize(w, h);
text_mc.setSize(w - downArrow_mc._width, h);
} else {
downArrow_mc.move(w - downArrow_mc._width, 0);
border_mc.setSize(w - downArrow_mc.width, h);
text_mc.setSize(w - downArrow_mc._width, h);
downArrow_mc._height = height;
}
}
function _changeHandler(obj) {
}
function _enterHandler(obj) {
var _local2 = _parent;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function get tabIndex() {
return(text_mc.__get__tabIndex());
}
function set tabIndex(w) {
text_mc.__set__tabIndex(w);
//return(tabIndex);
}
static var mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.ComboBase);
static var symbolName = "ComboBase";
static var symbolOwner = mx.controls.ComboBase;
static var version = "2.0.2.127";
var _editable = false;
var downArrowUpName = "ScrollDownArrowUp";
var downArrowDownName = "ScrollDownArrowDown";
var downArrowOverName = "ScrollDownArrowOver";
var downArrowDisabledName = "ScrollDownArrowDisabled";
var wrapDownArrowButton = true;
var DSgetValue = mx.controls.listclasses.DataSelector.prototype.getValue;
var multipleSelection = false;
}
Symbol 233 MovieClip [__Packages.mx.controls.ComboBox] Frame 0
class mx.controls.ComboBox extends mx.controls.ComboBase
{
var __set__editable, editable, __labels, data, __dropdownWidth, __width, _editable, selectedIndex, __dropdown, dataProvider, __labelFunction, createObject, border_mc, mask, text_mc, dispatchValueChangedEvent, getValue, length, selectedItem, _y, isPressed, owner, __set__visible, height, localToGlobal, __selectedIndexOnDropdown, __initialSelectedIndexOnDropdown, __get__height, getStyle, _parent, width, __dataProvider, selected, dispatchEvent;
function ComboBox () {
super();
}
function init() {
super.init();
}
function createChildren() {
super.createChildren();
__set__editable(editable);
if (__labels.length > 0) {
var _local6 = new Array();
var _local3 = 0;
while (_local3 < labels.length) {
_local6.addItem({label:labels[_local3], data:data[_local3]});
_local3++;
}
setDataProvider(_local6);
}
dropdownWidth = (((typeof(__dropdownWidth) == "number") ? (__dropdownWidth) : (__width)));
if (!_editable) {
selectedIndex = 0;
}
initializing = false;
}
function onKillFocus(n) {
if (_showingDropdown && (n != null)) {
displayDropdown(false);
}
super.onKillFocus();
}
function getDropdown() {
if (initializing) {
return(undefined);
}
if (!hasDropdown()) {
var _local3 = new Object();
_local3.styleName = this;
if (dropdownBorderStyle != undefined) {
_local3.borderStyle = dropdownBorderStyle;
}
_local3._visible = false;
__dropdown = mx.managers.PopUpManager.createPopUp(this, mx.controls.List, false, _local3, true);
__dropdown.scroller.mask.removeMovieClip();
if (dataProvider == undefined) {
dataProvider = new Array();
}
__dropdown.setDataProvider(dataProvider);
__dropdown.selectMultiple = false;
__dropdown.rowCount = __rowCount;
__dropdown.selectedIndex = selectedIndex;
__dropdown.vScrollPolicy = "auto";
__dropdown.labelField = __labelField;
__dropdown.labelFunction = __labelFunction;
__dropdown.owner = this;
__dropdown.changeHandler = _changeHandler;
__dropdown.scrollHandler = _scrollHandler;
__dropdown.itemRollOverHandler = _itemRollOverHandler;
__dropdown.itemRollOutHandler = _itemRollOutHandler;
__dropdown.resizeHandler = _resizeHandler;
__dropdown.mouseDownOutsideHandler = function (eventObj) {
var _local3 = this.owner;
var _local4 = new Object();
_local4.x = _local3._root._xmouse;
_local4.y = _local3._root._ymouse;
_local3._root.localToGlobal(_local4);
if (_local3.hitTest(_local4.x, _local4.y, false)) {
} else if ((!this.wrapDownArrowButton) && (this.owner.downArrow_mc.hitTest(_root._xmouse, _root._ymouse, false))) {
} else {
_local3.displayDropdown(false);
}
};
__dropdown.onTweenUpdate = function (v) {
this._y = v;
};
__dropdown.setSize(__dropdownWidth, __dropdown.height);
createObject("BoundingBox", "mask", 20);
mask._y = border_mc.height;
mask._width = __dropdownWidth;
mask._height = __dropdown.height;
mask._visible = false;
__dropdown.setMask(mask);
}
return(__dropdown);
}
function setSize(w, h, noEvent) {
super.setSize(w, h, noEvent);
__dropdownWidth = w;
__dropdown.rowHeight = h;
__dropdown.setSize(__dropdownWidth, __dropdown.height);
}
function setEditable(e) {
super.setEditable(e);
if (e) {
text_mc.setText("");
} else {
text_mc.setText(selectedLabel);
}
}
function get labels() {
return(__labels);
}
function set labels(lbls) {
__labels = lbls;
setDataProvider(lbls);
//return(labels);
}
function getLabelField() {
return(__labelField);
}
function get labelField() {
return(getLabelField());
}
function setLabelField(s) {
__dropdown.labelField = (__labelField = s);
text_mc.setText(selectedLabel);
}
function set labelField(s) {
setLabelField(s);
//return(labelField);
}
function getLabelFunction() {
return(__labelFunction);
}
function get labelFunction() {
return(getLabelFunction());
}
function set labelFunction(f) {
__dropdown.labelFunction = (__labelFunction = f);
text_mc.setText(selectedLabel);
//return(labelFunction);
}
function setSelectedItem(v) {
super.setSelectedItem(v);
__dropdown.selectedItem = v;
text_mc.setText(selectedLabel);
}
function setSelectedIndex(v) {
super.setSelectedIndex(v);
__dropdown.selectedIndex = v;
if (v != undefined) {
text_mc.setText(selectedLabel);
}
dispatchValueChangedEvent(getValue());
}
function setRowCount(count) {
if (isNaN(count)) {
return(undefined);
}
__rowCount = count;
__dropdown.setRowCount(count);
}
function get rowCount() {
return(Math.max(1, Math.min(length, __rowCount)));
}
function set rowCount(v) {
setRowCount(v);
//return(rowCount);
}
function setDropdownWidth(w) {
__dropdownWidth = w;
__dropdown.setSize(w, __dropdown.height);
}
function get dropdownWidth() {
return(__dropdownWidth);
}
function set dropdownWidth(v) {
setDropdownWidth(v);
//return(dropdownWidth);
}
function get dropdown() {
return(getDropdown());
}
function setDataProvider(dp) {
super.setDataProvider(dp);
__dropdown.setDataProvider(dp);
if (!_editable) {
selectedIndex = 0;
}
}
function open() {
displayDropdown(true);
}
function close() {
displayDropdown(false);
}
function get selectedLabel() {
var _local2 = selectedItem;
if (_local2 == undefined) {
return("");
}
if (labelFunction != undefined) {
return(labelFunction(_local2));
}
if (typeof(_local2) != "object") {
return(_local2);
}
if (_local2[labelField] != undefined) {
return(_local2[labelField]);
}
if (_local2.label != undefined) {
return(_local2.label);
}
var _local3 = " ";
for (var _local4 in _local2) {
if (_local4 != "__ID__") {
_local3 = (_local2[_local4] + ", ") + _local3;
}
}
_local3 = _local3.substring(0, _local3.length - 3);
return(_local3);
}
function hasDropdown() {
return((__dropdown != undefined) && (__dropdown.valueOf() != undefined));
}
function tweenEndShow(value) {
_y = value;
isPressed = true;
owner.dispatchEvent({type:"open", target:owner});
}
function tweenEndHide(value) {
_y = value;
__set__visible(false);
owner.dispatchEvent({type:"close", target:owner});
}
function displayDropdown(show) {
if (show == _showingDropdown) {
return(undefined);
}
var _local3 = new Object();
_local3.x = 0;
_local3.y = height;
localToGlobal(_local3);
if (show) {
__selectedIndexOnDropdown = selectedIndex;
__initialSelectedIndexOnDropdown = selectedIndex;
getDropdown();
var _local2 = __dropdown;
_local2.isPressed = true;
_local2.rowCount = rowCount;
_local2.visible = show;
_local2._parent.globalToLocal(_local3);
_local2.onTweenEnd = tweenEndShow;
var _local5;
var _local8;
if ((_local3.y + _local2.height) > Stage.height) {
_local5 = _local3.y - __get__height();
_local8 = _local5 - _local2.height;
mask._y = -_local2.height;
} else {
_local5 = _local3.y - _local2.height;
_local8 = _local3.y;
mask._y = border_mc.height;
}
var _local6 = _local2.selectedIndex;
if (_local6 == undefined) {
_local6 = 0;
}
var _local4 = _local2.vPosition;
_local4 = _local6 - 1;
_local4 = Math.min(Math.max(_local4, 0), _local2.length - _local2.rowCount);
_local2.vPosition = _local4;
_local2.move(_local3.x, _local5);
_local2.tween = new mx.effects.Tween(__dropdown, _local5, _local8, getStyle("openDuration"));
} else {
__dropdown._parent.globalToLocal(_local3);
delete __dropdown.dragScrolling;
__dropdown.onTweenEnd = tweenEndHide;
__dropdown.tween = new mx.effects.Tween(__dropdown, __dropdown._y, _local3.y - __dropdown.height, getStyle("openDuration"));
if (__initialSelectedIndexOnDropdown != selectedIndex) {
dispatchChangeEvent(undefined, __initialSelectedIndexOnDropdown, selectedIndex);
}
}
var _local9 = getStyle("openEasing");
if (_local9 != undefined) {
__dropdown.tween.easingEquation = _local9;
}
_showingDropdown = show;
}
function onDownArrow() {
_parent.displayDropdown(!_parent._showingDropdown);
}
function keyDown(e) {
if (e.ctrlKey && (e.code == 40)) {
displayDropdown(true);
} else if (e.ctrlKey && (e.code == 38)) {
displayDropdown(false);
dispatchChangeEvent(undefined, __selectedIndexOnDropdown, selectedIndex);
} else if (e.code == 27) {
displayDropdown(false);
} else if (e.code == 13) {
if (_showingDropdown) {
selectedIndex = __dropdown.selectedIndex;
displayDropdown(false);
}
} else if (((((!_editable) || (e.code == 38)) || (e.code == 40)) || (e.code == 33)) || (e.code == 34)) {
selectedIndex = 0 + selectedIndex;
bInKeyDown = true;
var _local3 = dropdown;
_local3.keyDown(e);
bInKeyDown = false;
selectedIndex = __dropdown.selectedIndex;
}
}
function invalidateStyle(styleProp) {
__dropdown.invalidateStyle(styleProp);
super.invalidateStyle(styleProp);
}
function changeTextStyleInChildren(styleProp) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.changeTextStyleInChildren(styleProp);
super.changeTextStyleInChildren(styleProp);
}
function changeColorStyleInChildren(sheetName, styleProp, newValue) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.changeColorStyleInChildren(sheetName, styleProp, newValue);
super.changeColorStyleInChildren(sheetName, styleProp, newValue);
}
function notifyStyleChangeInChildren(sheetName, styleProp, newValue) {
if (dropdown.stylecache != undefined) {
delete dropdown.stylecache[styleProp];
delete dropdown.stylecache.tf;
}
__dropdown.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
super.notifyStyleChangeInChildren(sheetName, styleProp, newValue);
}
function onUnload() {
__dropdown.removeMovieClip();
}
function _resizeHandler() {
var _local2 = owner;
_local2.mask._width = width;
_local2.mask._height = height;
}
function _changeHandler(obj) {
var _local2 = owner;
var _local3 = _local2.selectedIndex;
obj.target = _local2;
if (this == owner.text_mc) {
_local2.selectedIndex = undefined;
_local2.dispatchChangeEvent(obj, -1, -2);
} else {
_local2.selectedIndex = selectedIndex;
if (!_local2._showingDropdown) {
_local2.dispatchChangeEvent(obj, _local3, _local2.selectedIndex);
} else if (!_local2.bInKeyDown) {
_local2.displayDropdown(false);
}
}
}
function _scrollHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function _itemRollOverHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function _itemRollOutHandler(obj) {
var _local2 = owner;
obj.target = _local2;
_local2.dispatchEvent(obj);
}
function modelChanged(eventObj) {
super.modelChanged(eventObj);
if (0 == __dataProvider.length) {
text_mc.setText("");
delete selected;
} else if ((__dataProvider.length == ((eventObj.lastItem - eventObj.firstItem) + 1)) && (eventObj.eventName == "addItems")) {
selectedIndex = 0;
}
}
function dispatchChangeEvent(obj, prevValue, newValue) {
var _local2;
if (prevValue != newValue) {
if ((obj != undefined) && (obj.type == "change")) {
_local2 = obj;
} else {
_local2 = {type:"change"};
}
dispatchEvent(_local2);
}
}
static var symbolName = "ComboBox";
static var symbolOwner = mx.controls.ComboBox;
static var version = "2.0.2.127";
var clipParameters = {labels:1, data:1, editable:1, rowCount:1, dropdownWidth:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.ComboBox.prototype.clipParameters, mx.controls.ComboBase.prototype.clipParameters);
var className = "ComboBox";
var _showingDropdown = false;
var __rowCount = 5;
var dropdownBorderStyle = undefined;
var initializing = true;
var __labelField = "label";
var bInKeyDown = false;
}
Symbol 352 MovieClip [__Packages.mx.controls.TextInput] Frame 0
class mx.controls.TextInput extends mx.core.UIComponent
{
var owner, enterListener, label, tabChildren, tabEnabled, focusTextField, _color, _parent, border_mc, createClassObject, dispatchValueChangedEvent, __get__width, __get__height, tfx, tfy, tfw, tfh, getStyle, bind, updateModel, _getTextFormat, enabled;
function TextInput () {
super();
}
function addEventListener(event, handler) {
if (event == "enter") {
addEnterEvents();
}
super.addEventListener(event, handler);
}
function enterOnKeyDown() {
if (Key.getAscii() == 13) {
owner.dispatchEvent({type:"enter"});
}
}
function addEnterEvents() {
if (enterListener == undefined) {
enterListener = new Object();
enterListener.owner = this;
enterListener.onKeyDown = enterOnKeyDown;
}
}
function init(Void) {
super.init();
label.styleName = this;
tabChildren = true;
tabEnabled = false;
focusTextField = label;
_color = mx.core.UIObject.textColorList;
label.onSetFocus = function () {
this._parent.onSetFocus();
};
label.onKillFocus = function (n) {
this._parent.onKillFocus(n);
};
label.drawFocus = function (b) {
this._parent.drawFocus(b);
};
label.onChanged = onLabelChanged;
}
function setFocus() {
Selection.setFocus(label);
}
function onLabelChanged(Void) {
_parent.dispatchEvent({type:"change"});
_parent.dispatchValueChangedEvent(text);
}
function createChildren(Void) {
super.createChildren();
if (border_mc == undefined) {
createClassObject(_global.styles.rectBorderClass, "border_mc", 0, {styleName:this});
}
border_mc.swapDepths(label);
label.autoSize = "none";
}
function get html() {
return(getHtml());
}
function set html(value) {
setHtml(value);
//return(html);
}
function getHtml() {
return(label.html);
}
function setHtml(value) {
if (value != label.html) {
label.html = value;
}
}
function get text() {
return(getText());
}
function set text(t) {
setText(t);
//return(text);
}
function getText() {
if (initializing) {
return(initText);
}
if (label.html == true) {
return(label.htmlText);
}
return(label.text);
}
function setText(t) {
if (initializing) {
initText = t;
} else {
var _local2 = label;
if (_local2.html == true) {
_local2.htmlText = t;
} else {
_local2.text = t;
}
}
dispatchValueChangedEvent(t);
}
function size(Void) {
border_mc.setSize(__get__width(), __get__height());
var _local2 = border_mc.__get__borderMetrics();
var _local6 = _local2.left + _local2.right;
var _local3 = _local2.top + _local2.bottom;
var _local5 = _local2.left;
var _local4 = _local2.top;
tfx = _local5;
tfy = _local4;
tfw = __get__width() - _local6;
tfh = __get__height() - _local3;
label.move(tfx, tfy);
label.setSize(tfw, tfh + 1);
}
function setEnabled(enable) {
label.type = (((__editable == true) || (enable == false)) ? "input" : "dynamic");
label.selectable = enable;
var _local2 = getStyle((enable ? "color" : "disabledColor"));
if (_local2 == undefined) {
_local2 = (enable ? 0 : 8947848);
}
setColor(_local2);
}
function setColor(col) {
label.textColor = col;
}
function onKillFocus(newFocus) {
if (enterListener != undefined) {
Key.removeListener(enterListener);
}
if (bind != undefined) {
updateModel(text);
}
super.onKillFocus(newFocus);
}
function onSetFocus(oldFocus) {
var f = Selection.getFocus();
var o = eval (f);
if (o != label) {
Selection.setFocus(label);
return(undefined);
}
if (enterListener != undefined) {
Key.addListener(enterListener);
}
super.onSetFocus(oldFocus);
}
function draw(Void) {
var _local2 = label;
var _local4 = getText();
if (initializing) {
initializing = false;
delete initText;
}
var _local3 = _getTextFormat();
_local2.embedFonts = _local3.embedFonts == true;
if (_local3 != undefined) {
_local2.setTextFormat(_local3);
_local2.setNewTextFormat(_local3);
}
_local2.multiline = false;
_local2.wordWrap = false;
if (_local2.html == true) {
_local2.setTextFormat(_local3);
_local2.htmlText = _local4;
} else {
_local2.text = _local4;
}
_local2.type = (((__editable == true) || (enabled == false)) ? "input" : "dynamic");
size();
}
function setEditable(s) {
__editable = s;
label.type = (s ? "input" : "dynamic");
}
function get maxChars() {
return(label.maxChars);
}
function set maxChars(w) {
label.maxChars = w;
//return(maxChars);
}
function get length() {
return(label.length);
}
function get restrict() {
return(label.restrict);
}
function set restrict(w) {
label.restrict = ((w == "") ? null : (w));
//return(restrict);
}
function get hPosition() {
return(label.hscroll);
}
function set hPosition(w) {
label.hscroll = w;
//return(hPosition);
}
function get maxHPosition() {
return(label.maxhscroll);
}
function get editable() {
return(__editable);
}
function set editable(w) {
setEditable(w);
//return(editable);
}
function get password() {
return(label.password);
}
function set password(w) {
label.password = w;
//return(password);
}
function get tabIndex() {
return(label.tabIndex);
}
function set tabIndex(w) {
label.tabIndex = w;
//return(tabIndex);
}
function set _accProps(val) {
label._accProps = val;
//return(_accProps);
}
function get _accProps() {
return(label._accProps);
}
static var symbolName = "TextInput";
static var symbolOwner = mx.controls.TextInput;
static var version = "2.0.2.127";
var className = "TextInput";
var initializing = true;
var clipParameters = {text:1, editable:1, password:1, maxChars:1, restrict:1};
static var mergedClipParameters = mx.core.UIObject.mergeClipParameters(mx.controls.TextInput.prototype.clipParameters, mx.core.UIComponent.prototype.clipParameters);
var _maxWidth = mx.core.UIComponent.kStretch;
var __editable = true;
var initText = "";
}
Symbol 357 MovieClip [__Packages.mx.managers.PopUpManager] Frame 0
class mx.managers.PopUpManager
{
var popUp, setSize, move, modalWindow, _parent, _name, _visible, owner;
function PopUpManager () {
}
static function createModalWindow(parent, o, broadcastOutsideEvents) {
var _local2 = parent.createChildAtDepth("Modal", mx.managers.DepthManager.kTopmost);
_local2.setDepthBelow(o);
o.modalID = _local2._name;
_local2._alpha = _global.style.modalTransparency;
_local2.tabEnabled = false;
if (broadcastOutsideEvents) {
_local2.onPress = mixins.onPress;
} else {
_local2.onPress = mixins.nullFunction;
}
_local2.onRelease = mixins.nullFunction;
_local2.resize = mixins.resize;
mx.managers.SystemManager.init();
mx.managers.SystemManager.addEventListener("resize", _local2);
_local2.resize();
_local2.useHandCursor = false;
_local2.popUp = o;
o.modalWindow = _local2;
o.deletePopUp = mixins.deletePopUp;
o.setVisible = mixins.setVisible;
o.getVisible = mixins.getVisible;
o.addProperty("visible", o.getVisible, o.setVisible);
}
static function createPopUp(parent, className, modal, initobj, broadcastOutsideEvents) {
if (mixins == undefined) {
mixins = new mx.managers.PopUpManager();
}
if (broadcastOutsideEvents == undefined) {
broadcastOutsideEvents = false;
}
var _local5 = parent._root;
if (_local5 == undefined) {
_local5 = _root;
}
while (parent != _local5) {
parent = parent._parent;
}
initobj.popUp = true;
var _local4 = parent.createClassChildAtDepth(className, ((broadcastOutsideEvents || (modal)) ? (mx.managers.DepthManager.kTopmost) : (mx.managers.DepthManager.kTop)), initobj);
var _local2 = _root;
var _local6 = _local2.focusManager != undefined;
while (_local2._parent != undefined) {
_local2 = _local2._parent._root;
if (_local2.focusManager != undefined) {
_local6 = true;
break;
}
}
if (_local6) {
_local4.createObject("FocusManager", "focusManager", -1);
if (_local4._visible == false) {
mx.managers.SystemManager.deactivate(_local4);
}
}
if (modal) {
createModalWindow(parent, _local4, broadcastOutsideEvents);
} else {
if (broadcastOutsideEvents) {
_local4.mouseListener = new Object();
_local4.mouseListener.owner = _local4;
_local4.mouseListener.onMouseDown = mixins.onMouseDown;
Mouse.addListener(_local4.mouseListener);
}
_local4.deletePopUp = mixins.deletePopUp;
}
return(_local4);
}
function onPress(Void) {
var _local3 = popUp._root;
if (_local3 == undefined) {
_local3 = _root;
}
if (popUp.hitTest(_local3._xmouse, _local3._ymouse, false)) {
return(undefined);
}
popUp.dispatchEvent({type:"mouseDownOutside"});
}
function nullFunction(Void) {
}
function resize(Void) {
var _local2 = mx.managers.SystemManager.__get__screen();
setSize(_local2.width, _local2.height);
move(_local2.x, _local2.y);
}
function deletePopUp(Void) {
if (modalWindow != undefined) {
_parent.destroyObject(modalWindow._name);
}
_parent.destroyObject(_name);
}
function setVisible(v, noEvent) {
super.setVisible(v, noEvent);
modalWindow._visible = v;
}
function getVisible(Void) {
return(_visible);
}
function onMouseDown(Void) {
var _local3 = owner._root;
if (_local3 == undefined) {
_local3 = _root;
}
var _local4 = new Object();
_local4.x = _local3._xmouse;
_local4.y = _local3._ymouse;
_local3.localToGlobal(_local4);
if (owner.hitTest(_local4.x, _local4.y, false)) {
} else {
owner.mouseDownOutsideHandler(owner);
}
}
static var version = "2.0.2.127";
static var mixins = undefined;
}
Symbol 365 MovieClip [__Packages.mx.controls.listclasses.DataProvider] Frame 0
class mx.controls.listclasses.DataProvider extends Object
{
var length, splice, dispatchEvent, sortOn, reverse, sort;
function DataProvider (obj) {
super();
}
static function Initialize(obj) {
var _local4 = mixinProps;
var _local6 = _local4.length;
obj = obj.prototype;
var _local3 = 0;
while (_local3 < _local6) {
obj[_local4[_local3]] = mixins[_local4[_local3]];
_global.ASSetPropFlags(obj, _local4[_local3], 1);
_local3++;
}
mx.events.EventDispatcher.initialize(obj);
_global.ASSetPropFlags(obj, "addEventListener", 1);
_global.ASSetPropFlags(obj, "removeEventListener", 1);
_global.ASSetPropFlags(obj, "dispatchEvent", 1);
_global.ASSetPropFlags(obj, "dispatchQueue", 1);
Object.prototype.LargestID = 0;
Object.prototype.getID = function () {
if (this.__ID__ == undefined) {
this.__ID__ = Object.prototype.LargestID++;
_global.ASSetPropFlags(this, "__ID__", 1);
}
return(this.__ID__);
};
_global.ASSetPropFlags(Object.prototype, "LargestID", 1);
_global.ASSetPropFlags(Object.prototype, "getID", 1);
return(true);
}
function addItemAt(index, value) {
if (index < length) {
splice(index, 0, value);
} else if (index > length) {
trace("Cannot add an item past the end of the DataProvider");
return(undefined);
}
this[index] = value;
updateViews("addItems", index, index);
}
function addItem(value) {
addItemAt(length, value);
}
function addItemsAt(index, newItems) {
index = Math.min(length, index);
newItems.unshift(index, 0);
splice.apply(this, newItems);
newItems.splice(0, 2);
updateViews("addItems", index, (index + newItems.length) - 1);
}
function removeItemsAt(index, len) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < len) {
_local3.push(getItemID(index + _local2));
_local2++;
}
var _local6 = splice(index, len);
dispatchEvent({type:"modelChanged", eventName:"removeItems", firstItem:index, lastItem:(index + len) - 1, removedItems:_local6, removedIDs:_local3});
}
function removeItemAt(index) {
var _local2 = this[index];
removeItemsAt(index, 1);
return(_local2);
}
function removeAll(Void) {
splice(0);
updateViews("removeItems", 0, length - 1);
}
function replaceItemAt(index, itemObj) {
if ((index < 0) || (index >= length)) {
return(undefined);
}
var _local3 = getItemID(index);
this[index] = itemObj;
this[index].__ID__ = _local3;
updateViews("updateItems", index, index);
}
function getItemAt(index) {
return(this[index]);
}
function getItemID(index) {
var _local2 = this[index];
if ((typeof(_local2) != "object") && (_local2 != undefined)) {
return(index);
}
return(_local2.getID());
}
function sortItemsBy(fieldName, order) {
if (typeof(order) == "string") {
sortOn(fieldName);
if (order.toUpperCase() == "DESC") {
reverse();
}
} else {
sortOn(fieldName, order);
}
updateViews("sort");
}
function sortItems(compareFunc, optionFlags) {
sort(compareFunc, optionFlags);
updateViews("sort");
}
function editField(index, fieldName, newData) {
this[index][fieldName] = newData;
dispatchEvent({type:"modelChanged", eventName:"updateField", firstItem:index, lastItem:index, fieldName:fieldName});
}
function getEditingData(index, fieldName) {
return(this[index][fieldName]);
}
function updateViews(event, first, last) {
dispatchEvent({type:"modelChanged", eventName:event, firstItem:first, lastItem:last});
}
static var mixinProps = ["addView", "addItem", "addItemAt", "removeAll", "removeItemAt", "replaceItemAt", "getItemAt", "getItemID", "sortItemsBy", "sortItems", "updateViews", "addItemsAt", "removeItemsAt", "getEditingData", "editField"];
static var evtDipatcher = mx.events.EventDispatcher;
static var mixins = new mx.controls.listclasses.DataProvider();
}
Symbol 366 MovieClip [__Packages.mx.controls.listclasses.ScrollSelectList] Frame 0
class mx.controls.listclasses.ScrollSelectList extends mx.core.ScrollView
{
var invLayoutContent, rows, topRowZ, listContent, __dataProvider, __vPosition, tW, layoutX, layoutY, tH, invRowHeight, invalidate, __height, invUpdateControl, __cellRenderer, __labelFunction, __iconField, __iconFunction, getLength, baseRowZ, lastPosition, propertyTable, isSelected, wasKeySelected, changeFlag, clearSelected, selectItem, lastSelected, dispatchEvent, dragScrolling, _ymouse, scrollInterval, isPressed, onMouseUp, getSelectedIndex, enabled, tabEnabled, tabChildren, createEmptyMovieClip, border_mc;
function ScrollSelectList () {
super();
}
function layoutContent(x, y, w, h) {
delete invLayoutContent;
var _local4 = Math.ceil(h / __rowHeight);
roundUp = (h % __rowHeight) != 0;
var _local12 = _local4 - __rowCount;
if (_local12 < 0) {
var _local3 = _local4;
while (_local3 < __rowCount) {
rows[_local3].removeMovieClip();
delete rows[_local3];
_local3++;
}
topRowZ = topRowZ + _local12;
} else if (_local12 > 0) {
if (rows == undefined) {
rows = new Array();
}
var _local3 = __rowCount;
while (_local3 < _local4) {
var _local2 = (rows[_local3] = listContent.createObject(__rowRenderer, "listRow" + (topRowZ++), topRowZ, {owner:this, styleName:this, rowIndex:_local3}));
_local2._x = x;
_local2._y = Math.round((_local3 * __rowHeight) + y);
_local2.setSize(w, __rowHeight);
_local2.drawRow(__dataProvider.getItemAt(__vPosition + _local3), getStateAt(__vPosition + _local3));
_local2.lastY = _local2._y;
_local3++;
}
}
if (w != tW) {
var _local11 = ((_local12 > 0) ? (__rowCount) : (_local4));
var _local3 = 0;
while (_local3 < _local11) {
rows[_local3].setSize(w, __rowHeight);
_local3++;
}
}
if ((layoutX != x) || (layoutY != y)) {
var _local3 = 0;
while (_local3 < _local4) {
rows[_local3]._x = x;
rows[_local3]._y = Math.round((_local3 * __rowHeight) + y);
_local3++;
}
}
__rowCount = _local4;
layoutX = x;
layoutY = y;
tW = w;
tH = h;
}
function getRowHeight(Void) {
return(__rowHeight);
}
function setRowHeight(v) {
__rowHeight = v;
invRowHeight = true;
invalidate();
}
function get rowHeight() {
return(getRowHeight());
}
function set rowHeight(w) {
setRowHeight(w);
//return(rowHeight);
}
function setRowCount(v) {
__rowCount = v;
}
function getRowCount(Void) {
var _local2 = ((__rowCount == 0) ? (Math.ceil(__height / __rowHeight)) : (__rowCount));
return(_local2);
}
function get rowCount() {
return(getRowCount());
}
function set rowCount(w) {
setRowCount(w);
//return(rowCount);
}
function setEnabled(v) {
super.setEnabled(v);
invUpdateControl = true;
invalidate();
}
function setCellRenderer(cR) {
__cellRenderer = cR;
var _local2 = 0;
while (_local2 < rows.length) {
rows[_local2].setCellRenderer(true);
_local2++;
}
invUpdateControl = true;
invalidate();
}
function set cellRenderer(cR) {
setCellRenderer(cR);
//return(cellRenderer);
}
function get cellRenderer() {
return(__cellRenderer);
}
function set labelField(field) {
setLabelField(field);
//return(labelField);
}
function setLabelField(field) {
__labelField = field;
invUpdateControl = true;
invalidate();
}
function get labelField() {
return(__labelField);
}
function set labelFunction(func) {
setLabelFunction(func);
//return(labelFunction);
}
function setLabelFunction(func) {
__labelFunction = func;
invUpdateControl = true;
invalidate();
}
function get labelFunction() {
return(__labelFunction);
}
function set iconField(field) {
setIconField(field);
//return(iconField);
}
function setIconField(field) {
__iconField = field;
invUpdateControl = true;
invalidate();
}
function get iconField() {
return(__iconField);
}
function set iconFunction(func) {
setIconFunction(func);
//return(iconFunction);
}
function setIconFunction(func) {
__iconFunction = func;
invUpdateControl = true;
invalidate();
}
function get iconFunction() {
return(__iconFunction);
}
function setVPosition(pos) {
if (pos < 0) {
return(undefined);
}
if ((pos > 0) && (pos > ((getLength() - __rowCount) + roundUp))) {
return(undefined);
}
var _local8 = pos - __vPosition;
if (_local8 == 0) {
return(undefined);
}
__vPosition = pos;
var _local10 = _local8 > 0;
_local8 = Math.abs(_local8);
if (_local8 >= __rowCount) {
updateControl();
} else {
var _local4 = new Array();
var _local9 = __rowCount - _local8;
var _local12 = _local8 * __rowHeight;
var _local11 = _local9 * __rowHeight;
var _local6 = (_local10 ? 1 : -1);
var _local3 = 0;
while (_local3 < __rowCount) {
if (((_local3 < _local8) && (_local10)) || ((_local3 >= _local9) && (!_local10))) {
rows[_local3]._y = rows[_local3]._y + Math.round(_local6 * _local11);
var _local5 = _local3 + (_local6 * _local9);
var _local7 = __vPosition + _local5;
_local4[_local5] = rows[_local3];
_local4[_local5].rowIndex = _local5;
_local4[_local5].drawRow(__dataProvider.getItemAt(_local7), getStateAt(_local7), false);
} else {
rows[_local3]._y = rows[_local3]._y - Math.round(_local6 * _local12);
var _local5 = _local3 - (_local6 * _local8);
_local4[_local5] = rows[_local3];
_local4[_local5].rowIndex = _local5;
}
_local3++;
}
rows = _local4;
_local3 = 0;
while (_local3 < __rowCount) {
rows[_local3].swapDepths(baseRowZ + _local3);
_local3++;
}
}
lastPosition = pos;
super.setVPosition(pos);
}
function setPropertiesAt(index, obj) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
if (propertyTable == undefined) {
propertyTable = new Object();
}
propertyTable[_local2] = obj;
rows[index - __vPosition].drawRow(__dataProvider.getItemAt(index), getStateAt(index));
}
function getPropertiesAt(index) {
var _local2 = __dataProvider.getItemID(index);
if (_local2 == undefined) {
return(undefined);
}
return(propertyTable[_local2]);
}
function getPropertiesOf(obj) {
var _local2 = obj.getID();
if (_local2 == undefined) {
return(undefined);
}
return(propertyTable[_local2]);
}
function getStyle(styleProp) {
var _local2 = super.getStyle(styleProp);
var _local3 = mx.styles.StyleManager.colorNames[_local2];
if (_local3 != undefined) {
_local2 = _local3;
}
return(_local2);
}
function updateControl(Void) {
var _local2 = 0;
while (_local2 < __rowCount) {
rows[_local2].drawRow(__dataProvider.getItemAt(_local2 + __vPosition), getStateAt(_local2 + __vPosition));
_local2++;
}
delete invUpdateControl;
}
function getStateAt(index) {
return((isSelected(index) ? "selected" : "normal"));
}
function selectRow(rowIndex, transition, allowChangeEvent) {
if (!selectable) {
return(undefined);
}
var _local3 = __vPosition + rowIndex;
var _local8 = __dataProvider.getItemAt(_local3);
var _local5 = rows[rowIndex];
if (_local8 == undefined) {
return(undefined);
}
if (transition == undefined) {
transition = true;
}
if (allowChangeEvent == undefined) {
allowChangeEvent = wasKeySelected;
}
changeFlag = true;
if (((!multipleSelection) && (!Key.isDown(17))) || ((!Key.isDown(16)) && (!Key.isDown(17)))) {
clearSelected(transition);
selectItem(_local3, true);
lastSelected = _local3;
_local5.drawRow(_local5.item, getStateAt(_local3), transition);
} else if (Key.isDown(16) && (multipleSelection)) {
if (lastSelected == undefined) {
lastSelected = _local3;
}
var _local4 = ((lastSelected < _local3) ? 1 : -1);
clearSelected(false);
var _local2 = lastSelected;
while (_local2 != _local3) {
selectItem(_local2, true);
if ((_local2 >= __vPosition) && (_local2 < (__vPosition + __rowCount))) {
rows[_local2 - __vPosition].drawRow(rows[_local2 - __vPosition].item, "selected", false);
}
_local2 = _local2 + _local4;
}
selectItem(_local3, true);
_local5.drawRow(_local5.item, "selected", transition);
} else if (Key.isDown(17)) {
var _local7 = isSelected(_local3);
if ((!multipleSelection) || (wasKeySelected)) {
clearSelected(transition);
}
if (!((!multipleSelection) && (_local7))) {
selectItem(_local3, !_local7);
var _local9 = ((!_local7) ? "selected" : "normal");
_local5.drawRow(_local5.item, _local9, transition);
}
lastSelected = _local3;
}
if (allowChangeEvent) {
dispatchEvent({type:"change"});
}
delete wasKeySelected;
}
function dragScroll(Void) {
clearInterval(dragScrolling);
if (_ymouse < 0) {
setVPosition(__vPosition - 1);
selectRow(0, false);
var _local2 = Math.min((-_ymouse) - 30, 0);
scrollInterval = (((0.593 * _local2) * _local2) + 1) + minScrollInterval;
dragScrolling = setInterval(this, "dragScroll", scrollInterval);
dispatchEvent({type:"scroll", direction:"vertical", position:__vPosition});
} else if (_ymouse > __height) {
var _local3 = __vPosition;
setVPosition(__vPosition + 1);
if (_local3 != __vPosition) {
selectRow((__rowCount - 1) - roundUp, false);
}
var _local2 = Math.min((_ymouse - __height) - 30, 0);
scrollInterval = (((0.593 * _local2) * _local2) + 1) + minScrollInterval;
dragScrolling = setInterval(this, "dragScroll", scrollInterval);
dispatchEvent({type:"scroll", direction:"vertical", position:__vPosition});
} else {
dragScrolling = setInterval(this, "dragScroll", 15);
}
updateAfterEvent();
}
function __onMouseUp(Void) {
clearInterval(dragScrolling);
delete dragScrolling;
delete dragScrolling;
delete isPressed;
delete onMouseUp;
if (!selectable) {
return(undefined);
}
if (changeFlag) {
dispatchEvent({type:"change"});
}
delete changeFlag;
}
function moveSelBy(incr) {
if (!selectable) {
setVPosition(__vPosition + incr);
return(undefined);
}
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = -1;
}
var _local2 = _local3 + incr;
_local2 = Math.max(0, _local2);
_local2 = Math.min(getLength() - 1, _local2);
if (_local2 == _local3) {
return(undefined);
}
if ((_local3 < __vPosition) || (_local3 >= (__vPosition + __rowCount))) {
setVPosition(_local3);
}
if ((_local2 >= ((__vPosition + __rowCount) - roundUp)) || (_local2 < __vPosition)) {
setVPosition(__vPosition + incr);
}
wasKeySelected = true;
selectRow(_local2 - __vPosition, false);
}
function keyDown(e) {
if (selectable) {
if (findInputText()) {
return(undefined);
}
}
if (e.code == 40) {
moveSelBy(1);
} else if (e.code == 38) {
moveSelBy(-1);
} else if (e.code == 34) {
if (selectable) {
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = 0;
}
setVPosition(_local3);
}
moveSelBy((__rowCount - 1) - roundUp);
} else if (e.code == 33) {
if (selectable) {
var _local3 = getSelectedIndex();
if (_local3 == undefined) {
_local3 = 0;
}
setVPosition(_local3);
}
moveSelBy((1 - __rowCount) + roundUp);
} else if (e.code == 36) {
moveSelBy(-__dataProvider.length);
} else if (e.code == 35) {
moveSelBy(__dataProvider.length);
}
}
function findInputText(Void) {
var _local2 = Key.getAscii();
if ((_local2 >= 33) && (_local2 <= 126)) {
findString(String.fromCharCode(_local2));
return(true);
}
}
function findString(str) {
if (__dataProvider.length == 0) {
return(undefined);
}
var _local4 = getSelectedIndex();
if (_local4 == undefined) {
_local4 = 0;
}
var _local6 = 0;
var _local3 = _local4 + 1;
while (_local3 != _local4) {
var _local2 = __dataProvider.getItemAt(_local3);
if (_local2 instanceof XMLNode) {
_local2 = _local2.attributes[__labelField];
} else if (typeof(_local2) != "string") {
_local2 = String(_local2[__labelField]);
}
_local2 = _local2.substring(0, str.length);
if ((str == _local2) || (str.toUpperCase() == _local2.toUpperCase())) {
_local6 = _local3 - _local4;
break;
}
if (_local3 >= (getLength() - 1)) {
_local3 = -1;
}
_local3++;
}
if (_local6 != 0) {
moveSelBy(_local6);
}
}
function onRowPress(rowIndex) {
if (!enabled) {
return(undefined);
}
isPressed = true;
dragScrolling = setInterval(this, "dragScroll", 15);
onMouseUp = __onMouseUp;
if (!selectable) {
return(undefined);
}
selectRow(rowIndex);
}
function onRowRelease(rowIndex) {
}
function onRowRollOver(rowIndex) {
if (!enabled) {
return(undefined);
}
var _local2 = rows[rowIndex].item;
if (getStyle("useRollOver") && (_local2 != undefined)) {
rows[rowIndex].drawRow(_local2, "highlighted", false);
}
dispatchEvent({type:"itemRollOver", index:rowIndex + __vPosition});
}
function onRowRollOut(rowIndex) {
if (!enabled) {
return(undefined);
}
if (getStyle("useRollOver")) {
rows[rowIndex].drawRow(rows[rowIndex].item, getStateAt(rowIndex + __vPosition), false);
}
dispatchEvent({type:"itemRollOut", index:rowIndex + __vPosition});
}
function onRowDragOver(rowIndex) {
if (((!enabled) || (isPressed != true)) || (!selectable)) {
return(undefined);
}
if (dropEnabled) {
} else if (dragScrolling) {
selectRow(rowIndex, false);
} else {
onMouseUp = __onMouseUp;
onRowPress(rowIndex);
}
}
function onRowDragOut(rowIndex) {
if (!enabled) {
return(undefined);
}
if (dragEnabled) {
} else {
onRowRollOut(rowIndex);
}
}
function init(Void) {
super.init();
tabEnabled = true;
tabChildren = false;
if (__dataProvider == undefined) {
__dataProvider = new Array();
__dataProvider.addEventListener("modelChanged", this);
}
baseRowZ = (topRowZ = 10);
}
function createChildren(Void) {
super.createChildren();
listContent = createEmptyMovieClip("content_mc", CONTENTDEPTH);
invLayoutContent = true;
invalidate();
}
function draw(Void) {
if (invRowHeight) {
delete invRowHeight;
__rowCount = 0;
listContent.removeMovieClip();
listContent = createEmptyMovieClip("content_mc", CONTENTDEPTH);
}
if (invUpdateControl) {
updateControl();
}
border_mc.draw();
}
function invalidateStyle(propName) {
if (isRowStyle[propName]) {
invUpdateControl = true;
invalidate();
} else {
var _local3 = 0;
while (_local3 < __rowCount) {
rows[_local3].invalidateStyle(propName);
_local3++;
}
}
super.invalidateStyle(propName);
}
static var mixIt1 = mx.controls.listclasses.DataSelector.Initialize(mx.controls.listclasses.ScrollSelectList);
static var mixIt2 = mx.controls.listclasses.DataProvider.Initialize(Array);
var CONTENTDEPTH = 100;
var __hPosition = 0;
var __rowRenderer = "SelectableRow";
var __rowHeight = 22;
var __rowCount = 0;
var __labelField = "label";
var minScrollInterval = 30;
var dropEnabled = false;
var dragEnabled = false;
var className = "ScrollSelectList";
var isRowStyle = {styleName:true, backgroundColor:true, selectionColor:true, rollOverColor:true, selectionDisabledColor:true, backgroundDisabledColor:true, textColor:true, textSelectedColor:true, textRollOverColor:true, textDisabledColor:true, alternatingRowColors:true, defaultIcon:true};
var roundUp = 0;
var selectable = true;
var multipleSelection = false;
}
Symbol 367 MovieClip [__Packages.mx.controls.List] Frame 0
class mx.controls.List extends mx.controls.listclasses.ScrollSelectList
{
var border_mc, __labels, setDataProvider, roundUp, __get__rowCount, __dataProvider, __maxHPosition, invScrollProps, invalidate, __vPosition, getViewMetrics, setSize, __width, __rowHeight, totalWidth, totalHeight, displayWidth, __hScrollPolicy, vScroller, __hPosition, listContent, data, mask_mc, __height, __rowCount, invRowHeight, invLayoutContent, setScrollProperties, oldVWidth;
function List () {
super();
}
function setEnabled(v) {
super.setEnabled(v);
border_mc.backgroundColorName = (v ? "backgroundColor" : "backgroundDisabledColor");
border_mc.invalidate();
}
function get labels() {
return(__labels);
}
function set labels(lbls) {
__labels = lbls;
setDataProvider(lbls);
//return(labels);
}
function setVPosition(pos) {
pos = Math.min((__dataProvider.length - __get__rowCount()) + roundUp, pos);
pos = Math.max(0, pos);
super.setVPosition(pos);
}
function setHPosition(pos) {
pos = Math.max(Math.min(__maxHPosition, pos), 0);
super.setHPosition(pos);
hScroll(pos);
}
function setMaxHPosition(pos) {
__maxHPosition = pos;
invScrollProps = true;
invalidate();
}
function setHScrollPolicy(policy) {
if ((policy.toLowerCase() == "auto") && (!autoHScrollAble)) {
return(undefined);
}
super.setHScrollPolicy(policy);
if (policy == "off") {
setHPosition(0);
setVPosition(Math.min((__dataProvider.length - __get__rowCount()) + roundUp, __vPosition));
}
}
function setRowCount(rC) {
if (isNaN(rC)) {
return(undefined);
}
var _local2 = getViewMetrics();
setSize(__width, ((__rowHeight * rC) + _local2.top) + _local2.bottom);
}
function layoutContent(x, y, tW, tH, dW, dH) {
totalWidth = tW;
totalHeight = tH;
displayWidth = dW;
var _local4 = (((__hScrollPolicy == "on") || (__hScrollPolicy == "auto")) ? (Math.max(tW, dW)) : (dW));
super.layoutContent(x, y, _local4, dH);
}
function modelChanged(eventObj) {
super.modelChanged(eventObj);
var _local3 = eventObj.eventName;
if ((((_local3 == "addItems") || (_local3 == "removeItems")) || (_local3 == "updateAll")) || (_local3 == "filterModel")) {
invScrollProps = true;
invalidate("invScrollProps");
}
}
function onScroll(eventObj) {
var _local3 = eventObj.target;
if (_local3 == vScroller) {
setVPosition(_local3.scrollPosition);
} else {
hScroll(_local3.scrollPosition);
}
super.onScroll(eventObj);
}
function hScroll(pos) {
__hPosition = pos;
listContent._x = -pos;
}
function init(Void) {
super.init();
if (labels.length > 0) {
var _local6 = new Array();
var _local3 = 0;
while (_local3 < labels.length) {
_local6.addItem({label:labels[_local3], data:data[_local3]});
_local3++;
}
setDataProvider(_local6);
}
__maxHPosition = 0;
}
function createChildren(Void) {
super.createChildren();
listContent.setMask(mask_mc);
border_mc.move(0, 0);
border_mc.setSize(__width, __height);
}
function getRowCount(Void) {
var _local2 = getViewMetrics();
return(((__rowCount == 0) ? (Math.ceil(((__height - _local2.top) - _local2.bottom) / __rowHeight)) : (__rowCount)));
}
function size(Void) {
super.size();
configureScrolling();
var _local3 = getViewMetrics();
layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom);
}
function draw(Void) {
if (invRowHeight) {
invScrollProps = true;
super.draw();
listContent.setMask(mask_mc);
invLayoutContent = true;
}
if (invScrollProps) {
configureScrolling();
delete invScrollProps;
}
if (invLayoutContent) {
var _local3 = getViewMetrics();
layoutContent(_local3.left, _local3.top, __width + __maxHPosition, totalHeight, (__width - _local3.left) - _local3.right, (__height - _local3.top) - _local3.bottom);
}
super.draw();
}
function configureScrolling(Void) {
var _local2 = __dataProvider.length;
if (__vPosition > Math.max(0, (_local2 - getRowCount()) + roundUp)) {
setVPosition(Math.max(0, Math.min((_local2 - getRowCount()) + roundUp, __vPosition)));
}
var _local3 = getViewMetrics();
var _local4 = ((__hScrollPolicy != "off") ? (((__maxHPosition + __width) - _local3.left) - _local3.right) : ((__width - _local3.left) - _local3.right));
if (_local2 == undefined) {
_local2 = 0;
}
setScrollProperties(_local4, 1, _local2, __rowHeight);
if (oldVWidth != _local4) {
invLayoutContent = true;
}
oldVWidth = _local4;
}
static var symbolOwner = mx.controls.List;
static var symbolName = "List";
var className = "List";
static var version = "2.0.2.127";
var clipParameters = {rowHeight:1, enabled:1, visible:1, labels:1};
var scrollDepth = 1;
var __vScrollPolicy = "on";
var autoHScrollAble = false;
}
Symbol 368 MovieClip [__Packages.mx.effects.Tween] Frame 0
class mx.effects.Tween extends Object
{
static var IntervalToken;
var arrayMode, listener, initVal, endVal, startTime, updateFunc, endFunc, ID;
function Tween (listenerObj, init, end, dur) {
super();
if (listenerObj == undefined) {
return;
}
if (typeof(init) != "number") {
arrayMode = true;
}
listener = listenerObj;
initVal = init;
endVal = end;
if (dur != undefined) {
duration = dur;
}
startTime = getTimer();
if (duration == 0) {
endTween();
} else {
AddTween(this);
}
}
static function AddTween(tween) {
tween.ID = ActiveTweens.length;
ActiveTweens.push(tween);
if (IntervalToken == undefined) {
Dispatcher.DispatchTweens = DispatchTweens;
IntervalToken = setInterval(Dispatcher, "DispatchTweens", Interval);
}
}
static function RemoveTweenAt(index) {
var _local2 = ActiveTweens;
if (((index >= _local2.length) || (index < 0)) || (index == undefined)) {
return(undefined);
}
_local2.splice(index, 1);
var _local4 = _local2.length;
var _local1 = index;
while (_local1 < _local4) {
_local2[_local1].ID--;
_local1++;
}
if (_local4 == 0) {
clearInterval(IntervalToken);
delete IntervalToken;
}
}
static function DispatchTweens(Void) {
var _local2 = ActiveTweens;
var _local3 = _local2.length;
var _local1 = 0;
while (_local1 < _local3) {
_local2[_local1].doInterval();
_local1++;
}
updateAfterEvent();
}
function doInterval() {
var _local2 = getTimer() - startTime;
var _local3 = getCurVal(_local2);
if (_local2 >= duration) {
endTween();
} else if (updateFunc != undefined) {
listener[updateFunc](_local3);
} else {
listener.onTweenUpdate(_local3);
}
}
function getCurVal(curTime) {
if (arrayMode) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < initVal.length) {
_local3[_local2] = easingEquation(curTime, initVal[_local2], endVal[_local2] - initVal[_local2], duration);
_local2++;
}
return(_local3);
}
return(easingEquation(curTime, initVal, endVal - initVal, duration));
}
function endTween() {
if (endFunc != undefined) {
listener[endFunc](endVal);
} else {
listener.onTweenEnd(endVal);
}
RemoveTweenAt(ID);
}
function setTweenHandlers(update, end) {
updateFunc = update;
endFunc = end;
}
function easingEquation(t, b, c, d) {
return(((c / 2) * (Math.sin(Math.PI * ((t / d) - 0.5)) + 1)) + b);
}
static var ActiveTweens = new Array();
static var Interval = 10;
static var Dispatcher = new Object();
var duration = 3000;
}
Symbol 371 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 373 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 377 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 378 MovieClip [__Packages.mx.controls.listclasses.SelectableRow] Frame 0
class mx.controls.listclasses.SelectableRow extends mx.core.UIComponent
{
var __height, cell, owner, rowIndex, icon_mc, createObject, __width, backGround, highlight, highlightColor, createLabel, createClassObject, listOwner, tabEnabled, item, createEmptyMovieClip, drawRect, isChangedToSelected, bGTween, grandOwner;
function SelectableRow () {
super();
}
function setValue(itmObj, state) {
var _local7 = __height;
var _local2 = cell;
var _local5 = owner;
var _local8 = itemToString(itmObj);
if (_local2.getValue() != _local8) {
_local2.setValue(_local8, itmObj, state);
}
var _local4 = _local5.getPropertiesAt(rowIndex + _local5.__vPosition).icon;
if (_local4 == undefined) {
_local4 = _local5.__iconFunction(itmObj);
if (_local4 == undefined) {
_local4 = itmObj[_local5.__iconField];
if (_local4 == undefined) {
_local4 = _local5.getStyle("defaultIcon");
}
}
}
var _local3 = icon_mc;
if ((_local4 != undefined) && (itmObj != undefined)) {
_local3 = createObject(_local4, "icon_mc", 20);
_local3._x = 2;
_local3._y = (_local7 - _local3._height) / 2;
_local2._x = 4 + _local3._width;
} else {
_local3.removeMovieClip();
_local2._x = 2;
}
var _local9 = ((_local3 == undefined) ? 0 : (_local3._width));
_local2.setSize(__width - _local9, Math.min(_local7, _local2.getPreferredHeight()));
_local2._y = (_local7 - _local2._height) / 2;
}
function size(Void) {
var _local3 = backGround;
var _local2 = cell;
var _local4 = __height;
var _local5 = __width;
var _local6 = ((icon_mc == undefined) ? 0 : (icon_mc._width));
_local2.setSize(_local5 - _local6, Math.min(_local4, _local2.getPreferredHeight()));
_local2._y = (_local4 - _local2._height) / 2;
icon_mc._y = (_local4 - icon_mc._height) / 2;
_local3._x = 0;
_local3._width = _local5;
_local3._height = _local4;
drawRowFill(_local3, normalColor);
drawRowFill(highlight, highlightColor);
}
function setCellRenderer(forceSizing) {
var _local3 = owner.__cellRenderer;
var _local4;
if (cell != undefined) {
_local4 = cell._x;
cell.removeMovieClip();
cell.removeTextField();
}
var _local2;
if (_local3 == undefined) {
_local2 = (cell = createLabel("cll", 0, {styleName:this}));
_local2.styleName = owner;
_local2.selectable = false;
_local2.tabEnabled = false;
_local2.background = false;
_local2.border = false;
} else if (typeof(_local3) == "string") {
_local2 = (cell = createObject(_local3, "cll", 0, {styleName:this}));
} else {
_local2 = (cell = createClassObject(_local3, "cll", 0, {styleName:this}));
}
_local2.owner = this;
_local2.listOwner = owner;
_local2.getCellIndex = getCellIndex;
_local2.getDataLabel = getDataLabel;
if (_local4 != undefined) {
_local2._x = _local4;
}
if (forceSizing) {
size();
}
}
function getCellIndex(Void) {
return({columnIndex:0, itemIndex:owner.rowIndex + listOwner.__vPosition});
}
function getDataLabel() {
return(listOwner.labelField);
}
function init(Void) {
super.init();
tabEnabled = false;
}
function createChildren(Void) {
setCellRenderer(false);
setupBG();
setState(state, false);
}
function drawRow(itmObj, state, transition) {
item = itmObj;
setState(state, transition);
setValue(itmObj, state, transition);
}
function itemToString(itmObj) {
if (itmObj == undefined) {
return(" ");
}
var _local2 = owner.__labelFunction(itmObj);
if (_local2 == undefined) {
_local2 = ((itmObj instanceof XMLNode) ? (itmObj.attributes[owner.__labelField]) : (itmObj[owner.__labelField]));
if (_local2 == undefined) {
_local2 = " ";
if (typeof(itmObj) == "object") {
for (var _local4 in itmObj) {
if (_local4 != "__ID__") {
_local2 = (itmObj[_local4] + ", ") + _local2;
}
}
_local2 = _local2.substring(0, _local2.length - 2);
} else {
_local2 = itmObj;
}
}
}
return(_local2);
}
function setupBG(Void) {
var _local2 = (backGround = createEmptyMovieClip("bG_mc", LOWEST_DEPTH));
drawRowFill(_local2, normalColor);
highlight = createEmptyMovieClip("tran_mc", LOWEST_DEPTH + 10);
_local2.owner = this;
_local2.grandOwner = owner;
_local2.onPress = bGOnPress;
_local2.onRelease = bGOnRelease;
_local2.onRollOver = bGOnRollOver;
_local2.onRollOut = bGOnRollOut;
_local2.onDragOver = bGOnDragOver;
_local2.onDragOut = bGOnDragOut;
_local2.useHandCursor = false;
_local2.trackAsMenu = true;
_local2.drawRect = drawRect;
highlight.drawRect = drawRect;
}
function drawRowFill(mc, newClr) {
mc.clear();
mc.beginFill(newClr);
mc.drawRect(1, 0, __width, __height);
mc.endFill();
mc._width = __width;
mc._height = __height;
}
function setState(newState, transition) {
var _local2 = highlight;
var _local8 = backGround;
var _local4 = __height;
var _local3 = owner;
if (!_local3.enabled) {
if ((newState == "selected") || (state == "selected")) {
highlightColor = _local3.getStyle("selectionDisabledColor");
drawRowFill(_local2, highlightColor);
_local2._visible = true;
_local2._y = 0;
_local2._height = _local4;
} else {
_local2._visible = false;
normalColor = _local3.getStyle("backgroundDisabledColor");
drawRowFill(_local8, normalColor);
}
cell.__enabled = false;
cell.setColor(_local3.getStyle("disabledColor"));
} else {
cell.__enabled = true;
if (transition && ((newState == state) || ((newState == "highlighted") && (state == "selected")))) {
isChangedToSelected = true;
return(undefined);
}
var _local6 = _local3.getStyle("selectionDuration");
var _local7 = 0;
if (isChangedToSelected && (newState == "selected")) {
transition = false;
}
var _local10 = transition && (_local6 != 0);
if (newState == "normal") {
_local7 = _local3.getStyle("color");
normalColor = getNormalColor();
drawRowFill(_local8, normalColor);
if (_local10) {
_local6 = _local6 / 2;
_local2._height = _local4;
_local2._width = __width;
_local2._y = 0;
bGTween = new mx.effects.Tween(this, _local4 + 2, _local4 * 0.2, _local6, 5);
} else {
_local2._visible = false;
}
delete isChangedToSelected;
} else {
highlightColor = _local3.getStyle(((newState == "highlighted") ? "rollOverColor" : "selectionColor"));
drawRowFill(_local2, highlightColor);
_local2._visible = true;
_local7 = _local3.getStyle(((newState == "highlighted") ? "textRollOverColor" : "textSelectedColor"));
if (_local10) {
_local2._height = _local4 * 0.5;
_local2._y = (_local4 - _local2._height) / 2;
bGTween = new mx.effects.Tween(this, _local2._height, _local4 + 2, _local6, 5);
var _local9 = _local3.getStyle("selectionEasing");
if (_local9 != undefined) {
bGTween.easingEquation = _local9;
}
} else {
_local2._y = 0;
_local2._height = _local4;
}
}
cell.setColor(_local7);
}
state = newState;
}
function onTweenUpdate(val) {
highlight._height = val;
highlight._y = (__height - val) / 2;
}
function onTweenEnd(val) {
onTweenUpdate(val);
highlight._visible = state != "normal";
}
function getNormalColor(Void) {
var _local3;
var _local2 = owner;
if (!owner.enabled) {
_local3 = _local2.getStyle("backgroundDisabledColor");
} else {
var _local5 = rowIndex + _local2.__vPosition;
if (rowIndex == undefined) {
_local3 = _local2.getPropertiesOf(item).backgroundColor;
} else {
_local3 = _local2.getPropertiesAt(_local5).backgroundColor;
}
if (_local3 == undefined) {
var _local4 = _local2.getStyle("alternatingRowColors");
if (_local4 == undefined) {
_local3 = _local2.getStyle("backgroundColor");
} else {
_local3 = _local4[_local5 % _local4.length];
}
}
}
return(_local3);
}
function invalidateStyle(propName) {
cell.invalidateStyle(propName);
super.invalidateStyle(propName);
}
function bGOnPress(Void) {
grandOwner.pressFocus();
grandOwner.onRowPress(owner.rowIndex);
}
function bGOnRelease(Void) {
grandOwner.releaseFocus();
grandOwner.onRowRelease(owner.rowIndex);
}
function bGOnRollOver(Void) {
grandOwner.onRowRollOver(owner.rowIndex);
}
function bGOnRollOut(Void) {
grandOwner.onRowRollOut(owner.rowIndex);
}
function bGOnDragOver(Void) {
grandOwner.onRowDragOver(owner.rowIndex);
}
function bGOnDragOut(Void) {
grandOwner.onRowDragOut(owner.rowIndex);
}
static var LOWEST_DEPTH = -16384;
var state = "normal";
var disabledColor = 15263976;
var normalColor = 16777215;
}
Symbol 379 MovieClip [__Packages.mx.controls.HScrollBar] Frame 0
class mx.controls.HScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var _minHeight, _minWidth, _xscale, _rotation, __width, scrollIt;
function HScrollBar () {
super();
}
function getMinWidth(Void) {
return(_minHeight);
}
function getMinHeight(Void) {
return(_minWidth);
}
function init(Void) {
super.init();
_xscale = -100;
_rotation = -90;
}
function get virtualHeight() {
return(__width);
}
function isScrollBarKey(k) {
if (k == 37) {
scrollIt("Line", -1);
return(true);
}
if (k == 39) {
scrollIt("Line", 1);
return(true);
}
return(super.isScrollBarKey(k));
}
static var symbolName = "HScrollBar";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
var className = "HScrollBar";
var minusMode = "Left";
var plusMode = "Right";
var minMode = "AtLeft";
var maxMode = "AtRight";
}
Symbol 380 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 381 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 382 MovieClip [__Packages.mx.controls.VScrollBar] Frame 0
class mx.controls.VScrollBar extends mx.controls.scrollClasses.ScrollBar
{
var scrollIt;
function VScrollBar () {
super();
}
function init(Void) {
super.init();
}
function isScrollBarKey(k) {
if (k == 38) {
scrollIt("Line", -1);
return(true);
}
if (k == 40) {
scrollIt("Line", 1);
return(true);
}
if (k == 33) {
scrollIt("Page", -1);
return(true);
}
if (k == 34) {
scrollIt("Page", 1);
return(true);
}
return(super.isScrollBarKey(k));
}
static var symbolName = "VScrollBar";
static var symbolOwner = mx.core.UIComponent;
static var version = "2.0.2.127";
var className = "VScrollBar";
var minusMode = "Up";
var plusMode = "Down";
var minMode = "AtTop";
var maxMode = "AtBottom";
}
Symbol 1046 MovieClip [__Packages.mx.controls.streamingmedia.ToEndButton] Frame 0
class mx.controls.streamingmedia.ToEndButton extends MovieClip
{
var attachMovie, toEndSimpleButton, _parent, tabEnabled, tabChildren;
function ToEndButton () {
super();
init();
}
function init() {
attachMovie("SimpleButton", "toEndSimpleButton", 1, {falseUpSkin:"ToEnd-False-Up", falseOverSkin:"ToEnd-False-Over", falseDownSkin:"ToEnd-False-Down", falseDisabledSkin:"ToEnd-False-Disabled"});
toEndSimpleButton.addEventListener("click", this);
var _local2 = _parent._parent;
_local2.evaluateToEnd();
tabEnabled = false;
tabChildren = true;
}
function get enabled() {
return(toEndSimpleButton.enabled);
}
function set enabled(is) {
toEndSimpleButton.enabled = is;
//return(enabled);
}
function click(ev) {
var _local2 = _parent._parent;
mx.controls.streamingmedia.Tracer.trace("ToEndButton.click: playAtBeginning=false");
_local2.playAtBeginning = false;
_local2.broadcastEvent("playheadChange", 100);
}
}
Symbol 1047 MovieClip [__Packages.mx.controls.streamingmedia.ToStartButton] Frame 0
class mx.controls.streamingmedia.ToStartButton extends MovieClip
{
var attachMovie, toStartSimpleButton, _parent, tabEnabled, tabChildren;
function ToStartButton () {
super();
init();
}
function init() {
attachMovie("SimpleButton", "toStartSimpleButton", 1, {falseUpSkin:"ToStart-False-Up", falseOverSkin:"ToStart-False-Over", falseDownSkin:"ToStart-False-Down", falseDisabledSkin:"ToStart-False-Disabled"});
toStartSimpleButton.addEventListener("click", this);
var _local2 = _parent._parent;
enabled = (_local2.enabled);
tabEnabled = false;
tabChildren = true;
}
function get enabled() {
return(toStartSimpleButton.enabled);
}
function set enabled(is) {
toStartSimpleButton.enabled = is;
//return(enabled);
}
function click(ev) {
_parent._parent.broadcastEvent("playheadChange", 0);
}
}
Symbol 1048 MovieClip [__Packages.mx.controls.streamingmedia.PlayPauseButton] Frame 0
class mx.controls.streamingmedia.PlayPauseButton extends MovieClip
{
var _controller, _parent, attachMovie, _playPauseButton, _isPlaying, tabEnabled, tabChildren;
function PlayPauseButton () {
super();
init();
}
function init() {
_controller = _parent._parent;
attachMovie("Button", "_playPauseButton", 1);
_playPauseButton.setSize(50, 22);
_playPauseButton._x = 0;
_playPauseButton._y = 0;
_playPauseButton.addEventListener("click", this);
_isPlaying = !_controller.isPlaying();
enabled = (_controller.enabled);
tabEnabled = false;
tabChildren = true;
}
function showPlayButton() {
mx.controls.streamingmedia.Tracer.trace("PlayPauseButton.showPlayButton");
_isPlaying = true;
assignIcon();
}
function showPauseButton() {
mx.controls.streamingmedia.Tracer.trace("PlayPauseButton.showPauseButton");
_isPlaying = false;
assignIcon();
}
function get enabled() {
return(_playPauseButton.enabled);
}
function set enabled(is) {
_playPauseButton.enabled = is;
assignIcon();
//return(enabled);
}
function assignIcon() {
var _local3 = enabled;
var _local5 = _isPlaying;
mx.controls.streamingmedia.Tracer.trace((("PlayPauseButton.assignIcon: start: enabled=" + _local3) + ", play=") + _local5);
var _local2 = "";
if (_local5) {
_local2 = (_local3 ? "icon.play" : "icon.play-disabled");
} else {
_local2 = (_local3 ? "icon.pause" : "icon.pause-disabled");
}
mx.controls.streamingmedia.Tracer.trace("PlayPauseButton.assignIcon: icon=" + _local2);
var _local4 = _playPauseButton.enabled;
if (!_local4) {
_playPauseButton.enabled = true;
}
_playPauseButton.__set__icon(_local2);
if (!_local4) {
_playPauseButton.enabled = false;
}
mx.controls.streamingmedia.Tracer.trace("PlayPauseButton.assignIcon: done");
}
function click(ev) {
if (_isPlaying) {
playClick();
} else {
pauseClick();
}
}
function playClick() {
var _local2 = _controller;
mx.controls.streamingmedia.Tracer.trace("PlayButton.click: playAtBeginning=" + _local2.playAtBeginning);
if (_local2.playAtBeginning) {
_local2.broadcastEvent("playheadChange", 0);
mx.controls.streamingmedia.Tracer.trace("PlayButton.click: playAtBeginning=false");
_local2.playAtBeginning = false;
}
_local2.broadcastEvent("click", "play");
_local2.setPlaying(true);
}
function pauseClick() {
var _local2 = _controller;
_local2.broadcastEvent("click", "pause");
_local2.setPlaying(false);
}
}
Symbol 1049 MovieClip [__Packages.mx.controls.streamingmedia.HMiniPlayBarTray] Frame 0
class mx.controls.streamingmedia.HMiniPlayBarTray extends MovieClip
{
var _left, _middle, _right;
function HMiniPlayBarTray () {
super();
}
function setWidth(aWidth) {
_middle._x = _left._width;
_middle._width = (aWidth - _left._width) - _right._width;
_right._x = _middle._x + _middle._width;
}
function getHeight() {
return(_left._height);
}
}
Symbol 1050 MovieClip [__Packages.mx.controls.streamingmedia.HPlayBarTray] Frame 0
class mx.controls.streamingmedia.HPlayBarTray extends MovieClip
{
var _left, _middle, _right;
function HPlayBarTray () {
super();
}
function setWidth(aWidth) {
_middle._x = _left._width;
_middle._width = (aWidth - _left._width) - _right._width;
_right._x = _middle._x + _middle._width;
}
}
Symbol 1051 MovieClip [__Packages.mx.controls.streamingmedia.VMiniPlayBarTray] Frame 0
class mx.controls.streamingmedia.VMiniPlayBarTray extends MovieClip
{
var _bottom, _top, _middle;
function VMiniPlayBarTray () {
super();
}
function getHeight() {
return(_bottom._y + _bottom._height);
}
function setHeight(aHeight) {
_middle._y = _top._height;
_middle._height = (aHeight - _top._height) - _bottom._height;
_bottom._y = _middle._y + _middle._height;
}
}
Symbol 1052 MovieClip [__Packages.mx.controls.streamingmedia.VPlayBarTray] Frame 0
class mx.controls.streamingmedia.VPlayBarTray extends MovieClip
{
var _top, _middle, _bottom;
function VPlayBarTray () {
super();
}
function setHeight(aHeight) {
_middle._y = _top._height;
_middle._height = (aHeight - _top._height) - _bottom._height;
_bottom._y = _middle._y + _middle._height;
}
}
Symbol 201 Button
on (release) {
if (Key.isDown(16)) {
gotoAndPlay ("pre_menu");
} else {
getURL ("http://games.pbswine.de/", "_blank");
}
}
Symbol 236 MovieClip [Defaults] Frame 1
#initclip 104
Object.registerClass("Defaults", mx.skins.halo.Defaults);
#endinitclip
Symbol 237 MovieClip [UIObjectExtensions] Frame 1
#initclip 105
Object.registerClass("UIObjectExtensions", mx.core.ext.UIObjectExtensions);
#endinitclip
Symbol 238 MovieClip [UIObject] Frame 1
#initclip 106
Object.registerClass("UIObject", mx.core.UIObject);
#endinitclip
stop();
Symbol 241 Button
on (keyPress "<Tab>") {
this.tabHandler();
}
Symbol 242 MovieClip Frame 1
#initclip 107
Object.registerClass("FocusManager", mx.managers.FocusManager);
if (_root.focusManager == undefined) {
_root.createClassObject(mx.managers.FocusManager, "focusManager", mx.managers.DepthManager.highestDepth--);
}
#endinitclip
Symbol 243 MovieClip [FocusRect] Frame 1
#initclip 108
Object.registerClass("FocusRect", mx.skins.halo.FocusRect);
#endinitclip
Symbol 244 MovieClip [FocusManager] Frame 1
#initclip 109
Object.registerClass("FocusManager", mx.managers.FocusManager);
#endinitclip
stop();
Symbol 245 MovieClip [UIComponentExtensions] Frame 1
#initclip 110
Object.registerClass("UIComponentExtensions", mx.core.ext.UIComponentExtensions);
#endinitclip
Symbol 246 MovieClip [UIComponent] Frame 1
#initclip 111
Object.registerClass("UIComponent", mx.core.UIComponent);
#endinitclip
stop();
Symbol 248 MovieClip [BrdrShdw] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "shadowColor");
Symbol 250 MovieClip [BrdrFace] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "buttonColor");
Symbol 253 MovieClip [BrdrBlk] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "borderColor");
Symbol 255 MovieClip [BrdrHilght] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "highlightColor");
Symbol 258 MovieClip [SimpleButton] Frame 1
#initclip 112
Object.registerClass("SimpleButton", mx.controls.SimpleButton);
#endinitclip
stop();
Symbol 261 MovieClip [Border] Frame 1
#initclip 113
Object.registerClass("Border", mx.skins.Border);
#endinitclip
stop();
Symbol 262 MovieClip [RectBorder] Frame 1
#initclip 114
mx.skins.SkinElement.registerElement(mx.skins.RectBorder.symbolName, Object(mx.skins.RectBorder));
Object.registerClass("RectBorder", mx.skins.halo.RectBorder);
#endinitclip
stop();
Symbol 263 MovieClip [TextInput] Frame 1
#initclip 115
Object.registerClass("TextInput", mx.controls.TextInput);
#endinitclip
stop();
Symbol 264 MovieClip [ComboBase] Frame 1
#initclip 116
mx.controls.listclasses.DataSelector.Initialize(Object(mx.controls.ComboBase).prototype);
Object.registerClass("ComboBase", mx.controls.ComboBase);
#endinitclip
stop();
Instance of Symbol 258 MovieClip [SimpleButton] in Symbol 264 MovieClip [ComboBase] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 263 MovieClip [TextInput] in Symbol 264 MovieClip [ComboBase] Frame 2
//component parameters
onClipEvent (initialize) {
editable = true;
password = false;
text = "";
maxChars = null;
restrict = "null";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 265 MovieClip [DataProvider] Frame 1
#initclip 117
Object.registerClass("DataProvider", mx.controls.listclasses.DataProvider);
#endinitclip
stop();
Symbol 266 MovieClip [DataSelector] Frame 1
#initclip 118
Object.registerClass("DataSelector", mx.controls.listclasses.DataSelector);
#endinitclip
stop();
Symbol 267 MovieClip [SelectableRow] Frame 1
#initclip 119
Object.registerClass("SelectableRow", mx.controls.listclasses.SelectableRow);
#endinitclip
stop();
Symbol 268 MovieClip [ButtonSkin] Frame 1
#initclip 120
Object.registerClass("ButtonSkin", mx.skins.halo.ButtonSkin);
#endinitclip
Symbol 269 MovieClip [Button] Frame 1
#initclip 121
Object.registerClass("Button", mx.controls.Button);
#endinitclip
stop();
Instance of Symbol 258 MovieClip [SimpleButton] in Symbol 269 MovieClip [Button] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 270 MovieClip [CustomBorder] Frame 1
#initclip 122
Object.registerClass("CustomBorder", mx.skins.CustomBorder);
mx.skins.SkinElement.registerElement("CustomBorder", mx.skins.CustomBorder);
#endinitclip
Symbol 282 MovieClip [ScrollThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 284 MovieClip [ScrollThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 295 MovieClip [ThumbThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 297 MovieClip [ThumbThemeColor3] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 304 MovieClip [ThumbThemeColor2] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 325 MovieClip [BtnDownArrow] Frame 1
#initclip 123
Object.registerClass("BtnDownArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 326 MovieClip [BtnUpArrow] Frame 1
#initclip 124
Object.registerClass("BtnUpArrow", mx.controls.SimpleButton);
#endinitclip
Symbol 328 MovieClip [HScrollBar] Frame 1
#initclip 125
Object.registerClass("HScrollBar", mx.controls.HScrollBar);
#endinitclip
stop();
Instance of Symbol 269 MovieClip [Button] in Symbol 328 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 258 MovieClip [SimpleButton] in Symbol 328 MovieClip [HScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 329 MovieClip [VScrollBar] Frame 1
#initclip 126
Object.registerClass("VScrollBar", mx.controls.VScrollBar);
#endinitclip
stop();
Instance of Symbol 269 MovieClip [Button] in Symbol 329 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 258 MovieClip [SimpleButton] in Symbol 329 MovieClip [VScrollBar] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 330 MovieClip [View] Frame 1
#initclip 127
Object.registerClass("View", mx.core.View);
#endinitclip
stop();
Symbol 331 MovieClip [ScrollView] Frame 1
#initclip 128
Object.registerClass("ScrollView", mx.core.ScrollView);
#endinitclip
stop();
Instance of Symbol 328 MovieClip [HScrollBar] in Symbol 331 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 329 MovieClip [VScrollBar] in Symbol 331 MovieClip [ScrollView] Frame 2
//component parameters
onClipEvent (initialize) {
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 332 MovieClip [ScrollSelectList] Frame 1
#initclip 129
Object.registerClass("ScrollSelectList", mx.controls.listclasses.ScrollSelectList);
#endinitclip
stop();
Symbol 333 MovieClip [List] Frame 1
#initclip 130
Object.registerClass("List", mx.controls.List);
#endinitclip
stop();
Symbol 339 MovieClip [ComboDownArrowDisabled] Frame 1
#initclip 131
Object.registerClass("ComboDownArrowDisabled", mx.controls.SimpleButton);
#endinitclip
Symbol 341 MovieClip [ComboThemeColor1] Frame 1
mx.skins.ColoredSkinElement.setColorStyle(this, "themeColor");
Symbol 344 MovieClip [ComboAssets] Frame 1
#initclip 132
mx.controls.ComboBox.prototype.downArrowUpName = "ComboDownArrowUp";
mx.controls.ComboBox.prototype.downArrowDownName = "ComboDownArrowDown";
mx.controls.ComboBox.prototype.downArrowOverName = "ComboDownArrowOver";
mx.controls.ComboBox.prototype.downArrowDisabledName = "ComboDownArrowDisabled";
mx.controls.ComboBox.prototype.wrapDownArrowButton = false;
mx.controls.ComboBox.prototype.dropDownBorderStyle = "solid";
mx.controls.ComboBox.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, {bl:0, tl:0, tr:5, br:5}, 100, _local2);
_local3.move(this.x - 2, this.y - 2);
};
#endinitclip
Symbol 345 MovieClip [ComboBox] Frame 1
#initclip 133
Object.registerClass("ComboBox", mx.controls.ComboBox);
#endinitclip
stop();
Instance of Symbol 333 MovieClip [List] in Symbol 345 MovieClip [ComboBox] Frame 2
//component parameters
onClipEvent (initialize) {
multipleSelection = false;
rowHeight = 20;
}
Symbol 444 MovieClip [crate_health] Frame 30
gotoAndPlay (1);
Symbol 444 MovieClip [crate_health] Frame 68
delete _root.cratesArr[myIndex];
this.removeMovieClip();
Symbol 447 MovieClip [crate_mines] Frame 30
gotoAndPlay (1);
Symbol 447 MovieClip [crate_mines] Frame 68
delete _root.cratesArr[myIndex];
this.removeMovieClip();
Symbol 450 MovieClip [crate_missiles] Frame 30
gotoAndPlay (1);
Symbol 450 MovieClip [crate_missiles] Frame 68
delete _root.cratesArr[myIndex];
this.removeMovieClip();
Symbol 456 MovieClip [dangerArrow] Frame 185
gotoAndPlay ("loop");
Symbol 517 MovieClip [explosion] Frame 61
if (this == _root.flashArr[this.myIndex]) {
_root.flashArr.splice(this.myIndex, 1);
} else {
for (var i in _root.flashArr) {
if (_root.flashArr[i] == this) {
_root.flashArr.splice(i, 1);
break;
}
}
}
this.removeMovieClip();
Symbol 558 MovieClip Frame 1
stop();
Symbol 565 MovieClip Frame 1
stop();
Symbol 570 MovieClip Frame 1
stop();
if (_root.isMuted) {
this.gotoAndStop(2);
}
Symbol 649 MovieClip Frame 1
stop();
Symbol 649 MovieClip Frame 10
stop();
Symbol 720 MovieClip Frame 1
stop();
Symbol 720 MovieClip Frame 33
stop();
Instance of Symbol 720 MovieClip in Symbol 721 MovieClip Frame 1
onClipEvent (enterFrame) {
if (ha.isOver) {
if (this._alpha == 0) {
this._alpha = 100;
}
this.nextFrame();
} else if (ha.isOver != undefined) {
this._alpha = this._alpha - 10;
this.nextFrame();
if (this._alpha <= 0) {
this._alpha = 0;
this.gotoAndStop(1);
}
}
}
onClipEvent (load) {
this.ha.onRollOver = function () {
this.isOver = 1;
_root.darkwind.start(0.3);
_root.b1.bew = "fw";
};
this.ha.onRollOut = function () {
this.isOver = 0;
_root.b1.bew = "rw";
};
this.ha.onRelease = function () {
_root.explodeStage(false, "goHome");
_root.hud.menu._visible = false;
this.isOver = 0;
_root.punch.start();
_root.b1.bew = "rw";
};
}
Instance of Symbol 720 MovieClip in Symbol 721 MovieClip Frame 1
onClipEvent (enterFrame) {
if (ha.isOver) {
if (this._alpha == 0) {
this._alpha = 100;
}
this.nextFrame();
} else if (ha.isOver != undefined) {
this._alpha = this._alpha - 10;
this.nextFrame();
if (this._alpha <= 0) {
this._alpha = 0;
this.gotoAndStop(1);
}
}
}
onClipEvent (load) {
this.ha.onRollOver = function () {
this.isOver = 1;
_root.darkwind.start(0.3);
_root.b1.bew = "fw";
};
this.ha.onRollOut = function () {
this.isOver = 0;
_root.b1.bew = "rw";
};
this.ha.onRelease = function () {
_root.hud.menu._visible = false;
_root.gamePaused = 0;
this.isOver = 0;
_root.punch.start();
_root.b1.bew = "rw";
};
}
Symbol 726 MovieClip [hud] Frame 1
function setScore(levelScore) {
if (levelScore < 0) {
levelScore = 0;
}
var _local2 = levelScore.toString();
while (_local2.length < 5) {
_local2 = "0" + _local2;
}
this.scoreDisplay.removeTextField();
this.createTextField("scoreDisplay", this.getNextHighestDepth(), 336, 522, 65, 30);
this.scoreDisplay._quality("BEST");
this.scoreDisplay.multiline = false;
this.scoreDisplay.text = _local2;
this.scoreDisplay.selectable = false;
this.scoreDisplay.wordWrap = false;
this.scoreDisplay.embedFonts = true;
var _local3 = new TextFormat();
_local3.font = "font02";
_local3.size = 22;
_local3.align = "left";
_local3.color = "0xFFFFFF";
this.scoreDisplay.setTextFormat(_local3);
}
function setLives(lives) {
if (lives == 3) {
life1.gotoAndStop(1);
life2.gotoAndStop(1);
life3.gotoAndStop(1);
} else if (lives == 2) {
life1.gotoAndStop(1);
life2.gotoAndStop(1);
life3.gotoAndPlay(2);
} else if (lives == 1) {
life1.gotoAndStop(1);
life2.gotoAndPlay(2);
life3.gotoAndStop(10);
} else if (lives == 0) {
life1.gotoAndPlay(2);
life2.gotoAndStop(10);
life3.gotoAndStop(10);
}
}
stop();
menu._visible = false;
changeButton.swapDepths(16);
Instance of Symbol 570 MovieClip in Symbol 726 MovieClip [hud] Frame 1
on (release) {
if (this._currentframe == 1) {
_root.isMuted = 1;
_root.setVolume(0);
_root.snd_engineStart.setVolume(0);
_root.snd_alert.setVolume(0);
_root.mPlayer.volume = 0;
this.gotoAndStop(2);
} else {
_root.isMuted = 0;
_root.snd_engineStart.setVolume(100);
_root.snd_alert.setVolume(100);
_root.setVolume(100);
_root.mPlayer.volume = 50;
this.gotoAndStop(1);
}
}
Instance of Symbol 642 MovieClip "changeButton" in Symbol 726 MovieClip [hud] Frame 1
on (rollOver) {
_root.noShooting = 1;
}
on (rollOut) {
_root.noShooting = 0;
}
Instance of Symbol 739 MovieClip "frontWheels" in Symbol 747 MovieClip [jeep] Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 739 MovieClip "backWheels" in Symbol 747 MovieClip [jeep] Frame 1
onClipEvent (load) {
stop();
}
Symbol 776 MovieClip Frame 1
stop();
Symbol 780 MovieClip Frame 1
stop();
Symbol 801 MovieClip [precalcMC] Frame 24
var textFx = (new de.pbswine.animation.textSpinIn());
l1 = textFx.createEffect("Mission: " + _root.level.header.title, {x:23, y:203}, {font:"font1", color:16777215, size:16}, this);
Symbol 801 MovieClip [precalcMC] Frame 38
stop();
Symbol 801 MovieClip [precalcMC] Frame 48
stop();
Instance of Symbol 720 MovieClip in Symbol 801 MovieClip [precalcMC] Frame 48
onClipEvent (enterFrame) {
if (ha.isOver) {
if (this._alpha == 0) {
this._alpha = 100;
}
this.nextFrame();
} else if (ha.isOver != undefined) {
this._alpha = this._alpha - 10;
this.nextFrame();
if (this._alpha <= 0) {
this._alpha = 0;
this.gotoAndStop(1);
}
}
}
onClipEvent (load) {
this.ha.onRollOver = function () {
this.isOver = 1;
_root.darkwind.start(0.3);
this._parent._parent.b.gotoAndStop(2);
};
this.ha.onRollOut = function () {
this.isOver = 0;
this._parent._parent.b.gotoAndStop(1);
};
this.ha.onRelease = function () {
this.isOver = 0;
_root.punch.start();
this._parent._parent.play();
};
}
Symbol 801 MovieClip [precalcMC] Frame 56
l1.removeMovieClip();
Symbol 801 MovieClip [precalcMC] Frame 79
_root.init();
this._parent.removeMovieClip();
Symbol 868 MovieClip [rocketsmoke] Frame 26
this.removeMovieClip();
Symbol 890 MovieClip [MaximizeButton] Frame 1
#initclip 134
Object.registerClass("MaximizeButton", mx.controls.streamingmedia.FullScreenToggleControl);
#endinitclip
stop();
Symbol 892 MovieClip [MinimizeButton] Frame 1
#initclip 135
Object.registerClass("MinimizeButton", mx.controls.streamingmedia.FullScreenToggleControl);
#endinitclip
stop();
Symbol 893 MovieClip [FullScreenToggle] Frame 1
#initclip 136
Object.registerClass("FullScreenToggle", mx.controls.streamingmedia.FullScreenToggle);
#endinitclip
stop();
Symbol 894 MovieClip [Chrome] Frame 1
#initclip 137
Object.registerClass("Chrome", mx.controls.streamingmedia.Chrome);
#endinitclip
Symbol 902 MovieClip [MediaDisplay] Frame 1
#initclip 138
Object.registerClass("MediaDisplay", mx.controls.MediaDisplay);
#endinitclip
stop();
Symbol 909 MovieClip [HLoadBar] Frame 1
#initclip 139
Object.registerClass("HLoadBar", mx.controls.streamingmedia.LoadBar);
#endinitclip
Symbol 917 MovieClip [HMiniPlayBarTray] Frame 1
#initclip 140
Object.registerClass("HMiniPlayBarTray", mx.controls.streamingmedia.HMiniPlayBarTray);
#endinitclip
Symbol 921 MovieClip [HMiniPlayBar] Frame 1
#initclip 141
Object.registerClass("HMiniPlayBar", mx.controls.streamingmedia.MiniPlayBar);
#endinitclip
_tray.setWidth(this.getWidth());
Symbol 925 MovieClip [PlayBarTray] Frame 1
#initclip 142
Object.registerClass("PlayBarTray", mx.controls.streamingmedia.HPlayBarTray);
#endinitclip
Symbol 937 MovieClip [PlayBarThumb] Frame 1
#initclip 143
Object.registerClass("PlayBarThumb", mx.controls.streamingmedia.PlayBarThumb);
#endinitclip
stop();
Symbol 938 MovieClip [HPlayBar] Frame 1
#initclip 144
Object.registerClass("HPlayBar", mx.controls.streamingmedia.PlayBar);
#endinitclip
_tray.setWidth(this.getWidth());
Symbol 952 MovieClip [HPlayPauseButton] Frame 1
#initclip 145
Object.registerClass("HPlayPauseButton", mx.controls.streamingmedia.PlayPauseButton);
#endinitclip
stop();
Instance of Symbol 269 MovieClip [Button] in Symbol 952 MovieClip [HPlayPauseButton] Frame 2
//component parameters
onClipEvent (initialize) {
icon = "";
label = "Button";
labelPlacement = "right";
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 960 MovieClip [HToStartButton] Frame 1
#initclip 146
Object.registerClass("HToStartButton", mx.controls.streamingmedia.ToStartButton);
#endinitclip
stop();
Instance of Symbol 258 MovieClip [SimpleButton] in Symbol 960 MovieClip [HToStartButton] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 964 MovieClip [HToEndButton] Frame 1
#initclip 147
Object.registerClass("HToEndButton", mx.controls.streamingmedia.ToEndButton);
#endinitclip
stop();
Instance of Symbol 258 MovieClip [SimpleButton] in Symbol 964 MovieClip [HToEndButton] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 965 MovieClip [HButtons] Frame 1
this.tabEnabled = false;
this.tabChildren = true;
Symbol 967 MovieClip [VolumeControlHandle] Frame 1
#initclip 148
Object.registerClass("VolumeControlHandle", mx.controls.streamingmedia.VolumeControlHandle);
#endinitclip
stop();
Symbol 977 MovieClip [MuteButton] Frame 1
#initclip 149
Object.registerClass("MuteButton", mx.controls.streamingmedia.MuteButton);
#endinitclip
stop();
Instance of Symbol 258 MovieClip [SimpleButton] in Symbol 977 MovieClip [MuteButton] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 983 MovieClip [LoudButton] Frame 1
#initclip 150
Object.registerClass("LoudButton", mx.controls.streamingmedia.LoudButton);
#endinitclip
stop();
Instance of Symbol 258 MovieClip [SimpleButton] in Symbol 983 MovieClip [LoudButton] Frame 2
//component parameters
onClipEvent (initialize) {
selected = false;
toggle = false;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 985 MovieClip [HVolumeControl] Frame 1
#initclip 151
Object.registerClass("HVolumeControl", mx.controls.streamingmedia.VolumeControl);
#endinitclip
Symbol 988 MovieClip [VLoadBar] Frame 1
#initclip 152
Object.registerClass("VLoadBar", mx.controls.streamingmedia.LoadBar);
#endinitclip
Symbol 992 MovieClip [VMiniPlayBarTray] Frame 1
#initclip 153
Object.registerClass("VMiniPlayBarTray", mx.controls.streamingmedia.VMiniPlayBarTray);
#endinitclip
Symbol 995 MovieClip [VMiniPlayBar] Frame 1
#initclip 154
Object.registerClass("VMiniPlayBar", mx.controls.streamingmedia.MiniPlayBar);
#endinitclip
_tray.setHeight(this.getHeight());
Symbol 999 MovieClip [VPlayBarTray] Frame 1
#initclip 155
Object.registerClass("VPlayBarTray", mx.controls.streamingmedia.VPlayBarTray);
#endinitclip
Symbol 1008 MovieClip [VPlayBarThumb] Frame 1
#initclip 156
Object.registerClass("VPlayBarThumb", mx.controls.streamingmedia.PlayBarThumb);
#endinitclip
stop();
Symbol 1009 MovieClip [VPlayBar] Frame 1
#initclip 157
Object.registerClass("VPlayBar", mx.controls.streamingmedia.PlayBar);
#endinitclip
_tray.setHeight(this.getHeight());
Symbol 1010 MovieClip [VButtons] Frame 1
this.tabEnabled = false;
this.tabChildren = true;
Symbol 1013 MovieClip [VVolumeControl] Frame 1
#initclip 158
Object.registerClass("VVolumeControl", mx.controls.streamingmedia.VolumeControl);
#endinitclip
Symbol 1017 MovieClip [MediaController] Frame 1
#initclip 159
Object.registerClass("MediaController", mx.controls.MediaController);
#endinitclip
Symbol 1017 MovieClip [MediaController] Frame 2
_miniPlayBar.setCompletionPercentage(_playPercent);
Symbol 1017 MovieClip [MediaController] Frame 3
_playBar.setCompletionPercentage(_playPercent);
Symbol 1017 MovieClip [MediaController] Frame 4
_miniPlayBar.setCompletionPercentage(_playPercent);
Symbol 1017 MovieClip [MediaController] Frame 5
_playBar.setCompletionPercentage(_playPercent);
Symbol 1018 MovieClip [MediaPlayback] Frame 1
#initclip 160
Object.registerClass("MediaPlayback", mx.controls.MediaPlayback);
#endinitclip
stop();
Instance of Symbol 902 MovieClip [MediaDisplay] "_display" in Symbol 1018 MovieClip [MediaPlayback] Frame 2
//component parameters
onClipEvent (initialize) {
aspectRatio = true;
autoPlay = true;
autoSize = true;
contentPath = "";
fps = 30;
mediaType = "FLV";
totalTime = 0;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 1017 MovieClip [MediaController] "_controller" in Symbol 1018 MovieClip [MediaPlayback] Frame 2
//component parameters
onClipEvent (initialize) {
activePlayControl = "play";
backgroundStyle = "default";
controllerPolicy = "auto";
horizontal = true;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 1059 MovieClip Frame 28
stop();
Symbol 1064 MovieClip Frame 28
stop();
Symbol 1069 MovieClip Frame 28
stop();
Symbol 1074 MovieClip Frame 28
stop();
Symbol 1075 MovieClip [messages] Frame 32
function proceed() {
clearInterval(pr);
play();
}
if (showMessage) {
pr = setInterval(proceed, 2000);
message_vehicledown._alpha = 0;
message_nooiltanks._alpha = 0;
message_youwin._alpha = 0;
message_gameover._alpha = 0;
if (showMessage == "notanks") {
message_nooiltanks._alpha = 100;
} else if (showMessage == "gameover") {
message_gameover._alpha = 100;
} else if (showMessage == "youwin") {
_root.snd_radio_mission_accomplished.start();
message_youwin._alpha = 100;
} else if (showMessage == "vehicledown") {
message_vehicledown._alpha = 100;
}
showMessage = false;
}
stop();
Symbol 1075 MovieClip [messages] Frame 62
this.removeMovieClip();
Symbol 1094 MovieClip Frame 1
stop();
Instance of Symbol 345 MovieClip [ComboBox] in Symbol 1094 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
editable = false;
rowCount = 5;
restrict = "";
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Instance of Symbol 1018 MovieClip [MediaPlayback] in Symbol 1094 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
aspectRatio = true;
autoPlay = true;
autoSize = true;
contentPath = "";
controllerPolicy = "auto";
controlPlacement = "bottom";
fps = 30;
mediaType = "FLV";
totalTime = 0;
enabled = true;
visible = true;
minHeight = 0;
minWidth = 0;
}
Symbol 1097 MovieClip Frame 1
stop();
Symbol 1120 MovieClip Frame 1
if (this.playOnFinnish) {
this.playOnFinnish = 0;
_root.play();
}
this.onEnterFrame = function () {
if (this.bew == "fw") {
nextFrame();
} else if (this.bew == "rw") {
prevFrame();
}
};
stop();
Symbol 1120 MovieClip Frame 22
stop();
Symbol 1121 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.bew == "fw") {
nextFrame();
} else if (this.bew == "rw") {
prevFrame();
}
};
stop();
if (this.playOnFinnish) {
this.playOnFinnish = 0;
_root.play();
}
Symbol 1121 MovieClip Frame 22
stop();
Symbol 1122 MovieClip Frame 1
this.onEnterFrame = function () {
if (this.bew == "fw") {
nextFrame();
} else if (this.bew == "rw") {
prevFrame();
}
};
stop();
if (this.playOnFinnish) {
this.playOnFinnish = 0;
_root.play();
}
Symbol 1122 MovieClip Frame 22
stop();
Symbol 1127 MovieClip Frame 1
if (this.playOnFinnish) {
this.playOnFinnish = 0;
_root.play();
}
this.onEnterFrame = function () {
if (this.bew == "fw") {
nextFrame();
} else if (this.bew == "rw") {
prevFrame();
}
};
stop();
Symbol 1127 MovieClip Frame 22
stop();
Symbol 1131 MovieClip Frame 1
if (this.playOnFinnish) {
this.playOnFinnish = 0;
_root.play();
}
this.onEnterFrame = function () {
if (this.bew == "fw") {
nextFrame();
} else if (this.bew == "rw") {
prevFrame();
}
};
stop();
Symbol 1131 MovieClip Frame 22
stop();
Symbol 1137 Button
on (release) {
getURL ("http://games.pbswine.de", "_blank");
}
Symbol 1139 Button
on (release) {
getURL ("mailto:fritz.m@web.de", "_blank");
}
Symbol 1140 Button
on (release) {
getURL ("http://games.pbswine.de/", "_blank");
}