[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 1 (45 B)
var drag = false;
var toframe = 4;
stop();
Instance of Symbol 6 MovieClip "square" in Frame 1 (355 B)
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
if (percent == undefined) {
percent = 0;
}
percent = percent - ((percent - ((loading / total) * 100)) * 0.25);
per = int(percent);
percentage = per + "%";
this.black._y = (percent * -262) / 100;
if (percent > 99) {
_parent.gotoAndStop(2);
}
}
Instance of Symbol 12 MovieClip "dragbutton" in Frame 2 (311 B)
onClipEvent (mouseDown) {
startDrag (this, true, 31, 475, 470, 475);
drag = true;
this_y = 475;
gotoAndStop(toframe);
}
onClipEvent (mouseUp) {
stopDrag();
drag = false;
}
onClipEvent (enterFrame) {
if (drag) {
toframe = Math.ceil((((this._x - 30) / 440) * 125) + 1);
_root.gotoAndStop(toframe);
}
}
Symbol 12 MovieClip Frame 1 (36 B)
var drag = false;
var toframe = 2;