Frame 1
repeat_1.onPress = function () {
repeat_all_flg = true;
shuffle_flg = false;
repeat_1._visible = false;
shuffle_mc._visible = false;
repeat_all._visible = true;
};
repeat_all.onPress = function () {
shuffle_mc._visible = true;
repeat_all_flg = false;
shuffle_flg = true;
repeat_all._visible = false;
repeat_1._visible = false;
};
shuffle_mc.onPress = function () {
shuffle_flg = false;
repeat_all_flg = false;
shuffle_mc._visible = false;
repeat_all._visible = false;
repeat_1._visible = true;
};
repeat_1._visible = false;
shuffle_mc._visible = false;
repeat_all_flg = true;
shuffle_flg = false;
function setsc() {
function activeScroll() {
var _local1 = list_mc.list_sc_mc;
_local1._y = ((-scrollSet.sBar._y) / mPc) * mPb;
if (sliderbackPress == true) {
if (((scrollSet.sBar._y - scrollSet.sBack._ymouse) * stepMove) < 0) {
scrollSet.sBar._y = scrollSet.sBar._y + stepMove;
}
}
if (pressUp == true) {
scrollSet.sBar._y = scrollSet.sBar._y - coursorMove;
}
if (pressDown == true) {
scrollSet.sBar._y = scrollSet.sBar._y + coursorMove;
}
if (scrollSet.sBar._y < 0) {
scrollSet.sBar._y = 0;
_local1._y = 0;
}
if (scrollSet.sBar._y > yMax) {
scrollSet.sBar._y = yMax;
_local1._y = ((-yMax) / mPc) * mPb;
}
}
var _local2 = list_mc.list_sc_mc;
var backFriction = 0.05;
var coursorMove = 1;
var wheelMove = 1.5;
var mPc = (list_mask._height / (_local2._height + 5));
var mPb = (list_mask._height / scrollSet.sBack._height);
scrollSet.sBar._height = scrollSet.sBack._height * mPc;
yMax = scrollSet.sBack._height - scrollSet.sBar._height;
scrollSet.sBar.onPress = function () {
this.onEnterFrame = activeScroll;
this.startDrag(false, this._x, 0, this._x, yMax);
};
scrollSet.sBar.onRelease = (scrollSet.sBar.onReleaseOutside = function () {
this.onEnterFrame = null;
this.stopDrag();
});
scrollSet.sBack.onPress = function () {
this.onEnterFrame = activeScroll;
sliderbackPress = true;
stepMove = (this._ymouse - this._parent.sBar._y) * backFriction;
};
scrollSet.sBack.onRelease = (scrollSet.sBack.onReleaseOutside = function () {
this.onEnterFrame = null;
sliderbackPress = false;
});
cursor_up.onPress = function () {
cursor_up.gotoAndStop("down");
this.onEnterFrame = activeScroll;
pressUp = true;
};
cursor_up.onRollOver = function () {
cursor_up.gotoAndStop("over");
};
cursor_up.onRollOut = function () {
cursor_up.gotoAndStop("up");
};
cursor_up.onRelease = (cursor_up.onReleaseOutside = function () {
cursor_up.gotoAndStop("up");
this.onEnterFrame = null;
pressUp = false;
});
cursor_down.onPress = function () {
cursor_down.gotoAndStop("down");
this.onEnterFrame = activeScroll;
pressDown = true;
};
cursor_down.onRollOver = function () {
cursor_down.gotoAndStop("over");
};
cursor_down.onRollOut = function () {
cursor_down.gotoAndStop("up");
};
cursor_down.onRelease = (cursor_down.onReleaseOutside = function () {
cursor_down.gotoAndStop("up");
this.onEnterFrame = null;
pressDown = false;
});
if (mPc >= 1) {
scrollSet._visible = false;
cursor_up._visible = false;
cursor_down._visible = false;
}
var _local3 = new Object();
_local3.onMouseWheel = function (delta) {
scrollSet.sBar._y = scrollSet.sBar._y - (delta * wheelMove);
activeScroll();
};
Mouse.addListener(_local3);
}
end_flg = false;
sound_set = function (flg) {
end_flg = false;
if ((flg == true) && (_root.my_sound.position > 0)) {
_root.my_sound.start(_root.my_sound.position / 1000);
} else {
_root.playstop.gotoAndStop("stop");
mp3url = _root.list_mc.list_sc_mc["list_item" + now_sound].url;
trace(mp3url);
_root.time_mc.text = "NOWLOADING";
_root.my_sound.stop();
list_mc.list_sc_mc.select_mc._y = _root.list_mc.list_sc_mc["list_item" + now_sound]._y;
_root.drag_flg = 0;
_root.my_sound = new Sound();
_root.my_sound.onLoad = function (success) {
trace("_root.my_sound.onLoad");
};
_root.my_sound.loadSound(mp3url, true);
}
};
this.onEnterFrame = function () {
if (_root.my_sound.position > 0) {
time_sec3 = Math.floor((_root.my_sound.duration - _root.my_sound.position) / 1000) % 60;
time_min3 = Math.floor(((_root.my_sound.duration - _root.my_sound.position) / 1000) / 60) % 60;
time_hour3 = Math.floor((((_root.my_sound.duration - _root.my_sound.position) / 1000) / 60) / 60);
timehyouji9 = ((time_hour3 >= 10) ? (time_hour3) : ("0" + time_hour3));
timehyouji10 = ((time_min3 >= 10) ? (time_min3) : ("0" + time_min3));
timehyouji11 = ((time_sec3 >= 10) ? (time_sec3) : ("0" + time_sec3));
time_sec = Math.floor(_root.my_sound.position / 1000) % 60;
time_min = Math.floor((_root.my_sound.position / 1000) / 60) % 60;
time_hour = Math.floor(((_root.my_sound.position / 1000) / 60) / 60);
timehyouji1 = ((time_hour >= 10) ? (time_hour) : ("0" + time_hour));
timehyouji2 = ((time_min >= 10) ? (time_min) : ("0" + time_min));
timehyouji3 = ((time_sec >= 10) ? (time_sec) : ("0" + time_sec));
time_sec2 = Math.floor(_root.my_sound.duration / 1000) % 60;
time_min2 = Math.floor((_root.my_sound.duration / 1000) / 60) % 60;
time_hour2 = Math.floor(((_root.my_sound.duration / 1000) / 60) / 60);
timehyouji8 = ((time_hour2 >= 10) ? (time_hour2) : ("0" + time_hour2));
timehyouji7 = ((time_min2 >= 10) ? (time_min2) : ("0" + time_min2));
timehyouji6 = ((time_sec2 >= 10) ? (time_sec2) : ("0" + time_sec2));
_root.time_mc.text = (((((timehyouji2 + ":") + timehyouji3) + "/") + timehyouji7) + ":") + timehyouji6;
_root.time_mc2.text = (((((timehyouji10 + ":") + timehyouji11) + "/") + timehyouji7) + ":") + timehyouji6;
}
if (((Math.floor(_root.my_sound.duration / 100) / Math.floor(_root.my_sound.position / 100)) == 1) && (end_flg == false)) {
end_flg = true;
trace("END" + end_flg);
if ((now_sound < item_max) && (repeat_all_flg == true)) {
trace((now_sound + "/") + item_max);
now_sound++;
sound_set(_root.item_enclosure[_root.now_sound]);
} else if ((now_sound == item_max) && (repeat_all_flg == true)) {
trace((now_sound + "/") + item_max);
now_sound = 0;
sound_set(_root.item_enclosure[_root.now_sound]);
_root.list_mc.list_sc_mc._y = 0;
} else if ((now_sound < item_max) && (shuffle_flg == true)) {
trace((now_sound + "/") + item_max);
now_sound = now_sound + 1;
shuffle();
sound_set(_root.item_enclosure[_root.now_sound]);
} else if ((now_sound == item_max) && (shuffle_flg == true)) {
trace((now_sound + "/") + item_max);
now_sound = 0;
shuffle();
sound_set(_root.item_enclosure[_root.now_sound]);
_root.list_mc.list_sc_mc._y = 0;
} else if ((repeat_all_flg == false) && (shuffle_flg == false)) {
my_sound.start();
end_flg = false;
}
}
if ((sc_flg > 0) && (_root.list_mc.list_sc_mc._y < 0)) {
_root.list_mc.list_sc_mc._y = _root.list_mc.list_sc_mc._y + 8;
} else if ((sc_flg < 0) && (_root.list_mc.list_sc_mc._y > list_height)) {
_root.list_mc.list_sc_mc._y = _root.list_mc.list_sc_mc._y - 8;
}
};
stop();
list_mc.setMask("list_mask");
function shuffle() {
var _local3 = xml_item_cnt;
count_array = new Array();
count_array2 = new Array();
var _local2 = 0;
while (_local2 < _local3) {
count_array[_local2] = _local2;
count_array2[_local2] = _local2;
_local2++;
}
_local2 = 0;
while (_local2 < (_local3 - 1)) {
var _local5 = Math.floor(Math.random() * (_local3 - 1));
var _local4 = (_local3 - 1) - _local2;
var _local6 = count_array[_local4];
count_array[_local4] = count_array[_local5];
count_array[_local5] = _local6;
_local2++;
}
now_sound = 0;
list_mc.createEmptyMovieClip("list_sc_mc", 1000);
_local2 = 0;
while (_local2 < xml_item_cnt) {
list_mc.list_sc_mc.attachMovie("list_item", "list_item" + _local2, 100 + _local2);
_root.list_mc.list_sc_mc["list_item" + _local2]._y = 25 * _local2;
_root.list_mc.list_sc_mc["list_item" + _local2]._x = 3;
_root.list_mc.list_sc_mc["list_item" + _local2].txt_title.title.text = ((_local2 + 1) + ".") + _root.item_title[count_array[_local2]];
_root.list_mc.list_sc_mc["list_item" + _local2].title2.text = ((_local2 + 1) + ".") + _root.item_title[count_array[_local2]];
_root.list_mc.list_sc_mc["list_item" + _local2].link = _root.item_link[count_array[_local2]];
_root.list_mc.list_sc_mc["list_item" + _local2].url = _root.item_enclosure[count_array[_local2]];
_root.list_mc.list_sc_mc["list_item" + _local2].num = _local2;
_local2++;
}
item_max = _local2 - 1;
list_mc.list_sc_mc.attachMovie("select", "select_mc", 1000);
list_mc.list_sc_mc.select_mc._x = 3;
list_height = 120 - list_mc._height;
}
function list() {
var _local3 = xml_item_cnt;
count_array = new Array();
count_array2 = new Array();
var _local2 = 0;
while (_local2 < _local3) {
count_array[_local2] = _local2;
count_array2[_local2] = _local2;
_local2++;
}
if (_root.id > 0) {
} else {
_local2 = 1;
while (_local2 < (_local3 - kotei)) {
var _local5 = Math.floor((Math.random() * (_local3 - 1)) + kotei);
var _local4 = (_local3 - 1) - _local2;
var _local6 = count_array[_local4];
count_array[_local4] = count_array[_local5];
count_array[_local5] = _local6;
_local2++;
}
}
now_sound = 0;
list_mc.createEmptyMovieClip("list_sc_mc", 1000);
_local2 = 0;
while (_local2 < xml_item_cnt) {
list_mc.list_sc_mc.attachMovie("list_item", "list_item" + _local2, 100 + _local2);
_root.list_mc.list_sc_mc["list_item" + _local2]._y = 25 * _local2;
_root.list_mc.list_sc_mc["list_item" + _local2]._x = 3;
_root.list_mc.list_sc_mc["list_item" + _local2].txt_title.title.text = ((_local2 + 1) + ".") + _root.item_title[count_array[_local2]];
_root.list_mc.list_sc_mc["list_item" + _local2].title2.text = ((_local2 + 1) + ".") + _root.item_title[count_array[_local2]];
_root.list_mc.list_sc_mc["list_item" + _local2].link = _root.item_link[count_array[_local2]];
_root.list_mc.list_sc_mc["list_item" + _local2].url = _root.item_enclosure[count_array[_local2]];
_root.list_mc.list_sc_mc["list_item" + _local2].num = _local2;
_local2++;
}
item_max = _local2 - 1;
list_mc.list_sc_mc.attachMovie("select", "select_mc", 1000);
list_mc.list_sc_mc.select_mc._x = 3;
list_height = list_mc._height;
setsc();
}
var kotei = 1;
up.onPress = function () {
sc_flg = 1;
};
up.onRelease = function () {
sc_flg = 0;
};
up.onReleaseOutside = function () {
sc_flg = 0;
};
down.onPress = function () {
sc_flg = -1;
};
down.onRelease = function () {
sc_flg = 0;
};
down.onReleaseOutside = function () {
sc_flg = 0;
};
_root.vol_mc._visible = false;
_root.time_mc._visible = true;
_root.time_mc2._visible = false;
next_btn.onPress = function () {
if (now_sound < item_max) {
trace((now_sound + "/") + item_max);
now_sound++;
sound_set();
} else if (now_sound == item_max) {
trace((now_sound + "/") + item_max);
now_sound = 0;
sound_set();
_root.list_mc.list_sc_mc._y = 0;
}
};
back_btn.onPress = function () {
if (now_sound > 0) {
trace((now_sound + "/") + item_max);
now_sound--;
sound_set();
} else if (now_sound == 0) {
trace((now_sound + "/") + item_max);
now_sound = item_max;
sound_set();
_root.list_mc.list_sc_mc._y = list_height;
}
};
time_bg.onPress = function () {
if (time_flg == false) {
time_flg = true;
_root.time_mc2._visible = false;
_root.time_mc._visible = true;
} else {
time_flg = false;
_root.time_mc._visible = false;
_root.time_mc2._visible = true;
}
};
time_flg = true;
_root.time_mc2._visible = false;
_root.time_mc._visible = true;
function getXML() {
var _local4 = com.xfactorstudio.xml.xpath.XPath.selectNodes(myDoc, "rss/channel/title");
var _local8 = com.xfactorstudio.xml.xpath.XPath.selectNodes(myDoc, "rss/channel/link");
var _local9 = com.xfactorstudio.xml.xpath.XPath.selectNodes(myDoc, "rss/channel/description");
var _local2 = com.xfactorstudio.xml.xpath.XPath.selectNodes(myDoc, "rss/channel/item/title");
var _local3 = com.xfactorstudio.xml.xpath.XPath.selectNodes(myDoc, "rss/channel/item/link");
var _local5 = com.xfactorstudio.xml.xpath.XPath.selectNodes(myDoc, "rss/channel/item/description");
var _local6 = com.xfactorstudio.xml.xpath.XPath.selectNodes(myDoc, "rss/channel/item/author");
var _local7 = com.xfactorstudio.xml.xpath.XPath.selectNodes(myDoc, "rss/channel/item/enclosure/@url");
_root.xml_title = _local4[0].firstChild.nodeValue;
_root.xml_link = _local8[0].firstChild.nodeValue;
_root.xml_author = xml_author[0].firstChild.nodeValue;
_root.xml_anno = _local9[0].firstChild.nodeValue;
_root.xml_item_cnt = _local2.length;
_root.xml_item_title = _local2;
_root.xml_item_link = _local3;
_root.xml_item_description = _local5;
_root.xml_item_author = _local6;
_root.xml_item_image = xml_item_image;
_root.xml_item_enclosure = _local7;
_root.item_title = new Array();
_root.item_link = new Array();
_root.item_description = new Array();
_root.item_author = new Array();
_root.item_enclosure = new Array();
i = 0;
while (i < xml_item_cnt) {
_root.item_title[i] = _root.xml_item_title[i].childNodes[0].nodeValue;
_root.item_link[i] = _root.xml_item_link[i].childNodes[0].nodeValue;
_root.item_description[i] = _root.xml_item_description[i].childNodes[0].nodeValue;
_root.item_author[i] = _root.xml_item_author[i].childNodes[0].nodeValue;
_root.item_enclosure[i] = _root.xml_item_enclosure[i].nodeValue;
i++;
}
info.song_cnt.text = xml_item_cnt + "\u66F2";
list();
}
if (id > 0) {
xml = ("http://818nc.jp/mikumiku/playlist/user_playlist/" + id) + ".xml";
} else {
xml = "http://818nc.jp/mikumiku/set.xml";
}
trace(xml);
_root.myDoc = new XML();
myDoc.onLoad = function (success) {
getXML();
};
_root.myDoc.load(xml);
Instance of Symbol 49 MovieClip "slideBar" in Frame 1
onClipEvent (enterFrame) {
value = ((handle._x - xMin) / _width) * 100;
if (value < 0) {
value = 0;
}
_parent.my_sound.setVolume(value);
_parent.vol = value;
if (value < 10) {
vol2 = "00" + Math.floor(value);
} else if (value < 100) {
vol2 = "0" + Math.floor(value);
} else {
vol2 = Math.floor(value);
}
_root.vol_mc.text = "volume " + vol2;
}
Instance of Symbol 64 MovieClip "toumei" in Frame 1
on (rollOver) {
if (_root.id > 0) {
_root.playlist_title.title.text = _root.xml_title;
_root.playlist_title._visible = true;
} else {
_root.info._visible = true;
_root.info.gotoAndPlay(1);
}
}
on (rollOut) {
_root.info._visible = false;
_root.playlist_title._visible = false;
}
Instance of Symbol 68 MovieClip "playlist_title" in Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 73 MovieClip "info" in Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 102 MovieClip "seek_slideBar" in Frame 1
onClipEvent (enterFrame) {
seek_value = ((seek_handle._x - seek_xMin) / seek_slideWidth) * 100;
if (_root.drag_flg == 0) {
dur = (seek_xMax - seek_xMin) * (_root.my_sound.position / _root.my_sound.duration);
_root.seek_slideBar.seek_handle._x = dur;
}
}
Instance of Symbol 104 MovieClip in Frame 1
on (press) {
getURL ("http://remoto.818nc.jp/archives/blog/200709372357.php", "_blank");
}
Symbol 3 MovieClip Frame 20
stop();
Symbol 4 MovieClip Frame 1
stop();
Symbol 4 MovieClip Frame 2
stop();
Symbol 8 MovieClip Frame 1
this.stop();
theX = 150;
Symbol 8 MovieClip Frame 2
this._x = this._x - 2;
if (this._x < (theX - maxWidth)) {
this._x = theX;
}
Symbol 8 MovieClip Frame 3
this.gotoAndPlay(2);
Symbol 14 Button
on (press) {
getURL (this.link, "_blank");
}
Symbol 15 MovieClip [list_item] Frame 1
txt_title.setMask(cover);
cover.onRollOver = function () {
over_mc.gotoAndStop(2);
txt_title.title.autoSize = "left";
txt_title.maxWidth = txt_title.title._width + 150;
txt_title.play();
};
cover.onRollOut = function () {
over_mc.gotoAndStop(1);
txt_title.gotoAndStop(1);
txt_title._x = 0;
};
cover.onPress = function () {
_root.playstop.gotoAndStop("stop");
_root.now_sound = num;
trace(num);
_root.sound_set();
};
Symbol 29 MovieClip Frame 2
stop();
Symbol 29 MovieClip Frame 10
if (_root.slideBar.handle._x > _root.slideBar.xMin) {
_root.slideBar.handle._x = _root.slideBar.handle._x - 1;
}
Symbol 29 MovieClip Frame 12
gotoAndPlay (10);
Symbol 29 MovieClip Frame 20
if (_root.slideBar.handle._x < _root.slideBar.xMax) {
_root.slideBar.handle._x = _root.slideBar.handle._x + 1;
}
Symbol 29 MovieClip Frame 22
gotoAndPlay (20);
Symbol 32 Button
on (press) {
nvol = _xmouse + 50;
this.handle._x = _xmouse;
this.bar._xscale = nvol;
}
Symbol 35 Button
on (press) {
_parent.startMove();
}
on (release, dragOut, releaseOutside) {
_parent.stopMove();
}
Symbol 47 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 2
stop();
Symbol 47 MovieClip Frame 3
stop();
Symbol 47 MovieClip Frame 4
stop();
Symbol 47 MovieClip Frame 5
stop();
Symbol 47 MovieClip Frame 6
stop();
Symbol 47 MovieClip Frame 7
stop();
Symbol 47 MovieClip Frame 8
stop();
Symbol 47 MovieClip Frame 9
stop();
Symbol 47 MovieClip Frame 10
stop();
Symbol 49 MovieClip Frame 1
function startMove() {
handle.startDrag(false, xMin, 0, xMax, 0);
}
function stopMove() {
handle.stopDrag();
}
theBounds = getBounds(this);
xMin = theBounds.xMin;
xMax = theBounds.xMax;
slideWidth = xMax - xMin;
Instance of Symbol 34 MovieClip "bar" in Symbol 49 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _parent.value;
}
Symbol 53 Button
on (press) {
this.volumeset.gotoAndPlay("forward");
}
on (release, dragOut) {
this.volumeset.gotoAndStop(2);
}
on (rollOver) {
_root.vol_mc._visible = true;
_root.time_mc._visible = false;
_root.time_mc2._visible = false;
}
on (rollOut) {
_root.vol_mc._visible = false;
if (_root.time_flg == true) {
_root.time_mc2._visible = false;
_root.time_mc._visible = true;
} else {
_root.time_mc._visible = false;
_root.time_mc2._visible = true;
}
}
Symbol 56 Button
on (press) {
this.volumeset.gotoAndPlay("back");
}
on (release, dragOut) {
this.volumeset.gotoAndStop(2);
}
on (rollOver) {
_root.vol_mc._visible = true;
_root.time_mc._visible = false;
_root.time_mc2._visible = false;
}
on (rollOut) {
_root.vol_mc._visible = false;
if (_root.time_flg == true) {
_root.time_mc2._visible = false;
_root.time_mc._visible = true;
} else {
_root.time_mc._visible = false;
_root.time_mc2._visible = true;
}
}
Symbol 73 MovieClip Frame 6
stop();
this.song_cnt.text = _root.xml_item_cnt + "\u66F2";
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 2
stop();
Symbol 85 MovieClip Frame 15
stop();
Symbol 86 Button
on (press) {
this.gotoAndPlay("stop");
_root.sound_set(true);
}
Symbol 89 MovieClip Frame 15
stop();
Symbol 90 Button
on (press) {
_root.my_sound.stop();
this.gotoAndPlay("play");
}
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 6
stop();
Symbol 98 Button
on (press) {
_parent.seek_startMove();
}
on (release, dragOut, releaseOutside) {
_parent.seek_stopMove();
}
Symbol 101 Button
on (press) {
this.seek_startMove();
_root.seek_slideBar.seek_handle._x = _xmouse;
}
on (release, dragOut, releaseOutside) {
this.seek_stopMove();
}
Symbol 102 MovieClip Frame 1
function seek_startMove() {
_root.drag_flg = 1;
_root.seek_slideBar.seek_handle.startDrag(false, seek_xMin, 0, seek_xMax, 0);
}
function seek_stopMove() {
now_time = (_root.seek_slideBar.seek_handle._x - seek_xMin) * ((_root.my_sound.duration / 1000) / seek_slideWidth);
_root.my_sound.stop();
_root.my_sound.start(now_time);
_root.playstop.gotoAndStop("stop");
_root.drag_flg = 0;
_root.seek_slideBar.seek_handle.stopDrag();
}
seek_theBounds = getBounds(this);
seek_xMin = seek_theBounds.xMin;
seek_xMax = seek_theBounds.xMax;
seek_slideWidth = seek_xMax - seek_xMin;
Instance of Symbol 96 MovieClip "seek_bar" in Symbol 102 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = _parent.seek_value;
}
Symbol 119 MovieClip [__Packages.com.xfactorstudio.xml.xpath.XPath] Frame 0
class com.xfactorstudio.xml.xpath.XPath
{
function XPath () {
}
static function selectNodes(context, path) {
var _local1 = new com.xfactorstudio.xml.xpath.types.Query(path);
return(_local1.execute([context]));
}
static function selectSingleNode(context, path) {
return(selectNodes(context, path)[0]);
}
static function selectNodesAsString(context, path) {
var _local2 = selectNodes(context, path);
var _local1 = 0;
while (_local1 < _local2.length) {
_local2[_local1] = com.xfactorstudio.xml.xpath.XPathAxes.stringValue(_local2[_local1])[0];
_local1++;
}
return(_local2);
}
static function selectNodesAsNumber(context, path) {
var _local2 = selectNodes(context, path);
var _local1 = 0;
while (_local1 < _local2.length) {
_local2[_local1] = com.xfactorstudio.xml.xpath.XPathFunctions.toNumber(com.xfactorstudio.xml.xpath.XPathAxes.stringValue(_local2[_local1])[0]);
_local1++;
}
return(_local2);
}
static function selectNodesAsBoolean(context, path) {
var _local3 = selectNodes(context, path);
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = com.xfactorstudio.xml.xpath.XPathAxes.stringValue(_local3[_local1])[0];
_local3[_local1] = (((_local2.toUpperCase() == "TRUE") || (Number(_local2) == 1)) ? true : false);
_local1++;
}
return(_local3);
}
static function getNamedNodes(axis, name) {
var _local2 = new Array();
switch (name) {
case "*" :
var _local3 = 0;
while (_local3 < axis.length) {
if (axis[_local3].nodeType == 1) {
_local2.push(axis[_local3]);
}
_local3++;
}
break;
case "text()" :
_local3 = 0;
while (_local3 < axis.length) {
if (axis[_local3].nodeType == 3) {
_local2.push(axis[_local3]);
}
_local3++;
}
break;
case "node()" :
_local3 = 0;
while (_local3 < axis.length) {
_local2.push(axis[_local3]);
_local3++;
}
break;
default :
if (name.indexOf(":*") != -1) {
var _local5 = name.split(":*")[0];
_local3 = 0;
while (_local3 < axis.length) {
if (prefix(axis[_local3]) == _local5) {
_local2.push(axis[_local3]);
}
_local3++;
}
} else if (name.indexOf("*:") != -1) {
var _local6 = name.split("*:")[1];
_local3 = 0;
while (_local3 < axis.length) {
if (localName(axis[_local3]) == _local6) {
_local2.push(axis[_local3]);
}
_local3++;
}
} else {
_local3 = 0;
for(;;){
if (_local3 >= axis.length) {
break;
}
if (axis[_local3].nodeName == name) {
_local2.push(axis[_local3]);
}
_local3++;
};
}
}
return(_local2);
}
static function getDocumentElement(context) {
while (context.parentNode != null) {
context = context.parentNode;
}
if (context.firstChild.nodeName == null) {
return(context.firstChild.nextSibling);
}
return(context.firstChild);
}
static function getChildIndex(kid) {
var _local2 = kid.parentNode.childNodes;
var _local3 = 0;
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].nodeName == kid.nodeName) {
_local3++;
}
if (_local2[_local1] === kid) {
return(_local3);
}
_local1++;
}
return(0);
}
static function prefix(node) {
return(((node.nodeName.indexOf(":") != -1) ? (node.nodeName.split(":")[0]) : null));
}
static function localName(node) {
return(((node.nodeName.indexOf(":") != -1) ? (node.nodeName.split(":")[1]) : (node.nodeName)));
}
static function getXPath(n, attributeName) {
var _local2 = com.xfactorstudio.xml.xpath.XPathAxes.ancestorOrSelf(n);
var _local3 = "";
var _local1 = 1;
while (_local1 < _local2.length) {
switch (_local2[_local1].nodeType) {
case 1 :
_local3 = _local3 + ("/" + _local2[_local1].nodeName);
break;
case 3 :
_local3 = _local3 + "/text()";
}
_local1++;
}
if (attributeName != null) {
_local3 = _local3 + ("/@" + attributeName);
}
return(_local3);
}
static function getAbsoluteXPath(n, attributeName) {
var _local2 = com.xfactorstudio.xml.xpath.XPathAxes.ancestorOrSelf(n);
var _local3 = "";
var _local1 = 1;
while (_local1 < _local2.length) {
switch (_local2[_local1].nodeType) {
case 1 :
_local3 = _local3 + (((("/" + _local2[_local1].nodeName) + "[") + com.xfactorstudio.xml.xpath.types.Predicate.getIndexOfType(_local2[_local1])) + "]");
break;
case 3 :
_local3 = _local3 + "/text()";
}
_local1++;
}
if (attributeName != null) {
_local3 = _local3 + ("/@" + attributeName);
}
return(_local3);
}
}
Symbol 120 MovieClip [__Packages.com.xfactorstudio.xml.xpath.types.QueryPart] Frame 0
class com.xfactorstudio.xml.xpath.types.QueryPart
{
var childNodes, parentNode, nodeValue;
function QueryPart () {
childNodes = new Array();
}
function appendChild(child) {
childNodes.push(child);
childNodes[childNodes.length - 1].parentNode = this;
return(childNodes[childNodes.length - 1]);
}
function clone(obj) {
var _local2 = 0;
while (_local2 < childNodes.length) {
if (childNodes[_local2].nodeValue != null) {
obj.parentNode = parentNode;
obj.nodeValue = nodeValue;
obj.nodeName = nodeName;
obj.childNodes.push(childNodes[_local2].clone());
} else {
obj.childNodes.push(childNodes[_local2]);
}
_local2++;
}
}
function toString(tabs) {
if (tabs == null) {
tabs = "\t";
}
var _local3 = new Array();
_local3.push(newline);
_local3.push(tabs);
_local3.push("<");
_local3.push(nodeName);
_local3.push(">");
if (nodeValue != null) {
_local3.push(nodeValue);
}
var _local2 = 0;
while (_local2 < childNodes.length) {
if (childNodes[_local2] instanceof Array) {
_local3.push((((newline + tabs) + "\t<nodeset>") + childNodes[_local2]) + "</nodset>");
} else {
_local3.push(childNodes[_local2].toString(tabs + "\t"));
}
_local2++;
}
if (childNodes.length > 0) {
_local3.push(newline);
_local3.push(tabs);
}
_local3.push("</");
_local3.push(nodeName);
_local3.push(">");
return(_local3.join(""));
}
function execute(context) {
}
var nodeName = "querypart";
}
Symbol 121 MovieClip [__Packages.com.xfactorstudio.xml.xpath.types.Query] Frame 0
class com.xfactorstudio.xml.xpath.types.Query extends com.xfactorstudio.xml.xpath.types.QueryPart
{
var currentChild, nodeName, pathString, childNodes;
function Query (query) {
super();
com.xfactorstudio.xml.xpath.XPathFunctions.registerDefaultFunctions();
currentChild = this;
nodeName = "query";
pathString = query;
var _local3 = new com.xfactorstudio.xml.xpath.XPathLexer();
_local3.handler = this;
var _local4 = getTimer();
var _local5;
_local3.parse(pathString);
}
function onFunctionStart(name) {
onNotPath();
currentChild = currentChild.appendChild(new com.xfactorstudio.xml.xpath.types.Func(name));
}
function onComma() {
}
function onGroupStart() {
onNotPath();
currentChild = currentChild.appendChild(new com.xfactorstudio.xml.xpath.types.Group());
}
function onGroupEnd() {
while (!(currentChild instanceof com.xfactorstudio.xml.xpath.types.Group)) {
currentChild = currentChild.parentNode;
}
currentChild = currentChild.parentNode;
}
function onFunctionEnd() {
while (!(currentChild instanceof com.xfactorstudio.xml.xpath.types.Func)) {
currentChild = currentChild.parentNode;
}
currentChild = currentChild.parentNode;
}
function onIdentifier(name) {
if (name == ".") {
onAxis(com.xfactorstudio.xml.xpath.Axes.SELF);
onAxis(com.xfactorstudio.xml.xpath.Axes.CHILD);
} else {
onPathPart();
currentChild.appendChild(new com.xfactorstudio.xml.xpath.types.Identifier(name));
}
}
function onAxis(axis) {
onPathPart();
currentChild.appendChild(new com.xfactorstudio.xml.xpath.types.Axis(axis));
}
function onPredicateStart() {
currentChild = currentChild.appendChild(new com.xfactorstudio.xml.xpath.types.Predicate());
}
function onPredicateEnd() {
while (!(currentChild instanceof com.xfactorstudio.xml.xpath.types.Predicate)) {
currentChild = currentChild.parentNode;
}
currentChild = currentChild.parentNode;
}
function onOperator(type) {
onNotPath();
currentChild.appendChild(new com.xfactorstudio.xml.xpath.types.Operator(type));
}
function onLitteral(litteral) {
onNotPath();
currentChild.appendChild(litteral);
}
function onNumber(num) {
onNotPath();
currentChild.appendChild(num);
}
function onPathPart() {
if (!(currentChild instanceof com.xfactorstudio.xml.xpath.types.Path)) {
currentChild = currentChild.appendChild(new com.xfactorstudio.xml.xpath.types.Path());
}
}
function onNotPath() {
if (currentChild instanceof com.xfactorstudio.xml.xpath.types.Path) {
currentChild = currentChild.parentNode;
}
}
function clone() {
var _local2 = new com.xfactorstudio.xml.xpath.types.Query();
super.clone(_local2);
return(_local2);
}
function execute(context) {
var _local8 = new com.xfactorstudio.xml.xpath.types.Predicate();
var _local3 = 0;
while (_local3 < childNodes.length) {
_local8.appendChild(childNodes[_local3]);
_local3++;
}
var _local7 = new Array();
var _local2 = 0;
while (_local2 < context.length) {
var _local5 = _local8.clone();
var _local4 = com.xfactorstudio.xml.xpath.types.Predicate.staticEvaluate(_local5, context[_local2]);
if (_local4 instanceof Array) {
_local7 = _local7.concat(com.xfactorstudio.xml.xpath.types.Predicate.staticEvaluate(_local5, context[_local2], context));
} else {
_local7.push(_local4);
}
_local2++;
}
return(_local7);
}
}
Symbol 122 MovieClip [__Packages.com.xfactorstudio.xml.xpath.XPathFunctions] Frame 0
class com.xfactorstudio.xml.xpath.XPathFunctions
{
function XPathFunctions () {
}
static function registerFunction(id, func) {
if (Tokens[id] == null) {
Functions.push(func);
Tokens[id] = Functions.length - 1;
} else {
throw new Error(("XPath Error: The function identifier (" + Tokens[id]) + ") is already in use");
}
}
static function registerDefaultFunctions() {
if (!defaultFunctionsInited) {
registerFunction("last", last);
registerFunction("position", position);
registerFunction("count", count);
registerFunction("id", id);
registerFunction("name", name);
registerFunction("string", string);
registerFunction("concat", concat);
registerFunction("starts-with", startsWith);
registerFunction("contains", contains);
registerFunction("substring-before", substringBefore);
registerFunction("substring-after", substringAfter);
registerFunction("substring", substring);
registerFunction("string-length", stringLength);
registerFunction("normalize-space", normalizeSpace);
registerFunction("translate", translate);
registerFunction("boolean", boolean);
registerFunction("not", Not);
registerFunction("true", True);
registerFunction("false", False);
registerFunction("lang", lang);
registerFunction("number", number);
registerFunction("sum", sum);
registerFunction("floor", floor);
registerFunction("ceiling", ceiling);
registerFunction("round", round);
registerFunction("local-name", localName);
registerFunction("namespaceURI", namespaceURI);
defaultFunctionsInited = true;
}
}
static function getFunction(i) {
return(Functions[i]);
}
static function last(args, context, nodeSet) {
return(Number(nodeSet.length));
}
static function position(args, context, nodeSet) {
return(com.xfactorstudio.xml.xpath.XPath.getChildIndex(context));
}
static function count(args, context, nodeSet) {
return(args[0].length);
}
static function id(args, context, nodeSet) {
}
static function name(args, context, nodeSet) {
var _local1 = ((args.length == 0) ? (context) : (args[0][0]));
return(_local1.nodeName);
}
static function localName(args, context, nodeSet) {
var _local2 = ((args.length == 0) ? (context) : (args[0][0]));
var _local1 = _local2.nodeName.split(":");
return(((_local1.length > 1) ? (_local1[1]) : (_local1[0])));
}
static function namespaceURI(args, context, nodeSet) {
var _local4 = ((args.length == 0) ? (context) : (args[0][0]));
var _local3 = _local4.nodeName.split(":")[0];
var _local2 = com.xfactorstudio.xml.xpath.XPathAxes.namespace(_local4);
var _local1 = 0;
while (_local1 < _local2.length) {
if (localName([[_local2[_local1]]]) == _local3) {
return(_local2[_local1].nodeValue);
}
_local1++;
}
}
static function toString(args) {
if (args instanceof Array) {
args = com.xfactorstudio.xml.xpath.XPathAxes.stringValue(args[0]).join("");
}
return(String(args));
}
static function string(args, context, nodeSet) {
return(toString(args[0]));
}
static function concat(args, context, nodeSet) {
var _local1 = 0;
while (_local1 < args.length) {
args[_local1] = toString(args[_local1]);
_local1++;
}
return(args.join(""));
}
static function startsWith(args, context, nodeSet) {
args[0] = toString(args[0]);
args[1] = toString(args[1]);
return(((args[0].substr(0, args[1].length) == args[1]) ? true : false));
}
static function contains(args, context, nodeSet) {
args[0] = toString(args[0]);
args[1] = toString(args[1]);
return(((args[0].indexOf(args[1]) != -1) ? true : false));
}
static function substringBefore(args, context, nodeSet) {
args[0] = toString(args[0]);
args[1] = toString(args[1]);
return(args[0].substr(0, args[0].indexOf(args[1])));
}
static function substringAfter(args, context, nodeSet) {
args[0] = toString(args[0]);
args[1] = toString(args[1]);
return(args[0].substr(args[0].indexOf(args[1]) + args[1].length, args[0].length));
}
static function substring(args, context, nodeSet) {
args[0] = toString(args[0]);
args[1] = toString(args[1]);
return(args[0].substr(args[1] - 1, Math.min(args[2], args[0].length)));
}
static function stringLength(args, context, nodeSet) {
args = toString(args[0]);
return(((args != null) ? (args.length) : (com.xfactorstudio.xml.xpath.XPathAxes.stringValue(context).length)));
}
static function normalizeSpace(args, context, nodeSet) {
args = toString(args[0]);
var _local1;
var _local3;
_local1 = 0;
while (_local1 < args.length) {
if (args.charCodeAt(_local1) < 33) {
_local3 = _local1;
while (args.charCodeAt(_local3) < 33) {
_local3++;
}
if (_local3 > (_local1 + 1)) {
args = args.split(args.substr(_local1, _local3 - _local1)).join(" ");
}
}
_local1++;
}
_local1 = 0;
while (args.charCodeAt(_local1) < 33) {
_local1++;
}
args = args.substr(_local1, args.length);
_local1 = args.length - 1;
while (args.charCodeAt(_local1) < 33) {
_local1--;
}
args = args.substr(0, _local1 + 1);
return(args);
}
static function translate(args, context, nodeSet) {
var _local3 = toString(args[0]);
var _local4 = toString(args[1]);
var _local2 = toString(args[2]);
return(_local3.split(_local4).join(_local2));
}
static function toNumber(args) {
if (args instanceof Array) {
args = toString(args);
}
switch (typeof(args)) {
case "string" :
return(Number(args));
case "boolean" :
return((args ? 1 : 0));
}
return(Number(args.toString()));
}
static function number(args, context, nodeSet) {
return(toNumber(args[0]));
}
static function sum(args, context, nodeSet) {
var _local3 = 0;
var _local1 = 0;
while (_local1 < args[0].length) {
_local3 = _local3 + Number(com.xfactorstudio.xml.xpath.XPathAxes.stringValue(args[0][_local1])[0]);
_local1++;
}
return(_local3);
}
static function floor(args, context, nodeSet) {
args[0] = toNumber(args[0]);
return(Math.floor(Number(args[0])));
}
static function ceiling(args, context, nodeSet) {
args[0] = toNumber(args[0]);
return(Math.ceil(Number(args[0])));
}
static function round(args, context, nodeSet) {
args[0] = toNumber(args[0]);
return(Math.round(Number(args[0])));
}
static function toBoolean(args) {
return(boolean([args]));
}
static function boolean(args, context, nodeSet) {
args = args[0];
if (args instanceof Array) {
return(((args.length > 0) ? true : false));
}
switch (typeof(args)) {
case "number" :
return(((args != 0) ? true : false));
case "string" :
return(((args.length > 0) ? true : false));
}
return(args);
}
static function Not(args, context, nodeSet) {
args = args[0];
if ((args == "false") || (args == false)) {
return(true);
}
return(false);
}
static function True(args, context, nodeSet) {
return(true);
}
static function False(args, context, nodeSet) {
return(false);
}
static function lang(args, context, nodeSet) {
return(((com.xfactorstudio.xml.xpath.XPath.getNamedNodes(com.xfactorstudio.xml.xpath.XPathAxes.attribute(context), "*:lang")[0].toString() == args[0].toString()) ? true : false));
}
static var Tokens = new Object();
static var Names = [];
static var Functions = [];
static var defaultFunctionsInited = false;
}
Symbol 123 MovieClip [__Packages.com.xfactorstudio.xml.xpath.XPathAxes] Frame 0
class com.xfactorstudio.xml.xpath.XPathAxes
{
function XPathAxes () {
}
static function ancestor(contextNode) {
var _local2 = new Array();
var _local1 = contextNode;
while (_local1 = _local1.parentNode , _local1 != null) {
_local2.push(_local1);
}
_local2.reverse();
return(_local2);
}
static function namespace(contextNode) {
trace("namspace");
var _local4;
var _local3;
var _local5;
var _local12 = contextNode.parentNode;
if (_local12 != null) {
_local3 = namespace(_local12);
} else {
_local3 = new Array();
var _local13 = {parentNode:contextNode, nodeName:"xmlns:xml", nodeType:5, nodeValue:"http://www.w3.org/XML/1998/namespace", toString:function () {
return(this.nodeValue);
}};
_local3.push(_local13);
}
for (var _local11 in contextNode.attributes) {
if (_local11.substr(0, 5) == "xmlns") {
_local4 = {parentNode:contextNode, nodeName:_local11, nodeType:5, nodeValue:contextNode.attributes[_local11], toString:function () {
return(this.nodeValue);
}};
_local5 = -1;
var _local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2].nodeName == _local4.nodeName) {
_local5 = _local2;
break;
}
_local2++;
}
if (_local5 != -1) {
if (_local4.nodeValue == "") {
_local3.splice(_local5, 1);
} else {
_local3[_local5] = _local4;
}
} else if (_local4.nodeValue != "") {
_local3.push(_local4);
}
}
}
return(_local3);
}
static function ancestorOrSelf(contextNode) {
var _local1 = ancestor(contextNode);
_local1.push(contextNode);
return(_local1);
}
static function attribute(contextNode) {
var _local7 = new Array();
for (var _local8 in contextNode.attributes) {
_local7.push({parentNode:contextNode, nodeName:_local8, nodeType:5, nodeValue:contextNode.attributes[_local8], toString:function () {
return(this.nodeValue);
}});
}
return(_local7);
}
static function child(contextNode) {
return(contextNode.childNodes);
}
static function stringValue(contextNode) {
var _local5 = contextNode.childNodes;
var _local4 = new Array();
var _local3;
switch (contextNode.nodeType) {
case 1 :
_local3 = new Array();
var _local1 = 0;
while (_local1 < contextNode.childNodes.length) {
switch (contextNode.childNodes[_local1].nodeType) {
case 3 :
if (!com.xfactorstudio.xml.xpath.XPathUtils.checkEmpty(contextNode.childNodes[_local1])) {
_local3.push(contextNode.childNodes[_local1].nodeValue);
}
break;
case 1 :
_local3.push(stringValue(contextNode.childNodes[_local1]));
}
_local1++;
}
_local4.push(_local3.join(""));
break;
case 3 :
case 5 :
_local4.push(contextNode.nodeValue);
}
return(_local4);
}
static function descendant(contextNode) {
var _local4 = contextNode;
var _local5 = new Array();
var _local2 = 0;
while (_local2 < _local4.childNodes.length) {
if (_local4.childNodes[_local2].nodeType == 1) {
_local5.push(_local4.childNodes[_local2]);
var _local3 = descendant(_local4.childNodes[_local2]);
var _local1 = 0;
while (_local1 < _local3.length) {
_local5.push(_local3[_local1]);
_local1++;
}
}
_local2++;
}
return(_local5);
}
static function descendantOrSelf(contextNode) {
var _local1 = descendant(contextNode);
_local1.splice(0, 0, contextNode);
return(_local1);
}
static function following(contextNode) {
var _local6 = new Array();
var _local9 = followingSibling(contextNode);
var _local8 = ancestor(contextNode);
var _local7 = 0;
while (_local7 < _local9.length) {
var _local4 = descendantOrSelf(_local9[_local7]);
var _local3 = 0;
while (_local3 < _local4.length) {
_local6.push(_local4[_local3]);
_local3++;
}
_local7++;
}
_local7 = 0;
while (_local7 < _local8.length) {
var _local5 = followingSibling(_local8[_local7]);
var _local3 = 0;
while (_local3 < _local5.length) {
var _local2 = descendantOrSelf(_local5[_local3]);
var _local1 = 0;
while (_local1 < _local2.length) {
_local6.push(_local2[_local1]);
_local1++;
}
_local3++;
}
_local7++;
}
return(_local6);
}
static function followingSibling(contextNode) {
var _local2 = new Array();
var _local1 = contextNode;
while (_local1 = _local1.nextSibling , _local1 != null) {
_local2.push(_local1);
}
return(_local2);
}
static function parent(contextNode) {
return(new Array(contextNode.parentNode));
}
static function preceding(contextNode) {
var _local6 = new Array();
var _local9 = precedingSibling(contextNode);
var _local8 = ancestor(contextNode);
var _local7 = 0;
while (_local7 < _local8.length) {
var _local4 = precedingSibling(_local8[_local7]);
var _local3 = 0;
while (_local3 < _local4.length) {
var _local2 = descendantOrSelf(_local4[_local3]);
var _local1 = 0;
while (_local1 < _local2.length) {
_local6.push(_local2[_local1]);
_local1++;
}
_local3++;
}
_local7++;
}
_local7 = 0;
while (_local7 < _local9.length) {
var _local5 = descendantOrSelf(_local9[_local7]);
var _local3 = 0;
while (_local3 < _local5.length) {
_local6.push(_local5[_local3]);
_local3++;
}
_local7++;
}
return(_local6);
}
static function precedingSibling(contextNode) {
var _local2 = new Array();
var _local1 = contextNode;
while (_local1 = _local1.previousSibling , _local1 != null) {
_local2.push(_local1);
}
_local2.reverse();
return(_local2);
}
static function self(contextNode) {
return([contextNode]);
}
static function root(contextNode) {
while (contextNode.parentNode != null) {
contextNode = contextNode.parentNode;
}
return([contextNode.firstChild]);
}
}
Symbol 124 MovieClip [__Packages.com.xfactorstudio.xml.xpath.XPathUtils] Frame 0
class com.xfactorstudio.xml.xpath.XPathUtils
{
function XPathUtils () {
}
static function cloneArray(obj) {
var _local3 = new Array();
var _local1 = 0;
while (_local1 < obj.length) {
_local3.push(obj[_local1]);
_local1++;
}
return(_local3);
}
static function checkEmpty(contextNode) {
var _local2 = contextNode.nodeValue;
var _local4 = _local2.length;
var _local3 = true;
var _local1 = 1;
while (_local1 < _local4) {
if (_local2.substr(_local1 - 1, 1).charCodeAt() > 32) {
_local3 = false;
break;
}
_local1 = _local1 + 2;
}
return(_local3);
}
}
Symbol 125 MovieClip [__Packages.com.xfactorstudio.xml.xpath.XPathLexer] Frame 0
class com.xfactorstudio.xml.xpath.XPathLexer
{
var functionNames, axisNames, operatorNames, path, tokenizer, lastToken, handler, lastOpenPeran;
function XPathLexer (path) {
functionNames = com.xfactorstudio.xml.xpath.XPathFunctions.Tokens;
axisNames = new com.xfactorstudio.xml.xpath.XPathAxisNames();
operatorNames = new com.xfactorstudio.xml.xpath.XPathPredicateOperator();
}
function parse(path) {
this.path = path;
tokenizer = new com.xfactorstudio.xml.xpath.Tokenizer(this.path);
var _local2;
while (tokenizer.hasMoreChars()) {
_local2 = tokenizer.nextToken();
switch (_local2.type) {
case com.xfactorstudio.xml.xpath.TokenTypes.SLASH :
onSlash(_local2);
break;
case com.xfactorstudio.xml.xpath.TokenTypes.IDENTIFIER :
onIdentifier(_local2);
break;
case com.xfactorstudio.xml.xpath.TokenTypes.AT :
onAt();
break;
case com.xfactorstudio.xml.xpath.TokenTypes.AND :
case com.xfactorstudio.xml.xpath.TokenTypes.DIV :
case com.xfactorstudio.xml.xpath.TokenTypes.EQUALS :
case com.xfactorstudio.xml.xpath.TokenTypes.GREATER_THAN :
case com.xfactorstudio.xml.xpath.TokenTypes.GREATER_THAN_EQUALS :
case com.xfactorstudio.xml.xpath.TokenTypes.LESS_THAN :
case com.xfactorstudio.xml.xpath.TokenTypes.LESS_THAN_EQUALS :
case com.xfactorstudio.xml.xpath.TokenTypes.MINUS :
case com.xfactorstudio.xml.xpath.TokenTypes.MOD :
case com.xfactorstudio.xml.xpath.TokenTypes.NOT :
case com.xfactorstudio.xml.xpath.TokenTypes.NOT_EQUALS :
case com.xfactorstudio.xml.xpath.TokenTypes.OR :
case com.xfactorstudio.xml.xpath.TokenTypes.PIPE :
case com.xfactorstudio.xml.xpath.TokenTypes.PLUS :
onOperator(_local2);
break;
case com.xfactorstudio.xml.xpath.TokenTypes.INTEGER :
case com.xfactorstudio.xml.xpath.TokenTypes.DOUBLE :
onNumber(_local2);
break;
case com.xfactorstudio.xml.xpath.TokenTypes.DOT :
onDot();
break;
case com.xfactorstudio.xml.xpath.TokenTypes.DOT_DOT :
onDoubleDot();
break;
case com.xfactorstudio.xml.xpath.TokenTypes.COLON :
case com.xfactorstudio.xml.xpath.TokenTypes.DOUBLE_COLON :
break;
case com.xfactorstudio.xml.xpath.TokenTypes.DOUBLE_SLASH :
onDoubleSlash(_local2);
break;
case com.xfactorstudio.xml.xpath.TokenTypes.EOF :
break;
case com.xfactorstudio.xml.xpath.TokenTypes.LEFT_BRACKET :
onLeftBracket(_local2);
break;
case com.xfactorstudio.xml.xpath.TokenTypes.LEFT_PAREN :
onLeftParen();
break;
case com.xfactorstudio.xml.xpath.TokenTypes.LITERAL :
onLitteral(_local2);
break;
case com.xfactorstudio.xml.xpath.TokenTypes.RIGHT_BRACKET :
onRightBracket();
break;
case com.xfactorstudio.xml.xpath.TokenTypes.RIGHT_PAREN :
onRightParen();
break;
case com.xfactorstudio.xml.xpath.TokenTypes.STAR :
if (tokenizer.LA(1) == ":") {
_local2.type = com.xfactorstudio.xml.xpath.TokenTypes.IDENTIFIER;
_local2.text = _local2.text + tokenizer.nextToken().text;
_local2.text = _local2.text + tokenizer.nextToken().text;
onIdentifier(_local2);
} else {
onStar();
break;
}
case com.xfactorstudio.xml.xpath.TokenTypes.DOLLAR :
case com.xfactorstudio.xml.xpath.TokenTypes.COMMA :
case com.xfactorstudio.xml.xpath.TokenTypes.SKIP :
}
lastToken = _local2;
}
}
function onSlash(t) {
switch (lastTokenType) {
case IDENTIFIER :
case PREDICATEEND :
case AXIS :
lastTokenType = OPERATOR;
break;
default :
handler.onAxis(com.xfactorstudio.xml.xpath.Axes.ROOT);
lastTokenType = AXIS;
}
}
function onStar() {
switch (lastToken.type) {
case com.xfactorstudio.xml.xpath.TokenTypes.AT :
case com.xfactorstudio.xml.xpath.TokenTypes.DOUBLE_COLON :
case com.xfactorstudio.xml.xpath.TokenTypes.LEFT_PAREN :
case com.xfactorstudio.xml.xpath.TokenTypes.LEFT_BRACKET :
case com.xfactorstudio.xml.xpath.TokenTypes.AND :
case com.xfactorstudio.xml.xpath.TokenTypes.DIV :
case com.xfactorstudio.xml.xpath.TokenTypes.EQUALS :
case com.xfactorstudio.xml.xpath.TokenTypes.GREATER_THAN :
case com.xfactorstudio.xml.xpath.TokenTypes.GREATER_THAN_EQUALS :
case com.xfactorstudio.xml.xpath.TokenTypes.LESS_THAN :
case com.xfactorstudio.xml.xpath.TokenTypes.LESS_THAN_EQUALS :
case com.xfactorstudio.xml.xpath.TokenTypes.MINUS :
case com.xfactorstudio.xml.xpath.TokenTypes.MOD :
case com.xfactorstudio.xml.xpath.TokenTypes.NOT :
case com.xfactorstudio.xml.xpath.TokenTypes.NOT_EQUALS :
case com.xfactorstudio.xml.xpath.TokenTypes.OR :
case com.xfactorstudio.xml.xpath.TokenTypes.PIPE :
case com.xfactorstudio.xml.xpath.TokenTypes.PLUS :
handler.onOperator("*");
break;
default :
handler.onIdentifier("*");
}
}
function onAt() {
handler.onAxis(com.xfactorstudio.xml.xpath.Axes.ATTRIBUTE);
lastTokenType = AXIS;
}
function onDot() {
handler.onAxis(com.xfactorstudio.xml.xpath.Axes.SELF);
lastTokenType = AXIS;
}
function onDoubleDot() {
handler.onAxis(com.xfactorstudio.xml.xpath.Axes.PARENT);
lastTokenType = AXIS;
}
function onDoubleSlash(t) {
handler.onAxis(com.xfactorstudio.xml.xpath.Axes.DECENDANT_OR_SELF);
lastTokenType = AXIS;
}
function onNumber(t) {
handler.onNumber(Number(t.text));
lastTokenType = NUMBER;
}
function onIdentifier(t) {
var _local2 = t.text;
if (tokenizer.LA(1) == "(") {
switch (t.text) {
case "node" :
case "text" :
handler.onIdentifier(t.text + "()");
lastTokenType = IDENTIFIER;
tokenizer.nextToken();
tokenizer.nextToken();
return(undefined);
}
handler.onFunctionStart(functionNames[t.text]);
lastTokenType = FUNCTIONSTART;
lastOpenPeran = FUNCTIONSTART;
tokenizer.nextToken();
return(undefined);
}
if (tokenizer.LA(1) == ":") {
if (tokenizer.LA(2) == ":") {
_local2 = _local2 + tokenizer.nextToken().text;
handler.onAxis(axisNames[_local2]);
lastTokenType = AXIS;
return(undefined);
}
_local2 = _local2 + tokenizer.nextToken().text;
_local2 = _local2 + tokenizer.nextToken().text;
}
switch (lastTokenType) {
case AXIS :
case PREDICATESTART :
case GROUPSTART :
case FUNCTIONSTART :
case OPERATOR :
case -1 :
handler.onIdentifier(_local2);
lastTokenType = IDENTIFIER;
break;
}
}
function onRightParen() {
switch (lastOpenPeran) {
case GROUPSTART :
handler.onGroupEnd();
lastTokenType = GROUPEND;
break;
case FUNCTIONSTART :
handler.onFunctionEnd();
lastTokenType = FUNCTIONEND;
}
}
function onLeftParen() {
handler.onGroupStart();
lastTokenType = GROUPSTART;
lastOpenPeran = GROUPSTART;
}
function onLitteral(t) {
handler.onLitteral(t.text);
lastTokenType = LITTERAL;
}
function onLeftBracket(t) {
handler.onPredicateStart();
lastTokenType = PREDICATESTART;
}
function onRightBracket(t) {
handler.onPredicateEnd();
lastTokenType = PREDICATEEND;
}
function onOperator(t) {
handler.onOperator(operatorNames[t.text]);
lastTokenType = OPERATOR;
}
var lastTokenType = -1;
var inFunction = 0;
var inGroup = 0;
var inPredicate = 0;
static var AXIS = 0;
static var PREDICATESTART = 1;
static var PREDICATEEND = 2;
static var IDENTIFIER = 3;
static var FUNCTIONSTART = 4;
static var FUNCTIONEND = 5;
static var OPERATOR = 6;
static var COMMA = 7;
static var GROUPSTART = 8;
static var GROUPEND = 9;
static var NUMBER = 10;
static var LITTERAL = 11;
}
Symbol 126 MovieClip [__Packages.com.xfactorstudio.xml.xpath.XPathAxisNames] Frame 0
class com.xfactorstudio.xml.xpath.XPathAxisNames
{
var ancestor::, ancestor-or-self::, attribute::, @, child::, descendant::, descendant-or-self::, //, following::, following-sibling::, parent::, .., preceding::, preceding-sibling::, self::, namespace::;
function XPathAxisNames () {
ancestor:: = com.xfactorstudio.xml.xpath.Axes.ANCESTOR;
ancestor-or-self:: = com.xfactorstudio.xml.xpath.Axes.ANCESTOR_OR_SELF;
attribute:: = com.xfactorstudio.xml.xpath.Axes.ATTRIBUTE;
@ = com.xfactorstudio.xml.xpath.Axes.ATTRIBUTE;
child:: = com.xfactorstudio.xml.xpath.Axes.CHILD;
descendant:: = com.xfactorstudio.xml.xpath.Axes.DECENDANT;
descendant-or-self:: = com.xfactorstudio.xml.xpath.Axes.DECENDANT_OR_SELF;
// = com.xfactorstudio.xml.xpath.Axes.DECENDANT_OR_SELF;
following:: = com.xfactorstudio.xml.xpath.Axes.FOLLOWING;
following-sibling:: = com.xfactorstudio.xml.xpath.Axes.FOLLOWING_SIBLING;
parent:: = com.xfactorstudio.xml.xpath.Axes.PARENT;
.. = com.xfactorstudio.xml.xpath.Axes.PARENT;
preceding:: = com.xfactorstudio.xml.xpath.Axes.PRECEDING;
preceding-sibling:: = com.xfactorstudio.xml.xpath.Axes.PRECEDING_SIBLING;
self:: = com.xfactorstudio.xml.xpath.Axes.SELF;
this["."] = com.xfactorstudio.xml.xpath.Axes.SELF;
namespace:: = com.xfactorstudio.xml.xpath.Axes.NAMESPACE;
}
}
Symbol 127 MovieClip [__Packages.com.xfactorstudio.xml.xpath.Axes] Frame 0
class com.xfactorstudio.xml.xpath.Axes
{
function Axes () {
}
static function getName(index) {
switch (index) {
case 0 :
return("root");
case 1 :
return("ancestor");
case 2 :
return("ancestorOrSelf");
case 3 :
return("attribute");
case 4 :
return("child");
case 5 :
return("descendant");
case 6 :
return("descendantOrSelf");
case 7 :
return("following");
case 8 :
return("followingSibling");
case 9 :
return("parent");
case 10 :
return("preceding");
case 11 :
return("precedingSibling");
case 12 :
return("self");
case 13 :
return("namespace");
}
}
static var ROOT = 0;
static var ANCESTOR = 1;
static var ANCESTOR_OR_SELF = 2;
static var ATTRIBUTE = 3;
static var CHILD = 4;
static var DECENDANT = 5;
static var DECENDANT_OR_SELF = 6;
static var FOLLOWING = 7;
static var FOLLOWING_SIBLING = 8;
static var PARENT = 9;
static var PRECEDING = 10;
static var PRECEDING_SIBLING = 11;
static var SELF = 12;
static var NAMESPACE = 13;
}
Symbol 128 MovieClip [__Packages.com.xfactorstudio.xml.xpath.XPathPredicateOperator] Frame 0
class com.xfactorstudio.xml.xpath.XPathPredicateOperator
{
var +, -, =, !, >, <, !=, >=, <=, *, mod, div, and, or, |;
function XPathPredicateOperator () {
+ = 200;
- = 201;
= = 202;
! = 203;
> = 204;
< = 205;
!= = 206;
>= = 207;
<= = 208;
* = 209;
mod = 210;
div = 211;
and = 212;
or = 213;
| = 214;
}
}
Symbol 129 MovieClip [__Packages.com.xfactorstudio.xml.xpath.Tokenizer] Frame 0
class com.xfactorstudio.xml.xpath.Tokenizer
{
var xpath, currentPosition, endPosition;
function Tokenizer (xpath) {
setXPath(xpath);
}
function setXPath(xpath) {
this.xpath = xpath;
currentPosition = 0;
endPosition = xpath.length;
}
function nextToken() {
var _local2 = null;
do {
_local2 = null;
switch (LA(1)) {
case "$" :
_local2 = dollar();
break;
case "\"" :
case "'" :
_local2 = literal();
break;
case "/" :
_local2 = slashes();
break;
case "," :
_local2 = comma();
break;
case "(" :
_local2 = leftParen();
break;
case ")" :
_local2 = rightParen();
break;
case "[" :
_local2 = leftBracket();
break;
case "]" :
_local2 = rightBracket();
break;
case "+" :
_local2 = plus();
break;
case "-" :
_local2 = minus();
break;
case "<" :
case ">" :
_local2 = relationalOperator();
break;
case "=" :
_local2 = equals();
break;
case "!" :
if (LA(2) == "=") {
_local2 = notEquals();
} else {
_local2 = Not();
}
break;
case "|" :
_local2 = pipe();
break;
case "@" :
_local2 = at();
break;
case ":" :
if (LA(2) == ":") {
_local2 = doubleColon();
} else {
_local2 = colon();
}
break;
case "*" :
_local2 = star();
break;
case "." :
switch (LA(2)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
_local2 = numberTok();
break;
default :
_local2 = dots();
}
break;
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
_local2 = numberTok();
break;
case " " :
case "\t" :
case newline :
case "\r" :
_local2 = whitespace();
break;
default :
if (!isIdentifierStartChar(LA(1))) {
break;
}
_local2 = identifierOrOperatorName();
}
if (_local2 == null) {
_local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.EOF, text:xpath.substring(currentPosition, endPosition)};
}
} while (_local2.type == com.xfactorstudio.xml.xpath.TokenTypes.SKIP);
previousToken = _local2;
return(_local2);
}
function identifierOrOperatorName() {
var _local2 = null;
if (previousToken != null) {
switch (previousToken.type) {
case com.xfactorstudio.xml.xpath.TokenTypes.AT :
case com.xfactorstudio.xml.xpath.TokenTypes.DOUBLE_COLON :
case com.xfactorstudio.xml.xpath.TokenTypes.LEFT_PAREN :
case com.xfactorstudio.xml.xpath.TokenTypes.LEFT_BRACKET :
case com.xfactorstudio.xml.xpath.TokenTypes.AND :
case com.xfactorstudio.xml.xpath.TokenTypes.OR :
case com.xfactorstudio.xml.xpath.TokenTypes.MOD :
case com.xfactorstudio.xml.xpath.TokenTypes.DIV :
case com.xfactorstudio.xml.xpath.TokenTypes.COLON :
case com.xfactorstudio.xml.xpath.TokenTypes.SLASH :
case com.xfactorstudio.xml.xpath.TokenTypes.DOUBLE_SLASH :
case com.xfactorstudio.xml.xpath.TokenTypes.PIPE :
case com.xfactorstudio.xml.xpath.TokenTypes.DOLLAR :
case com.xfactorstudio.xml.xpath.TokenTypes.PLUS :
case com.xfactorstudio.xml.xpath.TokenTypes.MINUS :
case com.xfactorstudio.xml.xpath.TokenTypes.STAR :
case com.xfactorstudio.xml.xpath.TokenTypes.COMMA :
case com.xfactorstudio.xml.xpath.TokenTypes.LESS_THAN :
case com.xfactorstudio.xml.xpath.TokenTypes.GREATER_THAN :
case com.xfactorstudio.xml.xpath.TokenTypes.LESS_THAN_EQUALS :
case com.xfactorstudio.xml.xpath.TokenTypes.GREATER_THAN_EQUALS :
case com.xfactorstudio.xml.xpath.TokenTypes.EQUALS :
case com.xfactorstudio.xml.xpath.TokenTypes.NOT_EQUALS :
_local2 = identifier();
break;
default :
_local2 = operatorName();
}
} else {
_local2 = identifier();
}
return(_local2);
}
function identifier() {
var _local2 = null;
var _local3 = currentPosition;
while (hasMoreChars()) {
if (isIdentifierChar(LA(1))) {
consume();
} else {
break;
}
}
_local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.IDENTIFIER, text:xpath.substring(_local3, currentPosition)};
return(_local2);
}
function operatorName() {
var _local2 = null;
switch (LA(1)) {
case "a" :
_local2 = And();
break;
case "o" :
_local2 = Or();
break;
case "m" :
_local2 = mod();
break;
case "d" :
_local2 = div();
}
return(_local2);
}
function mod() {
var _local2 = null;
_local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.MOD, text:"mod"};
consume();
consume();
consume();
return(_local2);
}
function div() {
var _local2 = null;
_local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.DIV, text:xpath.substring(currentPosition, currentPosition + 3)};
consume();
consume();
consume();
return(_local2);
}
function And() {
var _local2 = null;
_local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.AND, text:"and"};
consume();
consume();
consume();
return(_local2);
}
function Or() {
var _local2 = null;
_local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.OR, text:"or"};
consume();
consume();
return(_local2);
}
function numberTok() {
var _local5 = currentPosition;
var _local2 = true;
var _local3 = true;
while (_local3) {
switch (LA(1)) {
case "." :
if (_local2) {
_local2 = false;
consume();
} else {
break;
}
break;
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
consume();
break;
default :
_local3 = false;
}
}
var _local4 = null;
if (_local2) {
_local4 = {type:com.xfactorstudio.xml.xpath.TokenTypes.INTEGER, text:xpath.substring(_local5, currentPosition)};
} else {
_local4 = {type:com.xfactorstudio.xml.xpath.TokenTypes.DOUBLE, text:xpath.substring(_local5, currentPosition)};
}
return(_local4);
}
function whitespace() {
consume();
while (hasMoreChars()) {
switch (LA(1)) {
case " " :
case "\t" :
case newline :
case "\r" :
consume();
continue;//outer level
}
return({type:com.xfactorstudio.xml.xpath.TokenTypes.SKIP, text:xpath.substring(0, 0)});
}
}
function comma() {
var _local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.COMMA, text:","};
consume();
return(_local2);
}
function equals() {
var _local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.EQUALS, text:"="};
consume();
return(_local2);
}
function minus() {
var _local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.MINUS, text:"-"};
consume();
return(_local2);
}
function plus() {
var _local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.PLUS, text:"+"};
consume();
return(_local2);
}
function dollar() {
var _local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.DOLLAR, text:"$"};
consume();
return(_local2);
}
function pipe() {
var _local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.PIPE, text:"|"};
consume();
return(_local2);
}
function at() {
var _local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.AT, text:"@"};
consume();
return(_local2);
}
function colon() {
var _local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.COLON, text:":"};
consume();
return(_local2);
}
function doubleColon() {
var _local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.DOUBLE_COLON, text:"::"};
consume();
consume();
return(_local2);
}
function Not() {
var _local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.NOT, text:"!"};
consume();
return(_local2);
}
function notEquals() {
var _local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.NOT_EQUALS, text:"!="};
consume();
consume();
return(_local2);
}
function relationalOperator() {
var _local2 = null;
switch (LA(1)) {
case "<" :
if (LA(2) == "=") {
_local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.LESS_THAN_EQUALS, text:"<="};
consume();
} else {
_local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.LESS_THAN, text:"<"};
}
consume();
break;
case ">" :
if (LA(2) == "=") {
_local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.GREATER_THAN_EQUALS, text:">="};
consume();
} else {
_local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.GREATER_THAN, text:">"};
}
consume();
}
return(_local2);
}
function star() {
var _local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.STAR, text:"*"};
consume();
return(_local2);
}
function literal() {
var _local2 = null;
var _local5 = LA(1);
consume();
var _local6 = currentPosition;
while ((_local2 == null) && (hasMoreChars())) {
if (LA(1) == _local5) {
_local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.LITERAL, text:xpath.substring(_local6, currentPosition)};
}
consume();
}
return(_local2);
}
function dots() {
var _local2 = null;
switch (LA(2)) {
case "." :
_local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.DOT_DOT, text:".."};
consume();
consume();
break;
default :
_local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.DOT, text:"."};
consume();
}
return(_local2);
}
function leftBracket() {
var _local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.LEFT_BRACKET, text:"["};
consume();
return(_local2);
}
function rightBracket() {
var _local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.RIGHT_BRACKET, text:"]"};
consume();
return(_local2);
}
function leftParen() {
var _local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.LEFT_PAREN, text:"("};
consume();
return(_local2);
}
function rightParen() {
var _local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.RIGHT_PAREN, text:")"};
consume();
return(_local2);
}
function slashes() {
var _local2 = null;
switch (LA(2)) {
case "/" :
_local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.DOUBLE_SLASH, text:"//"};
consume();
consume();
break;
default :
_local2 = {type:com.xfactorstudio.xml.xpath.TokenTypes.SLASH, text:"/"};
consume();
}
return(_local2);
}
function LA(i) {
return(xpath.charAt(currentPosition + (i - 1)));
}
function consume() {
currentPosition++;
}
function hasMoreChars() {
return(currentPosition < endPosition);
}
function isIdentifierChar(c) {
return(isUnicodeIdentifierPart(c));
}
function isIdentifierStartChar(c) {
return("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".indexOf(c) != -1);
}
static function isUnicodeIdentifierPart(c) {
return("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".indexOf(c) != -1);
}
static function isNumber(c) {
return(!isNaN(c));
}
var previousToken = null;
}
Symbol 130 MovieClip [__Packages.com.xfactorstudio.xml.xpath.TokenTypes] Frame 0
class com.xfactorstudio.xml.xpath.TokenTypes
{
function TokenTypes () {
}
static function getName(i) {
switch (i) {
case AND :
return("AND");
case AT :
return("AT");
case COLON :
return("COLON");
case COMMA :
return("COMMA");
case DIV :
return("DIV");
case DOLLAR :
return("DOLLAR");
case DOT :
return("DOT");
case DOT_DOT :
return("DOT_DOT");
case DOUBLE :
return("DOUBLE");
case DOUBLE_COLON :
return("DOUBLE_COLON");
case DOUBLE_SLASH :
return("DOUBLE_SLASH");
case EOF :
return("EOF");
case EQUALS :
return("EQUALS");
case GREATER_THAN :
return("GREATER_THAN");
case GREATER_THAN_EQUALS :
return("GREATER_THAN_EQUALS");
case IDENTIFIER :
return("IDENTIFIER");
case INTEGER :
return("INTEGER");
case LEFT_BRACKET :
return("LEFT_BRACKET");
case LEFT_PAREN :
return("LEFT_PAREN");
case LESS_THAN :
return("LESS_THAN");
case LESS_THAN_EQUALS :
return("LESS_THAN_EQUALS");
case LITERAL :
return("LITERAL");
case MINUS :
return("MINUS");
case MOD :
return("MOD");
case NOT :
return("NOT");
case NOT_EQUALS :
return("NOT_EQUALS");
case OR :
return("OR");
case PIPE :
return("PIPE");
case PLUS :
return("PLUS");
case RIGHT_BRACKET :
return("RIGHT_BRACKET");
case RIGHT_PAREN :
return("RIGHT_PAREN");
case SKIP :
return("SKIP");
case SLASH :
return("SLASH");
case STAR :
return("STAR");
}
}
static var LEFT_PAREN = 1;
static var RIGHT_PAREN = 2;
static var LEFT_BRACKET = 3;
static var RIGHT_BRACKET = 4;
static var PLUS = 5;
static var MINUS = 6;
static var LESS_THAN = 7;
static var LESS_THAN_EQUALS = 8;
static var GREATER_THAN = 9;
static var GREATER_THAN_EQUALS = 10;
static var SLASH = 11;
static var DOUBLE_SLASH = 12;
static var DOT = 13;
static var DOT_DOT = 14;
static var IDENTIFIER = 15;
static var AT = 16;
static var PIPE = 17;
static var COLON = 18;
static var DOUBLE_COLON = 19;
static var STAR = 20;
static var EQUALS = 21;
static var NOT_EQUALS = 22;
static var NOT = 23;
static var DIV = 24;
static var MOD = 25;
static var DOLLAR = 26;
static var LITERAL = 27;
static var AND = 28;
static var OR = 29;
static var INTEGER = 30;
static var DOUBLE = 31;
static var COMMA = 32;
static var SKIP = -2;
static var EOF = -1;
}
Symbol 131 MovieClip [__Packages.com.xfactorstudio.xml.xpath.Token] Frame 0
class com.xfactorstudio.xml.xpath.Token
{
var tokenType, parseText, tokenBegin, tokenEnd;
function Token (tokenType, parseText, tokenBegin, tokenEnd) {
setTokenType(tokenType);
setParseText(parseText);
setTokenBegin(tokenBegin);
setTokenEnd(tokenEnd);
}
function setTokenType(tokenType) {
this.tokenType = tokenType;
}
function getTokenType() {
return(tokenType);
}
function setParseText(parseText) {
this.parseText = parseText;
}
function getTokenText() {
return(parseText.substring(getTokenBegin(), getTokenEnd()));
}
function setTokenBegin(tokenBegin) {
this.tokenBegin = tokenBegin;
}
function getTokenBegin() {
return(tokenBegin);
}
function setTokenEnd(tokenEnd) {
this.tokenEnd = tokenEnd;
}
function getTokenEnd() {
return(tokenEnd);
}
function toString() {
return(((("[ (" + com.xfactorstudio.xml.xpath.TokenTypes.getName(tokenType)) + ") (") + getTokenText()) + ")");
}
}
Symbol 132 MovieClip [__Packages.com.xfactorstudio.xml.xpath.types.Func] Frame 0
class com.xfactorstudio.xml.xpath.types.Func extends com.xfactorstudio.xml.xpath.types.QueryPart
{
var nodeValue, parentNode, childNodes;
function Func (name) {
super();
nodeValue = name;
}
function register() {
parentNode.hasFunctions = true;
}
function clone() {
var _local3 = new com.xfactorstudio.xml.xpath.types.Func(nodeValue);
super.clone(_local3);
return(_local3);
}
function execute(context, axis) {
var _local2 = 0;
while (_local2 < childNodes.length) {
switch (typeof(childNodes[_local2])) {
case "string" :
case "boolean" :
case "number" :
break;
default :
childNodes[_local2] = childNodes[_local2].execute(context);
}
_local2++;
}
return(com.xfactorstudio.xml.xpath.XPathFunctions.getFunction(nodeValue).call(this, childNodes, context[0], axis));
}
var nodeName = "function";
}
Symbol 133 MovieClip [__Packages.com.xfactorstudio.xml.xpath.types.Group] Frame 0
class com.xfactorstudio.xml.xpath.types.Group extends com.xfactorstudio.xml.xpath.types.QueryPart
{
var childNodes;
function Group () {
super();
}
function clone() {
var _local2 = new com.xfactorstudio.xml.xpath.types.Group();
super.clone(_local2);
return(_local2);
}
function execute(context) {
var _local7;
var _local5 = new com.xfactorstudio.xml.xpath.types.Predicate();
var _local2 = 0;
while (_local2 < childNodes.length) {
_local5.appendChild(childNodes[_local2]);
_local2++;
}
var _local8 = new Array();
var _local3 = 0;
while (_local3 < context.length) {
var _local4 = _local5.clone();
_local7 = com.xfactorstudio.xml.xpath.types.Predicate.staticEvaluate(_local4, context[_local3]);
_local3++;
}
return(_local7);
}
var nodeName = "group";
}
Symbol 134 MovieClip [__Packages.com.xfactorstudio.xml.xpath.types.Predicate] Frame 0
class com.xfactorstudio.xml.xpath.types.Predicate extends com.xfactorstudio.xml.xpath.types.QueryPart
{
var childNodes;
function Predicate () {
super();
}
function appendChild(child) {
childNodes.push(child);
childNodes[childNodes.length - 1].parentNode = this;
child.register();
return(childNodes[childNodes.length - 1]);
}
function execute(context) {
var _local6 = new Array();
var _local3 = 0;
while (_local3 < context.length) {
var _local5 = clone();
var _local2 = evaluate(_local5, context[_local3], context);
if (typeof(_local2) == "number") {
_local2 = _local2 == getChildIndex(context[_local3]);
} else {
_local2 = com.xfactorstudio.xml.xpath.XPathFunctions.toBoolean(_local2);
}
if (_local2) {
_local6.push(context[_local3]);
}
_local3++;
}
return(_local6);
}
function clone() {
var _local2 = new com.xfactorstudio.xml.xpath.types.Predicate();
super.clone(_local2);
return(_local2);
}
static function staticEvaluate(test, contextNode, axis) {
solveGroups(test, contextNode);
solveFunctions(test, contextNode, axis);
solvePaths(test, contextNode);
solveUnions(test, contextNode);
solveMultiplicativeExpressions(test, contextNode);
solveAdditiveExpressions(test, contextNode);
solveRelationalExpressions(test, contextNode);
solveEqualityExpressions(test, contextNode);
solveLogicalAndExpressions(test, contextNode);
solveLogicalOrExpressions(test, contextNode);
return(test.childNodes[0]);
}
function evaluate(test, contextNode, axis) {
if (hasGroups) {
solveGroups(test, contextNode);
}
if (hasFunctions) {
solveFunctions(test, contextNode, axis);
}
if (hasPaths) {
solvePaths(test, contextNode);
}
if (hasUnions) {
solveUnions(test, contextNode);
}
if (hasMultiplicativeExpressions) {
solveMultiplicativeExpressions(test, contextNode);
}
if (hasAdditiveExpressions) {
solveAdditiveExpressions(test, contextNode);
}
if (hasRelationalExpressions) {
solveRelationalExpressions(test, contextNode);
}
if (hasEqualityExpressions) {
solveEqualityExpressions(test, contextNode);
}
if (hasLogicalAndExpressions) {
solveLogicalAndExpressions(test, contextNode);
}
if (hasLogicalOrExpressions) {
solveLogicalOrExpressions(test, contextNode);
}
return(test.childNodes[0]);
}
static function solveEqualityExpressions(test, contextNode) {
var _local1 = 0;
while (_local1 < test.childNodes.length) {
if (test.childNodes[_local1] instanceof com.xfactorstudio.xml.xpath.types.Operator) {
switch (test.childNodes[_local1].nodeValue) {
case com.xfactorstudio.xml.xpath.Operators.EQUALS :
test.childNodes.splice(_local1 - 1, 3, isEqualTo(test.childNodes[_local1 - 1], test.childNodes[_local1 + 1]));
_local1 = _local1 - 2;
break;
case com.xfactorstudio.xml.xpath.Operators.NOT_EQUALS :
test.childNodes.splice(_local1 - 1, 3, isNotEqualTo(test.childNodes[_local1 - 1], test.childNodes[_local1 + 1]));
_local1 = _local1 - 2;
}
}
_local1++;
}
}
static function solveMultiplicativeExpressions(test, contextNode) {
var _local1 = 0;
while (_local1 < test.childNodes.length) {
switch (test.childNodes[_local1].nodeValue) {
case com.xfactorstudio.xml.xpath.Operators.MULTIPLY :
test.childNodes.splice(_local1 - 1, 3, Number(test.childNodes[_local1 - 1]) * Number(test.childNodes[_local1 + 1]));
_local1 = _local1 - 2;
break;
case com.xfactorstudio.xml.xpath.Operators.MOD :
test.childNodes.splice(_local1 - 1, 3, Number(test.childNodes[_local1 - 1]) % Number(test.childNodes[_local1 + 1]));
_local1 = _local1 - 2;
break;
case com.xfactorstudio.xml.xpath.Operators.DIV :
test.childNodes.splice(_local1 - 1, 3, Number(test.childNodes[_local1 - 1]) / Number(test.childNodes[_local1 + 1]));
_local1 = _local1 - 2;
}
_local1++;
}
}
static function solveAdditiveExpressions(test, contextNode) {
var _local1 = 0;
while (_local1 < test.childNodes.length) {
switch (test.childNodes[_local1].nodeValue) {
case com.xfactorstudio.xml.xpath.Operators.PLUS :
test.childNodes.splice(_local1 - 1, 3, Number(test.childNodes[_local1 - 1]) + Number(test.childNodes[_local1 + 1]));
_local1 = _local1 - 2;
break;
case com.xfactorstudio.xml.xpath.Operators.MINUS :
test.childNodes.splice(_local1 - 1, 3, Number(test.childNodes[_local1 - 1]) - Number(test.childNodes[_local1 + 1]));
_local1 = _local1 - 2;
}
_local1++;
}
}
static function solveLogicalAndExpressions(test, contextNode) {
var _local1 = 0;
while (_local1 < test.childNodes.length) {
if (test.childNodes[_local1].nodeValue == com.xfactorstudio.xml.xpath.Operators.AND) {
var _local3 = ((isTrue(test.childNodes[_local1 - 1]) && (isTrue(test.childNodes[_local1 + 1]))) ? true : false);
test.childNodes.splice(_local1 - 1, 3, _local3);
_local1 = _local1 - 2;
}
_local1++;
}
}
static function solveLogicalOrExpressions(test, contextNode) {
var _local1 = 0;
while (_local1 < test.childNodes.length) {
if (test.childNodes[_local1].nodeValue == com.xfactorstudio.xml.xpath.Operators.OR) {
var _local3 = ((isTrue(test.childNodes[_local1 - 1]) || (isTrue(test.childNodes[_local1 + 1]))) ? true : false);
test.childNodes.splice(_local1 - 1, 3, _local3);
_local1 = _local1 - 2;
}
_local1++;
}
}
static function solveRelationalExpressions(test, contextNode) {
var _local1 = 0;
while (_local1 < test.childNodes.length) {
switch (test.childNodes[_local1].nodeValue) {
case com.xfactorstudio.xml.xpath.Operators.GREATER_THAN :
test.childNodes.splice(_local1 - 1, 3, isGreaterThan(test.childNodes[_local1 - 1], test.childNodes[_local1 + 1]));
_local1 = _local1 - 2;
break;
case com.xfactorstudio.xml.xpath.Operators.LESS_THAN :
test.childNodes.splice(_local1 - 1, 3, isLessThan(test.childNodes[_local1 - 1], test.childNodes[_local1 + 1]));
_local1 = _local1 - 2;
break;
case com.xfactorstudio.xml.xpath.Operators.GREATER_THAN_OR_EQUAL_TO :
test.childNodes.splice(_local1 - 1, 3, isGreaterThanOrEqualTo(test.childNodes[_local1 - 1], test.childNodes[_local1 + 1]));
_local1 = _local1 - 2;
break;
case com.xfactorstudio.xml.xpath.Operators.LESS_THAN_OR_EQUAL_TO :
test.childNodes.splice(_local1 - 1, 3, isLessThanOrEqualTo(test.childNodes[_local1 - 1], test.childNodes[_local1 + 1]));
_local1 = _local1 - 2;
}
_local1++;
}
}
static function solvePaths(test, contextNode) {
var _local1 = 0;
while (_local1 < test.childNodes.length) {
if (test.childNodes[_local1] instanceof com.xfactorstudio.xml.xpath.types.Path) {
test.childNodes[_local1] = test.childNodes[_local1].execute([contextNode]);
}
_local1++;
}
}
static function solveUnions(test, contextNode) {
var _local1 = 0;
while (_local1 < test.childNodes.length) {
if (test.childNodes[_local1] instanceof com.xfactorstudio.xml.xpath.types.Operator) {
if (test.childNodes[_local1].nodeValue == com.xfactorstudio.xml.xpath.Operators.UNION) {
test.childNodes[_local1 - 1] = test.childNodes[_local1 - 1].concat(test.childNodes[_local1 + 1]);
test.childNodes[_local1 - 1].sort(sortByIndexFunction);
test.childNodes.splice(_local1 - 1, 3, test.childNodes[_local1 - 1]);
_local1 = _local1 - 2;
}
}
_local1++;
}
}
static function solveGroups(test, contextNode) {
var _local1 = 0;
while (_local1 < test.childNodes.length) {
if (test.childNodes[_local1] instanceof com.xfactorstudio.xml.xpath.types.Group) {
var _local3 = test.childNodes[_local1].execute([contextNode]);
test.childNodes.splice(_local1, 1, _local3);
}
_local1++;
}
}
static function solveFunctions(test, contextNode, axis) {
var _local1 = 0;
while (_local1 < test.childNodes.length) {
if (test.childNodes[_local1] instanceof com.xfactorstudio.xml.xpath.types.Func) {
var _local3 = test.childNodes[_local1].execute([contextNode], axis);
test.childNodes.splice(_local1, 1, _local3);
}
_local1++;
}
}
static function sortByIndexFunction(a, b) {
var _local3 = getDocumentOrder(a);
var _local2 = getDocumentOrder(b);
var _local1 = 0;
while (_local1 < _local3.length) {
if (_local2[_local1] == null) {
return(1);
}
if (_local3[_local1] > _local2[_local1]) {
return(1);
}
if (_local3[_local1] < _local2[_local1]) {
return(-1);
}
_local1++;
}
if (_local2.length > _local3.length) {
return(-1);
}
return(0);
}
static function isEqualTo(val1, val2) {
var _local1 = convertForComparison(val1, val2);
return(_local1.val1 == _local1.val2);
}
static function isNotEqualTo(val1, val2) {
var _local1 = convertForComparison(val1, val2);
return(_local1.val1 != _local1.val2);
}
static function isGreaterThan(val1, val2) {
var _local1 = convertForComparison(val1, val2);
return(_local1.val1 > _local1.val2);
}
static function isLessThan(val1, val2) {
var _local1 = convertForComparison(val1, val2);
return(_local1.val1 < _local1.val2);
}
static function isGreaterThanOrEqualTo(val1, val2) {
var _local1 = convertForComparison(val1, val2);
return(_local1.val1 >= _local1.val2);
}
static function isLessThanOrEqualTo(val1, val2) {
var _local1 = convertForComparison(val1, val2);
return(_local1.val1 <= _local1.val2);
}
static function getChildIndex(kid) {
var _local2 = kid.parentNode.childNodes;
var _local3 = 0;
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].nodeName == kid.nodeName) {
_local3++;
}
if (_local2[_local1] === kid) {
return(_local3);
}
_local1++;
}
return(0);
}
static function getDocumentOrder(kid) {
var _local2 = [];
while (kid.parentNode != null) {
_local2.push(getIndex(kid));
kid = kid.parentNode;
}
return(_local2.reverse());
}
static function getIndex(kid) {
var _local3 = kid.parentNode.childNodes;
var _local2 = 0;
var _local1 = 0;
while (_local1 < _local3.length) {
_local2++;
if (_local3[_local1] === kid) {
return(_local2);
}
_local1++;
}
return(0);
}
static function getIndexOfType(kid) {
var _local2 = kid.parentNode.childNodes;
var _local3 = 0;
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].nodeName == kid.nodeName) {
_local3++;
if (_local2[_local1] === kid) {
return(_local3);
}
}
_local1++;
}
return(0);
}
static function convertForComparison(val1, val2) {
var _local2;
var _local1;
_local2 = typeof(val1);
_local1 = typeof(val2);
if ((_local2 == "boolean") || (_local1 == "boolean")) {
val1 = com.xfactorstudio.xml.xpath.XPathFunctions.toBoolean(val1);
val2 = com.xfactorstudio.xml.xpath.XPathFunctions.toBoolean(val2);
return({val1:val1, val2:val2});
}
if ((_local2 == "number") || (_local1 == "number")) {
val1 = com.xfactorstudio.xml.xpath.XPathFunctions.toNumber(val1);
val2 = com.xfactorstudio.xml.xpath.XPathFunctions.toNumber(val2);
return({val1:val1, val2:val2});
}
if ((_local2 == "string") || (_local1 == "string")) {
val1 = com.xfactorstudio.xml.xpath.XPathFunctions.toString(val1);
val2 = com.xfactorstudio.xml.xpath.XPathFunctions.toString(val2);
return({val1:val1, val2:val2});
}
return({val1:val1, val2:val2});
}
static function isTrue(test) {
return(com.xfactorstudio.xml.xpath.XPathFunctions.toBoolean(test));
}
var nodeName = "predicate";
var hasGroups = false;
var hasPaths = false;
var hasFunctions = false;
var hasUnions = false;
var hasAdditiveExpressions = false;
var hasMultiplicativeExpressions = false;
var hasRelationalExpressions = false;
var hasEqualityExpressions = false;
var hasLogicalAndExpressions = false;
var hasLogicalOrExpressions = false;
}
Symbol 135 MovieClip [__Packages.com.xfactorstudio.xml.xpath.types.Operator] Frame 0
class com.xfactorstudio.xml.xpath.types.Operator extends com.xfactorstudio.xml.xpath.types.QueryPart
{
var nodeValue, parentNode;
function Operator (type) {
super();
nodeValue = type;
}
function register() {
switch (nodeValue) {
case com.xfactorstudio.xml.xpath.Operators.EQUALS :
case com.xfactorstudio.xml.xpath.Operators.NOT_EQUALS :
parentNode.hasEqualityExpressions = true;
break;
case com.xfactorstudio.xml.xpath.Operators.MULTIPLY :
case com.xfactorstudio.xml.xpath.Operators.MOD :
case com.xfactorstudio.xml.xpath.Operators.DIV :
parentNode.hasMultiplicativeExpressions = true;
break;
case com.xfactorstudio.xml.xpath.Operators.PLUS :
case com.xfactorstudio.xml.xpath.Operators.MINUS :
parentNode.hasAdditiveExpressions = true;
break;
case com.xfactorstudio.xml.xpath.Operators.AND :
parentNode.hasLogicalAndExpressions = true;
break;
case com.xfactorstudio.xml.xpath.Operators.OR :
parentNode.hasLogicalOrExpressions = true;
break;
case com.xfactorstudio.xml.xpath.Operators.GREATER_THAN :
case com.xfactorstudio.xml.xpath.Operators.LESS_THAN :
case com.xfactorstudio.xml.xpath.Operators.GREATER_THAN_OR_EQUAL_TO :
case com.xfactorstudio.xml.xpath.Operators.LESS_THAN_OR_EQUAL_TO :
parentNode.hasRelationalExpressions = true;
break;
case com.xfactorstudio.xml.xpath.Operators.UNION :
parentNode.hasUnions = true;
}
}
function clone() {
return(this);
}
var nodeName = "operator";
}
Symbol 136 MovieClip [__Packages.com.xfactorstudio.xml.xpath.Operators] Frame 0
class com.xfactorstudio.xml.xpath.Operators
{
function Operators () {
}
static var PLUS = 200;
static var MINUS = 201;
static var EQUALS = 202;
static var NOT = 203;
static var GREATER_THAN = 204;
static var LESS_THAN = 205;
static var NOT_EQUALS = 206;
static var GREATER_THAN_OR_EQUAL_TO = 207;
static var LESS_THAN_OR_EQUAL_TO = 208;
static var MULTIPLY = 209;
static var MOD = 210;
static var DIV = 211;
static var AND = 212;
static var OR = 213;
static var UNION = 214;
}
Symbol 137 MovieClip [__Packages.com.xfactorstudio.xml.xpath.types.Path] Frame 0
class com.xfactorstudio.xml.xpath.types.Path extends com.xfactorstudio.xml.xpath.types.QueryPart
{
var parentNode, childNodes;
function Path () {
super();
}
function register() {
parentNode.hasPaths = true;
}
function appendChild(child) {
if ((childNodes.length == 0) && (child.nodeValue == com.xfactorstudio.xml.xpath.Axes.SELF)) {
childNodes.push(new com.xfactorstudio.xml.xpath.types.Axis(com.xfactorstudio.xml.xpath.Axes.CHILD));
childNodes[childNodes.length - 1].parentNode = this;
}
if (((!(childNodes[childNodes.length - 1] instanceof com.xfactorstudio.xml.xpath.types.Axis)) && (!(child instanceof com.xfactorstudio.xml.xpath.types.Axis))) && (!(child instanceof com.xfactorstudio.xml.xpath.types.Predicate))) {
childNodes.push(new com.xfactorstudio.xml.xpath.types.Axis(com.xfactorstudio.xml.xpath.Axes.CHILD));
childNodes[childNodes.length - 1].parentNode = this;
}
childNodes.push(child);
childNodes[childNodes.length - 1].parentNode = this;
return(childNodes[childNodes.length - 1]);
}
function clone() {
var _local2 = new com.xfactorstudio.xml.xpath.types.Path();
super.clone(_local2);
return(_local2);
}
function execute(context) {
var _local2 = 0;
while (_local2 < childNodes.length) {
context = childNodes[_local2].execute(context);
_local2++;
}
return(context);
}
var nodeName = "path";
}
Symbol 138 MovieClip [__Packages.com.xfactorstudio.xml.xpath.types.Axis] Frame 0
class com.xfactorstudio.xml.xpath.types.Axis extends com.xfactorstudio.xml.xpath.types.QueryPart
{
var nodeValue;
function Axis (axis) {
super();
nodeValue = axis;
}
function clone() {
var _local2 = new com.xfactorstudio.xml.xpath.types.Axis();
super.clone(_local2);
return(_local2);
}
function execute(context) {
var _local3 = new Array();
var _local2 = 0;
while (_local2 < context.length) {
_local3 = _local3.concat(com.xfactorstudio.xml.xpath.XPathAxes[com.xfactorstudio.xml.xpath.Axes.getName(Number(nodeValue))].call(this, context[_local2]));
_local2++;
}
return(_local3);
}
var nodeName = "axis";
}
Symbol 139 MovieClip [__Packages.com.xfactorstudio.xml.xpath.types.Identifier] Frame 0
class com.xfactorstudio.xml.xpath.types.Identifier extends com.xfactorstudio.xml.xpath.types.QueryPart
{
var nodeValue;
function Identifier (name) {
super();
nodeValue = name;
}
function execute(context) {
var _local2 = com.xfactorstudio.xml.xpath.XPath.getNamedNodes(context, nodeValue);
return(_local2);
}
function clone() {
var _local2 = new com.xfactorstudio.xml.xpath.types.Identifier();
super.clone(_local2);
return(_local2);
}
var nodeName = "identifier";
}