Frame 1
function Resize() {
_root.newx = (-(Stage.width - oldSW)) / 2;
_root.newy = (-(Stage.height - oldSH)) / 2;
m_backclip._x = _root.newx;
m_backclip._y = _root.newy;
m_backclip._width = Stage.width + 1;
m_backclip._height = Stage.height + 1;
_level0.maskmovie._x = _root.newx;
_level0.maskmovie._y = _root.newy;
_level0.maskmovie._width = m_backclip._width;
_level0.maskmovie._height = m_backclip._height;
}
function deletenowmovie() {
var _local2 = 1;
while (_local2 < _global.ln) {
removeMovieClip(_level0["clip-" + _local2]);
_local2++;
}
}
function asNotlogin() {
_level0.maskmovie.swapDepths(101);
_level0.maskmovie._alpha = 100;
stop();
}
function asFunc(str, m_ln) {
var _local11 = 1;
var _local8;
var _local10 = 0;
var _local9 = 0;
_level0.maskmovie._alpha = 0;
_level0.loadmoviestat._visible = false;
deletenowmovie();
_global.ln = m_ln + 1;
if (_global.ln > 11) {
_global.ln = 11;
}
_level0["clip-0"].clear();
var _local2 = 0;
while (_local2 < _global.ln) {
_local8 = ball.duplicateMovieClip("clip-" + _local2, _local2);
_local2++;
}
_level0["clip-0"]._x = 280;
_level0["clip-0"]._y = 180;
numPoints = _global.ln;
var _local7 = ((Math.PI*2) / numPoints) + 0.8;
_level0["clip-11"]._visible = false;
_level0["clip-0"].lineStyle(1, 0, 100);
_level0["clip-0"].rads = new Array();
_local2 = 1;
while (_local2 < numPoints) {
var _local5 = (Math.random() * 100) + 100;
var _local4 = Math.cos(_local7 * _local2) * _local5;
var _local6 = Math.sin(_local7 * _local2) * _local5;
_level0["clip-0"].moveTo(0, 0);
_level0["clip-0"].lineTo(_local4, _local6);
if (_level0["clip" + _local2]._x < _level0["clip-0"]) {
_level0["clip-" + _local2]._x = ((_level0["clip-0"]._x + _local4) - _level0["clip-0"]._width) - 100;
} else {
_level0["clip-" + _local2]._x = _level0["clip-0"]._x + _local4;
}
_level0["clip-" + _local2]._y = _level0["clip-0"]._y + _local6;
_local2++;
}
myXml = new XML();
myXml.ignoreWhite = true;
myXml.onLoad = function (success) {
_level0["clip-0"].hashtext.text = myXml.firstChild.attributes.desc;
_level0["clip-0"].hashvalue = myXml.firstChild.attributes.name;
_level0["clip-0"].type = myXml.firstChild.attributes.type;
_level0["clip-0"].username = myXml.firstChild.attributes.username;
_level0["clip-0"].avatarmainimg.width = 45;
_level0["clip-0"].avatarmainimg.height = 45;
_level0["clip-0"].avatarmainimg.loadMovie("http://metainfo.client.21cn.com/udservice/mypic.do?size=1&user=" + myXml.firstChild.attributes.username);
var _local2 = myXml.firstChild.childNodes;
var _local1 = 1;
while (_local1 < numPoints) {
_level0["clip-" + _local1].hashtext.text = _local2[_local1 - 1].attributes.desc;
_level0["clip-" + _local1].hashvalue = _local2[_local1 - 1].attributes.name;
_level0["clip-" + _local1].type = _local2[_local1 - 1].attributes.type;
_level0["clip-" + _local1].username = _local2[_local1 - 1].attributes.username;
_level0["clip-" + _local1].avatarimg.width = 30;
_level0["clip-" + _local1].avatarimg.height = 30;
_level0["clip-" + _local1].avatarimg.loadMovie("http://metainfo.client.21cn.com/udservice/mypic.do?size=2&user=" + _local2[_local1 - 1].attributes.username);
_local1++;
}
};
myXml.load(str);
}
Stage.scaleMode = "noScale";
var oldSW = Stage.width;
var oldSH = Stage.height;
var newx = 0;
var newy = 0;
var myListener = new Object();
myListener.onResize = function () {
Resize();
};
Stage.addListener(myListener);
Resize();
flash.external.ExternalInterface.addCallback("asFunc", this, asFunc);
flash.external.ExternalInterface.addCallback("asNotlogin", this, asNotlogin);
Symbol 11 Button
on (release) {
play();
var clip0x = _level0["clip-0"]._x;
var clip0y = _level0["clip-0"]._y;
var clickclipx = this._x;
var clickclipy = this._y;
trace(this.hashvalue);
_level0["clip-11"]._x = this._x;
_level0["clip-11"]._y = this._y;
_level0["clip-11"]._visible = true;
int_x = (_level0["clip-0"]._x - _x) / 4;
int_y = (_level0["clip-0"]._y - _y) / 4;
this.onEnterFrame = function () {
_level0["clip-11"]._x = _level0["clip-11"]._x + int_x;
_level0["clip-11"]._y = _level0["clip-11"]._y + int_y;
if (int_x <= 0) {
if (_level0["clip-11"]._x < clip0x) {
delete this.onEnterFrame;
_level0["clip-11"]._x = clip0x;
_level0["clip-11"]._y = clip0y;
_level0["clip-11"]._visible = false;
flash.external.ExternalInterface.call("flashcall", this.hashtext.text, this.username, this.hashvalue, this.type);
_level0.loadmoviestat.swapDepths(100);
_level0.loadmoviestat._visible = true;
}
} else if (_level0["clip-11"]._x > clip0x) {
delete this.onEnterFrame;
_level0["clip-11"]._x = clip0x;
_level0["clip-11"]._y = clip0y;
_level0["clip-11"]._visible = false;
flash.external.ExternalInterface.call("flashcall", this.hashtext.text, this.username, this.hashvalue, this.type);
_level0.loadmoviestat.swapDepths(100);
_level0.loadmoviestat._visible = true;
}
};
}
Symbol 16 Button
on (release) {
flash.external.ExternalInterface.call("livecall", this.hashtext.text, this.username, this.hashvalue, this.type);
trace(this.type);
}
Symbol 19 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 15
gotoAndStop (1);
Symbol 30 Button
on (release) {
flash.external.ExternalInterface.call("livecall", this.hashtext.text, this.username, this.hashvalue, this.type);
trace(this.type);
}