Frame 1
function onEnterFrame() {
var _local2;
if (creativesLoader == null) {
creativesLoader = new CreativesLoader();
creativesLoader.onLoad = function (success) {
onCreativesLoaded(success);
};
creativesLoader.load(1, this.poolid, this.subpoolid, this.contentspotid);
}
}
function onCreativesLoaded(success) {
if (!success) {
return(undefined);
}
if (creativesLoader.creatives.length < 1) {
return(undefined);
}
slide_out_bar.setCreative(creativesLoader.creatives[0]);
slide_out_bar._visible = true;
slide_out_bar.play();
}
var creativesLoader;
slide_out_bar._visible = false;
Symbol 14 MovieClip Frame 1
function mouseIn() {
bar.closeButton._visible = true;
cancelHide();
_alpha = 100;
scheduleOpen(500);
}
function mouseOut() {
_alpha = 50;
cancelOpenClose();
scheduleHide(1500);
}
function onEnterFrame() {
if (_alpha == 100) {
var _local2 = transform.colorTransform;
if (_local2.redOffset != 0) {
_local2.redOffset = 0;
transform.colorTransform = _local2;
}
return(undefined);
}
var _local1 = getTimer() % 13000;
if ((_local1 > 0) && (_local1 < 500)) {
_alpha = (50 + ((50 * _local1) / 500));
var _local2 = transform.colorTransform;
_local2.redOffset = 0 + ((100 * _local1) / 500);
transform.colorTransform = _local2;
} else if ((_local1 > 500) && (_local1 < 1000)) {
_alpha = (100 - ((50 * (_local1 - 500)) / 500));
var _local2 = transform.colorTransform;
_local2.redOffset = 100 - ((100 * (_local1 - 500)) / 500);
transform.colorTransform = _local2;
} else if (alpha != 50) {
alpha = 50;
var _local2 = transform.colorTransform;
_local2.redOffset = 0;
transform.colorTransform = _local2;
}
}
function cancelOpenClose() {
clearTimeout(tim);
tim = -1;
}
function scheduleOpen(ms) {
cancelOpenClose();
tim = setTimeout(function () {
gotoAndPlay ("closed");
}, 500);
}
function scheduleClose(ms) {
cancelOpenClose();
var _local2 = this;
tim = setTimeout(function () {
gotoAndPlay ("firstClose");
}, ms);
}
function cancelHide() {
clearTimeout(tim2);
tim2 = -1;
}
function scheduleHide(ms) {
cancelHide();
tim2 = setTimeout(function () {
bar.closeButton._visible = false;
}, ms);
}
function setCreative(creative) {
bar.game.txt.htmlText = ("<b><u>" + creative.title) + "</u></b>";
bar.game.desc.htmlText = creative.desc;
bar.game.img.createEmptyMovieClip("img", 0);
myCreative = creative;
bar.game.img.img.loadMovie(creative.imageUrl);
}
bar.closeButton._visible = false;
cancelOpenClose();
if (first_ran == undefined) {
var first_ran = true;
}
stop();
var tim;
var tim2;
bar.game.onRelease = function () {
cancelOpenClose();
gotoAndPlay ("closed");
};
var myCreative;
bar.game.onRollOver = function () {
if (_visible) {
mouseIn();
}
};
bar.game.onRollOut = function () {
mouseOut();
};
bar.closeButton.onRollOut = function () {
mouseOut();
};
bar.closeButton.onRollOver = function () {
if (_visible) {
mouseIn();
}
};
bar.closeButton.onRelease = function () {
_parent._y = 2000;
_parent._visible = false;
};
Symbol 14 MovieClip Frame 8
scheduleClose(1500);
stop();
Symbol 14 MovieClip Frame 16
_alpha = 50;
gotoAndStop ("closed");
Symbol 14 MovieClip Frame 17
function mouseIn() {
bar.closeButton._visible = true;
cancelHide();
_alpha = 100;
scheduleOpen(500);
}
function mouseOut() {
_alpha = 50;
cancelOpenClose();
scheduleHide(1500);
}
function scheduleClose(ms) {
cancelOpenClose();
var _local2 = this;
tim = setTimeout(function () {
gotoAndPlay ("close");
}, ms);
}
bar.game.onRelease = function () {
gotoAndPlay ("open");
};
Symbol 14 MovieClip Frame 18
function mouseIn() {
bar.closeButton._visible = true;
cancelHide();
_alpha = 100;
cancelOpenClose();
}
function mouseOut() {
scheduleClose(1500);
scheduleHide(1500);
}
cancelOpenClose();
delete bar.game.onRelease;
Symbol 14 MovieClip Frame 28
function mouseIn() {
bar.closeButton._visible = true;
cancelHide();
_alpha = 100;
cancelOpenClose();
bar.game.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 32, 32, 0, 0);
}
function mouseOut() {
scheduleClose(1500);
scheduleHide(1500);
bar.game.transform.colorTransform = new flash.geom.ColorTransform();
}
stop();
bar.game.transform.colorTransform = new flash.geom.ColorTransform(1, 1, 1, 1, 32, 32, 0, 0);
bar.game.onRelease = function () {
getURL (myCreative.clickAction, "blank");
};
Symbol 14 MovieClip Frame 29
function mouseIn() {
bar.closeButton._visible = true;
cancelHide();
_alpha = 100;
scheduleOpen(500);
}
bar.game.colorTransform = new ColorTransform();
Symbol 14 MovieClip Frame 39
_alpha = 50;
gotoAndStop ("closed");
Symbol 15 MovieClip [__Packages.CreativesLoader] Frame 0
class CreativesLoader
{
var urlLoader, creatives;
function CreativesLoader () {
}
function load(count, poolid, subpoolid, contentspotid) {
if (loaded) {
return(undefined);
}
if ((contentspotid == null) && (poolid == null)) {
return(undefined);
}
loaded = true;
urlLoader = new XML();
urlLoader.ignoreWhite = true;
urlLoader.onHTTPStatus = function (status) {
};
var t = this;
urlLoader.onLoad = function (success) {
t.onLoaded(success);
};
var _local2;
if (contentspotid != null) {
_local2 = (((serverUrl + "viewcontent.aspx?xml=1&adtypeid=24&multi=") + count) + "&contentspotid=") + contentspotid;
} else {
_local2 = (((((serverUrl + "view.aspx?xml=1&adtypeid=24&multi=") + count) + "&poolid=") + poolid) + "&subpoolid=") + subpoolid;
}
urlLoader.load(_local2);
}
function onLoad(success) {
}
function onLoaded(success) {
if (!success) {
onLoad(success);
return(undefined);
}
creatives = [];
var _local9 = 0;
var _local14 = urlLoader.firstChild;
var _local6 = _local14.firstChild;
while (_local6 != null) {
var _local10 = null;
var _local7 = null;
var _local8 = null;
var _local11 = null;
var _local3 = _local6.firstChild;
while (_local3 != null) {
switch (String(_local3.nodeName).toLowerCase()) {
case "macros" :
var _local5 = _local3;
var _local2 = _local5.firstChild;
while (_local2 != null) {
var _local4 = String(_local2.attributes.name).toLowerCase();
switch (_local4) {
case "image140x105" :
_local10 = String(new XML(_local2.attributes.value).firstChild.nodeValue);
break;
case "title" :
_local7 = String(new XML(_local2.attributes.value).firstChild.nodeValue);
break;
case "desc" :
_local8 = String(new XML(_local2.attributes.value).firstChild.nodeValue);
}
_local2 = _local2.nextSibling;
}
break;
case "click" :
_local11 = String(_local3.firstChild.nodeValue);
}
_local3 = _local3.nextSibling;
}
creatives[_local9] = {imageUrl:_local10, clickAction:_local11, title:_local7, desc:_local8};
_local9++;
_local6 = _local6.nextSibling;
}
onLoad(success);
}
var serverUrl = "http://server.cpmstar.com/";
var loaded = false;
}