[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.Combined Code (1.37 KiB) ●
frame 1 {
if (getBytesLoaded() >= getBytesTotal()) {
gotoAndPlay(5);
}
}
movieClip 3 {
}
frame 3 {
if (getBytesLoaded() >= getBytesTotal()) {
gotoAndPlay(5);
}
}
frame 4 {
progress = int(getBytesLoaded() * '100' / getBytesTotal()) add '% - loading Flash...';
gotoAndPlay(3);
}
movieClip 14 {
}
button 15 {
on (press, keyPress '<Enter>') {
var botSend = new LoadVars();
botSend.custid = _root.custid;
var botReply = new XML();
botSend.botid = '900f8f7c1e36bccc';
botSend.input = _root.user;
botSend.sendAndLoad('http://www.pandorabots.com/pandora/talk-xml', botReply);
_root.reply = 'Stfu while u wait...';
_root.user = '';
botReply.onLoad = function (success) {
if (success) {
_root.custid = botReply.firstChild.attributes.custid;
myLocal_so.data.name = custid;
_root.reply = botReply.firstChild.firstChild.nextSibling.firstChild.nodeValue;
}
};
}
}
button 21 {
on (press) {
Sprite20._visible = 1;
}
}
button 26 {
on (press) {
this._visible = 0 == 1;
}
}
movieClip 28 {
}
frame 5 {
Selection.setFocus(_root.user);
myLocal_so = sharedobject.getLocal('custid');
_root.custid.text = myLocal_so.data.name;
_root.reply.htmlText = 'What\'s up, mans? Type in a doohickey in the upper button to get begin!';
play();
}
frame 5 {
Sprite20._visible = 0;
}
frame 6 {
stop();
}