Section 1
//body_type_5 (_fla.body_type_5)
package _fla {
import flash.display.*;
public dynamic class body_type_5 extends MovieClip {
public function body_type_5(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 2
//check_133 (_fla.check_133)
package _fla {
import flash.display.*;
public dynamic class check_133 extends MovieClip {
public function check_133(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 3
//eyelight_24 (_fla.eyelight_24)
package _fla {
import flash.display.*;
public dynamic class eyelight_24 extends MovieClip {
public var right:MovieClip;
public function eyelight_24(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 4
//eyeline_29 (_fla.eyeline_29)
package _fla {
import flash.display.*;
public dynamic class eyeline_29 extends MovieClip {
public var sysline:MovieClip;
public function eyeline_29(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 5
//komiji_2 (_fla.komiji_2)
package _fla {
import flash.display.*;
public dynamic class komiji_2 extends MovieClip {
public var body:MovieClip;
public function komiji_2(){
addFrameScript(91, frame92, 133, frame134, 154, frame155, 242, frame243, 279, frame280, 308, frame309);
}
function frame92(){
gotoAndPlay("yure");
}
function frame134(){
gotoAndPlay("yure2");
}
function frame155(){
gotoAndPlay("yure3");
}
function frame243(){
gotoAndPlay("yure4");
}
function frame280(){
gotoAndPlay("yure5");
}
function frame309(){
gotoAndPlay("yure6");
}
}
}//package _fla
Section 6
//lock_132 (_fla.lock_132)
package _fla {
import flash.display.*;
public dynamic class lock_132 extends MovieClip {
public function lock_132(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 7
//MainTimeline (_fla.MainTimeline)
package _fla {
import flash.display.*;
import flash.events.*;
import flash.system.*;
import flash.utils.*;
import flash.net.*;
import flash.text.*;
import flash.geom.*;
import flash.ui.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var menu_ber_mc:MovieClip;
public var tool3:MovieClip;
public var tool3_txt:TextField;
public var tool1_UG:SimpleButton;
public var tool4:MovieClip;
public var tool2_txt:TextField;
public var mylink:SimpleButton;
public var komiji:MovieClip;
public var point_txt:TextField;
public var tool4_UG:SimpleButton;
public var shop_btn:SimpleButton;
public var tool4_ugp:TextField;
public var clickpoint:SimpleButton;
public var load_per:TextField;
public var tool1_ugp:TextField;
public var tool4_txt:TextField;
public var tool3_ugp:TextField;
public var tool2_UG:SimpleButton;
public var tool1:MovieClip;
public var getpointMC:MovieClip;
public var tool2_ugp:TextField;
public var tool1_txt:TextField;
public var tool3_UG:SimpleButton;
public var tool2:MovieClip;
public var loadend:MovieClip;
public var info:LoaderInfo;
public var tool1A:Array;
public var tool2A:Array;
public var tool3A:Array;
public var tool4A:Array;
public var i:uint;
public var savedata:SharedObject;
public var pointinfo:Array;
public var pointinfinam:uint;
public var onepoint:uint;
public var rota:uint;
public var rotao:uint;
public var timer:uint;
public var bai:uint;
public var baimax:uint;
public var maxlevel:uint;
public var nextpoint1:uint;
public var nextpoint2:uint;
public var nextpoint3:uint;
public var nextpoint4:uint;
public var select:Array;
public var AItem:Array;
public var Adress:Array;
public var Aeye:Array;
public var Amouth:Array;
public var Ahere:Array;
public var Atex:Array;
public var Amove:Array;
public var dressInc:Array;
public var menulit:Array;
public var itemlist:Array;
public var separe:Array;
public var listX;
public var listY;
public var plusY:uint;
public var presskey;
public function MainTimeline(){
addFrameScript(0, frame1, 2, frame3);
}
public function loading(_arg1):void{
Object(root).load_per.text = Math.floor(((info.bytesLoaded / info.bytesTotal) * 100));
if (info.bytesLoaded == info.bytesTotal){
stage.removeEventListener(Event.ENTER_FRAME, loading);
Object(root).loadend.play();
};
}
public function onHomeClick(_arg1:MouseEvent):void{
var _local2 = "https://nijie.info/members.php?id=279301";
var _local3:URLRequest = new URLRequest(_local2);
navigateToURL(_local3);
}
public function clickplus():void{
clickpoint.rotation = (clickpoint.rotation + tool1A[savedata.data.levelArray[0]][2]);
rotao = (rotao + tool1A[savedata.data.levelArray[0]][2]);
pointinfinam++;
pointinfo[pointinfinam] = new getpoint();
Object(root).getpointMC.addChild(pointinfo[pointinfinam]);
if (rotao > 360){
rotao = (rotao - 360);
savedata.data.clicknam = (savedata.data.clicknam + (tool1A[savedata.data.levelArray[0]][0] + tool3A[savedata.data.levelArray[2]][0]));
pointinfo[pointinfinam].gp.pt_txt.text = ("+BONUS!+ " + (tool1A[savedata.data.levelArray[0]][0] + tool3A[savedata.data.levelArray[2]][0]));
} else {
savedata.data.clicknam = (savedata.data.clicknam + tool1A[savedata.data.levelArray[0]][0]);
pointinfo[pointinfinam].gp.pt_txt.text = tool1A[savedata.data.levelArray[0]][0];
};
pointinfo[pointinfinam].x = (Math.round((Math.random() * 60)) - 30);
pointinfo[pointinfinam].y = (Math.round((Math.random() * 60)) - 150);
if (pointinfo[(pointinfinam + 1)] != undefined){
if ((pointinfinam + 1) == 31){
Object(root).getpointMC.removeChild(pointinfo[1]);
} else {
Object(root).getpointMC.removeChild(pointinfo[(pointinfinam + 1)]);
};
};
if (pointinfinam > 30){
pointinfinam = 0;
};
Object(root).point_txt.text = (savedata.data.clicknam + "pt");
}
public function ClickPlus(_arg1):void{
clickplus();
}
public function auto(_arg1):void{
if ((((timer == 0)) && ((savedata.data.levelArray[0] > 0)))){
clickplus();
Object(root).tool1.nextFrame();
};
Object(root).tool3.rotation = (Object(root).tool3.rotation - savedata.data.levelArray[2]);
if ((((timer == 30)) && ((savedata.data.levelArray[2] > 0)))){
clickpoint.rotation = (clickpoint.rotation + savedata.data.levelArray[2]);
rotao = (rotao + savedata.data.levelArray[2]);
if (rotao > 360){
pointinfinam++;
pointinfo[pointinfinam] = new getpoint();
rotao = (rotao - 360);
savedata.data.clicknam = (savedata.data.clicknam + tool3A[savedata.data.levelArray[2]][0]);
pointinfo[pointinfinam].gp.pt_txt.text = ("+BONUS!+ " + tool3A[savedata.data.levelArray[2]][0]);
Object(root).getpointMC.addChild(pointinfo[pointinfinam]);
pointinfo[pointinfinam].x = (Math.round((Math.random() * 60)) - 30);
pointinfo[pointinfinam].y = (Math.round((Math.random() * 60)) - 150);
if (pointinfo[(pointinfinam + 1)] != undefined){
if ((pointinfinam + 1) == 31){
Object(root).getpointMC.removeChild(pointinfo[1]);
} else {
Object(root).getpointMC.removeChild(pointinfo[(pointinfinam + 1)]);
};
};
if (pointinfinam > 30){
pointinfinam = 0;
};
Object(root).point_txt.text = (savedata.data.clicknam + "pt");
};
};
if ((((timer == 15)) && ((savedata.data.levelArray[1] > 0)))){
Object(root).tool2.nextFrame();
pointinfinam++;
pointinfo[pointinfinam] = new getpoint();
Object(root).getpointMC.addChild(pointinfo[pointinfinam]);
savedata.data.clicknam = (savedata.data.clicknam + tool2A[savedata.data.levelArray[1]][0]);
pointinfo[pointinfinam].gp.pt_txt.text = tool2A[savedata.data.levelArray[1]][0];
pointinfo[pointinfinam].x = (Math.round((Math.random() * 60)) - 30);
pointinfo[pointinfinam].y = (Math.round((Math.random() * 60)) - 150);
if (pointinfo[(pointinfinam + 1)] != undefined){
if ((pointinfinam + 1) == 31){
Object(root).getpointMC.removeChild(pointinfo[1]);
} else {
Object(root).getpointMC.removeChild(pointinfo[(pointinfinam + 1)]);
};
};
if (pointinfinam > 30){
pointinfinam = 0;
};
Object(root).point_txt.text = (savedata.data.clicknam + "pt");
};
if ((((timer == 45)) && ((savedata.data.levelArray[3] > 0)))){
Object(root).tool4.nextFrame();
bai = Math.round((Math.random() * baimax));
pointinfinam++;
pointinfo[pointinfinam] = new getpoint();
Object(root).getpointMC.addChild(pointinfo[pointinfinam]);
savedata.data.clicknam = (savedata.data.clicknam + (tool4A[savedata.data.levelArray[3]][0] * bai));
pointinfo[pointinfinam].gp.pt_txt.text = (tool4A[savedata.data.levelArray[3]][0] * bai);
pointinfo[pointinfinam].x = (Math.round((Math.random() * 60)) - 30);
pointinfo[pointinfinam].y = (Math.round((Math.random() * 60)) - 150);
if (pointinfo[(pointinfinam + 1)] != undefined){
if ((pointinfinam + 1) == 31){
Object(root).getpointMC.removeChild(pointinfo[1]);
} else {
Object(root).getpointMC.removeChild(pointinfo[(pointinfinam + 1)]);
};
};
if (pointinfinam > 30){
pointinfinam = 0;
};
Object(root).point_txt.text = (savedata.data.clicknam + "pt");
};
timer++;
if (timer > 60){
timer = 0;
};
}
public function toolUG1(_arg1):void{
if ((((savedata.data.clicknam >= nextpoint1)) && ((maxlevel > savedata.data.levelArray[0])))){
var _local2 = savedata.data.levelArray;
var _local3:int;
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
savedata.data.clicknam = (savedata.data.clicknam - nextpoint1);
nextpoint1 = tool1A[savedata.data.levelArray[0]][1];
Object(root).tool1_ugp.text = (nextpoint1 + "pt");
Object(root).tool1_txt.text = ("Lv:" + savedata.data.levelArray[0]);
Object(root).point_txt.text = (savedata.data.clicknam + "pt");
if (maxlevel == savedata.data.levelArray[0]){
Object(root).tool1_ugp.text = "Lv:MAX";
} else {
Object(root).tool1_ugp.text = (nextpoint1 + "pt");
};
};
}
public function toolUG2(_arg1):void{
if ((((savedata.data.clicknam >= nextpoint2)) && ((maxlevel > savedata.data.levelArray[1])))){
var _local2 = savedata.data.levelArray;
var _local3 = 1;
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
savedata.data.clicknam = (savedata.data.clicknam - nextpoint2);
nextpoint2 = tool2A[savedata.data.levelArray[1]][1];
Object(root).tool2_ugp.text = (nextpoint2 + "pt");
Object(root).tool2_txt.text = ("Lv:" + savedata.data.levelArray[1]);
Object(root).point_txt.text = (savedata.data.clicknam + "pt");
if (maxlevel == savedata.data.levelArray[1]){
Object(root).tool2_ugp.text = "Lv:MAX";
} else {
Object(root).tool2_ugp.text = (nextpoint2 + "pt");
};
};
}
public function toolUG3(_arg1):void{
if ((((savedata.data.clicknam >= nextpoint3)) && ((maxlevel > savedata.data.levelArray[2])))){
var _local2 = savedata.data.levelArray;
var _local3 = 2;
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
savedata.data.clicknam = (savedata.data.clicknam - nextpoint3);
nextpoint3 = tool3A[savedata.data.levelArray[2]][1];
Object(root).tool3_ugp.text = (nextpoint3 + "pt");
Object(root).tool3_txt.text = ("Lv:" + savedata.data.levelArray[2]);
Object(root).point_txt.text = (savedata.data.clicknam + "pt");
if (maxlevel == savedata.data.levelArray[2]){
Object(root).tool3_ugp.text = "Lv:MAX";
} else {
Object(root).tool3_ugp.text = (nextpoint3 + "pt");
};
};
}
public function toolUG4(_arg1):void{
if ((((savedata.data.clicknam >= nextpoint4)) && ((maxlevel > savedata.data.levelArray[3])))){
var _local2 = savedata.data.levelArray;
var _local3 = 3;
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
savedata.data.clicknam = (savedata.data.clicknam - nextpoint4);
nextpoint4 = tool4A[savedata.data.levelArray[3]][1];
Object(root).tool4_ugp.text = (nextpoint4 + "pt");
Object(root).tool4_txt.text = ("Lv:" + savedata.data.levelArray[3]);
Object(root).point_txt.text = (savedata.data.clicknam + "pt");
if (maxlevel == savedata.data.levelArray[3]){
Object(root).tool4_ugp.text = "Lv:MAX";
} else {
Object(root).tool4_ugp.text = (nextpoint4 + "pt");
};
};
}
public function dressup(_arg1, _arg2, _arg3){
if (_arg1 == 0){
dressInc[_arg1][_arg2] = new Aitem();
dressInc[_arg1][_arg2].gotoAndStop(_arg3[_arg2][2]);
Object(root).komiji.body.itemRay1.addChild(dressInc[_arg1][_arg2]);
} else {
switch (_arg3[_arg2][3]){
case 0:
dressInc[_arg1][_arg2] = new AdressP();
dressInc[_arg1][_arg2].gotoAndStop(_arg3[_arg2][2]);
Object(root).komiji.body.dressray0.addChild(dressInc[_arg1][_arg2]);
break;
case 1:
dressInc[_arg1][_arg2] = new AdressP();
dressInc[_arg1][_arg2].gotoAndStop(_arg3[_arg2][2]);
Object(root).komiji.body.dressray1.addChild(dressInc[_arg1][_arg2]);
break;
case 2:
dressInc[_arg1][_arg2] = new AdressP();
dressInc[_arg1][_arg2].gotoAndStop(_arg3[_arg2][2]);
Object(root).komiji.body.dressray2.addChild(dressInc[_arg1][_arg2]);
break;
case 3:
dressInc[_arg1][_arg2] = new AdressP();
dressInc[_arg1][_arg2].gotoAndStop(_arg3[_arg2][2]);
Object(root).komiji.body.dressray3.addChild(dressInc[_arg1][_arg2]);
break;
case 4:
dressInc[_arg1][_arg2] = new AdressP();
dressInc[_arg1][_arg2].gotoAndStop(_arg3[_arg2][2]);
Object(root).komiji.body.dressray4.addChild(dressInc[_arg1][_arg2]);
break;
};
};
}
public function itemlistup(_arg1, _arg2, _arg3, _arg4, _arg5):void{
separe[_arg2] = new sepa();
separe[_arg2].tex.text = _arg3;
separe[_arg2].y = _arg5;
menulit[_arg1].addChild(separe[_arg2]);
listX = 0;
listY = 0;
i = 0;
while (i < _arg4.length) {
itemlist[_arg2][i] = new shop_item();
itemlist[_arg2][i].x = (200 * listX);
itemlist[_arg2][i].y = (((80 * listY) + 30) + _arg5);
listX++;
if (listX == 2){
listX = 0;
listY++;
};
itemlist[_arg2][i].itemname.text = _arg4[i][0];
itemlist[_arg2][i].point.text = (("-" + _arg4[i][1]) + "pt");
itemlist[_arg2][i].btn.addEventListener(MouseEvent.CLICK, itemClick(_arg2, i, _arg4));
if (savedata.data.unlockitem[_arg2][i] != undefined){
itemlist[_arg2][i].locks.gotoAndStop(2);
itemlist[_arg2][i].checks.gotoAndStop(2);
itemlist[_arg2][i].point.text = "unlock!";
};
if (((!((select[_arg2][i] == undefined))) || ((select[_arg2][i] == 1)))){
itemlist[_arg2][i].checks.gotoAndStop(3);
};
menulit[_arg1].addChild(itemlist[_arg2][i]);
i++;
};
}
public function itemClick(_arg1, _arg2, _arg3):Function{
var ICblock = _arg1;
var ICnam = _arg2;
var ICarry = _arg3;
return (function (_arg1){
if (savedata.data.unlockitem[ICblock][ICnam] == undefined){
if (savedata.data.clicknam >= ICarry[ICnam][1]){
savedata.data.unlockitem[ICblock][ICnam] = 1;
itemlist[ICblock][ICnam].locks.gotoAndStop(2);
itemlist[ICblock][ICnam].checks.gotoAndStop(2);
itemlist[ICblock][ICnam].point.text = "unlock!";
savedata.data.clicknam = (savedata.data.clicknam - ICarry[ICnam][1]);
};
} else {
if ((((select[ICblock][ICnam] == undefined)) || ((select[ICblock][ICnam] == 0)))){
if (ICblock == 0){
switch (ICarry[ICnam][3]){
case 1:
dressInc[0][ICnam] = new Aitem();
dressInc[0][ICnam].gotoAndStop(ICarry[ICnam][2]);
Object(root).komiji.body.itemRay1.addChild(dressInc[0][ICnam]);
break;
default:
dressInc[0][ICnam] = new Aitem();
dressInc[0][ICnam].gotoAndStop(ICarry[ICnam][2]);
Object(root).komiji.body.itemRay0.addChild(dressInc[0][ICnam]);
};
} else {
if (ICblock == 1){
switch (ICarry[ICnam][3]){
case 0:
dressInc[1][ICnam] = new AdressP();
dressInc[1][ICnam].gotoAndStop(ICarry[ICnam][2]);
Object(root).komiji.body.dressray0.addChild(dressInc[1][ICnam]);
break;
case 1:
dressInc[1][ICnam] = new AdressP();
dressInc[1][ICnam].gotoAndStop(ICarry[ICnam][2]);
Object(root).komiji.body.dressray1.addChild(dressInc[1][ICnam]);
break;
case 2:
dressInc[1][ICnam] = new AdressP();
dressInc[1][ICnam].gotoAndStop(ICarry[ICnam][2]);
Object(root).komiji.body.dressray2.addChild(dressInc[1][ICnam]);
break;
case 3:
dressInc[1][ICnam] = new AdressP();
dressInc[1][ICnam].gotoAndStop(ICarry[ICnam][2]);
Object(root).komiji.body.dressray3.addChild(dressInc[1][ICnam]);
break;
case 4:
dressInc[1][ICnam] = new AdressP();
dressInc[1][ICnam].gotoAndStop(ICarry[ICnam][2]);
Object(root).komiji.body.dressray4.addChild(dressInc[1][ICnam]);
break;
};
} else {
if (ICblock == 2){
switch (ICarry[ICnam][2]){
case "hiright":
Object(root).komiji.body.eyes.Hright.visible = false;
break;
case "eline":
Object(root).komiji.body.eyes.sysline.visible = true;
break;
case "ehart":
Object(root).komiji.body.eyes.hart.visible = true;
break;
default:
Object(root).komiji.body.eyes.gotoAndStop(ICarry[ICnam][2]);
Object(root).komiji.body.eyes.Hright.gotoAndStop(ICarry[ICnam][2]);
Object(root).komiji.body.eyes.sysline.gotoAndStop(ICarry[ICnam][2]);
Object(root).komiji.body.eyes.hart.gotoAndStop(ICarry[ICnam][2]);
};
} else {
if (ICblock == 3){
Object(root).komiji.body.mouth.gotoAndStop(ICarry[ICnam][2]);
} else {
if (ICblock == 4){
switch (ICarry[ICnam][2]){
case "osage":
Object(root).komiji.body.osage.visible = true;
break;
case "long":
Object(root).komiji.body.kami.visible = true;
break;
case "osage2":
Object(root).komiji.body.osage2.visible = true;
break;
case "pony":
Object(root).komiji.body.pony.visible = true;
break;
};
} else {
if (ICblock == 5){
dressInc[5][ICnam] = new AtexP();
dressInc[5][ICnam].gotoAndStop(ICarry[ICnam][2]);
Object(root).komiji.body.moji.addChild(dressInc[5][ICnam]);
} else {
if (ICblock == 6){
Object(root).komiji.gotoAndPlay(ICarry[ICnam][2]);
};
};
};
};
};
};
};
select[ICblock][ICnam] = 1;
itemlist[ICblock][ICnam].checks.gotoAndStop(3);
} else {
if (ICblock == 0){
switch (ICarry[ICnam][3]){
case 1:
Object(root).komiji.body.itemRay1.removeChild(dressInc[0][ICnam]);
break;
default:
Object(root).komiji.body.itemRay0.removeChild(dressInc[0][ICnam]);
};
select[ICblock][ICnam] = 0;
itemlist[ICblock][ICnam].checks.gotoAndStop(2);
} else {
if (ICblock == 1){
var _local2 = select[ICblock];
var _local3 = ICnam;
var _local4 = (_local2[_local3] + 1);
_local2[_local3] = _local4;
if (select[ICblock][ICnam] == 2){
dressInc[1][ICnam].nextFrame();
} else {
switch (ICarry[ICnam][3]){
case 0:
Object(root).komiji.body.dressray0.removeChild(dressInc[1][ICnam]);
break;
case 1:
Object(root).komiji.body.dressray1.removeChild(dressInc[1][ICnam]);
break;
case 2:
Object(root).komiji.body.dressray2.removeChild(dressInc[1][ICnam]);
break;
case 3:
Object(root).komiji.body.dressray3.removeChild(dressInc[1][ICnam]);
break;
case 4:
Object(root).komiji.body.dressray4.removeChild(dressInc[1][ICnam]);
break;
};
select[ICblock][ICnam] = 0;
itemlist[ICblock][ICnam].checks.gotoAndStop(2);
};
} else {
if (ICblock == 2){
select[ICblock][ICnam] = 0;
itemlist[ICblock][ICnam].checks.gotoAndStop(2);
switch (ICarry[ICnam][2]){
case "hiright":
Object(root).komiji.body.eyes.Hright.visible = true;
break;
case "eline":
Object(root).komiji.body.eyes.sysline.visible = false;
break;
case "ehart":
Object(root).komiji.body.eyes.hart.visible = false;
break;
default:
Object(root).komiji.body.eyes.gotoAndStop(ICarry[ICnam][2]);
Object(root).komiji.body.eyes.Hright.gotoAndStop(ICarry[ICnam][2]);
Object(root).komiji.body.eyes.sysline.gotoAndStop(ICarry[ICnam][2]);
Object(root).komiji.body.eyes.hart.gotoAndStop(ICarry[ICnam][2]);
};
} else {
if (ICblock == 3){
select[ICblock][ICnam] = 0;
itemlist[ICblock][ICnam].checks.gotoAndStop(2);
Object(root).komiji.body.mouth.gotoAndStop(ICarry[ICnam][2]);
} else {
if (ICblock == 4){
select[ICblock][ICnam] = 0;
itemlist[ICblock][ICnam].checks.gotoAndStop(2);
switch (ICarry[ICnam][2]){
case "osage":
Object(root).komiji.body.osage.visible = false;
break;
case "long":
Object(root).komiji.body.kami.visible = false;
break;
case "osage2":
Object(root).komiji.body.osage2.visible = false;
break;
case "pony":
Object(root).komiji.body.pony.visible = false;
break;
};
} else {
if (ICblock == 5){
select[ICblock][ICnam] = 0;
itemlist[ICblock][ICnam].checks.gotoAndStop(2);
Object(root).komiji.body.moji.removeChild(dressInc[5][ICnam]);
} else {
if (ICblock == 6){
select[ICblock][ICnam] = 0;
itemlist[ICblock][ICnam].checks.gotoAndStop(2);
Object(root).komiji.gotoAndPlay(ICarry[ICnam][2]);
};
};
};
};
};
};
};
};
};
});
}
public function shopOpen(_arg1):void{
Object(root).menu_ber_mc.visible = true;
Object(root).menu_ber_mc.menu_list.refreshPane();
Object(root).menu_ber_mc.menu_list.update();
}
public function shopOpen0(_arg1):void{
Object(root).menu_ber_mc.menu_list.source = menulit[0];
Object(root).menu_ber_mc.menu_list.refreshPane();
Object(root).menu_ber_mc.menu_list.update();
}
public function shopOpen1(_arg1):void{
Object(root).menu_ber_mc.menu_list.source = menulit[1];
Object(root).menu_ber_mc.menu_list.refreshPane();
Object(root).menu_ber_mc.menu_list.update();
}
public function shopOpen2(_arg1):void{
Object(root).menu_ber_mc.menu_list.source = menulit[2];
Object(root).menu_ber_mc.menu_list.refreshPane();
Object(root).menu_ber_mc.menu_list.update();
}
public function shopClose(_arg1):void{
Object(root).menu_ber_mc.visible = false;
}
function frame1(){
stop();
info = stage.loaderInfo;
stage.addEventListener(Event.ENTER_FRAME, loading);
}
function frame3(){
tool1A = new Array([1, 10, 0], [2, 150, 0], [3, 300, 1], [4, 500, 1], [5, 800, 2], [7, 1500, 2], [9, 2000, 2], [10, 2500, 3], [12, 3500, 3], [14, 4500, 3], [16, 5500, 3], [18, 6000, 4], [20, 10000, 4], [25, 20000, 4], [30, 28000, 4], [35, 35000, 4], [38, 42000, 4], [40, 55000, 5], [42, 60000, 5], [45, 70000, 5], [50, 70000, 6]);
tool2A = new Array([0, 30], [3, 200], [10, 500], [20, 1000], [30, 1500], [40, 2500], [50, 4000], [60, 7000], [70, 8000], [80, 9000], [90, 10000], [100, 15000], [110, 22000], [120, 30000], [130, 35000], [140, 47000], [150, 59000], [160, 74000], [170, 80000], [180, 100000], [200, 100000]);
tool3A = new Array([100, 50], [300, 250], [600, 400], [900, 800], [1200, 1500], [1500, 2500], [2000, 3500], [2300, 4500], [2600, 6000], [3000, 8000], [3500, 10000], [4000, 15000], [4500, 20000], [5000, 30000], [6000, 40000], [6500, 50000], [7000, 60000], [7500, 70000], [8000, 100000], [9000, 130000], [10000, 130000]);
tool4A = new Array([0, 100], [20, 300], [50, 600], [70, 1300], [90, 2500], [100, 3000], [110, 4000], [140, 5000], [180, 7000], [200, 10000], [230, 15000], [250, 20000], [280, 25000], [300, 30000], [350, 40000], [380, 50000], [400, 75000], [420, 90000], [450, 120000], [480, 150000], [500, 150000]);
i = 0;
savedata = SharedObject.getLocal("comiji_clicker");
if (savedata){
if (savedata.data.clicknam == undefined){
savedata.data.clicknam = 0;
savedata.data.levelArray = new Array(0, 0, 0, 0);
savedata.data.unlockitem = new Array();
i = 0;
while (i < 7) {
savedata.data.unlockitem[i] = new Array();
i++;
};
};
};
stop();
Object(root).tool1_txt.text = ("Lv:" + savedata.data.levelArray[0]);
Object(root).tool2_txt.text = ("Lv:" + savedata.data.levelArray[1]);
Object(root).tool3_txt.text = ("Lv:" + savedata.data.levelArray[2]);
Object(root).tool4_txt.text = ("Lv:" + savedata.data.levelArray[3]);
Object(root).point_txt.text = (savedata.data.clicknam + "pt");
Object(root).menu_ber_mc.visible = false;
Object(root).mylink.addEventListener(MouseEvent.CLICK, onHomeClick);
pointinfo = new Array();
pointinfinam = 0;
onepoint = (1 + (savedata.data.levelArray[0] * 2));
rota = savedata.data.levelArray[2];
rotao = 0;
Object(root).clickpoint.addEventListener(MouseEvent.CLICK, ClickPlus);
timer = 0;
bai = 0;
baimax = 3;
stage.addEventListener(Event.ENTER_FRAME, auto);
maxlevel = 20;
nextpoint1 = tool1A[savedata.data.levelArray[0]][1];
if (maxlevel == savedata.data.levelArray[0]){
Object(root).tool1_ugp.text = "Lv:MAX";
} else {
Object(root).tool1_ugp.text = (nextpoint1 + "pt");
};
Object(root).tool1_UG.addEventListener(MouseEvent.CLICK, toolUG1);
nextpoint2 = tool2A[savedata.data.levelArray[1]][1];
if (maxlevel == savedata.data.levelArray[1]){
Object(root).tool2_ugp.text = "Lv:MAX";
} else {
Object(root).tool2_ugp.text = (nextpoint2 + "pt");
};
Object(root).tool2_UG.addEventListener(MouseEvent.CLICK, toolUG2);
nextpoint3 = tool3A[savedata.data.levelArray[2]][1];
if (maxlevel == savedata.data.levelArray[2]){
Object(root).tool3_ugp.text = "Lv:MAX";
} else {
Object(root).tool3_ugp.text = (nextpoint3 + "pt");
};
Object(root).tool3_UG.addEventListener(MouseEvent.CLICK, toolUG3);
nextpoint4 = tool4A[savedata.data.levelArray[3]][1];
if (maxlevel == savedata.data.levelArray[3]){
Object(root).tool4_ugp.text = "Lv:MAX";
} else {
Object(root).tool4_ugp.text = (nextpoint4 + "pt");
};
Object(root).tool4_UG.addEventListener(MouseEvent.CLICK, toolUG4);
select = new Array();
i = 0;
while (i < 7) {
select[i] = new Array();
i++;
};
AItem = new Array(["メガネ", 100, 2, 1], ["よだれ", 10000, 30, 1], ["泣くA", 20000, 31, 1], ["泣くB", 20000, 32, 1], ["赤らめA", 20000, 33, 1], ["赤らめB", 20000, 29, 1], ["首輪", 20000, 12, 0], ["リード", 20000, 13, 1], ["汗", 30000, 26, 1], ["もわもわ", 30000, 10, 1], ["くわえゴム", 30000, 9, 1], ["使用済ゴム", 50000, 11, 1], ["使用済ゴム胸", 50000, 20, 1], ["使用済ゴム股", 80000, 21, 0], ["ぶっかけ頭", 50000, 3, 1], ["ぶっかけ胸", 50000, 4, 1], ["ぶっかけ腹", 50000, 5, 1], ["毛", 50000, 22, 0], ["搾乳機", 80000, 25, 1], ["ピアス", 80000, 23, 0], ["らくがきA", 80000, 27, 0], ["らくがきB", 80000, 28, 0], ["股濡れ", 90000, 6, 0], ["中出し", 110000, 7, 0], ["漏らし", 110000, 8, 0], ["ローター左", 120000, 15, 0], ["ローター右", 120000, 16, 0], ["バイブ浅", 150000, 24, 0], ["バイブ深", 150000, 14, 0], ["触手A", 150000, 18, 0], ["触手B", 170000, 17, 0], ["触手C", 200000, 19, 0], ["スイッチ", 50000, 39, 1], ["ピンクコード", 80000, 38, 0], ["なふだ", 80000, 37, 1], ["アイマスク", 100000, 41, 1], ["ビクビク", 100000, 34, 1], ["処女血", 120000, 36, 0], ["垂れローター", 130000, 40, 0], ["亀甲縛り", 200000, 35, 0], ["イヌミミ", 100000, 45, 0], ["いぬしっぽ", 150000, 44, 0], ["ネコミミ", 150000, 42, 0], ["猫しっぽ", 250000, 43, 0], ["バニー頭", 100000, 46, 0], ["バニーしっぽ", 150000, 47, 0], ["カフス", 110000, 48, 0], ["つけエリ", 120000, 49, 0], ["プレートA", 60000, 53, 1], ["プレートB", 60000, 54, 1], ["プレートC", 60000, 55, 1], ["手首拘束", 80000, 56, 0], ["ローター左:貼", 90000, 58, 0], ["汁垂れ", 100000, 59, 0], ["尿道ブジー", 120000, 52, 0], ["クリローター", 120000, 57, 0], ["産卵", 200000, 50, 0], ["ピストン", 250000, 51, 0]);
Adress = new Array(["ブラ", 300000, "bura", 0], ["パンツ", 500000, "pant", 0], ["タイツ", 200000, "tait", 1], ["カーディガン", 220000, "ka-de", 4], ["セーター", 200000, "se-ta", 3], ["長スカート", 230000, "scart", 2], ["ブレザー", 250000, "bure", 4], ["シャツ", 250000, "syat", 1], ["紺スカート", 250000, "sscart", 2], ["子供服上", 250000, "Fue", 3], ["子供服下", 250000, "Fscart", 2], ["ニーソ", 150000, "ni-so", 1], ["旧スク水", 800000, "sukumizu", 0], ["バニー", 500000, "banny", 2], ["タートルネック", 200000, "reino", 3]);
Aeye = new Array(["目普通", 0, 1], ["目閉じ", 10000, 2], ["半目", 20000, 3], ["目開き", 80000, 4], ["ハイライト無し", 100000, "hiright"], ["上向き", 50000, 5], ["目に線", 80000, "eline"], ["ハート", 150000, "ehart"]);
Amouth = new Array(["口閉じ", 0, 1], ["口えー", 10000, 2], ["口ぽかん", 10000, 3], ["口へ", 10000, 4], ["口舌だし", 50000, 5], ["さるぐつわ", 80000, 6], ["白い液体", 120000, 7], ["---", 0, 1]);
Ahere = new Array(["おさげ", 50000, "osage"], ["ロング", 120000, "long"], ["みつあみ", 100000, "osage2"], ["ポニーテール", 120000, "pony"]);
Atex = new Array(["いやっ!!", 10000, 7], ["やめてっ!!", 10000, 5], ["ううっ…", 15000, 4], ["んっ", 50000, 9], ["んんっ!", 50000, 6], ["あっ!", 80000, 8], ["はあっ", 80000, 2], ["ヴヴヴ", 100000, 3], ["ズリュ", 100000, 11], ["ヌチャ", 100000, 10], ["ミチミチ", 110000, 13], ["ビクッビクッ", 110000, 14], ["ズブズブッ", 100000, 15], ["ーーー!!", 80000, 17], ["飛ぶハート", 100000, 18], ["ビュビュッ", 110000, 16], ["ブチュッ", 120000, 12], ["ローター透視", 150000, 19], ["ローター透視X2", 200000, 20], ["---", 0, 1]);
Amove = new Array(["揺れ", 0, "yure"], ["揺れ中", 100000, "yure2"], ["揺れ小刻み", 130000, "yure3"], ["ビクンビクン", 150000, "yure4"], ["上下", 80000, "yure5"], ["上下2", 80000, "yure6"]);
Object(root).komiji.body.kami.visible = false;
Object(root).komiji.body.eyes.sysline.visible = false;
Object(root).komiji.body.eyes.hart.visible = false;
Object(root).komiji.body.osage2.visible = false;
Object(root).komiji.body.pony.visible = false;
Object(root).komiji.body.Fkami.visible = false;
dressInc = new Array();
dressInc[0] = new Array();
dressInc[1] = new Array();
dressInc[5] = new Array();
select[0][0] = 1;
select[1][0] = 1;
select[1][1] = 1;
select[1][2] = 1;
select[1][3] = 1;
select[1][4] = 1;
select[1][5] = 1;
select[2][0] = 1;
select[3][0] = 1;
select[4][0] = 1;
select[6][0] = 1;
dressup(0, 0, AItem);
dressup(1, 0, Adress);
dressup(1, 1, Adress);
dressup(1, 2, Adress);
dressup(1, 3, Adress);
dressup(1, 4, Adress);
dressup(1, 5, Adress);
menulit = new Array();
i = 0;
while (i < 3) {
menulit[i] = new item_menus();
i++;
};
Object(root).menu_ber_mc.menu_list.source = menulit[0];
itemlist = new Array();
i = 0;
while (i < 7) {
itemlist[i] = new Array();
i++;
};
separe = new Array();
listX = 0;
listY = 0;
itemlistup(0, 0, "アイテム", AItem, 0);
itemlistup(1, 1, "服", Adress, 0);
plusY = 0;
itemlistup(2, 2, "目", Aeye, 0);
plusY = ((80 * listY) + 30);
itemlistup(2, 3, "口", Amouth, plusY);
plusY = ((plusY + (80 * listY)) + 30);
itemlistup(2, 4, "髪", Ahere, plusY);
plusY = ((plusY + (80 * listY)) + 30);
itemlistup(2, 5, "テキスト", Atex, plusY);
plusY = ((plusY + (80 * listY)) + 30);
itemlistup(2, 6, "動き", Amove, plusY);
Object(root).shop_btn.addEventListener(MouseEvent.CLICK, shopOpen);
Object(root).menu_ber_mc.shop1_btn.addEventListener(MouseEvent.CLICK, shopOpen0);
Object(root).menu_ber_mc.shop2_btn.addEventListener(MouseEvent.CLICK, shopOpen1);
Object(root).menu_ber_mc.shop3_btn.addEventListener(MouseEvent.CLICK, shopOpen2);
Object(root).menu_ber_mc.close_btn.addEventListener(MouseEvent.CLICK, shopClose);
presskey = "";
stage.addEventListener(KeyboardEvent.KEY_DOWN, function (_arg1:KeyboardEvent):void{
if (_arg1.keyCode == 32){
if (presskey == "70-85-78-79-73-83-65-78-"){
Object(root).komiji.body.bodytype.gotoAndStop(2);
Object(root).komiji.body.Fkami.visible = true;
presskey = "";
} else {
Object(root).komiji.body.bodytype.gotoAndStop(1);
Object(root).komiji.body.Fkami.visible = false;
presskey = "";
};
} else {
presskey = (presskey + (_arg1.keyCode + "-"));
};
});
}
}
}//package _fla
Section 8
//me5A_31 (_fla.me5A_31)
package _fla {
import flash.display.*;
public dynamic class me5A_31 extends MovieClip {
public var hart:MovieClip;
public function me5A_31(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 9
//movie_1 (_fla.movie_1)
package _fla {
import flash.display.*;
import flash.events.*;
import flash.system.*;
import flash.utils.*;
import flash.net.*;
import flash.text.*;
import flash.geom.*;
import flash.ui.*;
import flash.errors.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.external.*;
import flash.filters.*;
import flash.media.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.xml.*;
public dynamic class movie_1 extends MovieClip {
public function movie_1(){
addFrameScript(0, frame1, 20, frame21);
}
function frame1(){
stop();
}
function frame21(){
Object(root).gotoAndStop("main");
}
}
}//package _fla
Section 10
//Timeline_21 (_fla.Timeline_21)
package _fla {
import flash.display.*;
public dynamic class Timeline_21 extends MovieClip {
public var Hright:MovieClip;
public var sysline:MovieClip;
public var hart:MovieClip;
public function Timeline_21(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 11
//Timeline_6 (_fla.Timeline_6)
package _fla {
import flash.display.*;
public dynamic class Timeline_6 extends MovieClip {
public function Timeline_6(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package _fla
Section 12
//tool1_90 (_fla.tool1_90)
package _fla {
import flash.display.*;
public dynamic class tool1_90 extends MovieClip {
public function tool1_90(){
addFrameScript(0, frame1, 2, frame3);
}
function frame1(){
stop();
}
function frame3(){
gotoAndStop(1);
}
}
}//package _fla
Section 13
//tool2_91 (_fla.tool2_91)
package _fla {
import flash.display.*;
public dynamic class tool2_91 extends MovieClip {
public function tool2_91(){
addFrameScript(0, frame1, 2, frame3);
}
function frame1(){
stop();
}
function frame3(){
gotoAndStop(1);
}
}
}//package _fla
Section 14
//tool4_93 (_fla.tool4_93)
package _fla {
import flash.display.*;
public dynamic class tool4_93 extends MovieClip {
public function tool4_93(){
addFrameScript(0, frame1, 2, frame3);
}
function frame1(){
stop();
}
function frame3(){
gotoAndStop(1);
}
}
}//package _fla
Section 15
//BaseScrollPane (fl.containers.BaseScrollPane)
package fl.containers {
import fl.controls.*;
import flash.display.*;
import fl.core.*;
import flash.events.*;
import fl.events.*;
import flash.geom.*;
public class BaseScrollPane extends UIComponent {
protected var _verticalScrollBar:ScrollBar;
protected var _horizontalScrollBar:ScrollBar;
protected var contentScrollRect:Rectangle;
protected var disabledOverlay:Shape;
protected var background:DisplayObject;
protected var contentWidth:Number;// = 0
protected var contentHeight:Number;// = 0
protected var _horizontalScrollPolicy:String;
protected var _verticalScrollPolicy:String;
protected var contentPadding:Number;// = 0
protected var availableWidth:Number;
protected var availableHeight:Number;
protected var vOffset:Number;// = 0
protected var vScrollBar:Boolean;
protected var hScrollBar:Boolean;
protected var _maxHorizontalScrollPosition:Number;// = 0
protected var _horizontalPageScrollSize:Number;// = 0
protected var _verticalPageScrollSize:Number;// = 0
protected var defaultLineScrollSize:Number;// = 4
protected var useFixedHorizontalScrolling:Boolean;// = false
protected var _useBitmpScrolling:Boolean;// = false
protected static const SCROLL_BAR_STYLES:Object = {upArrowDisabledSkin:"upArrowDisabledSkin", upArrowDownSkin:"upArrowDownSkin", upArrowOverSkin:"upArrowOverSkin", upArrowUpSkin:"upArrowUpSkin", downArrowDisabledSkin:"downArrowDisabledSkin", downArrowDownSkin:"downArrowDownSkin", downArrowOverSkin:"downArrowOverSkin", downArrowUpSkin:"downArrowUpSkin", thumbDisabledSkin:"thumbDisabledSkin", thumbDownSkin:"thumbDownSkin", thumbOverSkin:"thumbOverSkin", thumbUpSkin:"thumbUpSkin", thumbIcon:"thumbIcon", trackDisabledSkin:"trackDisabledSkin", trackDownSkin:"trackDownSkin", trackOverSkin:"trackOverSkin", trackUpSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"};
private static var defaultStyles:Object = {repeatDelay:500, repeatInterval:35, skin:"ScrollPane_upSkin", contentPadding:0, disabledAlpha:0.5};
override public function set enabled(_arg1:Boolean):void{
if (enabled == _arg1){
return;
};
_verticalScrollBar.enabled = _arg1;
_horizontalScrollBar.enabled = _arg1;
super.enabled = _arg1;
}
public function get horizontalScrollPolicy():String{
return (_horizontalScrollPolicy);
}
public function set horizontalScrollPolicy(_arg1:String):void{
_horizontalScrollPolicy = _arg1;
invalidate(InvalidationType.SIZE);
}
public function get verticalScrollPolicy():String{
return (_verticalScrollPolicy);
}
public function set verticalScrollPolicy(_arg1:String):void{
_verticalScrollPolicy = _arg1;
invalidate(InvalidationType.SIZE);
}
public function get horizontalLineScrollSize():Number{
return (_horizontalScrollBar.lineScrollSize);
}
public function set horizontalLineScrollSize(_arg1:Number):void{
_horizontalScrollBar.lineScrollSize = _arg1;
}
public function get verticalLineScrollSize():Number{
return (_verticalScrollBar.lineScrollSize);
}
public function set verticalLineScrollSize(_arg1:Number):void{
_verticalScrollBar.lineScrollSize = _arg1;
}
public function get horizontalScrollPosition():Number{
return (_horizontalScrollBar.scrollPosition);
}
public function set horizontalScrollPosition(_arg1:Number):void{
drawNow();
_horizontalScrollBar.scrollPosition = _arg1;
setHorizontalScrollPosition(_horizontalScrollBar.scrollPosition, false);
}
public function get verticalScrollPosition():Number{
return (_verticalScrollBar.scrollPosition);
}
public function set verticalScrollPosition(_arg1:Number):void{
drawNow();
_verticalScrollBar.scrollPosition = _arg1;
setVerticalScrollPosition(_verticalScrollBar.scrollPosition, false);
}
public function get maxHorizontalScrollPosition():Number{
drawNow();
return (Math.max(0, (contentWidth - availableWidth)));
}
public function get maxVerticalScrollPosition():Number{
drawNow();
return (Math.max(0, (contentHeight - availableHeight)));
}
public function get useBitmapScrolling():Boolean{
return (_useBitmpScrolling);
}
public function set useBitmapScrolling(_arg1:Boolean):void{
_useBitmpScrolling = _arg1;
invalidate(InvalidationType.STATE);
}
public function get horizontalPageScrollSize():Number{
if (isNaN(availableWidth)){
drawNow();
};
return (((((_horizontalPageScrollSize == 0)) && (!(isNaN(availableWidth))))) ? availableWidth : _horizontalPageScrollSize);
}
public function set horizontalPageScrollSize(_arg1:Number):void{
_horizontalPageScrollSize = _arg1;
invalidate(InvalidationType.SIZE);
}
public function get verticalPageScrollSize():Number{
if (isNaN(availableHeight)){
drawNow();
};
return (((((_verticalPageScrollSize == 0)) && (!(isNaN(availableHeight))))) ? availableHeight : _verticalPageScrollSize);
}
public function set verticalPageScrollSize(_arg1:Number):void{
_verticalPageScrollSize = _arg1;
invalidate(InvalidationType.SIZE);
}
public function get horizontalScrollBar():ScrollBar{
return (_horizontalScrollBar);
}
public function get verticalScrollBar():ScrollBar{
return (_verticalScrollBar);
}
override protected function configUI():void{
super.configUI();
contentScrollRect = new Rectangle(0, 0, 85, 85);
_verticalScrollBar = new ScrollBar();
_verticalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true);
_verticalScrollBar.visible = false;
_verticalScrollBar.lineScrollSize = defaultLineScrollSize;
addChild(_verticalScrollBar);
copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES);
_horizontalScrollBar = new ScrollBar();
_horizontalScrollBar.direction = ScrollBarDirection.HORIZONTAL;
_horizontalScrollBar.addEventListener(ScrollEvent.SCROLL, handleScroll, false, 0, true);
_horizontalScrollBar.visible = false;
_horizontalScrollBar.lineScrollSize = defaultLineScrollSize;
addChild(_horizontalScrollBar);
copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES);
disabledOverlay = new Shape();
var _local1:Graphics = disabledOverlay.graphics;
_local1.beginFill(0xFFFFFF);
_local1.drawRect(0, 0, width, height);
_local1.endFill();
addEventListener(MouseEvent.MOUSE_WHEEL, handleWheel, false, 0, true);
}
protected function setContentSize(_arg1:Number, _arg2:Number):void{
if ((((((contentWidth == _arg1)) || (useFixedHorizontalScrolling))) && ((contentHeight == _arg2)))){
return;
};
contentWidth = _arg1;
contentHeight = _arg2;
invalidate(InvalidationType.SIZE);
}
protected function handleScroll(_arg1:ScrollEvent):void{
if (_arg1.target == _verticalScrollBar){
setVerticalScrollPosition(_arg1.position);
} else {
setHorizontalScrollPosition(_arg1.position);
};
}
protected function handleWheel(_arg1:MouseEvent):void{
if (((((!(enabled)) || (!(_verticalScrollBar.visible)))) || ((contentHeight <= availableHeight)))){
return;
};
_verticalScrollBar.scrollPosition = (_verticalScrollBar.scrollPosition - (_arg1.delta * verticalLineScrollSize));
setVerticalScrollPosition(_verticalScrollBar.scrollPosition);
dispatchEvent(new ScrollEvent(ScrollBarDirection.VERTICAL, _arg1.delta, horizontalScrollPosition));
}
protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
}
protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
}
override protected function draw():void{
if (isInvalid(InvalidationType.STYLES)){
setStyles();
drawBackground();
if (contentPadding != getStyleValue("contentPadding")){
invalidate(InvalidationType.SIZE, false);
};
};
if (isInvalid(InvalidationType.SIZE, InvalidationType.STATE)){
drawLayout();
};
updateChildren();
super.draw();
}
protected function setStyles():void{
copyStylesToChild(_verticalScrollBar, SCROLL_BAR_STYLES);
copyStylesToChild(_horizontalScrollBar, SCROLL_BAR_STYLES);
}
protected function drawBackground():void{
var _local1:DisplayObject = background;
background = getDisplayObjectInstance(getStyleValue("skin"));
background.width = width;
background.height = height;
addChildAt(background, 0);
if (((!((_local1 == null))) && (!((_local1 == background))))){
removeChild(_local1);
};
}
protected function drawLayout():void{
calculateAvailableSize();
calculateContentWidth();
background.width = width;
background.height = height;
if (vScrollBar){
_verticalScrollBar.visible = true;
_verticalScrollBar.x = ((width - ScrollBar.WIDTH) - contentPadding);
_verticalScrollBar.y = contentPadding;
_verticalScrollBar.height = availableHeight;
} else {
_verticalScrollBar.visible = false;
};
_verticalScrollBar.setScrollProperties(availableHeight, 0, (contentHeight - availableHeight), verticalPageScrollSize);
setVerticalScrollPosition(_verticalScrollBar.scrollPosition, false);
if (hScrollBar){
_horizontalScrollBar.visible = true;
_horizontalScrollBar.x = contentPadding;
_horizontalScrollBar.y = ((height - ScrollBar.WIDTH) - contentPadding);
_horizontalScrollBar.width = availableWidth;
} else {
_horizontalScrollBar.visible = false;
};
_horizontalScrollBar.setScrollProperties(availableWidth, 0, (useFixedHorizontalScrolling) ? _maxHorizontalScrollPosition : (contentWidth - availableWidth), horizontalPageScrollSize);
setHorizontalScrollPosition(_horizontalScrollBar.scrollPosition, false);
drawDisabledOverlay();
}
protected function drawDisabledOverlay():void{
if (enabled){
if (contains(disabledOverlay)){
removeChild(disabledOverlay);
};
} else {
disabledOverlay.x = (disabledOverlay.y = contentPadding);
disabledOverlay.width = availableWidth;
disabledOverlay.height = availableHeight;
disabledOverlay.alpha = (getStyleValue("disabledAlpha") as Number);
addChild(disabledOverlay);
};
}
protected function calculateAvailableSize():void{
var _local1:Number = ScrollBar.WIDTH;
var _local2:Number = (contentPadding = Number(getStyleValue("contentPadding")));
var _local3:Number = ((height - (2 * _local2)) - vOffset);
vScrollBar = (((_verticalScrollPolicy == ScrollPolicy.ON)) || ((((_verticalScrollPolicy == ScrollPolicy.AUTO)) && ((contentHeight > _local3)))));
var _local4:Number = ((width - (vScrollBar) ? _local1 : 0) - (2 * _local2));
var _local5:Number = (useFixedHorizontalScrolling) ? _maxHorizontalScrollPosition : (contentWidth - _local4);
hScrollBar = (((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_local5 > 0)))));
if (hScrollBar){
_local3 = (_local3 - _local1);
};
if (((((((hScrollBar) && (!(vScrollBar)))) && ((_verticalScrollPolicy == ScrollPolicy.AUTO)))) && ((contentHeight > _local3)))){
vScrollBar = true;
_local4 = (_local4 - _local1);
};
availableHeight = (_local3 + vOffset);
availableWidth = _local4;
}
protected function calculateContentWidth():void{
}
protected function updateChildren():void{
_verticalScrollBar.enabled = (_horizontalScrollBar.enabled = enabled);
_verticalScrollBar.drawNow();
_horizontalScrollBar.drawNow();
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, ScrollBar.getStyleDefinition()));
}
}
}//package fl.containers
Section 16
//ScrollPane (fl.containers.ScrollPane)
package fl.containers {
import fl.controls.*;
import flash.display.*;
import fl.core.*;
import flash.events.*;
import fl.display.*;
import flash.system.*;
import fl.managers.*;
import flash.net.*;
import fl.events.*;
import flash.ui.*;
public class ScrollPane extends BaseScrollPane implements IFocusManagerComponent {
protected var _source:Object;// = ""
protected var _scrollDrag:Boolean;// = false
protected var contentClip:Sprite;
protected var loader:ProLoader;
protected var xOffset:Number;
protected var yOffset:Number;
protected var scrollDragHPos:Number;
protected var scrollDragVPos:Number;
protected var currentContent:Object;
private static var defaultStyles:Object = {upSkin:"ScrollPane_upSkin", disabledSkin:"ScrollPane_disabledSkin", focusRectSkin:null, focusRectPadding:null, contentPadding:0};
public function get scrollDrag():Boolean{
return (_scrollDrag);
}
public function set scrollDrag(_arg1:Boolean):void{
_scrollDrag = _arg1;
invalidate(InvalidationType.STATE);
}
public function get percentLoaded():Number{
if (loader != null){
return (Math.round(((bytesLoaded / bytesTotal) * 100)));
};
return (0);
}
public function get bytesLoaded():Number{
return (((((loader == null)) || ((loader.contentLoaderInfo == null)))) ? 0 : loader.contentLoaderInfo.bytesLoaded);
}
public function get bytesTotal():Number{
return (((((loader == null)) || ((loader.contentLoaderInfo == null)))) ? 0 : loader.contentLoaderInfo.bytesTotal);
}
public function refreshPane():void{
if ((_source is URLRequest)){
_source = _source.url;
};
source = _source;
}
public function update():void{
var _local1:DisplayObject = contentClip.getChildAt(0);
setContentSize(_local1.width, _local1.height);
}
public function get content():DisplayObject{
var _local1:Object = currentContent;
if ((_local1 is URLRequest)){
_local1 = loader.content;
};
return ((_local1 as DisplayObject));
}
public function get source():Object{
return (_source);
}
public function set source(_arg1:Object):void{
var _local2:*;
clearContent();
if (isLivePreview){
return;
};
_source = _arg1;
if ((((_source == "")) || ((_source == null)))){
return;
};
currentContent = getDisplayObjectInstance(_arg1);
if (currentContent != null){
_local2 = contentClip.addChild((currentContent as DisplayObject));
dispatchEvent(new Event(Event.INIT));
update();
} else {
load(new URLRequest(_source.toString()));
};
}
public function load(_arg1:URLRequest, _arg2:LoaderContext=null):void{
if (_arg2 == null){
_arg2 = new LoaderContext(false, ApplicationDomain.currentDomain);
};
clearContent();
initLoader();
currentContent = (_source = _arg1);
loader.load(_arg1, _arg2);
}
override protected function setVerticalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
var _local3:* = contentClip.scrollRect;
_local3.y = _arg1;
contentClip.scrollRect = _local3;
}
override protected function setHorizontalScrollPosition(_arg1:Number, _arg2:Boolean=false):void{
var _local3:* = contentClip.scrollRect;
_local3.x = _arg1;
contentClip.scrollRect = _local3;
}
override protected function drawLayout():void{
super.drawLayout();
contentScrollRect = contentClip.scrollRect;
contentScrollRect.width = availableWidth;
contentScrollRect.height = availableHeight;
contentClip.cacheAsBitmap = useBitmapScrolling;
contentClip.scrollRect = contentScrollRect;
contentClip.x = (contentClip.y = contentPadding);
}
protected function onContentLoad(_arg1:Event):void{
update();
var _local2:* = calculateAvailableHeight();
calculateAvailableSize();
horizontalScrollBar.setScrollProperties(availableWidth, 0, (useFixedHorizontalScrolling) ? _maxHorizontalScrollPosition : (contentWidth - availableWidth), availableWidth);
verticalScrollBar.setScrollProperties(_local2, 0, (contentHeight - _local2), _local2);
passEvent(_arg1);
}
protected function passEvent(_arg1:Event):void{
dispatchEvent(_arg1);
}
protected function initLoader():void{
loader = new ProLoader();
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, handleError, false, 0, true);
loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, handleError, false, 0, true);
loader.contentLoaderInfo.addEventListener(Event.OPEN, passEvent, false, 0, true);
loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, passEvent, false, 0, true);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onContentLoad, false, 0, true);
loader.contentLoaderInfo.addEventListener(Event.INIT, passEvent, false, 0, true);
loader.contentLoaderInfo.addEventListener(HTTPStatusEvent.HTTP_STATUS, passEvent, false, 0, true);
contentClip.addChild(loader);
}
override protected function handleScroll(_arg1:ScrollEvent):void{
passEvent(_arg1);
super.handleScroll(_arg1);
}
protected function handleError(_arg1:Event):void{
passEvent(_arg1);
clearLoadEvents();
loader.contentLoaderInfo.removeEventListener(Event.INIT, handleInit);
}
protected function handleInit(_arg1:Event):void{
loader.contentLoaderInfo.removeEventListener(Event.INIT, handleInit);
passEvent(_arg1);
invalidate(InvalidationType.SIZE);
}
protected function clearLoadEvents():void{
loader.contentLoaderInfo.removeEventListener(IOErrorEvent.IO_ERROR, handleError);
loader.contentLoaderInfo.removeEventListener(SecurityErrorEvent.SECURITY_ERROR, handleError);
loader.contentLoaderInfo.removeEventListener(Event.OPEN, passEvent);
loader.contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS, passEvent);
loader.contentLoaderInfo.removeEventListener(HTTPStatusEvent.HTTP_STATUS, passEvent);
loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, onContentLoad);
}
protected function doDrag(_arg1:MouseEvent):void{
var _local2:* = (scrollDragVPos - (mouseY - yOffset));
_verticalScrollBar.setScrollPosition(_local2);
setVerticalScrollPosition(_verticalScrollBar.scrollPosition, true);
var _local3:* = (scrollDragHPos - (mouseX - xOffset));
_horizontalScrollBar.setScrollPosition(_local3);
setHorizontalScrollPosition(_horizontalScrollBar.scrollPosition, true);
}
protected function doStartDrag(_arg1:MouseEvent):void{
if (!enabled){
return;
};
xOffset = mouseX;
yOffset = mouseY;
scrollDragHPos = horizontalScrollPosition;
scrollDragVPos = verticalScrollPosition;
focusManager.form.addEventListener(MouseEvent.MOUSE_MOVE, doDrag, false, 0, true);
}
protected function endDrag(_arg1:MouseEvent):void{
focusManager.form.removeEventListener(MouseEvent.MOUSE_MOVE, doDrag);
}
protected function setScrollDrag():void{
if (_scrollDrag){
contentClip.addEventListener(MouseEvent.MOUSE_DOWN, doStartDrag, false, 0, true);
focusManager.form.addEventListener(MouseEvent.MOUSE_UP, endDrag, false, 0, true);
} else {
contentClip.removeEventListener(MouseEvent.MOUSE_DOWN, doStartDrag);
focusManager.form.removeEventListener(MouseEvent.MOUSE_UP, endDrag);
removeEventListener(MouseEvent.MOUSE_MOVE, doDrag);
};
contentClip.buttonMode = _scrollDrag;
}
override protected function draw():void{
if (isInvalid(InvalidationType.STYLES)){
drawBackground();
};
if (isInvalid(InvalidationType.STATE)){
setScrollDrag();
};
super.draw();
}
override protected function drawBackground():void{
var _local1:DisplayObject = background;
background = getDisplayObjectInstance(getStyleValue((enabled) ? "upSkin" : "disabledSkin"));
background.width = width;
background.height = height;
addChildAt(background, 0);
if (((!((_local1 == null))) && (!((_local1 == background))))){
removeChild(_local1);
};
}
protected function clearContent():void{
if (contentClip.numChildren == 0){
return;
};
contentClip.removeChildAt(0);
currentContent = null;
if (loader != null){
try {
loader.close();
} catch(e) {
};
try {
loader.unload();
} catch(e) {
};
loader = null;
};
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
var _local2:int = calculateAvailableHeight();
switch (_arg1.keyCode){
case Keyboard.DOWN:
verticalScrollPosition++;
break;
case Keyboard.UP:
verticalScrollPosition--;
break;
case Keyboard.RIGHT:
horizontalScrollPosition++;
break;
case Keyboard.LEFT:
horizontalScrollPosition--;
break;
case Keyboard.END:
verticalScrollPosition = maxVerticalScrollPosition;
break;
case Keyboard.HOME:
verticalScrollPosition = 0;
break;
case Keyboard.PAGE_UP:
verticalScrollPosition = (verticalScrollPosition - _local2);
break;
case Keyboard.PAGE_DOWN:
verticalScrollPosition = (verticalScrollPosition + _local2);
break;
};
}
protected function calculateAvailableHeight():Number{
var _local1:Number = Number(getStyleValue("contentPadding"));
return (((height - (_local1 * 2)) - ((((_horizontalScrollPolicy == ScrollPolicy.ON)) || ((((_horizontalScrollPolicy == ScrollPolicy.AUTO)) && ((_maxHorizontalScrollPosition > 0)))))) ? 15 : 0));
}
override protected function configUI():void{
super.configUI();
contentClip = new Sprite();
addChild(contentClip);
contentClip.scrollRect = contentScrollRect;
_horizontalScrollPolicy = ScrollPolicy.AUTO;
_verticalScrollPolicy = ScrollPolicy.AUTO;
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, BaseScrollPane.getStyleDefinition()));
}
}
}//package fl.containers
Section 17
//BaseButton (fl.controls.BaseButton)
package fl.controls {
import flash.display.*;
import fl.core.*;
import flash.events.*;
import flash.utils.*;
import fl.events.*;
public class BaseButton extends UIComponent {
protected var background:DisplayObject;
protected var mouseState:String;
protected var _selected:Boolean;// = false
protected var _autoRepeat:Boolean;// = false
protected var pressTimer:Timer;
private var _mouseStateLocked:Boolean;// = false
private var unlockedMouseState:String;
private static var defaultStyles:Object = {upSkin:"Button_upSkin", downSkin:"Button_downSkin", overSkin:"Button_overSkin", disabledSkin:"Button_disabledSkin", selectedDisabledSkin:"Button_selectedDisabledSkin", selectedUpSkin:"Button_selectedUpSkin", selectedDownSkin:"Button_selectedDownSkin", selectedOverSkin:"Button_selectedOverSkin", focusRectSkin:null, focusRectPadding:null, repeatDelay:500, repeatInterval:35};
public function BaseButton(){
buttonMode = true;
mouseChildren = false;
useHandCursor = false;
setupMouseEvents();
setMouseState("up");
pressTimer = new Timer(1, 0);
pressTimer.addEventListener(TimerEvent.TIMER, buttonDown, false, 0, true);
}
override public function get enabled():Boolean{
return (super.enabled);
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
mouseEnabled = _arg1;
}
public function get selected():Boolean{
return (_selected);
}
public function set selected(_arg1:Boolean):void{
if (_selected == _arg1){
return;
};
_selected = _arg1;
invalidate(InvalidationType.STATE);
}
public function get autoRepeat():Boolean{
return (_autoRepeat);
}
public function set autoRepeat(_arg1:Boolean):void{
_autoRepeat = _arg1;
}
public function set mouseStateLocked(_arg1:Boolean):void{
_mouseStateLocked = _arg1;
if (_arg1 == false){
setMouseState(unlockedMouseState);
} else {
unlockedMouseState = mouseState;
};
}
public function setMouseState(_arg1:String):void{
if (_mouseStateLocked){
unlockedMouseState = _arg1;
return;
};
if (mouseState == _arg1){
return;
};
mouseState = _arg1;
invalidate(InvalidationType.STATE);
}
protected function setupMouseEvents():void{
addEventListener(MouseEvent.ROLL_OVER, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.MOUSE_DOWN, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.MOUSE_UP, mouseEventHandler, false, 0, true);
addEventListener(MouseEvent.ROLL_OUT, mouseEventHandler, false, 0, true);
}
protected function mouseEventHandler(_arg1:MouseEvent):void{
if (_arg1.type == MouseEvent.MOUSE_DOWN){
setMouseState("down");
startPress();
} else {
if ((((_arg1.type == MouseEvent.ROLL_OVER)) || ((_arg1.type == MouseEvent.MOUSE_UP)))){
setMouseState("over");
endPress();
} else {
if (_arg1.type == MouseEvent.ROLL_OUT){
setMouseState("up");
endPress();
};
};
};
}
protected function startPress():void{
if (_autoRepeat){
pressTimer.delay = Number(getStyleValue("repeatDelay"));
pressTimer.start();
};
dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true));
}
protected function buttonDown(_arg1:TimerEvent):void{
if (!_autoRepeat){
endPress();
return;
};
if (pressTimer.currentCount == 1){
pressTimer.delay = Number(getStyleValue("repeatInterval"));
};
dispatchEvent(new ComponentEvent(ComponentEvent.BUTTON_DOWN, true));
}
protected function endPress():void{
pressTimer.reset();
}
override protected function draw():void{
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
drawBackground();
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE)){
drawLayout();
};
super.draw();
}
protected function drawBackground():void{
var _local1:String = (enabled) ? mouseState : "disabled";
if (selected){
_local1 = (("selected" + _local1.substr(0, 1).toUpperCase()) + _local1.substr(1));
};
_local1 = (_local1 + "Skin");
var _local2:DisplayObject = background;
background = getDisplayObjectInstance(getStyleValue(_local1));
addChildAt(background, 0);
if (((!((_local2 == null))) && (!((_local2 == background))))){
removeChild(_local2);
};
}
protected function drawLayout():void{
background.width = width;
background.height = height;
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls
Section 18
//Button (fl.controls.Button)
package fl.controls {
import flash.display.*;
import fl.core.*;
import fl.managers.*;
public class Button extends LabelButton implements IFocusManagerComponent {
protected var _emphasized:Boolean;// = false
protected var emphasizedBorder:DisplayObject;
private static var defaultStyles:Object = {emphasizedSkin:"Button_emphasizedSkin", emphasizedPadding:2};
public static var createAccessibilityImplementation:Function;
public function get emphasized():Boolean{
return (_emphasized);
}
public function set emphasized(_arg1:Boolean):void{
_emphasized = _arg1;
invalidate(InvalidationType.STYLES);
}
override protected function draw():void{
if (((isInvalid(InvalidationType.STYLES)) || (isInvalid(InvalidationType.SIZE)))){
drawEmphasized();
};
super.draw();
if (emphasizedBorder != null){
setChildIndex(emphasizedBorder, (numChildren - 1));
};
}
protected function drawEmphasized():void{
var _local2:Number;
if (emphasizedBorder != null){
removeChild(emphasizedBorder);
};
emphasizedBorder = null;
if (!_emphasized){
return;
};
var _local1:Object = getStyleValue("emphasizedSkin");
if (_local1 != null){
emphasizedBorder = getDisplayObjectInstance(_local1);
};
if (emphasizedBorder != null){
addChildAt(emphasizedBorder, 0);
_local2 = Number(getStyleValue("emphasizedPadding"));
emphasizedBorder.x = (emphasizedBorder.y = -(_local2));
emphasizedBorder.width = (width + (_local2 * 2));
emphasizedBorder.height = (height + (_local2 * 2));
};
}
override public function drawFocus(_arg1:Boolean):void{
var _local2:Number;
var _local3:*;
super.drawFocus(_arg1);
if (_arg1){
_local2 = Number(getStyleValue("emphasizedPadding"));
if ((((_local2 < 0)) || (!(_emphasized)))){
_local2 = 0;
};
_local3 = getStyleValue("focusRectPadding");
_local3 = ((_local3)==null) ? 2 : _local3;
_local3 = (_local3 + _local2);
uiFocusRect.x = -(_local3);
uiFocusRect.y = -(_local3);
uiFocusRect.width = (width + (_local3 * 2));
uiFocusRect.height = (height + (_local3 * 2));
};
}
override protected function initializeAccessibility():void{
if (Button.createAccessibilityImplementation != null){
Button.createAccessibilityImplementation(this);
};
}
public static function getStyleDefinition():Object{
return (UIComponent.mergeStyles(LabelButton.getStyleDefinition(), defaultStyles));
}
}
}//package fl.controls
Section 19
//ButtonLabelPlacement (fl.controls.ButtonLabelPlacement)
package fl.controls {
public class ButtonLabelPlacement {
public static const BOTTOM:String = "bottom";
public static const TOP:String = "top";
public static const LEFT:String = "left";
public static const RIGHT:String = "right";
}
}//package fl.controls
Section 20
//LabelButton (fl.controls.LabelButton)
package fl.controls {
import flash.display.*;
import fl.core.*;
import flash.events.*;
import fl.managers.*;
import fl.events.*;
import flash.text.*;
import flash.ui.*;
public class LabelButton extends BaseButton implements IFocusManagerComponent {
public var textField:TextField;
protected var _labelPlacement:String;// = "right"
protected var _toggle:Boolean;// = false
protected var icon:DisplayObject;
protected var oldMouseState:String;
protected var _label:String;// = "Label"
protected var mode:String;// = "center"
private static var defaultStyles:Object = {icon:null, upIcon:null, downIcon:null, overIcon:null, disabledIcon:null, selectedDisabledIcon:null, selectedUpIcon:null, selectedDownIcon:null, selectedOverIcon:null, textFormat:null, disabledTextFormat:null, textPadding:5, embedFonts:false};
public static var createAccessibilityImplementation:Function;
public function get label():String{
return (_label);
}
public function set label(_arg1:String):void{
_label = _arg1;
if (textField.text != _label){
textField.text = _label;
dispatchEvent(new ComponentEvent(ComponentEvent.LABEL_CHANGE));
};
invalidate(InvalidationType.SIZE);
invalidate(InvalidationType.STYLES);
}
public function get labelPlacement():String{
return (_labelPlacement);
}
public function set labelPlacement(_arg1:String):void{
_labelPlacement = _arg1;
invalidate(InvalidationType.SIZE);
}
public function get toggle():Boolean{
return (_toggle);
}
public function set toggle(_arg1:Boolean):void{
if (((!(_arg1)) && (super.selected))){
selected = false;
};
_toggle = _arg1;
if (_toggle){
addEventListener(MouseEvent.CLICK, toggleSelected, false, 0, true);
} else {
removeEventListener(MouseEvent.CLICK, toggleSelected);
};
invalidate(InvalidationType.STATE);
}
protected function toggleSelected(_arg1:MouseEvent):void{
selected = !(selected);
dispatchEvent(new Event(Event.CHANGE, true));
}
override public function get selected():Boolean{
return ((_toggle) ? _selected : false);
}
override public function set selected(_arg1:Boolean):void{
_selected = _arg1;
if (_toggle){
invalidate(InvalidationType.STATE);
};
}
override protected function configUI():void{
super.configUI();
textField = new TextField();
textField.type = TextFieldType.DYNAMIC;
textField.selectable = false;
addChild(textField);
}
override protected function draw():void{
if (textField.text != _label){
label = _label;
};
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
drawBackground();
drawIcon();
drawTextFormat();
invalidate(InvalidationType.SIZE, false);
};
if (isInvalid(InvalidationType.SIZE)){
drawLayout();
};
if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){
if (((isFocused) && (focusManager.showFocusIndicator))){
drawFocus(true);
};
};
validate();
}
protected function drawIcon():void{
var _local1:DisplayObject = icon;
var _local2:String = (enabled) ? mouseState : "disabled";
if (selected){
_local2 = (("selected" + _local2.substr(0, 1).toUpperCase()) + _local2.substr(1));
};
_local2 = (_local2 + "Icon");
var _local3:Object = getStyleValue(_local2);
if (_local3 == null){
_local3 = getStyleValue("icon");
};
if (_local3 != null){
icon = getDisplayObjectInstance(_local3);
};
if (icon != null){
addChildAt(icon, 1);
};
if (((!((_local1 == null))) && (!((_local1 == icon))))){
removeChild(_local1);
};
}
protected function drawTextFormat():void{
var _local1:Object = UIComponent.getStyleDefinition();
var _local2:TextFormat = (enabled) ? (_local1.defaultTextFormat as TextFormat) : (_local1.defaultDisabledTextFormat as TextFormat);
textField.setTextFormat(_local2);
var _local3:TextFormat = (getStyleValue((enabled) ? "textFormat" : "disabledTextFormat") as TextFormat);
if (_local3 != null){
textField.setTextFormat(_local3);
} else {
_local3 = _local2;
};
textField.defaultTextFormat = _local3;
setEmbedFont();
}
protected function setEmbedFont(){
var _local1:Object = getStyleValue("embedFonts");
if (_local1 != null){
textField.embedFonts = _local1;
};
}
override protected function drawLayout():void{
var _local7:Number;
var _local8:Number;
var _local1:Number = Number(getStyleValue("textPadding"));
var _local2:String = ((((icon == null)) && ((mode == "center")))) ? ButtonLabelPlacement.TOP : _labelPlacement;
textField.height = (textField.textHeight + 4);
var _local3:Number = (textField.textWidth + 4);
var _local4:Number = (textField.textHeight + 4);
var _local5:Number = ((icon)==null) ? 0 : (icon.width + _local1);
var _local6:Number = ((icon)==null) ? 0 : (icon.height + _local1);
textField.visible = (label.length > 0);
if (icon != null){
icon.x = Math.round(((width - icon.width) / 2));
icon.y = Math.round(((height - icon.height) / 2));
};
if (textField.visible == false){
textField.width = 0;
textField.height = 0;
} else {
if ((((_local2 == ButtonLabelPlacement.BOTTOM)) || ((_local2 == ButtonLabelPlacement.TOP)))){
_local7 = Math.max(0, Math.min(_local3, (width - (2 * _local1))));
if ((height - 2) > _local4){
_local8 = _local4;
} else {
_local8 = (height - 2);
};
_local3 = _local7;
textField.width = _local3;
_local4 = _local8;
textField.height = _local4;
textField.x = Math.round(((width - _local3) / 2));
textField.y = Math.round(((((height - textField.height) - _local6) / 2) + ((_local2)==ButtonLabelPlacement.BOTTOM) ? _local6 : 0));
if (icon != null){
icon.y = Math.round(((_local2)==ButtonLabelPlacement.BOTTOM) ? (textField.y - _local6) : ((textField.y + textField.height) + _local1));
};
} else {
_local7 = Math.max(0, Math.min(_local3, ((width - _local5) - (2 * _local1))));
_local3 = _local7;
textField.width = _local3;
textField.x = Math.round(((((width - _local3) - _local5) / 2) + ((_local2)!=ButtonLabelPlacement.LEFT) ? _local5 : 0));
textField.y = Math.round(((height - textField.height) / 2));
if (icon != null){
icon.x = Math.round(((_local2)!=ButtonLabelPlacement.LEFT) ? (textField.x - _local5) : ((textField.x + _local3) + _local1));
};
};
};
super.drawLayout();
}
override protected function keyDownHandler(_arg1:KeyboardEvent):void{
if (!enabled){
return;
};
if (_arg1.keyCode == Keyboard.SPACE){
if (oldMouseState == null){
oldMouseState = mouseState;
};
setMouseState("down");
startPress();
};
}
override protected function keyUpHandler(_arg1:KeyboardEvent):void{
if (!enabled){
return;
};
if (_arg1.keyCode == Keyboard.SPACE){
setMouseState(oldMouseState);
oldMouseState = null;
endPress();
dispatchEvent(new MouseEvent(MouseEvent.CLICK));
};
}
override protected function initializeAccessibility():void{
if (LabelButton.createAccessibilityImplementation != null){
LabelButton.createAccessibilityImplementation(this);
};
}
public static function getStyleDefinition():Object{
return (mergeStyles(defaultStyles, BaseButton.getStyleDefinition()));
}
}
}//package fl.controls
Section 21
//ScrollBar (fl.controls.ScrollBar)
package fl.controls {
import flash.display.*;
import fl.core.*;
import flash.events.*;
import fl.events.*;
public class ScrollBar extends UIComponent {
private var _pageSize:Number;// = 10
private var _pageScrollSize:Number;// = 0
private var _lineScrollSize:Number;// = 1
private var _minScrollPosition:Number;// = 0
private var _maxScrollPosition:Number;// = 0
private var _scrollPosition:Number;// = 0
private var _direction:String;// = "vertical"
private var thumbScrollOffset:Number;
protected var inDrag:Boolean;// = false
protected var upArrow:BaseButton;
protected var downArrow:BaseButton;
protected var thumb:LabelButton;
protected var track:BaseButton;
public static const WIDTH:Number = 15;
protected static const DOWN_ARROW_STYLES:Object = {disabledSkin:"downArrowDisabledSkin", downSkin:"downArrowDownSkin", overSkin:"downArrowOverSkin", upSkin:"downArrowUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"};
protected static const THUMB_STYLES:Object = {disabledSkin:"thumbDisabledSkin", downSkin:"thumbDownSkin", overSkin:"thumbOverSkin", upSkin:"thumbUpSkin", icon:"thumbIcon", textPadding:0};
protected static const TRACK_STYLES:Object = {disabledSkin:"trackDisabledSkin", downSkin:"trackDownSkin", overSkin:"trackOverSkin", upSkin:"trackUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"};
protected static const UP_ARROW_STYLES:Object = {disabledSkin:"upArrowDisabledSkin", downSkin:"upArrowDownSkin", overSkin:"upArrowOverSkin", upSkin:"upArrowUpSkin", repeatDelay:"repeatDelay", repeatInterval:"repeatInterval"};
private static var defaultStyles:Object = {downArrowDisabledSkin:"ScrollArrowDown_disabledSkin", downArrowDownSkin:"ScrollArrowDown_downSkin", downArrowOverSkin:"ScrollArrowDown_overSkin", downArrowUpSkin:"ScrollArrowDown_upSkin", thumbDisabledSkin:"ScrollThumb_upSkin", thumbDownSkin:"ScrollThumb_downSkin", thumbOverSkin:"ScrollThumb_overSkin", thumbUpSkin:"ScrollThumb_upSkin", trackDisabledSkin:"ScrollTrack_skin", trackDownSkin:"ScrollTrack_skin", trackOverSkin:"ScrollTrack_skin", trackUpSkin:"ScrollTrack_skin", upArrowDisabledSkin:"ScrollArrowUp_disabledSkin", upArrowDownSkin:"ScrollArrowUp_downSkin", upArrowOverSkin:"ScrollArrowUp_overSkin", upArrowUpSkin:"ScrollArrowUp_upSkin", thumbIcon:"ScrollBar_thumbIcon", repeatDelay:500, repeatInterval:35};
public function ScrollBar(){
setStyles();
focusEnabled = false;
}
override public function setSize(_arg1:Number, _arg2:Number):void{
if (_direction == ScrollBarDirection.HORIZONTAL){
super.setSize(_arg2, _arg1);
} else {
super.setSize(_arg1, _arg2);
};
}
override public function get width():Number{
return (((_direction)==ScrollBarDirection.HORIZONTAL) ? super.height : super.width);
}
override public function get height():Number{
return (((_direction)==ScrollBarDirection.HORIZONTAL) ? super.width : super.height);
}
override public function get enabled():Boolean{
return (super.enabled);
}
override public function set enabled(_arg1:Boolean):void{
super.enabled = _arg1;
downArrow.enabled = (track.enabled = (thumb.enabled = (upArrow.enabled = ((enabled) && ((_maxScrollPosition > _minScrollPosition))))));
updateThumb();
}
public function setScrollProperties(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number=0):void{
this.pageSize = _arg1;
_minScrollPosition = _arg2;
_maxScrollPosition = _arg3;
if (_arg4 >= 0){
_pageScrollSize = _arg4;
};
enabled = (_maxScrollPosition > _minScrollPosition);
setScrollPosition(_scrollPosition, false);
updateThumb();
}
public function get scrollPosition():Number{
return (_scrollPosition);
}
public function set scrollPosition(_arg1:Number):void{
setScrollPosition(_arg1, true);
}
public function get minScrollPosition():Number{
return (_minScrollPosition);
}
public function set minScrollPosition(_arg1:Number):void{
setScrollProperties(_pageSize, _arg1, _maxScrollPosition);
}
public function get maxScrollPosition():Number{
return (_maxScrollPosition);
}
public function set maxScrollPosition(_arg1:Number):void{
setScrollProperties(_pageSize, _minScrollPosition, _arg1);
}
public function get pageSize():Number{
return (_pageSize);
}
public function set pageSize(_arg1:Number):void{
if (_arg1 > 0){
_pageSize = _arg1;
};
}
public function get pageScrollSize():Number{
return (((_pageScrollSize)==0) ? _pageSize : _pageScrollSize);
}
public function set pageScrollSize(_arg1:Number):void{
if (_arg1 >= 0){
_pageScrollSize = _arg1;
};
}
public function get lineScrollSize():Number{
return (_lineScrollSize);
}
public function set lineScrollSize(_arg1:Number):void{
if (_arg1 > 0){
_lineScrollSize = _arg1;
};
}
public function get direction():String{
return (_direction);
}
public function set direction(_arg1:String):void{
if (_direction == _arg1){
return;
};
_direction = _arg1;
if (isLivePreview){
return;
};
setScaleY(1);
var _local2 = (_direction == ScrollBarDirection.HORIZONTAL);
if (((_local2) && (componentInspectorSetting))){
if (rotation == 90){
return;
};
setScaleX(-1);
rotation = -90;
};
if (!componentInspectorSetting){
if (((_local2) && ((rotation == 0)))){
rotation = -90;
setScaleX(-1);
} else {
if (((!(_local2)) && ((rotation == -90)))){
rotation = 0;
setScaleX(1);
};
};
};
invalidate(InvalidationType.SIZE);
}
override protected function configUI():void{
super.configUI();
track = new BaseButton();
track.move(0, 14);
track.useHandCursor = false;
track.autoRepeat = true;
track.focusEnabled = false;
addChild(track);
thumb = new LabelButton();
thumb.label = "";
thumb.setSize(WIDTH, 15);
thumb.move(0, 15);
thumb.focusEnabled = false;
addChild(thumb);
downArrow = new BaseButton();
downArrow.setSize(WIDTH, 14);
downArrow.autoRepeat = true;
downArrow.focusEnabled = false;
addChild(downArrow);
upArrow = new BaseButton();
upArrow.setSize(WIDTH, 14);
upArrow.move(0, 0);
upArrow.autoRepeat = true;
upArrow.focusEnabled = false;
addChild(upArrow);
upArrow.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true);
downArrow.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true);
track.addEventListener(ComponentEvent.BUTTON_DOWN, scrollPressHandler, false, 0, true);
thumb.addEventListener(MouseEvent.MOUSE_DOWN, thumbPressHandler, false, 0, true);
enabled = false;
}
override protected function draw():void{
var _local1:Number;
if (isInvalid(InvalidationType.SIZE)){
_local1 = super.height;
downArrow.move(0, Math.max(upArrow.height, (_local1 - downArrow.height)));
track.setSize(WIDTH, Math.max(0, (_local1 - (downArrow.height + upArrow.height))));
updateThumb();
};
if (isInvalid(InvalidationType.STYLES, InvalidationType.STATE)){
setStyles();
};
downArrow.drawNow();
upArrow.drawNow();
track.drawNow();
thumb.drawNow();
validate();
}
protected function scrollPressHandler(_arg1:ComponentEvent):void{
var _local2:Number;
var _local3:Number;
_arg1.stopImmediatePropagation();
if (_arg1.currentTarget == upArrow){
setScrollPosition((_scrollPosition - _lineScrollSize));
} else {
if (_arg1.currentTarget == downArrow){
setScrollPosition((_scrollPosition + _lineScrollSize));
} else {
_local2 = (((track.mouseY / track.height) * (_maxScrollPosition - _minScrollPosition)) + _minScrollPosition);
_local3 = ((pageScrollSize)==0) ? pageSize : pageScrollSize;
if (_scrollPosition < _local2){
setScrollPosition(Math.min(_local2, (_scrollPosition + _local3)));
} else {
if (_scrollPosition > _local2){
setScrollPosition(Math.max(_local2, (_scrollPosition - _local3)));
};
};
};
};
}
protected function thumbPressHandler(_arg1:MouseEvent):void{
inDrag = true;
thumbScrollOffset = (mouseY - thumb.y);
thumb.mouseStateLocked = true;
mouseChildren = false;
var _local2:DisplayObjectContainer = focusManager.form;
_local2.addEventListener(MouseEvent.MOUSE_MOVE, handleThumbDrag, false, 0, true);
_local2.addEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler, false, 0, true);
}
protected function handleThumbDrag(_arg1:MouseEvent):void{
var _local2:Number = Math.max(0, Math.min((track.height - thumb.height), ((mouseY - track.y) - thumbScrollOffset)));
setScrollPosition((((_local2 / (track.height - thumb.height)) * (_maxScrollPosition - _minScrollPosition)) + _minScrollPosition));
}
protected function thumbReleaseHandler(_arg1:MouseEvent):void{
inDrag = false;
mouseChildren = true;
thumb.mouseStateLocked = false;
var _local2:DisplayObjectContainer = focusManager.form;
_local2.removeEventListener(MouseEvent.MOUSE_MOVE, handleThumbDrag);
_local2.removeEventListener(MouseEvent.MOUSE_UP, thumbReleaseHandler);
}
public function setScrollPosition(_arg1:Number, _arg2:Boolean=true):void{
var _local3:Number = scrollPosition;
_scrollPosition = Math.max(_minScrollPosition, Math.min(_maxScrollPosition, _arg1));
if (_local3 == _scrollPosition){
return;
};
if (_arg2){
dispatchEvent(new ScrollEvent(_direction, (scrollPosition - _local3), scrollPosition));
};
updateThumb();
}
protected function setStyles():void{
copyStylesToChild(downArrow, DOWN_ARROW_STYLES);
copyStylesToChild(thumb, THUMB_STYLES);
copyStylesToChild(track, TRACK_STYLES);
copyStylesToChild(upArrow, UP_ARROW_STYLES);
}
protected function updateThumb():void{
var _local1:Number = ((_maxScrollPosition - _minScrollPosition) + _pageSize);
if ((((((track.height <= 12)) || ((_maxScrollPosition <= _minScrollPosition)))) || ((((_local1 == 0)) || (isNaN(_local1)))))){
thumb.height = 12;
thumb.visible = false;
} else {
thumb.height = Math.max(13, ((_pageSize / _local1) * track.height));
thumb.y = (track.y + ((track.height - thumb.height) * ((_scrollPosition - _minScrollPosition) / (_maxScrollPosition - _minScrollPosition))));
thumb.visible = enabled;
};
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
}
}//package fl.controls
Section 22
//ScrollBarDirection (fl.controls.ScrollBarDirection)
package fl.controls {
public class ScrollBarDirection {
public static const VERTICAL:String = "vertical";
public static const HORIZONTAL:String = "horizontal";
}
}//package fl.controls
Section 23
//ScrollPolicy (fl.controls.ScrollPolicy)
package fl.controls {
public class ScrollPolicy {
public static const ON:String = "on";
public static const AUTO:String = "auto";
public static const OFF:String = "off";
}
}//package fl.controls
Section 24
//ComponentShim (fl.core.ComponentShim)
package fl.core {
import flash.display.*;
public dynamic class ComponentShim extends MovieClip {
}
}//package fl.core
Section 25
//InvalidationType (fl.core.InvalidationType)
package fl.core {
public class InvalidationType {
public static const ALL:String = "all";
public static const SIZE:String = "size";
public static const STYLES:String = "styles";
public static const RENDERER_STYLES:String = "rendererStyles";
public static const STATE:String = "state";
public static const DATA:String = "data";
public static const SCROLL:String = "scroll";
public static const SELECTED:String = "selected";
}
}//package fl.core
Section 26
//UIComponent (fl.core.UIComponent)
package fl.core {
import flash.display.*;
import flash.events.*;
import flash.system.*;
import flash.utils.*;
import fl.managers.*;
import fl.events.*;
import flash.text.*;
public class UIComponent extends Sprite {
public const version:String = "3.0.3.1";
public var focusTarget:IFocusManagerComponent;
protected var isLivePreview:Boolean;// = false
private var tempText:TextField;
protected var instanceStyles:Object;
protected var sharedStyles:Object;
protected var callLaterMethods:Dictionary;
protected var invalidateFlag:Boolean;// = false
protected var _enabled:Boolean;// = true
protected var invalidHash:Object;
protected var uiFocusRect:DisplayObject;
protected var isFocused:Boolean;// = false
private var _focusEnabled:Boolean;// = true
private var _mouseFocusEnabled:Boolean;// = true
protected var _width:Number;
protected var _height:Number;
protected var _x:Number;
protected var _y:Number;
protected var startWidth:Number;
protected var startHeight:Number;
protected var _imeMode:String;// = null
protected var _oldIMEMode:String;// = null
protected var errorCaught:Boolean;// = false
protected var _inspector:Boolean;// = false
public static var inCallLaterPhase:Boolean = false;
private static var defaultStyles:Object = {focusRectSkin:"focusRectSkin", focusRectPadding:2, textFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), disabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultTextFormat:new TextFormat("_sans", 11, 0, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0), defaultDisabledTextFormat:new TextFormat("_sans", 11, 0x999999, false, false, false, "", "", TextFormatAlign.LEFT, 0, 0, 0, 0)};
private static var focusManagers:Dictionary = new Dictionary(true);
private static var focusManagerUsers:Dictionary = new Dictionary(true);
public static var createAccessibilityImplementation:Function;
public function UIComponent(){
instanceStyles = {};
sharedStyles = {};
invalidHash = {};
callLaterMethods = new Dictionary();
StyleManager.registerInstance(this);
configUI();
invalidate(InvalidationType.ALL);
tabEnabled = (this is IFocusManagerComponent);
focusRect = false;
if (tabEnabled){
addEventListener(FocusEvent.FOCUS_IN, focusInHandler);
addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler);
addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler);
addEventListener(KeyboardEvent.KEY_UP, keyUpHandler);
};
initializeFocusManager();
addEventListener(Event.ENTER_FRAME, hookAccessibility, false, 0, true);
}
public function get componentInspectorSetting():Boolean{
return (_inspector);
}
public function set componentInspectorSetting(_arg1:Boolean):void{
_inspector = _arg1;
if (_inspector){
beforeComponentParameters();
} else {
afterComponentParameters();
};
}
protected function beforeComponentParameters():void{
}
protected function afterComponentParameters():void{
}
public function get enabled():Boolean{
return (_enabled);
}
public function set enabled(_arg1:Boolean):void{
if (_arg1 == _enabled){
return;
};
_enabled = _arg1;
invalidate(InvalidationType.STATE);
}
public function setSize(_arg1:Number, _arg2:Number):void{
_width = _arg1;
_height = _arg2;
invalidate(InvalidationType.SIZE);
dispatchEvent(new ComponentEvent(ComponentEvent.RESIZE, false));
}
override public function get width():Number{
return (_width);
}
override public function set width(_arg1:Number):void{
if (_width == _arg1){
return;
};
setSize(_arg1, height);
}
override public function get height():Number{
return (_height);
}
override public function set height(_arg1:Number):void{
if (_height == _arg1){
return;
};
setSize(width, _arg1);
}
public function setStyle(_arg1:String, _arg2:Object):void{
if ((((instanceStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
instanceStyles[_arg1] = _arg2;
invalidate(InvalidationType.STYLES);
}
public function clearStyle(_arg1:String):void{
setStyle(_arg1, null);
}
public function getStyle(_arg1:String):Object{
return (instanceStyles[_arg1]);
}
public function move(_arg1:Number, _arg2:Number):void{
_x = _arg1;
_y = _arg2;
super.x = Math.round(_arg1);
super.y = Math.round(_arg2);
dispatchEvent(new ComponentEvent(ComponentEvent.MOVE));
}
override public function get x():Number{
return ((isNaN(_x)) ? super.x : _x);
}
override public function set x(_arg1:Number):void{
move(_arg1, _y);
}
override public function get y():Number{
return ((isNaN(_y)) ? super.y : _y);
}
override public function set y(_arg1:Number):void{
move(_x, _arg1);
}
override public function get scaleX():Number{
return ((width / startWidth));
}
override public function set scaleX(_arg1:Number):void{
setSize((startWidth * _arg1), height);
}
override public function get scaleY():Number{
return ((height / startHeight));
}
override public function set scaleY(_arg1:Number):void{
setSize(width, (startHeight * _arg1));
}
protected function getScaleY():Number{
return (super.scaleY);
}
protected function setScaleY(_arg1:Number):void{
super.scaleY = _arg1;
}
protected function getScaleX():Number{
return (super.scaleX);
}
protected function setScaleX(_arg1:Number):void{
super.scaleX = _arg1;
}
override public function get visible():Boolean{
return (super.visible);
}
override public function set visible(_arg1:Boolean):void{
if (super.visible == _arg1){
return;
};
super.visible = _arg1;
var _local2:String = (_arg1) ? ComponentEvent.SHOW : ComponentEvent.HIDE;
dispatchEvent(new ComponentEvent(_local2, true));
}
public function validateNow():void{
invalidate(InvalidationType.ALL, false);
draw();
}
public function invalidate(_arg1:String="all", _arg2:Boolean=true):void{
invalidHash[_arg1] = true;
if (_arg2){
this.callLater(draw);
};
}
public function setSharedStyle(_arg1:String, _arg2:Object):void{
if ((((sharedStyles[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
sharedStyles[_arg1] = _arg2;
if (instanceStyles[_arg1] == null){
invalidate(InvalidationType.STYLES);
};
}
public function get focusEnabled():Boolean{
return (_focusEnabled);
}
public function set focusEnabled(_arg1:Boolean):void{
_focusEnabled = _arg1;
}
public function get mouseFocusEnabled():Boolean{
return (_mouseFocusEnabled);
}
public function set mouseFocusEnabled(_arg1:Boolean):void{
_mouseFocusEnabled = _arg1;
}
public function get focusManager():IFocusManager{
var o:DisplayObject = this;
while (o) {
if (UIComponent.focusManagers[o] != null){
return (IFocusManager(UIComponent.focusManagers[o]));
};
try {
o = o.parent;
} catch(se:SecurityError) {
return (null);
};
};
return (null);
}
public function set focusManager(_arg1:IFocusManager):void{
UIComponent.focusManagers[this] = _arg1;
}
public function drawFocus(_arg1:Boolean):void{
var _local2:Number;
isFocused = _arg1;
if (((!((uiFocusRect == null))) && (contains(uiFocusRect)))){
removeChild(uiFocusRect);
uiFocusRect = null;
};
if (_arg1){
uiFocusRect = (getDisplayObjectInstance(getStyleValue("focusRectSkin")) as Sprite);
if (uiFocusRect == null){
return;
};
_local2 = Number(getStyleValue("focusRectPadding"));
uiFocusRect.x = -(_local2);
uiFocusRect.y = -(_local2);
uiFocusRect.width = (width + (_local2 * 2));
uiFocusRect.height = (height + (_local2 * 2));
addChildAt(uiFocusRect, 0);
};
}
public function setFocus():void{
if (stage){
stage.focus = this;
};
}
public function getFocus():InteractiveObject{
if (stage){
return (stage.focus);
};
return (null);
}
protected function setIMEMode(_arg1:Boolean){
var enabled = _arg1;
if (_imeMode != null){
if (enabled){
IME.enabled = true;
_oldIMEMode = IME.conversionMode;
try {
if (((!(errorCaught)) && (!((IME.conversionMode == IMEConversionMode.UNKNOWN))))){
IME.conversionMode = _imeMode;
};
errorCaught = false;
} catch(e:Error) {
errorCaught = true;
throw (new Error(("IME mode not supported: " + _imeMode)));
};
} else {
if (((!((IME.conversionMode == IMEConversionMode.UNKNOWN))) && (!((_oldIMEMode == IMEConversionMode.UNKNOWN))))){
IME.conversionMode = _oldIMEMode;
};
IME.enabled = false;
};
};
}
public function drawNow():void{
draw();
}
protected function configUI():void{
isLivePreview = checkLivePreview();
var _local1:Number = rotation;
rotation = 0;
var _local2:Number = super.width;
var _local3:Number = super.height;
var _local4 = 1;
super.scaleY = _local4;
super.scaleX = _local4;
setSize(_local2, _local3);
move(super.x, super.y);
rotation = _local1;
startWidth = _local2;
startHeight = _local3;
if (numChildren > 0){
removeChildAt(0);
};
}
protected function checkLivePreview():Boolean{
var className:String;
if (parent == null){
return (false);
};
try {
className = getQualifiedClassName(parent);
} catch(e:Error) {
};
return ((className == "fl.livepreview::LivePreviewParent"));
}
protected function isInvalid(_arg1:String, ... _args):Boolean{
if (((invalidHash[_arg1]) || (invalidHash[InvalidationType.ALL]))){
return (true);
};
while (_args.length > 0) {
if (invalidHash[_args.pop()]){
return (true);
};
};
return (false);
}
protected function validate():void{
invalidHash = {};
}
protected function draw():void{
if (isInvalid(InvalidationType.SIZE, InvalidationType.STYLES)){
if (((isFocused) && (focusManager.showFocusIndicator))){
drawFocus(true);
};
};
validate();
}
protected function getDisplayObjectInstance(_arg1:Object):DisplayObject{
var skin = _arg1;
var classDef:Object;
if ((skin is Class)){
return ((new (skin) as DisplayObject));
};
if ((skin is DisplayObject)){
(skin as DisplayObject).x = 0;
(skin as DisplayObject).y = 0;
return ((skin as DisplayObject));
};
try {
classDef = getDefinitionByName(skin.toString());
} catch(e:Error) {
try {
classDef = (loaderInfo.applicationDomain.getDefinition(skin.toString()) as Object);
} catch(e:Error) {
};
};
if (classDef == null){
return (null);
};
return ((new (classDef) as DisplayObject));
}
protected function getStyleValue(_arg1:String):Object{
return (((instanceStyles[_arg1])==null) ? sharedStyles[_arg1] : instanceStyles[_arg1]);
}
protected function copyStylesToChild(_arg1:UIComponent, _arg2:Object):void{
var _local3:String;
for (_local3 in _arg2) {
_arg1.setStyle(_local3, getStyleValue(_arg2[_local3]));
};
}
protected function callLater(_arg1:Function):void{
var fn = _arg1;
if (inCallLaterPhase){
return;
};
callLaterMethods[fn] = true;
if (stage != null){
try {
stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true);
stage.invalidate();
} catch(se:SecurityError) {
addEventListener(Event.ENTER_FRAME, callLaterDispatcher, false, 0, true);
};
} else {
addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true);
};
}
private function callLaterDispatcher(_arg1:Event):void{
var method:Object;
var event = _arg1;
if (event.type == Event.ADDED_TO_STAGE){
try {
removeEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher);
stage.addEventListener(Event.RENDER, callLaterDispatcher, false, 0, true);
stage.invalidate();
return;
} catch(se1:SecurityError) {
addEventListener(Event.ENTER_FRAME, callLaterDispatcher, false, 0, true);
};
} else {
event.target.removeEventListener(Event.RENDER, callLaterDispatcher);
event.target.removeEventListener(Event.ENTER_FRAME, callLaterDispatcher);
try {
if (stage == null){
addEventListener(Event.ADDED_TO_STAGE, callLaterDispatcher, false, 0, true);
return;
};
} catch(se2:SecurityError) {
};
};
inCallLaterPhase = true;
var methods:Dictionary = callLaterMethods;
for (method in methods) {
method();
delete methods[method];
};
inCallLaterPhase = false;
}
private function initializeFocusManager():void{
var _local1:IFocusManager;
var _local2:Dictionary;
if (stage == null){
addEventListener(Event.ADDED_TO_STAGE, addedHandler, false, 0, true);
} else {
createFocusManager();
_local1 = focusManager;
if (_local1 != null){
_local2 = focusManagerUsers[_local1];
if (_local2 == null){
_local2 = new Dictionary(true);
focusManagerUsers[_local1] = _local2;
};
_local2[this] = true;
};
};
addEventListener(Event.REMOVED_FROM_STAGE, removedHandler);
}
private function addedHandler(_arg1:Event):void{
removeEventListener(Event.ADDED_TO_STAGE, addedHandler);
initializeFocusManager();
}
private function removedHandler(_arg1:Event):void{
var _local3:Dictionary;
var _local4:Boolean;
var _local5:*;
var _local6:*;
var _local7:IFocusManager;
removeEventListener(Event.REMOVED_FROM_STAGE, removedHandler);
addEventListener(Event.ADDED_TO_STAGE, addedHandler);
var _local2:IFocusManager = focusManager;
if (_local2 != null){
_local3 = focusManagerUsers[_local2];
if (_local3 != null){
delete _local3[this];
_local4 = true;
for (_local5 in _local3) {
_local4 = false;
break;
};
if (_local4){
delete focusManagerUsers[_local2];
_local3 = null;
};
};
if (_local3 == null){
_local2.deactivate();
for (_local6 in focusManagers) {
_local7 = focusManagers[_local6];
if (_local2 == _local7){
delete focusManagers[_local6];
};
};
};
};
}
protected function createFocusManager():void{
var stageAccessOK:Boolean;
try {
stage.getChildAt(0);
} catch(se:SecurityError) {
stageAccessOK = false;
};
var myTopLevel:DisplayObjectContainer;
if (stageAccessOK){
myTopLevel = stage;
} else {
myTopLevel = this;
try {
while (myTopLevel.parent != null) {
myTopLevel = myTopLevel.parent;
};
} catch(se:SecurityError) {
};
};
if (focusManagers[myTopLevel] == null){
focusManagers[myTopLevel] = new FocusManager(myTopLevel);
};
}
protected function isOurFocus(_arg1:DisplayObject):Boolean{
return ((_arg1 == this));
}
protected function focusInHandler(_arg1:FocusEvent):void{
var _local2:IFocusManager;
if (isOurFocus((_arg1.target as DisplayObject))){
_local2 = focusManager;
if (((_local2) && (_local2.showFocusIndicator))){
drawFocus(true);
isFocused = true;
};
};
}
protected function focusOutHandler(_arg1:FocusEvent):void{
if (isOurFocus((_arg1.target as DisplayObject))){
drawFocus(false);
isFocused = false;
};
}
protected function keyDownHandler(_arg1:KeyboardEvent):void{
}
protected function keyUpHandler(_arg1:KeyboardEvent):void{
}
protected function hookAccessibility(_arg1:Event):void{
removeEventListener(Event.ENTER_FRAME, hookAccessibility);
initializeAccessibility();
}
protected function initializeAccessibility():void{
if (UIComponent.createAccessibilityImplementation != null){
UIComponent.createAccessibilityImplementation(this);
};
}
public static function getStyleDefinition():Object{
return (defaultStyles);
}
public static function mergeStyles(... _args):Object{
var _local5:Object;
var _local6:String;
var _local2:Object = {};
var _local3:uint = _args.length;
var _local4:uint;
while (_local4 < _local3) {
_local5 = _args[_local4];
for (_local6 in _local5) {
if (_local2[_local6] != null){
} else {
_local2[_local6] = _args[_local4][_local6];
};
};
_local4++;
};
return (_local2);
}
}
}//package fl.core
Section 27
//ProLoader (fl.display.ProLoader)
package fl.display {
import flash.display.*;
import flash.events.*;
import flash.system.*;
import flash.utils.*;
import flash.net.*;
import fl.events.*;
public class ProLoader extends Sprite {
private var _cli:ProLoaderInfo;
private var _loader:Loader;
private var _realContentLoader:Loader;
private var _loading:Boolean;
private var _hasRequestedContentParentProp:Boolean;
public function ProLoader(){
this._loader = new Loader();
this._loader.contentLoaderInfo.sharedEvents.addEventListener(ProLoaderRSLPreloaderSandboxEvent.PROLOADER_RSLPRELOADER_SANDBOX, this.handleProLoaderRSLPreloaderSandboxEvent, false, 0, true);
super.addChild(this._loader);
this._realContentLoader = null;
this._cli = new ProLoaderInfo(this);
this._loading = false;
this._hasRequestedContentParentProp = false;
}
private function handleProLoaderRSLPreloaderSandboxEvent(_arg1:Object):void{
var content:DisplayObjectContainer;
var e = _arg1;
if (e.loaderInfo != null){
try {
this._realContentLoader = e.loaderInfo.loader;
} catch(se:SecurityError) {
_realContentLoader = null;
};
this._cli.realContentLoaderInfo = e.loaderInfo;
} else {
if (((!((e.shape == null))) && ((getQualifiedClassName(e.shape) == "flash.display::Shape")))){
try {
content = e.shape.parent;
if (content != null){
content.removeChild(e.shape);
if (super.numChildren < 2){
super.addChild(content);
};
};
} catch(se:SecurityError) {
};
};
};
}
function loadDoneCallback(_arg1:DisplayObject):Boolean{
var p:DisplayObjectContainer;
var d = _arg1;
if (!this._loading){
this._loader.unload();
return (false);
};
this._loading = false;
if (d != null){
try {
if (this._cli.realContentLoaderInfo == null){
if (d.loaderInfo.loader != this._loader){
this._realContentLoader = d.loaderInfo.loader;
this._cli.realContentLoaderInfo = this._realContentLoader.contentLoaderInfo;
if (this._hasRequestedContentParentProp){
p = (this._loader.content.parent as DisplayObjectContainer);
if ((((p == this)) || ((p == null)))){
while (super.numChildren > 1) {
super.removeChildAt(1);
};
super.addChild(d);
} else {
p.addChildAt(d, p.getChildIndex(this._loader.content));
p.removeChild(this._loader.content);
};
} else {
super.addChild(d);
};
} else {
if (((!(this._hasRequestedContentParentProp)) || (((this._cli._lcRequestedContentParentSet) && (!((d.parent == this))))))){
super.addChild(d);
};
};
} else {
if (this._hasRequestedContentParentProp){
if (d.parent == this){
while (super.numChildren > 2) {
super.removeChildAt(1);
};
};
} else {
super.addChild(d);
};
};
} catch(se:SecurityError) {
};
};
return (true);
}
public function get realLoader():Loader{
return (this._loader.contentLoaderInfo.loader);
}
public function get realContentLoader():Loader{
return (((this._realContentLoader)==null) ? null : this._realContentLoader.contentLoaderInfo.loader);
}
public function get content():DisplayObject{
if (super.numChildren > 1){
return (super.getChildAt(1));
};
if (this._realContentLoader){
return (this._realContentLoader.content);
};
return (this._loader.content);
}
public function get contentLoaderInfo():ProLoaderInfo{
return (this._cli);
}
public function close():void{
if (this._loading){
this._loading = false;
try {
this._loader.close();
} catch(err:Error) {
};
} else {
this._loader.close();
};
}
public function load(_arg1:URLRequest, _arg2:LoaderContext=null):void{
var _local3:DisplayObjectContainer;
while (super.numChildren > 1) {
super.removeChildAt(1);
};
this._realContentLoader = null;
this._hasRequestedContentParentProp = false;
this._cli.reset();
if (_arg2 == null){
_arg2 = new LoaderContext();
};
if (_arg2.hasOwnProperty("requestedContentParent")){
this._hasRequestedContentParentProp = true;
_local3 = _arg2["requestedContentParent"];
if (_local3 == null){
_arg2["requestedContentParent"] = this;
this._cli._lcRequestedContentParentSet = true;
};
};
this._loader.load(_arg1, _arg2);
this._loading = true;
}
public function loadBytes(_arg1:ByteArray, _arg2:LoaderContext=null):void{
var _local3:DisplayObjectContainer;
while (super.numChildren > 1) {
super.removeChildAt(1);
};
this._realContentLoader = null;
this._hasRequestedContentParentProp = false;
this._cli.reset();
if (_arg2 == null){
_arg2 = new LoaderContext();
};
if (_arg2.hasOwnProperty("requestedContentParent")){
this._hasRequestedContentParentProp = true;
_local3 = _arg2["requestedContentParent"];
if (_local3 == null){
_arg2["requestedContentParent"] = this;
this._cli._lcRequestedContentParentSet = true;
};
};
this._loader.loadBytes(_arg1, _arg2);
this._loading = true;
}
public function loadFilePromise(_arg1:Object, _arg2:LoaderContext=null):void{
var _local3:DisplayObjectContainer;
while (super.numChildren > 1) {
super.removeChildAt(1);
};
this._realContentLoader = null;
this._hasRequestedContentParentProp = false;
this._cli.reset();
if (_arg2 == null){
_arg2 = new LoaderContext();
};
if (_arg2.hasOwnProperty("requestedContentParent")){
this._hasRequestedContentParentProp = true;
_local3 = _arg2["requestedContentParent"];
if (_local3 == null){
_arg2["requestedContentParent"] = this;
this._cli._lcRequestedContentParentSet = true;
};
};
var _local4 = this._loader;
_local4["loadFilePromise"](_arg1, _arg2);
this._loading = true;
}
public function unload():void{
if (!this._loading){
while (super.numChildren > 1) {
super.removeChildAt(1);
};
this._loader.unload();
};
}
public function unloadAndStop(_arg1:Boolean=true):void{
if (!this._loading){
while (super.numChildren > 1) {
super.removeChildAt(1);
};
var _local2 = this._loader;
_local2["unloadAndStop"](_arg1);
};
}
override public function addChild(_arg1:DisplayObject):DisplayObject{
if (((((!((this._realContentLoader == null))) && ((this._realContentLoader.content == _arg1)))) || ((this._loader.content == _arg1)))){
return (super.addChild(_arg1));
};
throw (new Error("Error #2069: The ProLoader class does not implement this method."));
}
override public function addChildAt(_arg1:DisplayObject, _arg2:int):DisplayObject{
throw (new Error("Error #2069: The ProLoader class does not implement this method."));
}
override public function removeChild(_arg1:DisplayObject):DisplayObject{
throw (new Error("Error #2069: The ProLoader class does not implement this method."));
}
override public function removeChildAt(_arg1:int):DisplayObject{
throw (new Error("Error #2069: The ProLoader class does not implement this method."));
}
override public function setChildIndex(_arg1:DisplayObject, _arg2:int):void{
throw (new Error("Error #2069: The ProLoader class does not implement this method."));
}
override public function get numChildren():int{
return ((super.numChildren - 1));
}
override public function getChildAt(_arg1:int):DisplayObject{
if (_arg1 >= 0){
_arg1++;
};
return (super.getChildAt(_arg1));
}
override public function getChildIndex(_arg1:DisplayObject):int{
return ((super.getChildIndex(_arg1) - 1));
}
public function get uncaughtErrorEvents():EventDispatcher{
return (this._loader["uncaughtErrorEvents"]);
}
}
}//package fl.display
Section 28
//ProLoaderInfo (fl.display.ProLoaderInfo)
package fl.display {
import flash.display.*;
import flash.events.*;
import flash.system.*;
import flash.utils.*;
import flash.errors.*;
public class ProLoaderInfo extends EventDispatcher {
private var _proLoader:ProLoader;
private var _realLI:LoaderInfo;
private var _realContentLI:LoaderInfo;
private var _rslPreloaderLoaded:Boolean;
private var _doneProgressStalling:Boolean;
private var _numAdded:int;
var _lcRequestedContentParentSet:Boolean;
public function ProLoaderInfo(_arg1:ProLoader){
this._realContentLI = null;
this._lcRequestedContentParentSet = false;
this._rslPreloaderLoaded = false;
this._doneProgressStalling = false;
this._numAdded = 0;
this._proLoader = _arg1;
this._realLI = _arg1.realLoader.contentLoaderInfo;
this._realLI.addEventListener(AsyncErrorEvent.ASYNC_ERROR, this.handleAsyncErrorEvent, false, 0, true);
this._realLI.addEventListener(Event.COMPLETE, this.handleLoaderInfoEvent, false, 0, true);
this._realLI.addEventListener(HTTPStatusEvent.HTTP_STATUS, this.handleLoaderInfoEvent, false, 0, true);
this._realLI.addEventListener(Event.INIT, this.handleLoaderInfoEvent, false, 0, true);
this._realLI.addEventListener(IOErrorEvent.IO_ERROR, this.handleLoaderInfoEvent, false, 0, true);
this._realLI.addEventListener(Event.OPEN, this.handleLoaderInfoEvent, false, 0, true);
this._realLI.addEventListener(ProgressEvent.PROGRESS, this.handleProgressEvent, false, 0, true);
this._realLI.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.handleSecurityErrorEvent, false, 0, true);
this._realLI.addEventListener(Event.UNLOAD, this.handleLoaderInfoEvent, false, 0, true);
}
function reset():void{
this._realContentLI = null;
this._rslPreloaderLoaded = false;
this._doneProgressStalling = false;
this._lcRequestedContentParentSet = false;
}
public function get actionScriptVersion():uint{
return (this._realLI.actionScriptVersion);
}
public function get applicationDomain():ApplicationDomain{
return (this._realLI.applicationDomain);
}
public function get bytes():ByteArray{
return (this._realLI.bytes);
}
public function get bytesLoaded():uint{
if ((((this._realLI.bytesLoaded >= this._realLI.bytesTotal)) && ((this._proLoader.content == null)))){
return ((this._realLI.bytesTotal - 1));
};
return (this._realLI.bytesLoaded);
}
public function get bytesTotal():uint{
return (this._realLI.bytesTotal);
}
public function get childAllowsParent():Boolean{
return (this._realLI.childAllowsParent);
}
public function get childSandboxBridge():Object{
if (this._realContentLI != null){
return (this._realContentLI["childSandboxBridge"]);
};
return (this._realLI["childSandboxBridge"]);
}
public function set childSandboxBridge(_arg1:Object):void{
if (this._realContentLI != null){
this._realContentLI["childSandboxBridge"] = _arg1;
} else {
this._realLI["childSandboxBridge"] = _arg1;
};
}
public function get content():DisplayObject{
return (this._proLoader.content);
}
public function get contentType():String{
return (this._realLI.contentType);
}
public function get frameRate():Number{
return (this._realLI.frameRate);
}
public function get height():int{
return (this._realLI.height);
}
public function get isURLInaccessible():Boolean{
return (this._realLI.isURLInaccessible);
}
public function get loader():ProLoader{
return (this._proLoader);
}
public function get loaderURL():String{
return (this._realLI.loaderURL);
}
public function get parameters():Object{
return (this._realLI.parameters);
}
public function get parentAllowsChild():Boolean{
return (this._realLI.parentAllowsChild);
}
public function get parentSandboxBridge():Object{
if (this._realContentLI != null){
return (this._realContentLI["parentSandboxBridge"]);
};
return (this._realLI["parentSandboxBridge"]);
}
public function set parentSandboxBridge(_arg1:Object){
if (this._realContentLI != null){
this._realContentLI["parentSandboxBridge"] = _arg1;
} else {
this._realLI["parentSandboxBridge"] = _arg1;
};
}
public function get sameDomain():Boolean{
return (this._realLI.sameDomain);
}
public function get sharedEvents():EventDispatcher{
if (this._realContentLI != null){
return (this._realContentLI.sharedEvents);
};
return (this._realLI.sharedEvents);
}
public function get swfVersion():uint{
return (this._realLI.swfVersion);
}
public function get url():String{
return (this._realLI.url);
}
public function get width():int{
return (this._realLI.width);
}
override public function dispatchEvent(_arg1:Event):Boolean{
Error.throwError(IllegalOperationError, 2118);
return (false);
}
private function handleAsyncErrorEvent(_arg1:AsyncErrorEvent):void{
if (!this._lcRequestedContentParentSet){
super.dispatchEvent(_arg1);
};
}
private function handleLoaderInfoEvent(_arg1:Event):void{
var theContent:DisplayObject;
var theName:String;
var rslPreloader:Object;
var e = _arg1;
switch (e.type){
case HTTPStatusEvent.HTTP_STATUS:
case IOErrorEvent.IO_ERROR:
case Event.OPEN:
case Event.UNLOAD:
super.dispatchEvent(e);
break;
case Event.INIT:
if (!this._rslPreloaderLoaded){
try {
theContent = this._realLI.content;
theName = getQualifiedClassName(theContent);
if (theName.substr(-13) == "__Preloader__"){
rslPreloader = theContent["__rslPreloader"];
if (rslPreloader != null){
theName = getQualifiedClassName(rslPreloader);
if (theName == "fl.rsl::RSLPreloader"){
this._rslPreloaderLoaded = true;
this._numAdded = 0;
theContent.addEventListener(Event.ADDED, this.handleAddedEvent, false, 0, true);
};
};
};
} catch(err:Error) {
_rslPreloaderLoaded = false;
};
};
if (!this._rslPreloaderLoaded){
this._proLoader.loadDoneCallback(theContent);
if (((!(this._doneProgressStalling)) && ((this._realLI.bytesLoaded >= this._realLI.bytesTotal)))){
this._doneProgressStalling = true;
super.dispatchEvent(new ProgressEvent(ProgressEvent.PROGRESS, false, false, this._realLI.bytesLoaded, this._realLI.bytesTotal));
};
super.dispatchEvent(e);
};
break;
case Event.COMPLETE:
if (!this._rslPreloaderLoaded){
super.dispatchEvent(e);
};
break;
};
}
private function handleProgressEvent(_arg1:ProgressEvent):void{
if (((this._doneProgressStalling) || ((_arg1.bytesLoaded < _arg1.bytesTotal)))){
super.dispatchEvent(_arg1);
};
}
private function handleSecurityErrorEvent(_arg1:SecurityErrorEvent):void{
if (((!(this._lcRequestedContentParentSet)) || (!((_arg1.errorID == 2047))))){
super.dispatchEvent(_arg1);
};
}
private function handleAddedEvent(_arg1:Event):void{
var _local2:DisplayObject = (_arg1.target as DisplayObject);
var _local3:DisplayObjectContainer = (_arg1.currentTarget as DisplayObjectContainer);
if (((((!((_local2 == null))) && (!((_local3 == null))))) && ((_local2.parent == _local3)))){
this._numAdded++;
};
if (this._numAdded > 1){
_arg1.currentTarget.removeEventListener(Event.ADDED, this.handleAddedEvent);
if (this._proLoader.loadDoneCallback(_local2)){
if (((!(this._doneProgressStalling)) && ((this._realLI.bytesLoaded >= this._realLI.bytesTotal)))){
this._doneProgressStalling = true;
super.dispatchEvent(new ProgressEvent(ProgressEvent.PROGRESS, false, false, this._realLI.bytesLoaded, this._realLI.bytesTotal));
};
super.dispatchEvent(new Event(Event.INIT, false, false));
super.dispatchEvent(new Event(Event.COMPLETE, false, false));
};
};
}
function set realContentLoaderInfo(_arg1:LoaderInfo):void{
var obj:Object;
var value = _arg1;
this._realContentLI = value;
this._realContentLI.addEventListener(Event.COMPLETE, this.handleRealContentEvent, false, 0, true);
this._realContentLI.addEventListener(Event.INIT, this.handleRealContentEvent, false, 0, true);
this._realContentLI.addEventListener(IOErrorEvent.IO_ERROR, this.handleLoaderInfoEvent, false, 0, true);
this._realContentLI.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.handleSecurityErrorEvent, false, 0, true);
this._rslPreloaderLoaded = true;
if (this._realContentLI.hasOwnProperty("childSandboxBridge")){
try {
obj = this._realLI["childSandboxBridge"];
if (obj != null){
this._realContentLI["childSandboxBridge"] = obj;
};
} catch(se:SecurityError) {
};
try {
obj = this._realLI["parentSandboxBridge"];
if (obj != null){
this._realContentLI["parentSandboxBridge"] = obj;
};
} catch(se:SecurityError) {
};
};
}
function get realContentLoaderInfo():LoaderInfo{
return (this._realContentLI);
}
private function handleRealContentEvent(_arg1:Event):void{
var d:DisplayObject;
var e = _arg1;
if (e.type == Event.INIT){
try {
d = this._realContentLI.content;
} catch(se:SecurityError) {
d = null;
};
this._proLoader.loadDoneCallback(d);
if (((!(this._doneProgressStalling)) && ((this._realLI.bytesLoaded >= this._realLI.bytesTotal)))){
this._doneProgressStalling = true;
super.dispatchEvent(new ProgressEvent(ProgressEvent.PROGRESS, false, false, this._realLI.bytesLoaded, this._realLI.bytesTotal));
};
};
super.dispatchEvent(e);
}
}
}//package fl.display
Section 29
//ComponentEvent (fl.events.ComponentEvent)
package fl.events {
import flash.events.*;
public class ComponentEvent extends Event {
public static const BUTTON_DOWN:String = "buttonDown";
public static const LABEL_CHANGE:String = "labelChange";
public static const HIDE:String = "hide";
public static const SHOW:String = "show";
public static const RESIZE:String = "resize";
public static const MOVE:String = "move";
public static const ENTER:String = "enter";
public function ComponentEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
super(_arg1, _arg2, _arg3);
}
override public function toString():String{
return (formatToString("ComponentEvent", "type", "bubbles", "cancelable"));
}
override public function clone():Event{
return (new ComponentEvent(type, bubbles, cancelable));
}
}
}//package fl.events
Section 30
//ProLoaderRSLPreloaderSandboxEvent (fl.events.ProLoaderRSLPreloaderSandboxEvent)
package fl.events {
import flash.display.*;
import flash.events.*;
public class ProLoaderRSLPreloaderSandboxEvent extends Event {
public var loaderInfo:LoaderInfo;
public var shape:Shape;
public static const PROLOADER_RSLPRELOADER_SANDBOX:String = "__proLoaderRSLPreloaderSandbox";
public function ProLoaderRSLPreloaderSandboxEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false, _arg4:LoaderInfo=null, _arg5:Shape=null){
super(_arg1, _arg2, _arg3);
this.loaderInfo = _arg4;
this.shape = _arg5;
}
override public function clone():Event{
return (new ProLoaderRSLPreloaderSandboxEvent(type, bubbles, cancelable, this.loaderInfo, this.shape));
}
override public function toString():String{
return (formatToString("ProLoaderRSLPreloaderSandboxEvent", "type", "bubbles", "cancelable", "eventPhase", "loaderInfo", "shape"));
}
}
}//package fl.events
Section 31
//ScrollEvent (fl.events.ScrollEvent)
package fl.events {
import flash.events.*;
public class ScrollEvent extends Event {
private var _direction:String;
private var _delta:Number;
private var _position:Number;
public static const SCROLL:String = "scroll";
public function ScrollEvent(_arg1:String, _arg2:Number, _arg3:Number){
super(ScrollEvent.SCROLL, false, false);
_direction = _arg1;
_delta = _arg2;
_position = _arg3;
}
public function get direction():String{
return (_direction);
}
public function get delta():Number{
return (_delta);
}
public function get position():Number{
return (_position);
}
override public function toString():String{
return (formatToString("ScrollEvent", "type", "bubbles", "cancelable", "direction", "delta", "position"));
}
override public function clone():Event{
return (new ScrollEvent(_direction, _delta, _position));
}
}
}//package fl.events
Section 32
//FocusManager (fl.managers.FocusManager)
package fl.managers {
import fl.controls.*;
import flash.display.*;
import fl.core.*;
import flash.events.*;
import flash.utils.*;
import flash.text.*;
import flash.ui.*;
public class FocusManager implements IFocusManager {
private var _form:DisplayObjectContainer;
private var focusableObjects:Dictionary;
private var focusableCandidates:Array;
private var activated:Boolean;// = false
private var calculateCandidates:Boolean;// = true
private var lastFocus:InteractiveObject;
private var _showFocusIndicator:Boolean;// = true
private var lastAction:String;
private var defButton:Button;
private var _defaultButton:Button;
private var _defaultButtonEnabled:Boolean;// = true
public function FocusManager(_arg1:DisplayObjectContainer){
focusableObjects = new Dictionary(true);
if (_arg1 != null){
_form = _arg1;
activate();
};
}
private function addedHandler(_arg1:Event):void{
var _local2:DisplayObject = DisplayObject(_arg1.target);
if (_local2.stage){
addFocusables(DisplayObject(_arg1.target));
};
}
private function removedHandler(_arg1:Event):void{
var _local2:int;
var _local4:InteractiveObject;
var _local3:DisplayObject = DisplayObject(_arg1.target);
if ((((_local3 is IFocusManagerComponent)) && ((focusableObjects[_local3] == true)))){
if (_local3 == lastFocus){
IFocusManagerComponent(lastFocus).drawFocus(false);
lastFocus = null;
};
_local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler, false);
delete focusableObjects[_local3];
calculateCandidates = true;
} else {
if ((((_local3 is InteractiveObject)) && ((focusableObjects[_local3] == true)))){
_local4 = (_local3 as InteractiveObject);
if (_local4){
if (_local4 == lastFocus){
lastFocus = null;
};
delete focusableObjects[_local4];
calculateCandidates = true;
};
_local3.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler, false, 0, true);
};
};
removeFocusables(_local3);
}
private function addFocusables(_arg1:DisplayObject, _arg2:Boolean=false):void{
var focusable:IFocusManagerComponent;
var io:InteractiveObject;
var doc:DisplayObjectContainer;
var docParent:DisplayObjectContainer;
var i:int;
var child:DisplayObject;
var o = _arg1;
var skipTopLevel = _arg2;
if (!skipTopLevel){
if ((o is IFocusManagerComponent)){
focusable = IFocusManagerComponent(o);
if (focusable.focusEnabled){
if (((focusable.tabEnabled) && (isTabVisible(o)))){
focusableObjects[o] = true;
calculateCandidates = true;
};
o.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler, false, 0, true);
o.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler, false, 0, true);
};
} else {
if ((o is InteractiveObject)){
io = (o as InteractiveObject);
if (((((io) && (io.tabEnabled))) && ((findFocusManagerComponent(io) == io)))){
focusableObjects[io] = true;
calculateCandidates = true;
};
io.addEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler, false, 0, true);
io.addEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler, false, 0, true);
};
};
};
if ((o is DisplayObjectContainer)){
doc = DisplayObjectContainer(o);
o.addEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler, false, 0, true);
docParent = null;
try {
docParent = doc.parent;
} catch(se:SecurityError) {
docParent = null;
};
if ((((((doc is Stage)) || ((docParent is Stage)))) || (doc.tabChildren))){
i = 0;
while (i < doc.numChildren) {
try {
child = doc.getChildAt(i);
if (child != null){
addFocusables(doc.getChildAt(i));
};
} catch(error:SecurityError) {
};
i = (i + 1);
};
};
};
}
private function removeFocusables(_arg1:DisplayObject):void{
var _local2:Object;
var _local3:DisplayObject;
if ((_arg1 is DisplayObjectContainer)){
_arg1.removeEventListener(Event.TAB_CHILDREN_CHANGE, tabChildrenChangeHandler, false);
_arg1.removeEventListener(Event.TAB_INDEX_CHANGE, tabIndexChangeHandler, false);
for (_local2 in focusableObjects) {
_local3 = DisplayObject(_local2);
if (DisplayObjectContainer(_arg1).contains(_local3)){
if (_local3 == lastFocus){
lastFocus = null;
};
_local3.removeEventListener(Event.TAB_ENABLED_CHANGE, tabEnabledChangeHandler, false);
delete focusableObjects[_local2];
calculateCandidates = true;
};
};
};
}
private function isTabVisible(_arg1:DisplayObject):Boolean{
var p:DisplayObjectContainer;
var o = _arg1;
try {
p = o.parent;
while (((((p) && (!((p is Stage))))) && (!(((p.parent) && ((p.parent is Stage))))))) {
if (!p.tabChildren){
return (false);
};
p = p.parent;
};
} catch(se:SecurityError) {
};
return (true);
}
private function isValidFocusCandidate(_arg1:DisplayObject, _arg2:String):Boolean{
var _local3:IFocusManagerGroup;
if (!isEnabledAndVisible(_arg1)){
return (false);
};
if ((_arg1 is IFocusManagerGroup)){
_local3 = IFocusManagerGroup(_arg1);
if (_arg2 == _local3.groupName){
return (false);
};
};
return (true);
}
private function isEnabledAndVisible(_arg1:DisplayObject):Boolean{
var formParent:DisplayObjectContainer;
var tf:TextField;
var sb:SimpleButton;
var o = _arg1;
try {
formParent = DisplayObject(form).parent;
while (o != formParent) {
if ((o is UIComponent)){
if (!UIComponent(o).enabled){
return (false);
};
} else {
if ((o is TextField)){
tf = TextField(o);
if ((((tf.type == TextFieldType.DYNAMIC)) || (!(tf.selectable)))){
return (false);
};
} else {
if ((o is SimpleButton)){
sb = SimpleButton(o);
if (!sb.enabled){
return (false);
};
};
};
};
if (!o.visible){
return (false);
};
o = o.parent;
};
} catch(se:SecurityError) {
};
return (true);
}
private function tabEnabledChangeHandler(_arg1:Event):void{
calculateCandidates = true;
var _local2:InteractiveObject = InteractiveObject(_arg1.target);
var _local3 = (focusableObjects[_local2] == true);
if (_local2.tabEnabled){
if (((!(_local3)) && (isTabVisible(_local2)))){
if (!(_local2 is IFocusManagerComponent)){
_local2.focusRect = false;
};
focusableObjects[_local2] = true;
};
} else {
if (_local3){
delete focusableObjects[_local2];
};
};
}
private function tabIndexChangeHandler(_arg1:Event):void{
calculateCandidates = true;
}
private function tabChildrenChangeHandler(_arg1:Event):void{
if (_arg1.target != _arg1.currentTarget){
return;
};
calculateCandidates = true;
var _local2:DisplayObjectContainer = DisplayObjectContainer(_arg1.target);
if (_local2.tabChildren){
addFocusables(_local2, true);
} else {
removeFocusables(_local2);
};
}
public function activate():void{
if (activated){
return;
};
addFocusables(form);
form.addEventListener(Event.ADDED, addedHandler, false, 0, true);
form.addEventListener(Event.REMOVED, removedHandler, false, 0, true);
try {
form.stage.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler, false, 0, true);
form.stage.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false, 0, true);
form.stage.addEventListener(Event.ACTIVATE, activateHandler, false, 0, true);
form.stage.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true);
} catch(se:SecurityError) {
form.addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler, false, 0, true);
form.addEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false, 0, true);
form.addEventListener(Event.ACTIVATE, activateHandler, false, 0, true);
form.addEventListener(Event.DEACTIVATE, deactivateHandler, false, 0, true);
};
form.addEventListener(FocusEvent.FOCUS_IN, focusInHandler, true, 0, true);
form.addEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true, 0, true);
form.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler, false, 0, true);
form.addEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true, 0, true);
activated = true;
if (lastFocus){
setFocus(lastFocus);
};
}
public function deactivate():void{
if (!activated){
return;
};
focusableObjects = new Dictionary(true);
focusableCandidates = null;
lastFocus = null;
defButton = null;
form.removeEventListener(Event.ADDED, addedHandler, false);
form.removeEventListener(Event.REMOVED, removedHandler, false);
try {
form.stage.removeEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler, false);
form.stage.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false);
form.stage.removeEventListener(Event.ACTIVATE, activateHandler, false);
form.stage.removeEventListener(Event.DEACTIVATE, deactivateHandler, false);
} catch(se:SecurityError) {
};
form.removeEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, mouseFocusChangeHandler, false);
form.removeEventListener(FocusEvent.KEY_FOCUS_CHANGE, keyFocusChangeHandler, false);
form.removeEventListener(Event.ACTIVATE, activateHandler, false);
form.removeEventListener(Event.DEACTIVATE, deactivateHandler, false);
form.removeEventListener(FocusEvent.FOCUS_IN, focusInHandler, true);
form.removeEventListener(FocusEvent.FOCUS_OUT, focusOutHandler, true);
form.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler, false);
form.removeEventListener(KeyboardEvent.KEY_DOWN, keyDownHandler, true);
activated = false;
}
private function focusInHandler(_arg1:FocusEvent):void{
var _local3:Button;
if (!activated){
return;
};
var _local2:InteractiveObject = InteractiveObject(_arg1.target);
if (form.contains(_local2)){
lastFocus = findFocusManagerComponent(InteractiveObject(_local2));
if ((lastFocus is Button)){
_local3 = Button(lastFocus);
if (defButton){
defButton.emphasized = false;
defButton = _local3;
_local3.emphasized = true;
};
} else {
if (((defButton) && (!((defButton == _defaultButton))))){
defButton.emphasized = false;
defButton = _defaultButton;
_defaultButton.emphasized = true;
};
};
};
}
private function focusOutHandler(_arg1:FocusEvent):void{
if (!activated){
return;
};
var _local2:InteractiveObject = (_arg1.target as InteractiveObject);
}
private function activateHandler(_arg1:Event):void{
if (!activated){
return;
};
var _local2:InteractiveObject = InteractiveObject(_arg1.target);
if (lastFocus){
if ((lastFocus is IFocusManagerComponent)){
IFocusManagerComponent(lastFocus).setFocus();
} else {
form.stage.focus = lastFocus;
};
};
lastAction = "ACTIVATE";
}
private function deactivateHandler(_arg1:Event):void{
if (!activated){
return;
};
var _local2:InteractiveObject = InteractiveObject(_arg1.target);
}
private function mouseFocusChangeHandler(_arg1:FocusEvent):void{
if (!activated){
return;
};
if ((_arg1.relatedObject is TextField)){
return;
};
_arg1.preventDefault();
}
private function keyFocusChangeHandler(_arg1:FocusEvent):void{
if (!activated){
return;
};
showFocusIndicator = true;
if ((((((_arg1.keyCode == Keyboard.TAB)) || ((_arg1.keyCode == 0)))) && (!(_arg1.isDefaultPrevented())))){
setFocusToNextObject(_arg1);
_arg1.preventDefault();
};
}
private function keyDownHandler(_arg1:KeyboardEvent):void{
if (!activated){
return;
};
if (_arg1.keyCode == Keyboard.TAB){
lastAction = "KEY";
if (calculateCandidates){
sortFocusableObjects();
calculateCandidates = false;
};
};
if (((((((defaultButtonEnabled) && ((_arg1.keyCode == Keyboard.ENTER)))) && (defaultButton))) && (defButton.enabled))){
sendDefaultButtonEvent();
};
}
private function mouseDownHandler(_arg1:MouseEvent):void{
if (!activated){
return;
};
if (_arg1.isDefaultPrevented()){
return;
};
var _local2:InteractiveObject = getTopLevelFocusTarget(InteractiveObject(_arg1.target));
if (!_local2){
return;
};
showFocusIndicator = false;
if (((((!((_local2 == lastFocus))) || ((lastAction == "ACTIVATE")))) && (!((_local2 is TextField))))){
setFocus(_local2);
};
lastAction = "MOUSEDOWN";
}
public function get defaultButton():Button{
return (_defaultButton);
}
public function set defaultButton(_arg1:Button):void{
var _local2:Button = (_arg1) ? Button(_arg1) : null;
if (_local2 != _defaultButton){
if (_defaultButton){
_defaultButton.emphasized = false;
};
if (defButton){
defButton.emphasized = false;
};
_defaultButton = _local2;
defButton = _local2;
if (_local2){
_local2.emphasized = true;
};
};
}
public function sendDefaultButtonEvent():void{
defButton.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
}
private function setFocusToNextObject(_arg1:FocusEvent):void{
if (!hasFocusableObjects()){
return;
};
var _local2:InteractiveObject = getNextFocusManagerComponent(_arg1.shiftKey);
if (_local2){
setFocus(_local2);
};
}
private function hasFocusableObjects():Boolean{
var _local1:Object;
for (_local1 in focusableObjects) {
return (true);
};
return (false);
}
public function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject{
var _local8:IFocusManagerGroup;
if (!hasFocusableObjects()){
return (null);
};
if (calculateCandidates){
sortFocusableObjects();
calculateCandidates = false;
};
var _local2:DisplayObject = form.stage.focus;
_local2 = DisplayObject(findFocusManagerComponent(InteractiveObject(_local2)));
var _local3 = "";
if ((_local2 is IFocusManagerGroup)){
_local8 = IFocusManagerGroup(_local2);
_local3 = _local8.groupName;
};
var _local4:int = getIndexOfFocusedObject(_local2);
var _local5:Boolean;
var _local6:int = _local4;
if (_local4 == -1){
if (_arg1){
_local4 = focusableCandidates.length;
};
_local5 = true;
};
var _local7:int = getIndexOfNextObject(_local4, _arg1, _local5, _local3);
return (findFocusManagerComponent(focusableCandidates[_local7]));
}
private function getIndexOfFocusedObject(_arg1:DisplayObject):int{
var _local2:int = focusableCandidates.length;
var _local3:int;
_local3 = 0;
while (_local3 < _local2) {
if (focusableCandidates[_local3] == _arg1){
return (_local3);
};
_local3++;
};
return (-1);
}
private function getIndexOfNextObject(_arg1:int, _arg2:Boolean, _arg3:Boolean, _arg4:String):int{
var _local7:DisplayObject;
var _local8:IFocusManagerGroup;
var _local9:int;
var _local10:DisplayObject;
var _local11:IFocusManagerGroup;
var _local5:int = focusableCandidates.length;
var _local6:int = _arg1;
while (true) {
if (_arg2){
_arg1--;
} else {
_arg1++;
};
if (_arg3){
if (((_arg2) && ((_arg1 < 0)))){
break;
};
if (((!(_arg2)) && ((_arg1 == _local5)))){
break;
};
} else {
_arg1 = ((_arg1 + _local5) % _local5);
if (_local6 == _arg1){
break;
};
};
if (isValidFocusCandidate(focusableCandidates[_arg1], _arg4)){
_local7 = DisplayObject(findFocusManagerComponent(focusableCandidates[_arg1]));
if ((_local7 is IFocusManagerGroup)){
_local8 = IFocusManagerGroup(_local7);
_local9 = 0;
while (_local9 < focusableCandidates.length) {
_local10 = focusableCandidates[_local9];
if ((_local10 is IFocusManagerGroup)){
_local11 = IFocusManagerGroup(_local10);
if ((((_local11.groupName == _local8.groupName)) && (_local11.selected))){
_arg1 = _local9;
break;
};
};
_local9++;
};
};
return (_arg1);
};
};
return (_arg1);
}
private function sortFocusableObjects():void{
var _local1:Object;
var _local2:InteractiveObject;
focusableCandidates = [];
for (_local1 in focusableObjects) {
_local2 = InteractiveObject(_local1);
if (((((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))) && ((_local2.tabIndex > 0)))){
sortFocusableObjectsTabIndex();
return;
};
focusableCandidates.push(_local2);
};
focusableCandidates.sort(sortByDepth);
}
private function sortFocusableObjectsTabIndex():void{
var _local1:Object;
var _local2:InteractiveObject;
focusableCandidates = [];
for (_local1 in focusableObjects) {
_local2 = InteractiveObject(_local1);
if (((_local2.tabIndex) && (!(isNaN(Number(_local2.tabIndex)))))){
focusableCandidates.push(_local2);
};
};
focusableCandidates.sort(sortByTabIndex);
}
private function sortByDepth(_arg1:InteractiveObject, _arg2:InteractiveObject):Number{
var index:int;
var tmp:String;
var tmp2:String;
var aa = _arg1;
var bb = _arg2;
var val1 = "";
var val2 = "";
var zeros = "0000";
var a:DisplayObject = DisplayObject(aa);
var b:DisplayObject = DisplayObject(bb);
try {
while (((!((a == DisplayObject(form)))) && (a.parent))) {
index = getChildIndex(a.parent, a);
tmp = index.toString(16);
if (tmp.length < 4){
tmp2 = (zeros.substring(0, (4 - tmp.length)) + tmp);
};
val1 = (tmp2 + val1);
a = a.parent;
};
} catch(se1:SecurityError) {
};
try {
while (((!((b == DisplayObject(form)))) && (b.parent))) {
index = getChildIndex(b.parent, b);
tmp = index.toString(16);
if (tmp.length < 4){
tmp2 = (zeros.substring(0, (4 - tmp.length)) + tmp);
};
val2 = (tmp2 + val2);
b = b.parent;
};
} catch(se2:SecurityError) {
};
return (((val1 > val2)) ? 1 : ((val1 < val2)) ? -1 : 0);
}
private function getChildIndex(_arg1:DisplayObjectContainer, _arg2:DisplayObject):int{
return (_arg1.getChildIndex(_arg2));
}
private function sortByTabIndex(_arg1:InteractiveObject, _arg2:InteractiveObject):int{
return (((_arg1.tabIndex > _arg2.tabIndex)) ? 1 : ((_arg1.tabIndex < _arg2.tabIndex)) ? -1 : sortByDepth(_arg1, _arg2));
}
public function get defaultButtonEnabled():Boolean{
return (_defaultButtonEnabled);
}
public function set defaultButtonEnabled(_arg1:Boolean):void{
_defaultButtonEnabled = _arg1;
}
public function get nextTabIndex():int{
return (0);
}
public function get showFocusIndicator():Boolean{
return (_showFocusIndicator);
}
public function set showFocusIndicator(_arg1:Boolean):void{
_showFocusIndicator = _arg1;
}
public function get form():DisplayObjectContainer{
return (_form);
}
public function set form(_arg1:DisplayObjectContainer):void{
_form = _arg1;
}
public function getFocus():InteractiveObject{
var _local1:InteractiveObject = form.stage.focus;
return (findFocusManagerComponent(_local1));
}
public function setFocus(_arg1:InteractiveObject):void{
if ((_arg1 is IFocusManagerComponent)){
IFocusManagerComponent(_arg1).setFocus();
} else {
form.stage.focus = _arg1;
};
}
public function showFocus():void{
}
public function hideFocus():void{
}
public function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject{
var component = _arg1;
var p:InteractiveObject = component;
try {
while (component) {
if ((((component is IFocusManagerComponent)) && (IFocusManagerComponent(component).focusEnabled))){
return (component);
};
component = component.parent;
};
} catch(se:SecurityError) {
};
return (p);
}
private function getTopLevelFocusTarget(_arg1:InteractiveObject):InteractiveObject{
var o = _arg1;
try {
while (o != InteractiveObject(form)) {
if ((((((((o is IFocusManagerComponent)) && (IFocusManagerComponent(o).focusEnabled))) && (IFocusManagerComponent(o).mouseFocusEnabled))) && (UIComponent(o).enabled))){
return (o);
};
o = o.parent;
if (o == null){
break;
};
};
} catch(se:SecurityError) {
};
return (null);
}
}
}//package fl.managers
Section 33
//IFocusManager (fl.managers.IFocusManager)
package fl.managers {
import fl.controls.*;
import flash.display.*;
public interface IFocusManager {
function get defaultButton():Button;
function set defaultButton(_arg1:Button):void;
function get defaultButtonEnabled():Boolean;
function set defaultButtonEnabled(_arg1:Boolean):void;
function get nextTabIndex():int;
function get showFocusIndicator():Boolean;
function set showFocusIndicator(_arg1:Boolean):void;
function getFocus():InteractiveObject;
function setFocus(_arg1:InteractiveObject):void;
function showFocus():void;
function hideFocus():void;
function activate():void;
function deactivate():void;
function findFocusManagerComponent(_arg1:InteractiveObject):InteractiveObject;
function getNextFocusManagerComponent(_arg1:Boolean=false):InteractiveObject;
function get form():DisplayObjectContainer;
function set form(_arg1:DisplayObjectContainer):void;
}
}//package fl.managers
Section 34
//IFocusManagerComponent (fl.managers.IFocusManagerComponent)
package fl.managers {
public interface IFocusManagerComponent {
function get focusEnabled():Boolean;
function set focusEnabled(_arg1:Boolean):void;
function get mouseFocusEnabled():Boolean;
function get tabEnabled():Boolean;
function get tabIndex():int;
function setFocus():void;
function drawFocus(_arg1:Boolean):void;
}
}//package fl.managers
Section 35
//IFocusManagerGroup (fl.managers.IFocusManagerGroup)
package fl.managers {
public interface IFocusManagerGroup {
function get groupName():String;
function set groupName(_arg1:String):void;
function get selected():Boolean;
function set selected(_arg1:Boolean):void;
}
}//package fl.managers
Section 36
//StyleManager (fl.managers.StyleManager)
package fl.managers {
import fl.core.*;
import flash.utils.*;
import flash.text.*;
public class StyleManager {
private var styleToClassesHash:Object;
private var classToInstancesDict:Dictionary;
private var classToStylesDict:Dictionary;
private var classToDefaultStylesDict:Dictionary;
private var globalStyles:Object;
private static var _instance:StyleManager;
public function StyleManager(){
styleToClassesHash = {};
classToInstancesDict = new Dictionary(true);
classToStylesDict = new Dictionary(true);
classToDefaultStylesDict = new Dictionary(true);
globalStyles = UIComponent.getStyleDefinition();
}
private static function getInstance(){
if (_instance == null){
_instance = new (StyleManager);
};
return (_instance);
}
public static function registerInstance(_arg1:UIComponent):void{
var target:Class;
var defaultStyles:Object;
var styleToClasses:Object;
var n:String;
var instance = _arg1;
var inst:StyleManager = getInstance();
var classDef:Class = getClassDef(instance);
if (classDef == null){
return;
};
if (inst.classToInstancesDict[classDef] == null){
inst.classToInstancesDict[classDef] = new Dictionary(true);
target = classDef;
while (defaultStyles == null) {
if (target["getStyleDefinition"] != null){
defaultStyles = target["getStyleDefinition"]();
break;
};
try {
target = (instance.loaderInfo.applicationDomain.getDefinition(getQualifiedSuperclassName(target)) as Class);
} catch(err:Error) {
try {
target = (getDefinitionByName(getQualifiedSuperclassName(target)) as Class);
} catch(e:Error) {
defaultStyles = UIComponent.getStyleDefinition();
break;
};
};
};
styleToClasses = inst.styleToClassesHash;
for (n in defaultStyles) {
if (styleToClasses[n] == null){
styleToClasses[n] = new Dictionary(true);
};
styleToClasses[n][classDef] = true;
};
inst.classToDefaultStylesDict[classDef] = defaultStyles;
if (inst.classToStylesDict[classDef] == null){
inst.classToStylesDict[classDef] = {};
};
};
inst.classToInstancesDict[classDef][instance] = true;
setSharedStyles(instance);
}
private static function setSharedStyles(_arg1:UIComponent):void{
var _local5:String;
var _local2:StyleManager = getInstance();
var _local3:Class = getClassDef(_arg1);
var _local4:Object = _local2.classToDefaultStylesDict[_local3];
for (_local5 in _local4) {
_arg1.setSharedStyle(_local5, getSharedStyle(_arg1, _local5));
};
}
private static function getSharedStyle(_arg1:UIComponent, _arg2:String):Object{
var _local3:Class = getClassDef(_arg1);
var _local4:StyleManager = getInstance();
var _local5:Object = _local4.classToStylesDict[_local3][_arg2];
if (_local5 != null){
return (_local5);
};
_local5 = _local4.globalStyles[_arg2];
if (_local5 != null){
return (_local5);
};
return (_local4.classToDefaultStylesDict[_local3][_arg2]);
}
public static function getComponentStyle(_arg1:Object, _arg2:String):Object{
var _local3:Class = getClassDef(_arg1);
var _local4:Object = getInstance().classToStylesDict[_local3];
return (((_local4)==null) ? null : _local4[_arg2]);
}
public static function clearComponentStyle(_arg1:Object, _arg2:String):void{
var _local3:Class = getClassDef(_arg1);
var _local4:Object = getInstance().classToStylesDict[_local3];
if (((!((_local4 == null))) && (!((_local4[_arg2] == null))))){
delete _local4[_arg2];
invalidateComponentStyle(_local3, _arg2);
};
}
public static function setComponentStyle(_arg1:Object, _arg2:String, _arg3:Object):void{
var _local4:Class = getClassDef(_arg1);
var _local5:Object = getInstance().classToStylesDict[_local4];
if (_local5 == null){
_local5 = (getInstance().classToStylesDict[_local4] = {});
};
if (_local5 == _arg3){
return;
};
_local5[_arg2] = _arg3;
invalidateComponentStyle(_local4, _arg2);
}
private static function getClassDef(_arg1:Object):Class{
var component = _arg1;
if ((component is Class)){
return ((component as Class));
};
try {
return ((getDefinitionByName(getQualifiedClassName(component)) as Class));
} catch(e:Error) {
if ((component is UIComponent)){
try {
return ((component.loaderInfo.applicationDomain.getDefinition(getQualifiedClassName(component)) as Class));
} catch(e:Error) {
};
};
};
return (null);
}
private static function invalidateStyle(_arg1:String):void{
var _local3:Object;
var _local2:Dictionary = getInstance().styleToClassesHash[_arg1];
if (_local2 == null){
return;
};
for (_local3 in _local2) {
invalidateComponentStyle(Class(_local3), _arg1);
};
}
private static function invalidateComponentStyle(_arg1:Class, _arg2:String):void{
var _local4:Object;
var _local5:UIComponent;
var _local3:Dictionary = getInstance().classToInstancesDict[_arg1];
if (_local3 == null){
return;
};
for (_local4 in _local3) {
_local5 = (_local4 as UIComponent);
if (_local5 == null){
} else {
_local5.setSharedStyle(_arg2, getSharedStyle(_local5, _arg2));
};
};
}
public static function setStyle(_arg1:String, _arg2:Object):void{
var _local3:Object = getInstance().globalStyles;
if ((((_local3[_arg1] === _arg2)) && (!((_arg2 is TextFormat))))){
return;
};
_local3[_arg1] = _arg2;
invalidateStyle(_arg1);
}
public static function clearStyle(_arg1:String):void{
setStyle(_arg1, null);
}
public static function getStyle(_arg1:String):Object{
return (getInstance().globalStyles[_arg1]);
}
}
}//package fl.managers
Section 37
//AdressP (AdressP)
package {
import flash.display.*;
public dynamic class AdressP extends MovieClip {
public function AdressP(){
addFrameScript(0, frame1, 4, frame5, 8, frame9, 12, frame13, 16, frame17, 20, frame21, 24, frame25, 28, frame29, 32, frame33, 36, frame37, 40, frame41, 44, frame45, 48, frame49, 52, frame53, 56, frame57, 60, frame61);
}
function frame1(){
stop();
}
function frame5(){
gotoAndStop("bura");
}
function frame9(){
gotoAndStop("pant");
}
function frame13(){
gotoAndStop("tait");
}
function frame17(){
gotoAndStop("se-ta");
}
function frame21(){
gotoAndStop("ka-de");
}
function frame25(){
gotoAndStop("scart");
}
function frame29(){
gotoAndStop("syat");
}
function frame33(){
gotoAndStop("bure");
}
function frame37(){
gotoAndStop("sscart");
}
function frame41(){
gotoAndStop("Fue");
}
function frame45(){
gotoAndStop("Fscart");
}
function frame49(){
gotoAndStop("ni-so");
}
function frame53(){
gotoAndStop("sukumizu");
}
function frame57(){
gotoAndStop("banny");
}
function frame61(){
gotoAndStop("reino");
}
}
}//package
Section 38
//Aitem (Aitem)
package {
import flash.display.*;
public dynamic class Aitem extends MovieClip {
public function Aitem(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 39
//AtexP (AtexP)
package {
import flash.display.*;
public dynamic class AtexP extends MovieClip {
public function AtexP(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package
Section 40
//focusRectSkin (focusRectSkin)
package {
import flash.display.*;
public dynamic class focusRectSkin extends MovieClip {
}
}//package
Section 41
//getpoint (getpoint)
package {
import flash.display.*;
public dynamic class getpoint extends MovieClip {
public var gp:MovieClip;
public function getpoint(){
addFrameScript(9, frame10);
}
function frame10(){
stop();
}
}
}//package
Section 42
//item_menus (item_menus)
package {
import flash.display.*;
public dynamic class item_menus extends MovieClip {
}
}//package
Section 43
//ScrollArrowDown_disabledSkin (ScrollArrowDown_disabledSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowDown_disabledSkin extends MovieClip {
}
}//package
Section 44
//ScrollArrowDown_downSkin (ScrollArrowDown_downSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowDown_downSkin extends MovieClip {
}
}//package
Section 45
//ScrollArrowDown_overSkin (ScrollArrowDown_overSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowDown_overSkin extends MovieClip {
}
}//package
Section 46
//ScrollArrowDown_upSkin (ScrollArrowDown_upSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowDown_upSkin extends MovieClip {
}
}//package
Section 47
//ScrollArrowUp_disabledSkin (ScrollArrowUp_disabledSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowUp_disabledSkin extends MovieClip {
}
}//package
Section 48
//ScrollArrowUp_downSkin (ScrollArrowUp_downSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowUp_downSkin extends MovieClip {
}
}//package
Section 49
//ScrollArrowUp_overSkin (ScrollArrowUp_overSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowUp_overSkin extends MovieClip {
}
}//package
Section 50
//ScrollArrowUp_upSkin (ScrollArrowUp_upSkin)
package {
import flash.display.*;
public dynamic class ScrollArrowUp_upSkin extends MovieClip {
}
}//package
Section 51
//ScrollBar_thumbIcon (ScrollBar_thumbIcon)
package {
import flash.display.*;
public dynamic class ScrollBar_thumbIcon extends MovieClip {
}
}//package
Section 52
//ScrollPane_disabledSkin (ScrollPane_disabledSkin)
package {
import flash.display.*;
public dynamic class ScrollPane_disabledSkin extends MovieClip {
}
}//package
Section 53
//ScrollPane_upSkin (ScrollPane_upSkin)
package {
import flash.display.*;
public dynamic class ScrollPane_upSkin extends MovieClip {
}
}//package
Section 54
//ScrollThumb_downSkin (ScrollThumb_downSkin)
package {
import flash.display.*;
public dynamic class ScrollThumb_downSkin extends MovieClip {
}
}//package
Section 55
//ScrollThumb_overSkin (ScrollThumb_overSkin)
package {
import flash.display.*;
public dynamic class ScrollThumb_overSkin extends MovieClip {
}
}//package
Section 56
//ScrollThumb_upSkin (ScrollThumb_upSkin)
package {
import flash.display.*;
public dynamic class ScrollThumb_upSkin extends MovieClip {
}
}//package
Section 57
//ScrollTrack_skin (ScrollTrack_skin)
package {
import flash.display.*;
public dynamic class ScrollTrack_skin extends MovieClip {
}
}//package
Section 58
//sepa (sepa)
package {
import flash.display.*;
import flash.text.*;
public dynamic class sepa extends MovieClip {
public var tex:TextField;
}
}//package
Section 59
//shop_item (shop_item)
package {
import flash.display.*;
import flash.text.*;
public dynamic class shop_item extends MovieClip {
public var point:TextField;
public var itemname:TextField;
public var checks:MovieClip;
public var locks:MovieClip;
public var btn:SimpleButton;
}
}//package