The Guffman Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Robot Unicorn Attack

2 posters

Go down

Robot Unicorn Attack Empty Robot Unicorn Attack

Post by The MacGuffin Tue Feb 23, 2010 1:20 am

The MacGuffin
The MacGuffin
Ali Babba
Ali Babba

Number of posts : 201
Registration date : 2010-02-18

Back to top Go down

Robot Unicorn Attack Empty Re: Robot Unicorn Attack

Post by DRS Tue Mar 02, 2010 3:24 am

If you really like it, just save it and edit out this from the action script 81 and voila, a brand new desktop game.

// Action script...
// [onClipEvent of sprite 61 in frame 1]
onClipEvent (load)
{
setProperty("", _visible, false);
}
// [Action in Frame 1]
function bustIt()
{
clearInterval(intDelay);
switch (strURI)
{
case null:
case undefined:
{
flash.external.ExternalInterface.call("parent.window.location.replace(\'http://games.adultswim.com/robot-unicorn-attack-twitchy-online-game.html\')");
getURL("http://games.adultswim.com/robot-unicorn-attack-twitchy-online-game.html", "_parent");
break;
}
default:
{
break;
}
} // End of switch
flash.external.ExternalInterface.call("parent.window.location.replace(\'http://games.adultswim.com/robot-unicorn-attack-twitchy-online-game.html\')");
for (var _loc7 in _root)
{
switch (typeof(_root[_loc7]))
{
case "movieclip":
{
switch (_loc7)
{
case "cmpSetObj":
{
break;
}
default:
{
domain;
_root[_loc7].swapDepths(0);
try
{
_root[_loc7].removeMovieClip();
} // End of try
break;
}
} // End of switch
break;
}
case "object":
{
try
{
switch (_loc7)
{
case "tf":
{
break;
}
default:
{
_root[_loc7].removeTextField();
break;
}
} // End of switch
} // End of try
break;
}
default:
{
break;
}
} // End of switch
} // end of for...in
var _loc8 = _root.attachMovie("mcBusted", "mcBusted", _root.getNextHighestDepth());
var _loc9 = Stage.width + 10;
var _loc10 = Stage.height + 10;
_loc8._width = _loc9;
_loc8._height = _loc10;
var strURI = "http://games.adultswim.com/robot-unicorn-attack-twitchy-online-game.html";
var _loc3 = new TextFormat();
var _loc11 = _loc3.getTextExtent(strURI);
var _loc2 = _root.createTextField("tfURI", _root.getNextHighestDepth(), 10, 300, Stage.width - 20, 33);
_loc2.border = true;
_loc2.selectable = true;
_loc2.text = strURI;
var _loc4 = 50;
var _loc6 = _loc2._width - 5;
_loc3.size = _loc4;
_loc2.setTextFormat(_loc3);
while (_loc2.textWidth > _loc6)
{
--_loc4;
_loc3.size = _loc4;
_loc2.setTextFormat(_loc3);
} // end while
var _loc5 = _root.attachMovie("mcCopyLink", "mcCopyLink", _root.getNextHighestDepth());
_loc5._x = Stage.width / 2 - _loc5._width / 2;
_loc5._y = _loc2._y + _loc2._height + 25;
_loc5.onRollOver = copyBtnRollOver;
_loc5.onRollOut = copyBtnRollOut;
_loc5.onPress = _loc5.onDragOver = _loc5.onDragOut = stopsCopysMe;
trace ("mcCopyLink " + _loc5.getDepth());
} // End of the function
function copyBtnRollOver()
{
trace ("!!");
this.gotoAndStop(2);
} // End of the function
function copyBtnRollOut()
{
trace ("@@");
this.gotoAndStop(1);
} // End of the function
function stopsCopysMe()
{
trace ("!@");
Selection.setFocus(tfURI);
Selection.setSelection(0, tfURI.length);
System.setClipboard(tfURI.text);
var _loc6 = "Now, paste that link in the address bar and play Robot Unicorn Attack";
var _loc2 = _root.createTextField("tfCopied", _root.getNextHighestDepth(), 0, 425, Stage.width, 33);
_loc2.text = _loc6;
var _loc5 = _loc2._width - 35;
var _loc4 = 70;
var _loc3 = new TextFormat();
_loc3.bold = true;
_loc3.color = 1195056;
_loc3.font = "Arial,Helvetica";
_loc3.size = _loc4;
_loc2.setTextFormat(_loc3);
while (_loc2.textWidth > _loc5)
{
--_loc4;
_loc3.size = _loc4;
_loc2.setTextFormat(_loc3);
} // end while
_loc2._width = _loc2.textWidth + 5;
_loc2._x = Stage.width / 2 - _loc2._width / 2;
} // End of the function
try
{
var objURI = flash.external.ExternalInterface.call("window.location.hostname.toString");
var objURI_p = flash.external.ExternalInterface.call("window.location.hostname.toString");
var objHref = flash.external.ExternalInterface.call("window.location.href.toString");
var objHref_p = flash.external.ExternalInterface.call("window.location.href.toString");
var my_lc = new LocalConnection();
} // End of try
catch ()
{
} // End of catch
var intDelay;
var strDom;
var strURI = objURI.toString();
var strHref = objHref.toString();
trace ("|-o-| |-o-| |-o-| " + strURI);
trace ("(-o-) (-o-) (-o-) " + strHref);
switch (strURI)
{
case null:
case undefined:
case "":
{
strDom = "domain cannot be determined";
break;
}
default:
{
strDom = strURI;
break;
}
} // End of switch
switch (strURI)
{
case "i.adultswim.com":
case "staging.adultswim.com":
case "staging3.adultswim.com":
case "staginggames2.adultswim.com":
case "www.adultswim.com":
case "games.adultswim.com":
{
if (strHref == _root._url)
{
bustIt();
} // end if
break;
}
default:
{
bustIt();
}
} // End of switch
DRS
DRS
Robert Mitchum
Robert Mitchum

Number of posts : 258
Location : http://thegooddoctor.tk/
Registration date : 2009-11-12

http://thegooddoctor.tk

Back to top Go down

Robot Unicorn Attack Empty Re: Robot Unicorn Attack

Post by The MacGuffin Tue Mar 02, 2010 10:36 am

...Not fully certain how to edit existing .swf files...
The MacGuffin
The MacGuffin
Ali Babba
Ali Babba

Number of posts : 201
Registration date : 2010-02-18

Back to top Go down

Robot Unicorn Attack Empty Re: Robot Unicorn Attack

Post by DRS Tue Mar 02, 2010 10:51 pm

Use a flash decompiler to export it to a .fla format and then edit the script values.
DRS
DRS
Robert Mitchum
Robert Mitchum

Number of posts : 258
Location : http://thegooddoctor.tk/
Registration date : 2009-11-12

http://thegooddoctor.tk

Back to top Go down

Robot Unicorn Attack Empty Re: Robot Unicorn Attack

Post by The MacGuffin Wed Mar 03, 2010 1:03 am

awesome, I learned something.
The MacGuffin
The MacGuffin
Ali Babba
Ali Babba

Number of posts : 201
Registration date : 2010-02-18

Back to top Go down

Robot Unicorn Attack Empty Re: Robot Unicorn Attack

Post by DRS Thu Mar 04, 2010 12:33 am

I know, tends to happen when reading. Robot Unicorn Attack Icon_wink
DRS
DRS
Robert Mitchum
Robert Mitchum

Number of posts : 258
Location : http://thegooddoctor.tk/
Registration date : 2009-11-12

http://thegooddoctor.tk

Back to top Go down

Robot Unicorn Attack Empty Re: Robot Unicorn Attack

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum