Section 1
//MainTimeline (NyanPony_fla.MainTimeline)
package NyanPony_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.media.*;
import flash.net.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.ui.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var btn_tweet:MovieClip;
public var buttony:MovieClip;
public var txtname:TextField;
public var strPonyName:String;
public function MainTimeline(){
addFrameScript(0, frame1);
}
public function roll(_arg1:int=1, _arg2:int=100):int{
return ((Math.floor((Math.random() * ((_arg2 + 1) - _arg1))) + _arg1));
}
public function strToProperCase(_arg1:String):String{
_arg1 = (_arg1.slice(0, 1).toUpperCase() + _arg1.slice(1, _arg1.length).toLowerCase());
return (_arg1);
}
public function randomNameGenerator():String{
var _local5:*;
var _local6:int;
var _local7:String;
var _local1:Object = new Object();
var _local2 = "";
_local1.arrTemplate = new Array("Title,sp,Adj,sp,Noun", "Title,sp,Adj,sp,Noun,Special");
_local1.sp = new Array(" ");
_local1.And = new Array(" and ");
_local1.Adj = new Array("fluffy", "sweet", "flossy", "silky", "happy", "cheery", "prickly", "furry", "soft", "wrinkly", "angelic", "buttery", "creamy", "blissful", "chippy", "lovely", "gleeful", "funny", "joyful", "jolly", "peppy", "sparkly", "shiny", "sunny", "tickly", "rainbowy", "flirty", "floaty", "keen", "groovy", "cool", "neato", "nifty", "quick", "swell", "delightful", "cheerful", "alert", "cute", "witty", "beautiful", "lucky", "adorable", "super", "magic", "dainty", "charming", "nice", "homely", "perfect", "flawless", "loyal", "merry", "ticklish", "cordial", "savvy", "runny", "wise", "nimble", "agile", "peaceful", "stylish", "chic", "smart", "disarming", "delicious", "radiant", "tasty", "brighty", "tangy", "tarty", "salty", "neaty", "winning", "clumsy", "light", "rosey", "peachy", "special", "flying", "pink", "blue", "little", "tiny", "bubbly", "golden", "fiery", "gassy", "chatty", "snuffy", "lovely", "cuddly", "poofy", "squirty", "sniffly");
_local1.Noun = new Array("muzzle", "marshmallow", "cupcake", "sugar", "sprinkles", "marshmallow", "cupcake", "sugar", "sprinkles", "marshmallow", "cupcake", "sugar", "sprinkles", "cake", "bubblegum", "chocolate", "mango", "dreams", "bunny", "flower", "wart", "kitten", "pony", "star", "starlight", "bug", "music", "pancake", "egg", "waffle", "sunshine", "blueberry", "moonbeam", "dumpling", "sky", "sparkle", "snow", "snowflake", "balloon", "pants", "bubbles", "socks", "petal", "rose", "lilly", "sunset", "morning", "sunrise", "glory", "pie", "cookie", "crayon", "storm", "bee", "cosmic", "twilight", "prancer", "dancer", "wuggles", "glitter", "cherry", "zen", "lightning", "thunder", "mint", "peppermint", "silver", "topaz", "diamond", "emerald", "ruby", "opal", "pearl", "wuggles", "sapphire", "twinky", "crystal", "apple", "pineapple", "clover", "muffin", "coffee", "honey", "berry", "almond", "nut", "fig", "tapper", "runner", "leaper", "snuggler", "smuggler", "cuddler", "butterfly", "pooky");
_local1.Title = new Array("princess", "princess", "princess", "princess", "princess", "princess", "princess", "princess", "goddess", "buddy", "dutchess", "duke", "lord", "lady", "lady", "lady", "lady", "lady", "queen", "czar", "prince", "royal", "empress", "emperor", "king", "mister", "mister", "mister", "mister", "sir", "miss", "baron", "captain", "count", "earl", "governor", "marquis", "overlord", "major", "prince", "commander", "chief", "swami", "archduke");
_local1.Special = new Array("kins", "pants", "bug", "boo", "woo", "dumpling", "bee", "prancer", "dancer", "doll", "ribbon", "face", "cheeks", "pea", "cakes", "roo", "noodle", "buns", "cheeks", "nose", "ears", "head", "dimples", "chin", "toe", "lips", "kins", "kin", "pie", "cakes", "hoof");
var _local3:* = roll(0, (_local1.arrTemplate.length - 1));
var _local4:* = _local1.arrTemplate[_local3].split(",");
for (_local5 in _local4) {
_local6 = roll(0, (_local1[_local4[_local5]].length - 1));
_local7 = strToProperCase(_local1[_local4[_local5]][_local6]);
_local2 = (_local2 + _local7);
};
return (_local2);
}
public function fl_ClickToGoToAndPlayFromFrame(_arg1:MouseEvent):void{
strPonyName = randomNameGenerator();
txtname.text = strPonyName;
}
public function clickTweet(_arg1:Event):void{
var path:URLRequest;
var each:*;
var e = _arg1;
path = new URLRequest("http://twitter.com/share");
path.method = URLRequestMethod.GET;
var tweetVars:* = new URLVariables();
tweetVars.url = "http://www.ponyvspony.com";
tweetVars.text = (("My PvP name is " + strPonyName) + "!");
tweetVars.via = "artixkrieger";
tweetVars.related = "Rolith_AE, Alina_AE, ArtixKrieger, ";
path.data = tweetVars;
if (ExternalInterface.available){
try {
path.url = (path.url + "?d=0");
for (each in tweetVars) {
path.url = (path.url + ((("&" + each) + "=") + tweetVars[each]));
};
ExternalInterface.call("openTweetWin", path.url);
} catch(error:SecurityError) {
navigateToURL(path, "_blank");
} catch(error:Error) {
navigateToURL(path, "_blank");
};
} else {
navigateToURL(path, "_blank");
};
}
function frame1(){
buttony.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame);
strPonyName = randomNameGenerator();
txtname.text = strPonyName;
btn_tweet.addEventListener(MouseEvent.CLICK, clickTweet);
btn_tweet.buttonMode = true;
stop();
}
}
}//package NyanPony_fla
Section 2
//Star1Anim_1 (NyanPony_fla.Star1Anim_1)
package NyanPony_fla {
import flash.display.*;
public dynamic class Star1Anim_1 extends MovieClip {
public function Star1Anim_1(){
addFrameScript(0, frame1);
}
function frame1(){
gotoAndPlay(Math.ceil(((Math.random() * totalFrames) / 3)));
trace(("i" + totalFrames));
}
}
}//package NyanPony_fla