Combined Code
movieClip 5 {
}
movieClip 6 {
frame 67 {
stop();
}
}
movieClip 25 mc_00 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 27 graduation {
}
movieClip 29 effect {
}
movieClip 30 img_MC {
}
frame 1 {
stop();
System.security.loadPolicyFile('http://pics.dmm.co.jp/crossdomain.xml');
System.security.loadPolicyFile('http://pics.dmm.com/crossdomain.xml');
R = 0.05;
Num = 0;
speedR = 0;
textR = 0.5;
main._y = -1000;
var aryData = flash.external.ExternalInterface.call('get_product_data');
var aryOption = flash.external.ExternalInterface.call('get_option');
rankingNum = aryData.length;
pVisible = 4;
aryPwidth = new Array();
aryPheight = new Array();
if (aryOption.border == '0') {
mcBorder._visible = false;
}
if (aryOption.title == '') {
mcTitle.mcArrow._visible = false;
} else {
mcTitle.myTitle.htmlText = aryOption.title;
}
if (aryOption.domain == 'general') {
logo.gotoAndPlay(1);
} else {
if (aryOption.domain == 'adult') {
logo.gotoAndPlay(2);
}
}
var i = 0;
while (i < rankingNum) {
main.img_MC_00.createEmptyMovieClip('package_0' + i, i + 100);
(eval('_root.main.img_MC_00.package_0' + i)).createEmptyMovieClip('thumbnail_0' + i, 200);
(eval('_root.main.img_MC_00.package_0' + i)).createEmptyMovieClip('shade_0' + i, 100);
var load_mc = eval('_root.main.img_MC_00.package_0' + i + '.thumbnail_0' + i);
main.img_MC_01.createEmptyMovieClip('package_0' + i, i + 100);
(eval('_root.main.img_MC_01.package_0' + i)).createEmptyMovieClip('thumbnail_0' + i, 200);
(eval('_root.main.img_MC_01.package_0' + i)).createEmptyMovieClip('shade_0' + i, 100);
var load_mc = eval('_root.main.img_MC_01.package_0' + i + '.thumbnail_0' + i);
main.img_MC_02.createEmptyMovieClip('package_0' + i, i + 100);
(eval('_root.main.img_MC_02.package_0' + i)).createEmptyMovieClip('thumbnail_0' + i, 200);
(eval('_root.main.img_MC_02.package_0' + i)).createEmptyMovieClip('shade_0' + i, 100);
var load_mc = eval('_root.allWidthimg_MC_02.package_0' + i + '.thumbnail_0' + i);
++i;
}
main.createEmptyMovieClip('img_MC_01', this.getNextHighestDepth());
main.createEmptyMovieClip('img_MC_02', this.getNextHighestDepth());
var cliploader_mcl = new MovieClipLoader();
var lisner_obj = new Object();
var aryPnum = 0;
var contentNum = 0;
lisner_obj.onLoadInit = function (mc) {
var bmpData = new flash.display.BitmapData(mc._width, mc._height, false, 16777215);
var rankNum = eval('main.img_MC_0' + contentNum + '.package_0' + aryPnum);
bmpData.draw(mc);
rankNum.attachBitmap(bmpData, 250, 'auto', true);
aryPwidth[aryPnum] = mc._width;
aryPheight[aryPnum] = mc._height;
mc._visible = 0;
++aryPnum;
if (aryPnum < rankingNum) {
cliploader_mcl.loadClip(aryData[aryPnum].img, eval('main.img_MC_0' + contentNum + '.package_0' + aryPnum + '.thumbnail_0' + aryPnum));
} else {
if (contentNum == 0) {
gotoAndStop(2);
aryPnum = 0;
contentNum += 1;
} else {
if (contentNum == 1) {
aryPnum = 0;
cliploader_mcl.loadClip(aryData[aryPnum].img, main.img_MC_02.package_00.thumbnail_00);
contentNum += 1;
}
}
}
};
cliploader_mcl.addListener(lisner_obj);
setTimeout(function () {
cliploader_mcl.loadClip(aryData[0].img, 'main.img_MC_00.package_00.thumbnail_00');
}, 500);
}
movieClip 31 {
}
movieClip 39 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 45 {
}
movieClip 46 {
}
movieClip 49 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 52 {
}
instance bt_left of movieClip 52 {
onClipEvent (release) {
_root.bt_left();
}
onClipEvent (rollOver) {
this._alpha = 70;
}
onClipEvent (press) {
this._y += 1;
this._alpha = 100;
}
onClipEvent (release) {
this._y -= 1;
this._alpha = 70;
}
onClipEvent (rollOut) {
this._alpha = 100;
}
onClipEvent (releaseOutside) {
this._y -= 1;
}
}
movieClip 55 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
instance bt_right of movieClip 55 {
onClipEvent (release) {
_root.bt_right();
}
onClipEvent (rollOver) {
this._alpha = 70;
}
onClipEvent (press) {
this._y += 1;
this._alpha = 100;
}
onClipEvent (release) {
this._y -= 1;
this._alpha = 70;
}
onClipEvent (rollOut) {
this._alpha = 100;
}
onClipEvent (releaseOutside) {
this._y -= 1;
}
}
movieClip 57 {
}
frame 2 {
function changeImage() {
if (aryOption.auto_move == '1') {
clearTimeout(setID);
setID = setTimeout(bt_left, 5000);
}
}
function bt_left() {
Num -= 1;
slide = 'left';
rankingMC._x = aryRankingPos[0] - 1;
changeImage();
changeTxt();
rankingMC.mc_00.brightMC.gotoAndPlay(2);
if (main.img_MC_01._x + allWidth < Stage.width + 10 + allWidth * roteNum) {
main._x += allWidth;
roteNum -= 1;
}
}
function bt_right() {
Num += 1;
rankingMC._x = aryRankingPos[0] + 1;
slide = 'right';
changeImage();
changeTxt();
if (main.img_MC_02._x >= -10 + allWidth * roteNum) {
main._x -= allWidth;
roteNum += 1;
}
}
function changeTxt() {
if (-Num < 0) {
if (Math.abs(rankingNum + Num % rankingNum) == rankingNum) {
imageNum = 0;
} else {
imageNum = Math.abs(rankingNum - Num % rankingNum);
}
} else {
if (-Num == rankingNum + 1) {
imageNum = 1;
} else {
imageNum = -Num % rankingNum;
}
}
i = 0;
while (i < 4) {
(eval('rankingMC.mc_0' + i)).gotoAndPlay((imageNum + i) % rankingNum + 1);
++i;
}
}
stop();
maxHeight = aryPheight[0];
i = 1;
while (i < aryPheight.length) {
if (aryPheight[i] > maxHeight) {
maxHeight = aryPheight[i];
}
++i;
}
i = 0;
while (i < rankingNum) {
if (maxHeight == aryPheight[i]) {
maxNum = i;
}
++i;
}
if (aryPheight[maxNum] / aryPwidth[maxNum] > 1.5) {
var pWidth = 75;
} else {
var pWidth = 80;
}
var textLength = 35;
if (aryPheight[maxNum] == aryPwidth[maxNum]) {
bottomSpace = 50;
} else {
bottomSpace = 30;
}
txtMC._x = 0;
txtMC._y = 0;
moveAll = 0;
roteNum = 0;
main._y = 0;
main._y = Stage.height - pWidth * aryPheight[maxNum] / aryPwidth[maxNum] - bottomSpace;
i = 0;
while (i < pVisible) {
(eval('rankingMC.mc_0' + i)).gotoAndPlay(i + 1);
++i;
}
if (aryOption.auto_move == '1') {
setTimeout(bt_left, 5000);
}
space = (Stage.width - pWidth * pVisible) / (pVisible + 1);
rankingMC._y = Stage.height - aryPheight[maxNum] - rankingMC._height / 2 - 30;
if (rankingMC._y <= mcTitle._height) {
rankingMC._y = 30;
}
i = 0;
while (i < rankingNum) {
_root.main.img_MC_00.attachMovie('mc_00', 'mc_0' + i, 200 * (i + 1), {'_x': (i + 1) * space + i * pWidth - 22, '_y': -22});
(eval('_root.main.img_MC_00.mc_0' + i)).gotoAndPlay(i + 1);
_root.main.img_MC_01.attachMovie('mc_00', 'mc_0' + i, 200 * (i + 1), {'_x': (i + 1) * space + i * pWidth - 22, '_y': -22});
(eval('_root.main.img_MC_01.mc_0' + i)).gotoAndPlay(i + 1);
_root.main.img_MC_02.attachMovie('mc_00', 'mc_0' + i, 200 * (i + 1), {'_x': (i + 1) * space + i * pWidth - 22, '_y': -22});
(eval('_root.main.img_MC_02.mc_0' + i)).gotoAndPlay(i + 1);
++i;
}
rankingMC._x = 0;
i = 0;
while (i < 4) {
(eval('rankingMC.mc_0' + i))._y = 0;
(eval('rankingMC.mc_0' + i))._x = (i + 1) * space + i * pWidth - (eval('rankingMC.mc_0' + i))._width / 2;
++i;
}
txtMC.onEnterFrame = function () {
this._y = 80;
if (_xmouse < Stage.width - txtMC._width - 50) {
this._x = _xmouse + 50;
this.gotoAndStop(1);
} else {
this._x = _xmouse - txtMC._width - 30;
this.gotoAndStop(2);
}
this._alpha += (myAlpha - this._alpha) * 0.2;
};
aryRankingPos = [rankingMC._x];
var cliploader_shade = new MovieClipLoader();
var lisner_obj_02 = new Object();
var shadeNum = 0;
lisner_obj_02.onLoadInit = function (n) {
++shadeNum;
n._y = n._height * 2 + 1;
n._yscale = -100;
n._alpha = 10;
};
cliploader_shade.addListener(lisner_obj_02);
i = 0;
while (i < rankingNum) {
cliploader_shade.loadClip(aryData[i].img, eval('main.img_MC_00.package_0' + i + '.shade_0' + i));
cliploader_shade.loadClip(aryData[i].img, eval('main.img_MC_01.package_0' + i + '.shade_0' + i));
cliploader_shade.loadClip(aryData[i].img, eval('main.img_MC_02.package_0' + i + '.shade_0' + i));
++i;
}
i = 0;
while (i < rankingNum) {
(eval('main.img_MC_00.package_0' + i)).attachMovie('graduation', 'graduation_0' + i, 110);
var grMC = eval('main.img_MC_00.package_0' + i + '.graduation_0' + i);
grMC._height = aryPheight[i];
grMC._width = aryPheight[i] * aryPwidth[i] / aryPheight[i];
grMC._x = 0;
grMC._y = aryPheight[i];
(eval('main.img_MC_01.package_0' + i)).attachMovie('graduation', 'graduation_0' + i, 110);
var grMC = eval('main.img_MC_01.package_0' + i + '.graduation_0' + i);
grMC._height = aryPheight[i];
grMC._width = aryPheight[i] * aryPwidth[i] / aryPheight[i];
grMC._x = 0;
grMC._y = aryPheight[i];
(eval('main.img_MC_02.package_0' + i)).attachMovie('graduation', 'graduation_0' + i, 110);
var grMC = eval('main.img_MC_02.package_0' + i + '.graduation_0' + i);
grMC._height = aryPheight[i];
grMC._width = aryPheight[i] * aryPwidth[i] / aryPheight[i];
grMC._x = 0;
grMC._y = aryPheight[i];
++i;
}
var glow = new flash.filters.GlowFilter(334979, 1, 10, 10, 2, 2);
var mouseListener = new Object();
glow.blurX = 4;
glow.blurY = 4;
i = 0;
while (i < rankingNum) {
(eval('main.img_MC_00.package_0' + i)).attachMovie('effect', 'effect_0' + i, 120);
var effectMC = eval('main.img_MC_00.package_0' + i + '.effect_0' + i);
effectMC._height = aryPheight[i];
effectMC._width = aryPheight[i] * aryPwidth[i] / aryPheight[i];
effectMC._x = 0;
effectMC._y = 0;
effectMC._alpha = 0;
(eval('main.img_MC_01.package_0' + i)).attachMovie('effect', 'effect_0' + i, 120);
var effectMC = eval('main.img_MC_01.package_0' + i + '.effect_0' + i);
effectMC._height = aryPheight[i];
effectMC._width = aryPheight[i] * aryPwidth[i] / aryPheight[i];
effectMC._x = 0;
effectMC._y = 0;
effectMC._alpha = 0;
(eval('main.img_MC_02.package_0' + i)).attachMovie('effect', 'effect_0' + i, 120);
var effectMC = eval('main.img_MC_02.package_0' + i + '.effect_0' + i);
effectMC._height = aryPheight[i];
effectMC._width = aryPheight[i] * aryPwidth[i] / aryPheight[i];
effectMC._x = 0;
effectMC._y = 0;
effectMC._alpha = 0;
++i;
}
main.createEmptyMovieClip('img_MC_01', this.getNextHighestDepth());
main.createEmptyMovieClip('img_MC_02', this.getNextHighestDepth());
cliploader_mcl.loadClip(aryData[0].img, main.img_MC_01.package_00.thumbnail_00);
allWidth = pWidth * rankingNum + ((Stage.width - pWidth * pVisible) / (pVisible + 1)) * rankingNum;
var i = 0;
while (i < rankingNum) {
(eval('main.img_MC_00.package_0' + i))._width = pWidth;
(eval('main.img_MC_00.package_0' + i))._height = (pWidth * aryPheight[i] / aryPwidth[i]) * 2;
var load_mc = eval('main.img_MC_00.package_0' + i);
load_mc._x = i * pWidth + (i + 1) * space;
load_mc._y = (pWidth * aryPheight[maxNum] / aryPwidth[maxNum] - pWidth * aryPheight[i] / aryPwidth[i]) / 2;
(eval('main.img_MC_01.package_0' + i))._width = pWidth;
(eval('main.img_MC_01.package_0' + i))._height = (pWidth * aryPheight[i] / aryPwidth[i]) * 2;
var load_mc = eval('main.img_MC_01.package_0' + i);
load_mc._x = i * pWidth + (i + 1) * space;
load_mc._y = (pWidth * aryPheight[maxNum] / aryPwidth[maxNum] - pWidth * aryPheight[i] / aryPwidth[i]) / 2;
(eval('main.img_MC_02.package_0' + i))._width = pWidth;
(eval('main.img_MC_02.package_0' + i))._height = (pWidth * aryPheight[i] / aryPwidth[i]) * 2;
var load_mc = eval('main.img_MC_02.package_0' + i);
load_mc._x = i * pWidth + (i + 1) * space;
load_mc._y = (pWidth * aryPheight[maxNum] / aryPwidth[maxNum] - pWidth * aryPheight[i] / aryPwidth[i]) / 2;
++i;
}
onEnterFrame = function () {
var i = 0;
while (i < rankingNum) {
(eval('main.img_MC_00.package_0' + i)).onPress = function () {
getURL(aryData[this._name.substr(9, 1)].url, aryOption.target);
};
(eval('main.img_MC_01.package_0' + i)).onPress = function () {
getURL(aryData[this._name.substr(9, 1)].url, aryOption.target);
};
(eval('main.img_MC_02.package_0' + i)).onPress = function () {
getURL(aryData[this._name.substr(9, 1)].url, aryOption.target);
};
(eval('main.img_MC_00.package_0' + i)).onRollOver = function () {
if (aryOption.price == 1) {
if (aryData[this._name.substr(9, 1)].price.indexOf('~') != '-1') {
var textKara = '~';
var textPrice = aryData[this._name.substr(9, 1)].price.substr(0, aryData[this._name.substr(9, 1)].price.indexOf('~')) + '円' + textKara;
} else {
var textKara = '';
var textPrice = aryData[this._name.substr(9, 1)].price.substr(0, aryData[this._name.substr(9, 1)].price.length) + '円' + textKara;
}
txtMC.txtDetail.htmlText = '<b>' + aryData[this._name.substr(9, 1)].title.substr(0, textLength) + '</b><br><font color=\'#000000\'>ä¾¡æ ¼ : </font><b><font color=\'#bb0708\'>' + textPrice + '</font></b>';
} else {
txtMC.txtDetail.htmlText = '<b>' + aryData[this._name.substr(9, 1)].title + '</b>';
}
myAlpha = 100;
(eval('main.img_MC_00.package_0' + this._name.substr(9, 1) + '.effect_0' + this._name.substr(9, 1)))._alpha = 100;
(eval('main.img_MC_00.package_0' + this._name.substr(9, 1) + '.effect_0' + this._name.substr(9, 1))).filters = [glow];
};
(eval('main.img_MC_00.package_0' + i)).onRollOut = function () {
myAlpha = 0;
(eval('main.img_MC_00.package_0' + this._name.substr(9, 1) + '.effect_0' + this._name.substr(9, 1)))._alpha = 0;
(eval('main.img_MC_00.package_0' + this._name.substr(9, 1) + '.effect_0' + this._name.substr(9, 1))).filters = [glow];
};
(eval('main.img_MC_01.package_0' + i)).onRollOver = function () {
if (aryOption.price == 1) {
if (aryData[this._name.substr(9, 1)].price.indexOf('~') != '-1') {
var textKara = '~';
var textPrice = aryData[this._name.substr(9, 1)].price.substr(0, aryData[this._name.substr(9, 1)].price.indexOf('~')) + '円' + textKara;
} else {
var textKara = '';
var textPrice = aryData[this._name.substr(9, 1)].price.substr(0, aryData[this._name.substr(9, 1)].price.length) + '円' + textKara;
}
txtMC.txtDetail.htmlText = '<b>' + aryData[this._name.substr(9, 1)].title.substr(0, textLength) + '</b><br><font color=\'#000000\'>ä¾¡æ ¼ : </font><b><font color=\'#bb0708\'>' + textPrice + '</font></b>';
} else {
txtMC.txtDetail.htmlText = '<b>' + aryData[this._name.substr(9, 1)].title.substr(0, textLength + 10) + '</b>';
}
myAlpha = 100;
(eval('main.img_MC_01.package_0' + this._name.substr(9, 1) + '.effect_0' + this._name.substr(9, 1)))._alpha = 100;
(eval('main.img_MC_01.package_0' + this._name.substr(9, 1) + '.effect_0' + this._name.substr(9, 1))).filters = [glow];
};
(eval('main.img_MC_01.package_0' + i)).onRollOut = function () {
myAlpha = 0;
(eval('main.img_MC_01.package_0' + this._name.substr(9, 1) + '.effect_0' + this._name.substr(9, 1)))._alpha = 0;
(eval('main.img_MC_01.package_0' + this._name.substr(9, 1) + '.effect_0' + this._name.substr(9, 1))).filters = [glow];
};
(eval('main.img_MC_02.package_0' + i)).onRollOver = function () {
if (aryOption.price == 1) {
if (aryData[this._name.substr(9, 1)].price.indexOf('~') != '-1') {
var textKara = '~';
var textPrice = aryData[this._name.substr(9, 1)].price.substr(0, aryData[this._name.substr(9, 1)].price.indexOf('~')) + '円' + textKara;
} else {
var textKara = '';
var textPrice = aryData[this._name.substr(9, 1)].price.substr(0, aryData[this._name.substr(9, 1)].price.length) + '円' + textKara;
}
txtMC.txtDetail.htmlText = '<b>' + aryData[this._name.substr(9, 1)].title.substr(0, textLength) + '</b><br><font color=\'#000000\'>ä¾¡æ ¼ : </font><b><font color=\'#bb0708\'>' + textPrice + '</font></b>';
} else {
txtMC.txtDetail.htmlText = '<b>' + aryData[this._name.substr(9, 1)].title + '</b>';
}
myAlpha = 100;
(eval('main.img_MC_02.package_0' + this._name.substr(9, 1) + '.effect_0' + this._name.substr(9, 1)))._alpha = 100;
(eval('main.img_MC_02.package_0' + this._name.substr(9, 1) + '.effect_0' + this._name.substr(9, 1))).filters = [glow];
};
(eval('main.img_MC_02.package_0' + i)).onRollOut = function () {
myAlpha = 0;
(eval('main.img_MC_02.package_0' + this._name.substr(9, 1) + '.effect_0' + this._name.substr(9, 1)))._alpha = 0;
(eval('main.img_MC_02.package_0' + this._name.substr(9, 1) + '.effect_0' + this._name.substr(9, 1))).filters = [glow];
};
++i;
}
main.img_MC_00._x += (Num * (pWidth + space) - main.img_MC_00._x) * 0.4 + allWidth * moveAll;
main.img_MC_01._x = main.img_MC_00._x + allWidth;
main.img_MC_02._x = main.img_MC_00._x - allWidth;
if (slide == 'left') {
if (rankingMC._x == aryRankingPos[0]) {
rankingMC._x = aryRankingPos[0];
rankingMC._alpha = 100;
slide = 0;
} else {
if (rankingMC._x >= aryRankingPos[0] - 25 && rankingMC._x < aryRankingPos[0]) {
rankingMC._x -= 5;
rankingMC._alpha -= 20;
} else {
if (rankingMC._x < aryRankingPos[0] - 25) {
rankingMC._x = aryRankingPos[0] + 25;
} else {
if (rankingMC._x > aryRankingPos[0]) {
rankingMC._x -= 5;
rankingMC._alpha += 20;
}
}
}
}
}
if (slide == 'right') {
if (rankingMC._x == aryRankingPos[0]) {
rankingMC._x = aryRankingPos[0];
rankingMC._alpha = 100;
slide = 0;
} else {
if (rankingMC._x <= aryRankingPos[0] + 25 && rankingMC._x > aryRankingPos[0]) {
rankingMC._x += 5;
rankingMC._alpha -= 20;
} else {
if (rankingMC._x > aryRankingPos[0] + 25) {
rankingMC._x = aryRankingPos[0] - 25;
} else {
if (rankingMC._x < aryRankingPos[0]) {
rankingMC._x += 5;
rankingMC._alpha += 20;
}
}
}
}
}
};
}