STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
231347
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2623 · P5245

<div style="position:absolute;top:-99px;left:-99px;"><img src="https://tools.swfchan.com/stathit.asp?noj=FRM27424697-6DC&rnd=27424697" width="1" height="1"></div>

Hood Episode 2 - intense and interesting mystery point and click game.swf

This is the info page for
Flash #134066

(Click the ID number above for more basic data on this flash file.)


Text
film sound

thing that disables tab

mute button space bar

SHE HAS NO SOUL
DO NOT TRUST HER

crickets and stuff

Warning, this game contains violence, swearing,
suggestive content, blood and gore, etc.
Press the Space Bar at ANY time to mute the game.

Continue

Sponsored by

Press the spacebar at any time to mute the audio.

Episode 2

<p align="left"></p>

music1

music 2

delay

music 3

Journal

electrode thing

Boyen the Shaman

Welcome traveler. We see the dark
spirits that haunt these woods are
wise and let you be.
You smell of blood and smoke. We
know you are a hunter of witches.

<p align="left"><font face="Perpetua" size="17" color="#ff0000" letterSpacing="0.000000" kerning="1"><b>---</b></font></p>

I had CourSid create a
potion for me. He said he is
not sure how some of his
people avoid the demons of
these woods, but he thinks
this potion will hide me
from the forest spirit's eyes.
I hope he is right.

Marian is driving me
insane. Can she not see I
am worried about my
daughter? And still she
hounds me!
I write this to remind me.
When I return I will put
her in her place.

I met a strange fellow in a
shack. He seemed nice
enough, but that little
demon imp milling about
outisde of his hut was a
damn trouble maker. I
hated that it had to come to
fisticuffs though.
Now to inspect this 'thing'.

So far so good, but few
signs of Cameron. Up
ahead I see a massive shape
at the swamp's edge. I write
this in the event I am taken
by something before
discovery is made.
It looks like it is made of...
metal?

I wonder if she was able to
get this device working? It
looks like several pieces are
missing, could she have
taken them with her?
Or maybe hidden them
nearby?

Inside the vessel I found
signs of Cameron's
presence. It looks like this
device was piloted by
foreigners and they have
been long gone. But she was
translating their work, I
have nothing else to go on
though. And I have no clue
where she went.

In this dark forest I
encounter this strange
orange creature. I suspect it
was a powerful spirit but it
didn't seem dangerous.
It was right outside the
shaman's hut. It seemed
concerned about something.
I do not know what.

The woods north of
Shadetale are infested with
dark spirits and demons of
a mixed sort.
What protects this young
woman? Has she made a
pact with one of Them?
I aim to find out.

I have questioned many in
the village of  Shadetale. I
can sense that some of them
are lying, but about what I
cannot be sure. Not yet.
I have followed the young
girl, Cameron. Her trail
leads into the dark woods.

The girl had clearly been
speaking with it as the iron
nails and summoning
hammer I found in her
room called the demon.
Regardless if she is or is not
a practicing witch, she has
been in congress with
darkness.

The girl with the red hood,
her father left the village in
search of her. I hope to find
him and get more answers.
After sobering up the
weather mage I think it safe
to travel.
I met a demon at the village
edge.

If the girl is able to speak to
Them, then she has been
exposed. Having her
hammer just goes to show
that she was
communicating with Them,
unless someone placed the
hammer in her room to
frame her.

Them is a language forced
onto you by being around
the dark shades of the
world.
I have long since learned it,
even against my will. When
you're near Them they put
it into your head.

We met a young girl with a
crimson hood. She seemed
very dedicated to locating
someone, we did not
understand who.
We wish her luck, these
woods are dangerous but
she seems able to speak the
language of Them.

That little imp in the woods
with the nail in his head,
We caught him today
digging through our
garbage.
We ran him off with a stick.

The man searching for his
daughter came by. We met
him and made talkings to.
He was then attacked by
the imp, who kept reaching
into the man's mouth.
We were very embarassed.
The man simply tossed the
imp aside and continued his
search.

That cursed little imp was
poking around our
belongings again. We think
he is searching for
something. Always he
reaches for our face, but
then recoils when we speak.
We wish he'd go away.

That is a very old thing. Older than
your life three fold. We do not
know to whom it once belonged,
but we know it came from deep
beneath the swamp's surface.

We think it once housed an entity,
but we cannot be sure. The demons
and spirits that traverse these
woods avoid it, as it frightens
them.
It does not scare us.

Yes, child of Fenwall. We did see
the man exploring for his lost
daughter. He was not wise though,
and he was not careful.
Not enough.

No. Well, not the wild spirits, as he
was protected by magic.
Something dark killed him, but not
the wild demons of these woods.

Things are not always what they
seem in these woods. The trees
here are very old, and have lived
with demons for a very long time.

Elder Shade

You are brave entering these
forests, murderer.

You have taken the lives of many.
Your hands glow red.
You deny this?

Because they took time to speak
with one of the shades. Because
they know the language of Them.
You're speaking it right now.

Then you're a liar as well as a
murderer.
You're lucky you're protected by
the grin of that soulless.

No shade that calls this place home
killed that man. He was safe as he
had imbibed an elixir that made
him blurry. We couldn't find him
even though he was right there in
front of us.

That is for you and the world of
stone and steel you come from.
One of your own killed that man.

That is a fine hammer, one used for
commune between our worlds.
Give it to me and I will give you
the final piece to the metal demon.

The girl you chase spent time
inside. She learned much and then
tried to make it teach no more.
The being once kept under lock
inside became free long ago.
Now, trade me that hammer.

Thank you. You are not worthy of
such an item.

Interface

Access granted...
Welcome.
What would you like to know?

Prison transport 4011 was attacked
and inmate freed. Crew gave chase
and have yet to return.

Affirmative.
Prisoner 139568237 Class S--
Telepathic Being
Aquatic Lifeform
Unknown Origin

Crew has been absent...
743 years 12 days 8 hours...

error...

Affirmative.
Human, age 17, auburn hair,
wearing a red cloak.

Unknown. Last seen heading south
before scanners were shut down.
Timed delay...
error...

...the girl did.
error...

She checked storage banks for data
on prisoner 139568237.
Found last known location of
prisoner 139568237.

Affirmative.
She specified information about
prisoner, referred to prisoner as
'Grandmother."

error...
[dir] 1 = 459

To be continued...

<p align="left"></p>

100

<p align="left"></p>

pts

Newgrounds!

JayIsGames!

Hood Episode 1!

My Homepage! Lorestrome!

Thanks for playing everyone!

ActionScript [AS1/AS2]

Frame 1
stop();
Instance of Symbol 91 MovieClip [APIConnector] in Frame 1
//component parameters onClipEvent (construct) { apiId = "21060:YWIDmGTM"; encryptionKey = "VzJfl578xGbiz7BmaJg60VUHbfE7eu70"; debugMode = "Simulate Logged-in User"; movieVersion = ""; connectorType = "Flash Ad + Preloader"; redirectOnNewVersion = true; redirectOnHostBlocked = true; }
Instance of Symbol 100 MovieClip "menu hider" in Frame 1
onClipEvent (load) { Stage.showMenu = false; _root._focusrect = false; }
Instance of Symbol 103 MovieClip "cursor" in Frame 1
onClipEvent (load) { startDrag ("", true); Mouse.hide(); }
Instance of Symbol 106 MovieClip in Frame 1
onClipEvent (load) { globalsound = new Sound(); keyListener = new Object(); keyListener.onKeyDown = function () { if (Key.isDown(32)) { if (_parent.muted == true) { globalsound.setVolume(100); _parent.muted = false; } else { globalsound.setVolume(0); _parent.muted = true; } } }; Key.addListener(keyListener); }
Frame 2
stop();
Instance of Symbol 141 MovieClip in Frame 2
onClipEvent (load) { this._alpha = 80; this.onPress = function () { _parent.gotoAndPlay("serpet"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; }
Instance of Symbol 194 MovieClip in Frame 2
onClipEvent (load) { this.onPress = function () { }; }
Frame 7
_global.bustednut = 0; _global.curr = 0; _global.deadguy = 0; _global.timer = 0; _global.rune1 = 0; _global.rune2 = 0; _global.rune3 = 0; _global.rune4 = 0; _global.rune5 = 0; _global.solution = ""; _global.doorsopen = 0; _global.counter = 0; _global.pumpkingot = "yes"; _global.pumpkinon = "no"; _global.hammergot = "yes"; _global.hammeron = "no"; _global.knifegot = "yes"; _global.knifeon = "no"; _global.applegot = "no"; _global.appleon = "no"; _global.teethgot = "no"; _global.teethon = "no"; _global.haseatentoday = 0; _global.part1got = "no"; _global.part1on = "no"; _global.part1got = "no"; _global.part1on = "no"; _global.part1got = "no"; _global.part1on = "no"; _global.gettingitem = 0; _global.slot1 = 0; _global.slot2 = 0; _global.slot3 = 0; _global.part1used = "no"; _global.part2used = "no"; _global.part3used = "no"; _global.electrodedone = 0; _global.electrodesout = 0; _global.talkedtothemachine = 0; _global.foundsecondpart = "no"; Color.prototype.setTint = function (r, g, b, amount) { var _local2 = new Object(); _local2.ra = (_local2.ga = (_local2.ba = 100 - amount)); var _local3 = amount / 100; _local2.rb = r * _local3; _local2.gb = g * _local3; _local2.bb = b * _local3; this.setTransform(_local2); }; stop();
Frame 8
stop();
Frame 9
_global.buttonclear = function () { _global.pumpkinon = "no"; myColor = new Color(pumpkin); myColor.setTint(0, 0, 0, 0); _global.hammeron = "no"; myColor = new Color(hammer); myColor.setTint(0, 0, 0, 0); _global.knifeon = "no"; myColor = new Color(knife); myColor.setTint(0, 0, 0, 0); _global.appleon = "no"; myColor = new Color(apple); myColor.setTint(0, 0, 0, 0); _global.teethon = "no"; myColor = new Color(teeth); myColor.setTint(0, 0, 0, 0); _global.part1on = "no"; myColor = new Color(part1); myColor.setTint(0, 0, 0, 0); _global.part2on = "no"; myColor = new Color(part2); myColor.setTint(0, 0, 0, 0); _global.part3on = "no"; myColor = new Color(part3); myColor.setTint(0, 0, 0, 0); }; wine.gotoAndPlay(1); textbox.text = "I searched the woods for the lost girl, as directed by the villagers."; stop();
Instance of Symbol 233 MovieClip in Frame 9
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("story2"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 249 MovieClip in Frame 9
onClipEvent (load) { this._alpha = 90; this.onPress = function () { if ((_parent._currentframe > 11) && ((((_parent._currentframe != 29) && (_parent._currentframe != 30)) && (_parent._currentframe != 31)) && (_parent._currentframe != 32))) { clicksound = new Sound(this); clicksound.attachSound("page"); clicksound.start(); _global.curr = _parent._currentframe; _parent.gotoAndStop("journal1"); } }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 262 MovieClip "pumpkin" in Frame 9
onClipEvent (load) { this.gotoAndStop(5); this.onPress = function () { if ((_parent._currentframe > 11) && ((((_parent._currentframe != 29) && (_parent._currentframe != 30)) && (_parent._currentframe != 31)) && (_parent._currentframe != 32))) { if (_global.pumpkingot == "no") { } if ((_global.pumpkingot == "yes") && (_global.pumpkinon == "no")) { buttonclear(); _parent.textbox.text = "This loyal jack-o'-lantern still burns brightly at my side."; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); myColor = new Color(this); myColor.setTint(0, 255, 50, 30); _global.pumpkinon = "yes"; trace("pumpkin on"); } else if ((_global.pumpkingot == "yes") && (_global.pumpkinon == "yes")) { _parent.textbox.text = "I'll just put this back into my pack."; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); myColor = new Color(this); myColor.setTint(0, 0, 0, 0); _global.pumpkinon = "no"; trace("pumpkin off"); } } }; }
Instance of Symbol 262 MovieClip "hammer" in Frame 9
onClipEvent (load) { this.gotoAndStop(2); this.onPress = function () { if ((_parent._currentframe > 11) && ((((_parent._currentframe != 29) && (_parent._currentframe != 30)) && (_parent._currentframe != 31)) && (_parent._currentframe != 32))) { if (_global.hammergot == "no") { } if ((_global.hammergot == "yes") && (_global.hammeron == "no")) { buttonclear(); _parent.textbox.text = "This enchanted hammer is a powerful tool for communicating with demons."; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); myColor = new Color(this); myColor.setTint(0, 255, 50, 30); _global.hammeron = "yes"; trace("hammer on"); } else if ((_global.hammergot == "yes") && (_global.hammeron == "yes")) { _parent.textbox.text = "I'll put this back into my belt for now."; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); myColor = new Color(this); myColor.setTint(0, 0, 0, 0); _global.hammeron = "no"; trace("hammer off"); } } }; }
Instance of Symbol 262 MovieClip "knife" in Frame 9
onClipEvent (load) { this.gotoAndStop(3); this.onPress = function () { if ((_parent._currentframe > 11) && ((((_parent._currentframe != 29) && (_parent._currentframe != 30)) && (_parent._currentframe != 31)) && (_parent._currentframe != 32))) { if (_global.knifegot == "no") { } if ((_global.knifegot == "yes") && (_global.knifeon == "no")) { buttonclear(); _parent.textbox.text = "I still have my sword if I need a larger blade."; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); myColor = new Color(this); myColor.setTint(0, 255, 50, 30); _global.knifeon = "yes"; trace("knife on"); } else if ((_global.knifegot == "yes") && (_global.knifeon == "yes")) { _parent.textbox.text = "I'll hide this away in my boot."; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); myColor = new Color(this); myColor.setTint(0, 0, 0, 0); _global.knifeon = "no"; trace("knife off"); } } }; }
Instance of Symbol 262 MovieClip "apple" in Frame 9
onClipEvent (load) { this._alpha = 0; this.gotoAndStop(4); this.onPress = function () { if (_global.knifeon == "yes") { this._x = 530; this.onPress = function () { }; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); _parent.teeth._x = 258; _parent.teeth._y = 320; _parent.textbox.text = "I'll just slice this apple up... the hell? There are teeth in this apple instead of seeds! D:"; _global.teethgot = "yes"; } else if ((_parent._currentframe > 11) && ((((_parent._currentframe != 29) && (_parent._currentframe != 30)) && (_parent._currentframe != 31)) && (_parent._currentframe != 32))) { if (_global.applegot == "no") { } if ((_global.applegot == "yes") && (_global.appleon == "no")) { buttonclear(); _parent.textbox.text = "I'm not actually hungry right now. It's probably an evil apple anyway."; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); myColor = new Color(this); myColor.setTint(0, 255, 50, 30); _global.appleon = "yes"; trace("apple on"); } else if ((_global.applegot == "yes") && (_global.appleon == "yes")) { _parent.textbox.text = "I'll save this for later."; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); myColor = new Color(this); myColor.setTint(0, 0, 0, 0); _global.appleon = "no"; trace("apple off"); } } }; }
Instance of Symbol 262 MovieClip "teeth" in Frame 9
onClipEvent (load) { this.gotoAndStop(7); this.onPress = function () { if ((_parent._currentframe > 11) && ((((_parent._currentframe != 29) && (_parent._currentframe != 30)) && (_parent._currentframe != 31)) && (_parent._currentframe != 32))) { if (_global.teethgot == "no") { } if ((_global.teethgot == "yes") && (_global.teethon == "no")) { buttonclear(); _parent.textbox.text = "Damn weird little fruit teeth."; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); myColor = new Color(this); myColor.setTint(0, 255, 50, 30); _global.teethon = "yes"; trace("teeth on"); } else if ((_global.teethgot == "yes") && (_global.teethon == "yes")) { _parent.textbox.text = "Who knows when I'll need these... ung."; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); myColor = new Color(this); myColor.setTint(0, 0, 0, 0); _global.teethon = "no"; trace("teeth off"); } } }; }
Instance of Symbol 262 MovieClip "part1" in Frame 9
onClipEvent (load) { this.gotoAndStop(6); this.onPress = function () { if ((_parent._currentframe > 11) && ((((_parent._currentframe != 29) && (_parent._currentframe != 30)) && (_parent._currentframe != 31)) && (_parent._currentframe != 32))) { if (_global.part1got == "no") { } if ((_global.part1got == "yes") && (_global.part1on == "no")) { buttonclear(); _parent.textbox.text = "This is clearly a part to the strange ship."; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); myColor = new Color(this); myColor.setTint(0, 255, 50, 30); _global.part1on = "yes"; trace("part1 on"); } else if ((_global.part1got == "yes") && (_global.part1on == "yes")) { _parent.textbox.text = "I'll just put this in my pack for now."; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); myColor = new Color(this); myColor.setTint(0, 0, 0, 0); _global.part1on = "no"; trace("part1 off"); } } }; }
Instance of Symbol 262 MovieClip "part2" in Frame 9
onClipEvent (load) { this.gotoAndStop(6); this.onPress = function () { if ((_parent._currentframe > 11) && ((((_parent._currentframe != 29) && (_parent._currentframe != 30)) && (_parent._currentframe != 31)) && (_parent._currentframe != 32))) { if (_global.part2got == "no") { } if ((_global.part2got == "yes") && (_global.part2on == "no")) { buttonclear(); _parent.textbox.text = "This is clearly another part to the ship."; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); myColor = new Color(this); myColor.setTint(0, 255, 50, 30); _global.part2on = "yes"; trace("part2 on"); } else if ((_global.part2got == "yes") && (_global.part2on == "yes")) { _parent.textbox.text = "I'll just put this away. Can't have too many parts I always say."; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); myColor = new Color(this); myColor.setTint(0, 0, 0, 0); _global.part2on = "no"; trace("part2 off"); } } }; }
Instance of Symbol 262 MovieClip "part3" in Frame 9
onClipEvent (load) { this.gotoAndStop(6); this.onPress = function () { if ((_parent._currentframe > 11) && ((((_parent._currentframe != 29) && (_parent._currentframe != 30)) && (_parent._currentframe != 31)) && (_parent._currentframe != 32))) { if (_global.part3got == "no") { } if ((_global.part3got == "yes") && (_global.part3on == "no")) { buttonclear(); _parent.textbox.text = "Yet another part to the ship. *sigh*"; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); myColor = new Color(this); myColor.setTint(0, 255, 50, 30); _global.part3on = "yes"; trace("part3 on"); } else if ((_global.part3got == "yes") && (_global.part3on == "yes")) { _parent.textbox.text = "I really hope this is the last part."; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); myColor = new Color(this); myColor.setTint(0, 0, 0, 0); _global.part3on = "no"; trace("part3 off"); } } }; }
Frame 10
wine.gotoAndPlay(1); textbox.text = "I came to a metal beast. Disturbed from the bottom of the swamp."; stop();
Instance of Symbol 233 MovieClip in Frame 10
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("story3"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Frame 11
wine.gotoAndPlay(1); textbox.text = "But I had seen such a thing before. This was no beast. It was a machine."; stop();
Instance of Symbol 233 MovieClip in Frame 11
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("start"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Frame 12
textbox.text = "What a strange machine. Seems advanced."; stop();
Instance of Symbol 233 MovieClip in Frame 12
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("start2"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 233 MovieClip in Frame 12
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("start3"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 233 MovieClip in Frame 12
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("start4"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 233 MovieClip in Frame 12
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("start8"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 274 MovieClip in Frame 12
onClipEvent (load) { if (((_global.part1used == "yes") && (_global.part1used == "yes")) && (_global.electrodedone == 1)) { this._alpha = 100; } this.onPress = function () { if (((_global.part1used == "yes") && (_global.part1used == "yes")) && (_global.electrodedone == 1)) { if (_global.hammeron == "yes") { _parent.gotoAndStop("demon7"); } else { _parent.gotoAndStop("demon1"); } } }; }
Instance of Symbol 276 MovieClip in Frame 12
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "This must be the 'metal demon'. It looks like some kind of ship."; if (_global.pumpkinon == "yes") { _parent.textbox.text = "I don't think this is a very good place to leave my pumpkin."; } if (_global.hammeron == "yes") { _parent.textbox.text = "I could beat on it all day but I don't think it'd talk."; } if (_global.knifeon == "yes") { _parent.textbox.text = "Maybe if it was a real fish, but it isn't."; } if (_global.appleon == "yes") { _parent.textbox.text = "I don't think it is hungry."; } if (_global.teethon == "yes") { _parent.textbox.text = "I could make it some dentures, right?"; } if (((_global.part1on == "yes") || (_global.part2on == "yes")) || (_global.part3on == "yes")) { _parent.textbox.text = "I should take this inside."; } }; }
Instance of Symbol 278 MovieClip in Frame 12
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "The gear is surprisingly heavy."; if (_global.pumpkinon == "yes") { _parent.textbox.text = "The pumpkin and the gear do not work well together."; } if (_global.hammeron == "yes") { _parent.textbox.text = "That isn't how you use a hammer... or a gear."; } if (_global.knifeon == "yes") { _parent.textbox.text = "I threaten the gear, but it just sits there. BS."; } if (_global.appleon == "yes") { _parent.textbox.text = "The gear is not interested in the apple. Because it is a gear."; } if (_global.teethon == "yes") { _parent.textbox.text = "The gear already has teeth."; } if (((_global.part1on == "yes") || (_global.part2on == "yes")) || (_global.part3on == "yes")) { _parent.textbox.text = "This isn't the part of the ship I should attach these to."; } }; }
Instance of Symbol 280 MovieClip in Frame 12
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "These mushrooms could be edible, but why risk it?"; if (_global.pumpkinon == "yes") { _parent.textbox.text = "The jack-o-lantern has nothing to say to the mushrooms."; } if (_global.hammeron == "yes") { _parent.textbox.text = "If I wanted them free, a hammer would likely do it."; } if (_global.knifeon == "yes") { _parent.textbox.text = "I could cut them down, but why?"; } if (_global.appleon == "yes") { _parent.textbox.text = "I could make.. apple... shroom.. pie?"; } if (_global.teethon == "yes") { _parent.textbox.text = "Better than trying them with my own."; } if (((_global.part1on == "yes") || (_global.part2on == "yes")) || (_global.part3on == "yes")) { _parent.textbox.text = "The parts don't fit... into the mushrooms... >_>"; } }; }
Frame 13
textbox.text = "Looks like it has been here for some time."; stop();
Instance of Symbol 233 MovieClip in Frame 13
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("start"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 284 MovieClip in Frame 13
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "This ship almost looks like it worked underwater."; if (_global.pumpkinon == "yes") { _parent.textbox.text = "The pumpkin has little to no effect when touched to the fins."; } if (_global.hammeron == "yes") { _parent.textbox.text = "I don't need a giant metal fin that badly."; } if (_global.knifeon == "yes") { _parent.textbox.text = "That would do nothing, other than ruin my knife."; } if (_global.appleon == "yes") { _parent.textbox.text = "Here you go giant metal robot fin! Have an apple?"; } if (_global.teethon == "yes") { _parent.textbox.text = "No matter how I work it, the teeth do nothing."; } if (((_global.part1on == "yes") || (_global.part2on == "yes")) || (_global.part3on == "yes")) { _parent.textbox.text = "The part doesn't go here."; } }; }
Instance of Symbol 287 MovieClip in Frame 13
onClipEvent (load) { if (_global.part1used == "yes") { this._alpha = 100; } this.onPress = function () { if (_global.part1used == "yes") { _parent.textbox.text = "The creature points to the swamp water, and then back to the machine. It shudders."; } }; }
Instance of Symbol 289 MovieClip in Frame 13
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "This is a viewing window of some kind."; if (_global.pumpkinon == "yes") { _parent.textbox.text = "You let the jack-o-lantern look inside. He says nothing."; } if (_global.hammeron == "yes") { _parent.textbox.text = "I COULD break this glass, but I don't need to. Tempting though."; } if (_global.knifeon == "yes") { _parent.textbox.text = "This knife would have little effect on the thick glass."; } if (_global.appleon == "yes") { _parent.textbox.text = "The window and the apple have nothing to say to each other."; } if (_global.teethon == "yes") { _parent.textbox.text = "Ung, that would make a horrible noise."; } if (((_global.part1on == "yes") || (_global.part2on == "yes")) || (_global.part3on == "yes")) { _parent.textbox.text = "The part doesn't go here."; } }; }
Instance of Symbol 291 MovieClip in Frame 13
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "I'm like almost positive that those are poisonous."; if (_global.pumpkinon == "yes") { _parent.textbox.text = "The pumpkin does nothing when placed near the mushrooms."; } if (_global.hammeron == "yes") { _parent.textbox.text = "Take this you dastardly shrooms!"; } if (_global.knifeon == "yes") { _parent.textbox.text = "I threaten them, but they don't cough up any money."; } if (_global.appleon == "yes") { _parent.textbox.text = "That might poison my wonderful apple!?!"; } if (_global.teethon == "yes") { _parent.textbox.text = "No matter how I try it... nothing."; } if (((_global.part1on == "yes") || (_global.part2on == "yes")) || (_global.part3on == "yes")) { _parent.textbox.text = "The part doesn't go here. Because those are just mushrooms. Look behind them."; } }; }
Frame 14
textbox.text = "This is an odd hut. No doubt protected by magic with all the demons about."; stop();
Instance of Symbol 233 MovieClip in Frame 14
onClipEvent (load) { this._alpha = 90; this.onPress = function () { if (_global.gettingitem == 0) { _parent.gotoAndStop("start"); } }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 233 MovieClip in Frame 14
onClipEvent (load) { this._alpha = 90; this.onPress = function () { if (_global.gettingitem == 0) { _parent.gotoAndStop("start7"); } }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 295 MovieClip in Frame 14
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "The swamp water is thick, cold, and murky."; if ((_global.part1used == "yes") && (_global.foundsecondpart != "yes")) { clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); _parent.textbox.text = "Feeling around... and... found it!"; _parent.part2._x = 258; _parent.part2._y = 320; _global.part2got = "yes"; _global.foundsecondpart = "yes"; } }; }
Instance of Symbol 297 MovieClip in Frame 14
onClipEvent (load) { if (_global.applegot != "yes") { this.onPress = function () { if (_global.gettingitem == 0) { clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); _global.gettingitem = 1; this.gotoAndPlay(2); } }; } else { this._x = 530; this.onPress = function () { }; } }
Instance of Symbol 299 MovieClip in Frame 14
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "That is a fine looking swamp boat."; if (_global.pumpkinon == "yes") { _parent.textbox.text = "While that would look awesome, I'm going to hang on to it for now."; } if (_global.hammeron == "yes") { _parent.textbox.text = "You're right! I SHOULD build my own boat."; } if (_global.knifeon == "yes") { _parent.textbox.text = "Alright, I quietly stab a hole in the boat. He he he."; } if (_global.appleon == "yes") { _parent.textbox.text = "Boats don't eat apples. Stop being weird."; } if (_global.teethon == "yes") { _parent.textbox.text = "But I just got these teeth, why would I send them away?"; } if (((_global.part1on == "yes") || (_global.part2on == "yes")) || (_global.part3on == "yes")) { _parent.textbox.text = "The part doesn't go here. This is a normal boat. Not a mecha-fish boat."; } }; }
Instance of Symbol 301 MovieClip in Frame 14
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "That is an interesting little shack."; if (_global.pumpkinon == "yes") { _parent.textbox.text = "The jack-o-lantern would love to go inside."; } if (_global.hammeron == "yes") { _parent.textbox.text = "If I tear it down, the owner might get angry..."; } if (_global.knifeon == "yes") { _parent.textbox.text = "I secretly carve my name in the supports, nice."; } if (_global.appleon == "yes") { _parent.textbox.text = "Hey look, building! I found an apple!"; } if (_global.teethon == "yes") { _parent.textbox.text = "I could gnaw on it all day, and... nothing."; } if (((_global.part1on == "yes") || (_global.part2on == "yes")) || (_global.part3on == "yes")) { _parent.textbox.text = "Maybe the owner can tell me more about these parts?"; } }; }
Frame 15
textbox.text = "The hull of this vessel is no longer secure. Nature is reclaiming it."; stop();
Instance of Symbol 233 MovieClip in Frame 15
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("start"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 233 MovieClip in Frame 15
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("start5"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 361 MovieClip in Frame 15
onClipEvent (load) { if (_global.electrodedone != 1) { if (_global.electrodesout == 0) { if ((_global.part2used == "yes") && (_global.part1used == "yes")) { this.gotoAndStop(2); } } else { this.gotoAndStop(60); } this.onPress = function () { if (((_global.part2used == "yes") && (_global.part1used == "yes")) && (_global.electrodesout == 1)) { if (_global.electrodedone == 1) { _parent.textbox.text = "It seems to be working... for now."; } else { _parent.textbox.text = "This looks like some kind of electrode... fuse... thing. It's missing a piece."; } } if ((((_global.part2used == "yes") && (_global.part1used == "yes")) && (_global.electrodesout == 1)) && (_global.knifeon == "yes")) { _parent.textbox.text = "This knife will bridge the connection for now."; _global.knifeon = "no"; _global.knifegot = "no"; _parent.knife._x = 521; _parent.knife._y = 109; clicksound = new Sound(this); clicksound.attachSound("clickclack"); clicksound.start(); this.gotoAndStop(61); _global.electrodedone = 1; } if ((((_global.part2used == "yes") && (_global.part1used == "yes")) && (_global.electrodesout == 1)) && (_global.hammeron == "yes")) { _parent.textbox.text = "The hammer doesn't fit and wouldn't conduct power anyway."; } if ((((_global.part2used == "yes") && (_global.part1used == "yes")) && (_global.electrodesout == 1)) && (_global.pumpkinon == "yes")) { _parent.textbox.text = "That's a crazy person's idea."; } }; } else { this.gotoAndStop(61); this.onPress = function () { _parent.textbox.text = "It seems to be working... for now."; }; } }
Instance of Symbol 363 MovieClip in Frame 15
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "This looks like a barrel filled with some liquid. The roots have grown around it."; if (_global.pumpkinon == "yes") { _parent.textbox.text = "The pumpkin doesn't have any advice on how to free the barrel."; } if (_global.hammeron == "yes") { _parent.textbox.text = "I guess I could do that, but it'd probably just make a mess."; } if (_global.knifeon == "yes") { _parent.textbox.text = "I don't wanna screw up the blade. I might need it."; } if (_global.appleon == "yes") { _parent.textbox.text = "The apple pops the lid open for you! YEEAAAH! Just kidding."; } if (_global.teethon == "yes") { _parent.textbox.text = "The teeth have no effect on the barrel."; } if (((_global.part1on == "yes") || (_global.part2on == "yes")) || (_global.part3on == "yes")) { _parent.textbox.text = "This is not where the part fits."; } }; }
Instance of Symbol 365 MovieClip in Frame 15
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "Freaking mushrooms everywhere!"; if (_global.pumpkinon == "yes") { _parent.textbox.text = "The jack-o-lantern eyeballs those mushrooms."; } if (_global.hammeron == "yes") { _parent.textbox.text = "I don't feel like smashing some random mushrooms with my enchanted demon hammer."; } if (_global.knifeon == "yes") { _parent.textbox.text = "I don't need to harvest these right now."; } if (_global.appleon == "yes") { _parent.textbox.text = "Apples taste better than mushrooms. I think. O_o"; } if (_global.teethon == "yes") { _parent.textbox.text = "The mushrooms don't need any teeth. Thanks though!"; } if (((_global.part1on == "yes") || (_global.part2on == "yes")) || (_global.part3on == "yes")) { _parent.textbox.text = "The part has no effect on the shrooms."; } }; }
Instance of Symbol 367 MovieClip in Frame 15
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "It looks like the ship doesn't have power."; if (_global.pumpkinon == "yes") { _parent.textbox.text = "The jack-o-lantern provides more light than this bulb."; } if (_global.hammeron == "yes") { _parent.textbox.text = "This isn't Alice is Dead, breaking the light does nothing."; } if (_global.knifeon == "yes") { _parent.textbox.text = "The knife yields no aid when used on the light."; } if (_global.appleon == "yes") { _parent.textbox.text = "The apple doesn't light up or anything."; } if (_global.teethon == "yes") { _parent.textbox.text = "The teeth do nothing here."; } if (((_global.part1on == "yes") || (_global.part2on == "yes")) || (_global.part3on == "yes")) { _parent.textbox.text = "This is not where the part fits."; } }; }
Instance of Symbol 369 MovieClip in Frame 15
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "A view port window thing. It looks very strong and thick."; if (_global.pumpkinon == "yes") { _parent.textbox.text = "The jack-o-lantern peers out of the window. He says nothing."; } if (_global.hammeron == "yes") { _parent.textbox.text = "I could knock it out, but what would that accomplish? Meh."; } if (_global.knifeon == "yes") { _parent.textbox.text = "The knife does nothing to the glass, other than make a HORRIBLE noise."; } if (_global.appleon == "yes") { _parent.textbox.text = "The apple does nothing when touched to the glass."; } if (_global.teethon == "yes") { _parent.textbox.text = "The teeth have no effect on the glass."; } if (((_global.part1on == "yes") || (_global.part2on == "yes")) || (_global.part3on == "yes")) { _parent.textbox.text = "This is not where the part fits."; } }; }
Frame 16
textbox.text = "This ship is much larger inside than it looked from the outside."; stop();
Instance of Symbol 233 MovieClip in Frame 16
onClipEvent (load) { this._alpha = 90; if (_global.talkedtothemachine == 1) { this.onPress = function () { _parent.gotoAndStop("diapertime1"); }; } else { this.onPress = function () { _parent.gotoAndStop("start4"); }; } this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 233 MovieClip in Frame 16
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("start6"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 375 MovieClip in Frame 16
onClipEvent (load) { if (((_global.part1used == "yes") && (_global.part2used == "yes")) && (_global.part3used == "yes")) { this._alpha = 100; } this.onPress = function () { if (_global.hammeron == "yes") { _parent.textbox.text = "There is no reason to break this just because it is glass. I'm not eight."; } if (((_global.part1used == "yes") && (_global.part2used == "yes")) && (_global.part3used == "yes")) { _parent.gotoAndStop("computer1"); } }; }
Instance of Symbol 377 MovieClip in Frame 16
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "I don't know what that is, but it's awesome."; if (_global.pumpkinon == "yes") { _parent.textbox.text = "This looks like it'd trash my pumpkin. No way."; } if (_global.hammeron == "yes") { _parent.textbox.text = "I doubt there is anything all that interesting inside."; } if (_global.knifeon == "yes") { _parent.textbox.text = "But what if I drop it!?"; } if (_global.appleon == "yes") { _parent.textbox.text = "No, I think I'll just keep my apple."; } if (_global.teethon == "yes") { _parent.textbox.text = "I'd never gather them all back up."; } if (((_global.part1on == "yes") || (_global.part2on == "yes")) || (_global.part3on == "yes")) { _parent.textbox.text = "The part doesn't fit here."; } }; }
Instance of Symbol 379 MovieClip in Frame 16
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "These hoses look super important."; if (_global.pumpkinon == "yes") { _parent.textbox.text = "The pumpkin won't fit inside any of these hoses."; } if (_global.hammeron == "yes") { _parent.textbox.text = "You whack of the hoses with the hammer. Nothing happens. Bleh."; } if (_global.knifeon == "yes") { _parent.textbox.text = "Lord no! Who knows what might come spraying out?"; } if (_global.appleon == "yes") { _parent.textbox.text = "The apple doesn't fit inside the hose."; } if (_global.teethon == "yes") { _parent.textbox.text = "The teeth would fit, but you'd never be able to find them again. The teeth are too important!"; } if (((_global.part1on == "yes") || (_global.part2on == "yes")) || (_global.part3on == "yes")) { _parent.textbox.text = "This is not where the part fits."; } }; }
Instance of Symbol 381 MovieClip in Frame 16
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "Wow, that thing looks REALLY important. And broken!"; if (_global.pumpkinon == "yes") { _parent.textbox.text = "The pumpkin doesn't have any advice."; } if (_global.hammeron == "yes") { _parent.textbox.text = "The hammer cannot assist you with this."; } if (_global.knifeon == "yes") { _parent.textbox.text = "The knife is unable to repair the broken thingie."; } if (_global.appleon == "yes") { _parent.textbox.text = "The apple just sits there, being an apple."; } if (_global.teethon == "yes") { _parent.textbox.text = "The teeth have no effect on the broken piece of alien machinery. Shocking."; } if (((_global.part1on == "yes") || (_global.part2on == "yes")) || (_global.part3on == "yes")) { _parent.textbox.text = "This is not where the part fits."; } }; }
Instance of Symbol 383 MovieClip in Frame 16
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "Is that a barrel? I don't even know. Maybe I shouldn't touch that."; }; }
Instance of Symbol 385 MovieClip in Frame 16
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "This is... some kind of glass mirror? I have no clue."; if (_global.pumpkinon == "yes") { _parent.textbox.text = "The pumpkin doesn't affect the glass mirror thing."; } if (_global.hammeron == "yes") { _parent.textbox.text = "It looks as if it is already broken."; } if (_global.knifeon == "yes") { _parent.textbox.text = "It is already broken, no need to stab it. Not this time."; } if (_global.appleon == "yes") { _parent.textbox.text = "The apple does nothing for the broken glass object."; } if (_global.teethon == "yes") { _parent.textbox.text = "The glass object needs no teeth."; } if (((_global.part1on == "yes") || (_global.part2on == "yes")) || (_global.part3on == "yes")) { _parent.textbox.text = "This is not where the part fits."; } }; }
Instance of Symbol 387 MovieClip in Frame 16
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "I... uh... this... what the hell IS that?"; if (_global.pumpkinon == "yes") { _parent.textbox.text = "The pumpkin doesn't work with the... thing."; } if (_global.hammeron == "yes") { _parent.textbox.text = "You whack the thing with your hammer! Huzzah!"; } if (_global.knifeon == "yes") { _parent.textbox.text = "You poke the thing, it just sits there. Bleh."; } if (_global.appleon == "yes") { _parent.textbox.text = "You touch the apple to the... thing. Huh."; } if (_global.teethon == "yes") { _parent.textbox.text = "The teeth dunno what the thing is for either."; } if (((_global.part1on == "yes") || (_global.part2on == "yes")) || (_global.part3on == "yes")) { _parent.textbox.text = "This is not where the part fits. It doesn't fit the 'thing'."; } }; }
Frame 17
textbox.text = "This must be their storage room, the contents look to be mostly intact."; stop();
Instance of Symbol 233 MovieClip in Frame 17
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("start5"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 233 MovieClip in Frame 17
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("start10"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 391 MovieClip in Frame 17
onClipEvent (load) { this.onPress = function () { _parent.gotoAndStop("bookit"); }; }
Instance of Symbol 393 MovieClip in Frame 17
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "This appears to be some kind of steam tank. I have seen these in the city."; if (_global.pumpkinon == "yes") { _parent.textbox.text = "The pumpkin has no effect on the tank."; } if (_global.hammeron == "yes") { _parent.textbox.text = "That is a bad idea, these things explode all the time."; } if (_global.knifeon == "yes") { _parent.textbox.text = "Terrible idea. Really. D:"; } if (_global.appleon == "yes") { _parent.textbox.text = "If you could find a way to get the apple inside, it'd be instantly cooked!"; } if (_global.teethon == "yes") { _parent.textbox.text = "The teeth do not want to go into the tank."; } if (((_global.part1on == "yes") || (_global.part2on == "yes")) || (_global.part3on == "yes")) { _parent.textbox.text = "There is no place on the tank for the part to fit."; } }; }
Instance of Symbol 395 MovieClip in Frame 17
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "These pipes were once probably really important."; if (_global.pumpkinon == "yes") { _parent.textbox.text = "You rub the pumpkin all over the old pipes. Neither of you feel anything."; } if (_global.hammeron == "yes") { _parent.textbox.text = "You smack the pipes several time, you wait, but no one responds."; } if (_global.knifeon == "yes") { _parent.textbox.text = "The knife has no effect on the hard metal pipes. Poor knife."; } if (_global.appleon == "yes") { _parent.textbox.text = "The apple causes the pipes to explode releasing poison into... just kidding, haha."; } if (_global.teethon == "yes") { _parent.textbox.text = "Nothing. No effect."; } if (((_global.part1on == "yes") || (_global.part2on == "yes")) || (_global.part3on == "yes")) { _parent.textbox.text = "The part does not fit onto the pipes."; } }; }
Instance of Symbol 397 MovieClip in Frame 17
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "This is a very strange looking knife, unlike any I've seen before."; }; }
Instance of Symbol 399 MovieClip in Frame 17
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "Looks like someone was having dinner! About 700 years ago."; }; }
Instance of Symbol 401 MovieClip in Frame 17
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "Looks like there used to be wine or something in this jug. Not anymore."; if (_global.pumpkinon == "yes") { _parent.textbox.text = "Pumpkin wine would be AWESOME!"; } if (_global.hammeron == "yes") { _parent.textbox.text = "Well, that is just wasteful."; } if (_global.knifeon == "yes") { _parent.textbox.text = "Come on! What is it with you and stabbing things!?"; } if (_global.appleon == "yes") { _parent.textbox.text = "The apple doesn't fit."; } if (_global.teethon == "yes") { _parent.textbox.text = "You drop one of the evil teeth in, craaap. Now what?"; } if (((_global.part1on == "yes") || (_global.part2on == "yes")) || (_global.part3on == "yes")) { _parent.textbox.text = "The part doesn't go in the ancient wine jug."; } }; }
Instance of Symbol 403 MovieClip in Frame 17
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "The interior of this can smells very strange."; }; }
Instance of Symbol 405 MovieClip in Frame 17
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "The barrel almost crumbles when I touch it."; }; }
Instance of Symbol 407 MovieClip in Frame 17
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "There is nothing but dust in this bag now."; }; }
Frame 18
textbox.text = "You can tell that this creature has lived here for some time."; stop();
Instance of Symbol 233 MovieClip in Frame 18
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("start3"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 423 MovieClip in Frame 18
onClipEvent (load) { this.onPress = function () { _parent.gotoAndStop("talk1"); }; }
Instance of Symbol 425 MovieClip in Frame 18
onClipEvent (load) { this.onPress = function () { _parent.gotoAndStop("hutbook1"); }; }
Instance of Symbol 427 MovieClip in Frame 18
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "What a cute little lizard fellow! Must be his pet lizard."; if (_global.pumpkinon == "yes") { _parent.textbox.text = "You hold the jack-o-lantern out for him to see. He grumbles."; } if (_global.hammeron == "yes") { _parent.textbox.text = "That would almost certainly start a fight."; } if (_global.knifeon == "yes") { _parent.textbox.text = "What in the hell is wrong with you Mr. Future Serial Killer?"; } if (_global.appleon == "yes") { _parent.textbox.text = "He puffs out a small cloud of smoke, you take it to mean 'I don't want that.'"; } if (_global.teethon == "yes") { _parent.textbox.text = "Some reptiles don't have teeth, and some can generate lost teeth almost over night!"; } if (((_global.part1on == "yes") || (_global.part2on == "yes")) || (_global.part3on == "yes")) { _parent.textbox.text = "He doesn't want that. At all."; } }; }
Instance of Symbol 429 MovieClip in Frame 18
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "This appears to be a suit of tribal armor."; if (_global.pumpkinon == "yes") { _parent.textbox.text = "I agree, the jack-o-lantern WOULD look cool on top of this."; } if (_global.hammeron == "yes") { _parent.textbox.text = "I'm not a blacksmith, heh."; } if (_global.knifeon == "yes") { _parent.textbox.text = "Yeah, I think I could take him. Since he's empty."; } }; }
Instance of Symbol 431 MovieClip in Frame 18
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "This interesting barrel is sealed."; if (_global.pumpkinon == "yes") { _parent.textbox.text = "The pumpkin doesn't know how to get inside."; } if (_global.hammeron == "yes") { _parent.textbox.text = "I would whack it, but the little guy in the orange hat keeps eyeballin' me."; } if (_global.knifeon == "yes") { _parent.textbox.text = "STABSTABSTAB!! No."; } if (_global.appleon == "yes") { _parent.textbox.text = "You set the apple on the barrel. Cool. You take it back. Cool."; } if (_global.teethon == "yes") { _parent.textbox.text = "The teeth have no idea what is inside."; } if (((_global.part1on == "yes") || (_global.part2on == "yes")) || (_global.part3on == "yes")) { _parent.textbox.text = "What are you even trying to do?!"; } }; }
Instance of Symbol 433 MovieClip in Frame 18
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "The contents of this vase smell like... dead. D:"; }; }
Instance of Symbol 435 MovieClip in Frame 18
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "This looks like a bag of seed. Nothing special here."; }; }
Instance of Symbol 437 MovieClip in Frame 18
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "That is a great looking bell! I'd love to carry it around a whole bunch."; }; }
Instance of Symbol 439 MovieClip in Frame 18
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "An ancient sword and shield, I wonder who they belonged to?"; }; }
Instance of Symbol 441 MovieClip in Frame 18
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "There is a bunch of interesting stuff piled up back there."; }; }
Instance of Symbol 443 MovieClip in Frame 18
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "Strange, this odd hat is stained with blood."; }; }
Instance of Symbol 445 MovieClip in Frame 18
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "There are some pots and pans piled up back there."; }; }
Instance of Symbol 447 MovieClip in Frame 18
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "This guy has gathered all kinds of odds and ends."; }; }
Instance of Symbol 449 MovieClip in Frame 18
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "Looks like he does a little bug catchin' on the side."; }; }
Instance of Symbol 451 MovieClip in Frame 18
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "The contents of that bag look quite fancy. I wonder where he got such modern tools?"; }; }
Frame 19
stop();
Frame 20
textbox.text = "You can tell that this creature has lived here for some time."; stop();
Instance of Symbol 458 MovieClip in Frame 20
onClipEvent (load) { this.testbox.text = "We're done here."; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("start7"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Instance of Symbol 458 MovieClip in Frame 20
onClipEvent (load) { this.testbox.text = "The big metal fish..."; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("talk2"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Instance of Symbol 458 MovieClip in Frame 20
onClipEvent (load) { if (_global.deadguy == 1) { this.testbox.text = "The dead guy in the woods..."; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("talk4"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; } else { this._x = 530; } }
Frame 21
stop();
Frame 22
textbox.text = "This must be Cameron's father. He knew better than to enter these woods right now."; _global.deadguy = 1; stop();
Instance of Symbol 233 MovieClip in Frame 22
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("start"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 462 MovieClip in Frame 22
onClipEvent (load) { this.onPress = function () { _parent.gotoAndStop("father1"); }; }
Instance of Symbol 233 MovieClip in Frame 22
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("start9"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 464 MovieClip in Frame 22
onClipEvent (load) { this.onPress = function () { _parent.textbox.text = "The man looks to have been stabbed to death."; if (_global.pumpkinon == "yes") { _parent.textbox.text = "The jack-o-lantern is SHOCKED that someone would do this."; } if (_global.hammeron == "yes") { _parent.textbox.text = "No point beating a dead parent."; } if (_global.knifeon == "yes") { _parent.textbox.text = "It isn't the knife that killed him. The stab wounds are smaller than your blade."; } if (_global.appleon == "yes") { _parent.textbox.text = "He isn't hungry for apple right now."; } if (_global.teethon == "yes") { _parent.textbox.text = "He still has all of his teeth, these teeth must belong to someone, or something, else."; } if (((_global.part1on == "yes") || (_global.part2on == "yes")) || (_global.part3on == "yes")) { _parent.textbox.text = "He isn't a robot. You can' fix him with machine parts. This isn't Deus Ex."; } }; }
Frame 23
textbox.text = "Her father's journal. Let us see what he learned before his end."; stop();
Instance of Symbol 233 MovieClip in Frame 23
onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound("page"); clicksound.start(); _parent.gotoAndStop("father2"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 233 MovieClip in Frame 23
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("start8"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Frame 24
textbox.text = "Her father's journal. Let us see what he learned before his end."; stop();
Instance of Symbol 233 MovieClip in Frame 24
onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound("page"); clicksound.start(); _parent.gotoAndStop("father3"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 233 MovieClip in Frame 24
onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound("page"); clicksound.start(); _parent.gotoAndStop("father1"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Frame 25
textbox.text = "Her father's journal. Let us see what he learned before his end."; stop();
Instance of Symbol 233 MovieClip in Frame 25
onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound("page"); clicksound.start(); _parent.gotoAndStop("father4"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 233 MovieClip in Frame 25
onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound("page"); clicksound.start(); _parent.gotoAndStop("father2"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Frame 26
textbox.text = "Her father's journal. Let us see what he learned before his end."; stop();
Instance of Symbol 233 MovieClip in Frame 26
onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound("page"); clicksound.start(); _parent.gotoAndStop("father5"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 233 MovieClip in Frame 26
onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound("page"); clicksound.start(); _parent.gotoAndStop("father3"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Frame 27
textbox.text = "Her father's journal. Let us see what he learned before his end."; stop();
Instance of Symbol 233 MovieClip in Frame 27
onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound("page"); clicksound.start(); _parent.gotoAndStop("father6"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 233 MovieClip in Frame 27
onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound("page"); clicksound.start(); _parent.gotoAndStop("father4"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Frame 28
textbox.text = "Her father's journal. Let us see what he learned before his end."; stop();
Instance of Symbol 233 MovieClip in Frame 28
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("start8"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 233 MovieClip in Frame 28
onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound("page"); clicksound.start(); _parent.gotoAndStop("father5"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Frame 29
stop();
Instance of Symbol 233 MovieClip in Frame 29
onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound("page"); clicksound.start(); _parent.gotoAndStop("journal2"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 233 MovieClip in Frame 29
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop(_global.curr); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Frame 30
stop();
Instance of Symbol 233 MovieClip in Frame 30
onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound("page"); clicksound.start(); _parent.gotoAndStop("journal3"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 233 MovieClip in Frame 30
onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound("page"); clicksound.start(); _parent.gotoAndStop("journal1"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 233 MovieClip in Frame 30
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop(_global.curr); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Frame 31
stop();
Instance of Symbol 233 MovieClip in Frame 31
onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound("page"); clicksound.start(); _parent.gotoAndStop("journal4"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 233 MovieClip in Frame 31
onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound("page"); clicksound.start(); _parent.gotoAndStop("journal2"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Frame 32
stop();
Instance of Symbol 233 MovieClip in Frame 32
onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound("page"); clicksound.start(); _parent.gotoAndStop("journal3"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 233 MovieClip in Frame 32
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop(_global.curr); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Frame 33
stop();
Instance of Symbol 233 MovieClip in Frame 33
onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound("page"); clicksound.start(); _parent.gotoAndStop("hutbook2"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 233 MovieClip in Frame 33
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("start7"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Frame 34
stop();
Instance of Symbol 233 MovieClip in Frame 34
onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound("page"); clicksound.start(); _parent.gotoAndStop("hutbook3"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 233 MovieClip in Frame 34
onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound("page"); clicksound.start(); _parent.gotoAndStop("hutbook1"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 233 MovieClip in Frame 34
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("start7"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Frame 35
stop();
Instance of Symbol 233 MovieClip in Frame 35
onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound("page"); clicksound.start(); _parent.gotoAndStop("hutbook4"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 233 MovieClip in Frame 35
onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound("page"); clicksound.start(); _parent.gotoAndStop("hutbook2"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Frame 36
stop();
Instance of Symbol 233 MovieClip in Frame 36
onClipEvent (load) { this._alpha = 90; this.onPress = function () { clicksound = new Sound(this); clicksound.attachSound("page"); clicksound.start(); _parent.gotoAndStop("hutbook3"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 233 MovieClip in Frame 36
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("start7"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Frame 37
stop();
Frame 38
textbox.text = "You can tell that this creature has lived here for some time."; stop();
Instance of Symbol 458 MovieClip in Frame 38
onClipEvent (load) { this.testbox.text = "Anything else?"; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("talk3"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 39
textbox.text = "You can tell that this creature has lived here for some time."; stop();
Instance of Symbol 458 MovieClip in Frame 39
onClipEvent (load) { this.testbox.text = "We're done here."; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("start7"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 40
stop();
Frame 41
textbox.text = "You can tell that this creature has lived here for some time."; stop();
Instance of Symbol 458 MovieClip in Frame 41
onClipEvent (load) { this.testbox.text = "Spirits killed him?"; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("talk5"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 42
textbox.text = "You can tell that this creature has lived here for some time."; stop();
Instance of Symbol 458 MovieClip in Frame 42
onClipEvent (load) { this.testbox.text = "Something else killed him?"; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("talk6"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 43
stop();
Frame 44
textbox.text = "The forest seems endless in this fog."; stop();
Instance of Symbol 233 MovieClip in Frame 44
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("start8"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 501 MovieClip in Frame 44
onClipEvent (load) { this.onPress = function () { if (_global.hammeron == "yes") { clicksound = new Sound(this); clicksound.attachSound("candy3"); clicksound.start(); _parent.textbox.text = "He doesn't appear to want his nail hammered. Huh."; this.gotoAndPlay(2); } else if (_global.haseatentoday == 0) { if (_global.teethon == "no") { this.gotoAndPlay(2); _parent.textbox.text = "The spirit jerks away from you. Seems he wants some 'candy'."; randomnumber = Math.ceil(Math.random() * 3); if (randomnumber == 1) { clicksound = new Sound(this); clicksound.attachSound("candy1"); clicksound.start(); } if (randomnumber == 2) { clicksound = new Sound(this); clicksound.attachSound("candy2"); clicksound.start(); } if (randomnumber == 3) { clicksound = new Sound(this); clicksound.attachSound("candy4"); clicksound.start(); } } if (_global.teethon == "yes") { clicksound = new Sound(this); clicksound.attachSound("candy5"); clicksound.start(); _parent.textbox.text = "The imp quickly gobbles the teeth up. He seems quite pleased."; _global.teethon = "no"; _global.teethgot = "no"; _parent.teeth._x = 521; _parent.teeth._y = 109; _global.haseatentoday = 1; _parent.part1._x = 258; _parent.part1._y = 320; _parent.textbox.text = _parent.textbox.text + "The imp hands over a small object."; _global.part1got = "yes"; } } else { clicksound = new Sound(this); clicksound.attachSound("candy5"); clicksound.start(); _parent.textbox.text = "The imp claps happily."; } }; }
Frame 45
stop();
Frame 46
textbox.text = "You can tell that this creature has lived here for some time."; stop();
Instance of Symbol 458 MovieClip in Frame 46
onClipEvent (load) { this.testbox.text = "Alright, thank you."; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("start7"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 47
stop();
Frame 48
textbox.text = "This looks like a machine console."; if (_global.doorsopen == 1) { door1._x = 513; door2._x = 513; if (((_global.part1used != "yes") && (_global.part2used != "yes")) && (_global.part3used != "yes")) { textbox.text = textbox.text + " Maybe I can find the missing parts?"; } } else { door1._x = 8; door2._x = 250; door1._y = 8; door2._y = 8; } stop();
Instance of Symbol 233 MovieClip in Frame 48
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("start6"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Instance of Symbol 516 MovieClip in Frame 48
onClipEvent (enterFrame) { if (_global.solution == "2354") { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } onClipEvent (load) { this.onPress = function () { if (_global.doorsopen == 0) { if ((_global.timer == 1) && (_global.solution == "2354")) { clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); _global.solution = ""; _parent.door1.gotoAndPlay(2); _parent.door2.gotoAndPlay(2); _parent.textbox.text = "Nice, it's open now. But, uh... crap. Parts are missing."; } else { clicksound = new Sound(this); clicksound.attachSound("bad"); clicksound.start(); _global.diode(); } } }; }
Instance of Symbol 519 MovieClip in Frame 48
onClipEvent (load) { this.onPress = function () { if (_global.doorsopen == 0) { if (_global.counter < 4) { _global.counter++; _global.solution = _global.solution + "5"; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); } else { clicksound = new Sound(this); clicksound.attachSound("bad"); clicksound.start(); _global.diode(); } } }; }
Instance of Symbol 522 MovieClip in Frame 48
onClipEvent (load) { this.onPress = function () { if (_global.doorsopen == 0) { if (_global.counter < 4) { _global.counter++; _global.solution = _global.solution + "4"; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); } else { clicksound = new Sound(this); clicksound.attachSound("bad"); clicksound.start(); _global.diode(); } } }; }
Instance of Symbol 525 MovieClip in Frame 48
onClipEvent (load) { this.onPress = function () { if (_global.doorsopen == 0) { if (_global.counter < 4) { _global.counter++; _global.solution = _global.solution + "3"; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); } else { clicksound = new Sound(this); clicksound.attachSound("bad"); clicksound.start(); _global.diode(); } } }; }
Instance of Symbol 528 MovieClip in Frame 48
onClipEvent (load) { this.onPress = function () { if (_global.doorsopen == 0) { if (_global.counter < 4) { _global.counter++; _global.solution = _global.solution + "2"; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); } else { clicksound = new Sound(this); clicksound.attachSound("bad"); clicksound.start(); _global.diode(); } } }; }
Instance of Symbol 531 MovieClip in Frame 48
onClipEvent (load) { _global.diode = function () { _global.counter = 0; _global.solution = ""; }; this.onPress = function () { if (_global.doorsopen == 0) { if (_global.counter < 4) { _global.counter++; _global.solution = _global.solution + "1"; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); } else { clicksound = new Sound(this); clicksound.attachSound("bad"); clicksound.start(); _global.diode(); } } }; }
Instance of Symbol 534 MovieClip in Frame 48
onClipEvent (enterFrame) { if (_global.counter == 1) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } }
Instance of Symbol 534 MovieClip in Frame 48
onClipEvent (enterFrame) { if (_global.counter == 2) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } }
Instance of Symbol 534 MovieClip in Frame 48
onClipEvent (enterFrame) { if (_global.counter == 3) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } }
Instance of Symbol 534 MovieClip in Frame 48
onClipEvent (enterFrame) { if (_global.counter == 4) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } }
Instance of Symbol 538 MovieClip in Frame 48
onClipEvent (load) { if (_global.slot1 == 0) { this._alpha = 0; } else { this._alpha = 100; } this.onPress = function () { if ((_global.part1on == "yes") && (_global.slot1 == 0)) { _global.part1on = "no"; _global.part1got = "no"; _parent.part1._x = 521; _parent.part1._y = 109; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); _parent.textbox.text = "The part fits into place. Excellent."; this._alpha = 100; _global.slot1 = 1; _global.part1used = "yes"; } if ((_global.part2on == "yes") && (_global.slot1 == 0)) { _global.part2on = "no"; _global.part2got = "no"; _parent.part2._x = 521; _parent.part2._y = 109; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); _parent.textbox.text = "The part fits. Nice."; this._alpha = 100; _global.slot1 = 1; _global.part2used = "yes"; } if ((_global.part3on == "yes") && (_global.slot1 == 0)) { _global.part3on = "no"; _global.part3got = "no"; _parent.part3._x = 521; _parent.part3._y = 109; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); _parent.textbox.text = "It fits perfectly."; this._alpha = 100; _global.slot1 = 1; _global.part3used = "yes"; } }; }
Instance of Symbol 538 MovieClip in Frame 48
onClipEvent (load) { if (_global.slot3 == 0) { this._alpha = 0; } else { this._alpha = 100; } this.onPress = function () { if ((_global.part1on == "yes") && (_global.slot3 == 0)) { _global.part1on = "no"; _global.part1got = "no"; _parent.part1._x = 521; _parent.part1._y = 109; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); _parent.textbox.text = "The part fits into place. Excellent."; this._alpha = 100; _global.slot3 = 1; _global.part1used = "yes"; } if ((_global.part2on == "yes") && (_global.slot3 == 0)) { _global.part2on = "no"; _global.part2got = "no"; _parent.part2._x = 521; _parent.part2._y = 109; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); _parent.textbox.text = "The part fits. Nice."; this._alpha = 100; _global.slot3 = 1; _global.part2used = "yes"; } if ((_global.part3on == "yes") && (_global.slot3 == 0)) { _global.part3on = "no"; _global.part3got = "no"; _parent.part3._x = 521; _parent.part3._y = 109; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); _parent.textbox.text = "It fits perfectly."; this._alpha = 100; _global.slot3 = 1; _global.part3used = "yes"; } }; }
Instance of Symbol 538 MovieClip in Frame 48
onClipEvent (load) { if (_global.slot2 == 0) { this._alpha = 0; } else { this._alpha = 100; } this.onPress = function () { if ((_global.part1on == "yes") && (_global.slot2 == 0)) { _global.part1on = "no"; _global.part1got = "no"; _parent.part1._x = 521; _parent.part1._y = 109; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); _parent.textbox.text = "The part fits into place. Excellent."; this._alpha = 100; _global.slot2 = 1; _global.part1used = "yes"; } if ((_global.part2on == "yes") && (_global.slot2 == 0)) { _global.part2on = "no"; _global.part2got = "no"; _parent.part2._x = 521; _parent.part2._y = 109; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); _parent.textbox.text = "The part fits. Nice."; this._alpha = 100; _global.slot2 = 1; _global.part2used = "yes"; } if ((_global.part3on == "yes") && (_global.slot2 == 0)) { _global.part3on = "no"; _global.part3got = "no"; _parent.part3._x = 521; _parent.part3._y = 109; clicksound = new Sound(this); clicksound.attachSound("click"); clicksound.start(); _parent.textbox.text = "It fits perfectly."; this._alpha = 100; _global.slot2 = 1; _global.part3used = "yes"; } }; }
Instance of Symbol 542 MovieClip "door1" in Frame 48
onClipEvent (load) { this.onPress = function () { }; }
Instance of Symbol 543 MovieClip "door2" in Frame 48
onClipEvent (load) { this.onPress = function () { }; }
Frame 49
textbox.text = "I'm not going to be reading this. Looks like someone else was able to though."; stop();
Instance of Symbol 233 MovieClip in Frame 49
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("start6"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Frame 50
stop();
Frame 51
textbox.text = "This creature seems very strange, and very dark."; stop();
Instance of Symbol 458 MovieClip in Frame 51
onClipEvent (load) { this.testbox.text = "I don't have time for this."; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("start"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Instance of Symbol 458 MovieClip in Frame 51
onClipEvent (load) { this.testbox.text = "Oh, murderer am I?"; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("demon2"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Instance of Symbol 458 MovieClip in Frame 51
onClipEvent (load) { if (_global.deadguy == 1) { this.testbox.text = "The dead guy in the woods..."; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("demon5"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; } else { this._x = 530; } }
Frame 52
textbox.text = "This creature seems very strange, and very dark."; stop();
Instance of Symbol 458 MovieClip in Frame 52
onClipEvent (load) { this.testbox.text = "No. But they were witches."; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("demon3"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Instance of Symbol 458 MovieClip in Frame 52
onClipEvent (load) { this.testbox.text = "Yes."; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("demon4"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 53
textbox.text = "This creature seems very strange, and very dark."; stop();
Instance of Symbol 458 MovieClip in Frame 53
onClipEvent (load) { this.testbox.text = "We're done here."; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("start"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 54
textbox.text = "This creature seems very strange, and very dark."; stop();
Instance of Symbol 458 MovieClip in Frame 54
onClipEvent (load) { this.testbox.text = "Yeah, yeah. Whatever."; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("start"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 55
textbox.text = "This creature seems very strange, and very dark."; stop();
Instance of Symbol 458 MovieClip in Frame 55
onClipEvent (load) { this.testbox.text = "So who did kill him?"; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("demon6"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 56
textbox.text = "There is no way Cameron killed her own father..."; stop();
Instance of Symbol 458 MovieClip in Frame 56
onClipEvent (load) { this.testbox.text = "We're done here."; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("start"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 57
stop();
Frame 58
textbox.text = "This creature seems very strange, and very dark."; stop();
Instance of Symbol 458 MovieClip in Frame 58
onClipEvent (load) { this.testbox.text = "No, spirit."; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("start"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Instance of Symbol 458 MovieClip in Frame 58
onClipEvent (load) { this.testbox.text = "What do you know of this thing?"; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("demon8"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 59
textbox.text = "This creature seems very strange, and very dark."; stop();
Instance of Symbol 458 MovieClip in Frame 59
onClipEvent (load) { this.testbox.text = "Fine, take it."; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("demon9"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 60
textbox.text = "He takes the hammer and hands me a small piece from the ship."; _global.hammeron = "no"; _global.hammergot = "no"; hammer._x = 521; hammer._y = 109; part3._x = 94; part3._y = 320; _global.part3got = "yes"; stop();
Instance of Symbol 458 MovieClip in Frame 60
onClipEvent (load) { this.testbox.text = "Cute."; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("start"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 61
stop();
Frame 62
textbox.text = "The... machine is alive?"; stop();
Instance of Symbol 458 MovieClip in Frame 62
onClipEvent (load) { this.testbox.text = "Urm... not now."; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("start5"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Instance of Symbol 458 MovieClip in Frame 62
onClipEvent (load) { this.testbox.text = "What happened here?"; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("computer2"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 63
textbox.text = "The... machine is alive?"; stop();
Instance of Symbol 458 MovieClip in Frame 63
onClipEvent (load) { this.testbox.text = "Alright, so you're a prison ship?"; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("computer3"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 64
textbox.text = "The... machine is alive?"; stop();
Instance of Symbol 458 MovieClip in Frame 64
onClipEvent (load) { this.testbox.text = "When did your crew leave?"; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("computer4"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 65
textbox.text = "The... machine is alive?"; stop();
Instance of Symbol 458 MovieClip in Frame 65
onClipEvent (load) { this.testbox.text = "So they're not returning?"; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("computer5"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 66
textbox.text = "The... machine is alive?"; stop();
Instance of Symbol 458 MovieClip in Frame 66
onClipEvent (load) { this.testbox.text = "Have you seen a girl?"; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("computer6"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 67
textbox.text = "The... machine is alive?"; stop();
Instance of Symbol 458 MovieClip in Frame 67
onClipEvent (load) { this.testbox.text = "Yes! Good! Where is she?"; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("computer7"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 68
textbox.text = "The... machine is alive?"; stop();
Instance of Symbol 458 MovieClip in Frame 68
onClipEvent (load) { this.testbox.text = "Who shut you down?"; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("computer8"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 69
textbox.text = "The... machine is alive?"; stop();
Instance of Symbol 458 MovieClip in Frame 69
onClipEvent (load) { this.testbox.text = "What did she want on this ship?"; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("computer9"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 70
textbox.text = "The... machine is alive?"; stop();
Instance of Symbol 458 MovieClip in Frame 70
onClipEvent (load) { this.testbox.text = "She's after the prisoner?"; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("computer10"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 71
textbox.text = "The... machine is alive?"; stop();
Instance of Symbol 458 MovieClip in Frame 71
onClipEvent (load) { this.testbox.text = "Why would she do that?"; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("computer11"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 72
textbox.text = "The... machine is alive?"; _global.talkedtothemachine = 1; stop();
Instance of Symbol 458 MovieClip in Frame 72
onClipEvent (load) { this.testbox.text = "Ung, screw this thing."; this._alpha = 30; this.onPress = function () { _parent.gotoAndStop("start5"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 30; }; }
Frame 73
stop();
Frame 74
wine.gotoAndPlay(1); textbox.text = "As I leave the ship I find a surprise awaiting me."; stop();
Instance of Symbol 233 MovieClip in Frame 74
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("diapertime2"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Frame 75
wine.gotoAndPlay(1); textbox.text = "These are no doubt the demons that killed Hood's father. Using knives like mortal men."; stop();
Instance of Symbol 233 MovieClip in Frame 75
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("diapertime3"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Frame 76
wine.gotoAndPlay(1); textbox.text = "They seem to be immune to the effects of the jack-o-lantern."; stop();
Instance of Symbol 233 MovieClip in Frame 76
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndStop("diapertime4"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Frame 77
wine.gotoAndPlay(1); textbox.text = "So we do this the hard way."; stop();
Instance of Symbol 233 MovieClip in Frame 77
onClipEvent (load) { this._alpha = 90; this.onPress = function () { _parent.gotoAndPlay("diapertime5"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 90; }; }
Frame 78
textbox.text = "";
Frame 94
com.newgrounds.API.unlockMedal("Something Sinister");
Instance of Symbol 614 MovieClip [MedalPopup] in Frame 94
//component parameters onClipEvent (construct) { alwaysOnTop = "true"; }
Frame 206
stop();
Instance of Symbol 616 MovieClip in Frame 206
onClipEvent (load) { this.onPress = function () { getURL ("http://www.newgrounds.com/", "_blank"); }; }
Instance of Symbol 618 MovieClip in Frame 206
onClipEvent (load) { this.onPress = function () { getURL ("http://jayisgames.com/archives/2011/09/hood_episode_one.php", "_blank"); }; }
Instance of Symbol 620 MovieClip in Frame 206
onClipEvent (load) { this.onPress = function () { getURL ("http://www.newgrounds.com/portal/view/579631", "_blank"); }; }
Instance of Symbol 622 MovieClip in Frame 206
onClipEvent (load) { this.onPress = function () { getURL ("http://www.lorestrome.com/", "_blank"); }; }
Symbol 17 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 1
stop();
Symbol 30 MovieClip [Preloader] Frame 1
function enterFrameHandler() { var _local2 = 0; _local2 = _root.getBytesLoaded() / _root.getBytesTotal(); if (loadingBar) { loadingBar.gotoAndStop(Number(_local2 * (loadingBar.totalFrames - 1)) + 1); } if (_local2 >= 1) { onEnterFrame = null; gotoAndStop ("loaded"); } } stop(); var autoPlay; var className; onEnterFrame = enterFrameHandler;
Symbol 30 MovieClip [Preloader] Frame 10
function _onPlayClick() { _root.nextFrame(); _root.play(); _parent._onLoaded(); } if (playButton) { playButton.onRelease = _onPlayClick; playButton.stop(); } if (autoPlay) { _onPlayClick(null); }
Symbol 34 MovieClip [Newgrounds API Classes] Frame 1
#initclip 26 Object.registerClass("Newgrounds API Classes", com.newgrounds.shims.APIShim); #endinitclip
Symbol 90 MovieClip [FlashAd] Frame 1
#initclip 27 Object.registerClass("FlashAd", com.newgrounds.components.FlashAdBase); #endinitclip stop();
Symbol 91 MovieClip [APIConnector] Frame 1
function _onLoaded() { gotoAndStop ("invisible"); if (_redirect) { com.newgrounds.API.loadOfficialVersion(); } } function _apiConnect() { var _local2 = com.newgrounds.API; if (_local2 && (!_local2.connected)) { if (!apiId) { com.newgrounds.Logger.logError("No API ID entered in the API Connector component.", "You can create an API ID for this submission at http://newgrounds.com/account/flashapi", "Enter your API ID into the API Connector using the Component Inspector (Window -> Component Inspector)."); return(undefined); } switch (debugMode) { case "Off" : default : _local2.debugMode = _local2.RELEASE_MODE; break; case "Simulate Logged-in User" : _local2.debugMode = _local2.DEBUG_MODE_LOGGED_IN; break; case "Simulate Logged-out User" : _local2.debugMode = _local2.DEBUG_MODE_LOGGED_OUT; break; case "Simulate New Version" : _local2.debugMode = _local2.DEBUG_MODE_NEW_VERSION; break; case "Simulate Host Blocked" : _local2.debugMode = _local2.DEBUG_MODE_HOST_BLOCKED; } _local2.addEventListener(com.newgrounds.APIEvent.API_CONNECTED, _onConnected); _local2.connect(_root, apiId, encryptionKey, movieVersion); } } function _onConnected(event) { if ((redirectOnNewVersion && (event.__get__success())) && (event.__get__data().newVersion)) { _redirect = true; } if ((redirectOnHostBlocked && (!event.__get__success())) && (event.__get__error() == com.newgrounds.APIEvent.ERROR_HOST_BLOCKED)) { _redirect = true; } if (_redirect) { gotoAndStop ("adPreloader"); forceAlwaysOnTop(); } } function forceAlwaysOnTop() { var _local2 = getNextHighestDepth(); swapDepths(_local2); if (Stage) { _x = ((Stage.width - _width) / 2); _y = ((Stage.height - _height) / 2); _visible = true; } if (_root && (_root instanceof MovieClip)) { MovieClip(_root).stop(); } } stop(); if (_root && (_root instanceof MovieClip)) { MovieClip(_root).stop(); } var apiId; var encryptionKey; var movieVersion; var debugMode; var connectorType; var redirectOnHostBlocked; var redirectOnNewVersion; var _redirect; _x = Number(_x); _y = Number(_y); if (!debugMode) { debugMode = "Simulate Logged-in User"; } if (!connectorType) { connectorType = "Flash Ad + Preloader"; } switch (connectorType) { case "Flash Ad + Preloader" : gotoAndStop ("adPreloader"); break; case "Flash Ad Only" : gotoAndStop ("ad"); break; case "Invisible" : gotoAndStop ("invisible"); } _apiConnect();
Instance of Symbol 90 MovieClip [FlashAd] "ad" in Symbol 91 MovieClip [APIConnector] Frame 1
//component parameters onClipEvent (construct) { apiId = ""; showBorder = true; }
Instance of Symbol 30 MovieClip [Preloader] "loader" in Symbol 91 MovieClip [APIConnector] Frame 1
//component parameters onClipEvent (construct) { autoPlay = false; mainClass = ""; }
Symbol 100 MovieClip Frame 30
Mouse.hide();
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 2
stop();
Instance of Symbol 127 MovieClip in Symbol 130 MovieClip Frame 439
onClipEvent (load) { if (_global.bustednut == 5) { this._alpha = 100; _global.bustednut = 0; } else { this._alpha = 0; } }
Symbol 130 MovieClip Frame 723
_global.bustednut++;
Symbol 42 MovieClip [__Packages.com.newgrounds.APIConnection] Frame 0
class com.newgrounds.APIConnection { var _hostURL, hostDomain, sessionId, publisherId, encryptionKey, userEmail, username, userId, userpageFormat, initialized; function APIConnection () { reset(); } function get hostURL() { return(_hostURL); } function set hostURL(value) { _hostURL = value; hostDomain = null; if (_hostURL) { var _local2 = _hostURL.split("/"); if ((_local2[0] != "file:") && (_hostURL != "localhost")) { hostDomain = _local2[2]; } } if (!hostDomain) { hostDomain = "localhost"; } //return(hostURL); } function get sandboxType() { return(System.security.sandboxType); } function get isNetworkHost() { switch (sandboxType) { case "localWithFile" : case "localWithNetwork" : case "localTrusted" : case "application" : return(false); case "remote" : } return(true); } function get hasUserSession() { return(((sessionId != null) && (sessionId != "")) && (publisherId != 0)); } function get connected() { return(connectionState == CONNECTED); } function reset() { connectionState = NOT_CONNECTED; encryptionKey = null; sessionId = null; userEmail = null; username = null; userId = 0; userpageFormat = 0; } function assertInitialized() { if (!initialized) { com.newgrounds.Logger.logError("You must initialized the API using API.connect() before using this command."); return(false); } return(true); } function assertConnected() { if ((!connectionState) == CONNECTED) { com.newgrounds.Logger.logError("You must establish a connection using API.connect() before using this command."); return(false); } return(true); } function sendSimpleCommand(command, completeHandler, parameters, secureParameters) { if (parameters == undefined) { parameters = null; } if (secureParameters == undefined) { secureParameters = null; } var _local2 = new com.newgrounds.APICommand(command); _local2.__set__parameters(parameters); _local2.__set__secureParameters(secureParameters); if (completeHandler != null) { _local2.addEventListener(com.newgrounds.APIEvent.COMMAND_COMPLETE, completeHandler); } _local2.send(this); } function sendCommand(command) { command.send(this); } function loadInBrowser(command, newWindow, parameters) { if (newWindow == undefined) { newWindow = true; } if (parameters == undefined) { parameters = null; } var _local2 = new com.newgrounds.APICommand(command); _local2.__set__parameters(parameters); _local2.loadInBrowser(this, newWindow); } static var NOT_CONNECTED = "notConnected"; static var CONNECTING = "connecting"; static var CONNECTED = "connected"; var connectionState = NOT_CONNECTED; var apiURL = "http://www.ngads.com/gateway_v2.php"; }
Symbol 36 MovieClip [__Packages.com.newgrounds.EventDispatcher] Frame 0
class com.newgrounds.EventDispatcher { var _listeners; function EventDispatcher () { _listeners = {}; } function addEventListener(type, listener) { if (!_listeners[type]) { _listeners[type] = []; } if (typeof(listener) == "function") { _listeners[type].push({target:null, func:listener}); } else { _listeners[type].push(listener); } } function removeEventListener(type, listener) { var _local3 = _listeners[type]; if (_local3) { var _local5 = _local3.length; var _local2 = 0; while (_local2 < _local5) { if ((_local3[_local2].func == listener) || (_local3[_local2] == listener)) { _local3.splice(_local2, 1); return(undefined); } _local2++; } } } function dispatchEvent(event) { var _local4 = _listeners[event.__get__type()]; if (_local4) { var _local5 = _local4.length; var _local2 = 0; while (_local2 < _local5) { var _local3 = _local4[_local2]; _local3.func.call(_local3.target, event); _local2++; } } return(true); } }
Symbol 35 MovieClip [__Packages.com.newgrounds.Event] Frame 0
class com.newgrounds.Event { var _type; function Event (type) { _type = type; } function get type() { return(_type); } }
Symbol 37 MovieClip [__Packages.com.newgrounds.APIEventDispatcher] Frame 0
class com.newgrounds.APIEventDispatcher extends com.newgrounds.EventDispatcher { static var _globalDispatcher; function APIEventDispatcher () { super(); } static function get globalDispatcher() { return(_globalDispatcher); } static function set globalDispatcher(value) { _globalDispatcher = value; //return(globalDispatcher); } static function initEventQueue() { setInterval(runEventQueue, 50); return([]); } function dispatchEvent(event) { _eventQueue.push({dispatcher:this, event:event}); return(true); } function actualDispatchEvent(event) { var _local3 = super.dispatchEvent(event); if (_globalDispatcher && (this != _globalDispatcher)) { _globalDispatcher.dispatchEvent(event); } } static function runEventQueue(event) { var _local3 = _eventQueue.length; if (_local3) { var _local4 = _eventQueue; _eventQueue = []; var _local1 = 0; while (_local1 < _local3) { var _local2 = _local4[_local1]; _local2.dispatcher.actualDispatchEvent(_local2.event); _local1++; } } } static var _eventQueue = initEventQueue(); }
Symbol 40 MovieClip [__Packages.com.newgrounds.encoders.BaseN] Frame 0
class com.newgrounds.encoders.BaseN { var _hash, _base, _reverseHash; function BaseN (hash) { if (hash) { _hash = hash; } else { _hash = DEFAULT_HASH; } _base = _hash.length; _reverseHash = new Object(); var _local2 = 0; while (_local2 < _hash.length) { _reverseHash[_hash.charAt(_local2)] = _local2; _local2++; } } function encodeUint(number, minimumChars) { if (minimumChars == undefined) { minimumChars = 1; } var _local2 = ""; var _local3 = number; while (_local3 != 0) { _local2 = _hash.charAt(_local3 % _base) + _local2; _local3 = _local3 / _base; _local3 = int(_local3); } while (_local2.length < minimumChars) { _local2 = _hash.charAt(0) + _local2; } return(_local2); } function decodeUint(encodedNumber) { var _local3 = 0; var _local2 = 0; while (_local2 < encodedNumber.length) { _local3 = _local3 * _base; _local3 = _local3 + _reverseHash[encodedNumber.charAt(_local2)]; _local2++; } return(_local3); } static var DEFAULT_HASH = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`~@#$%^&*()+|;/"; }
Symbol 46 MovieClip [__Packages.com.newgrounds.APICommand] Frame 0
class com.newgrounds.APICommand extends com.newgrounds.APIEventDispatcher { static var bridge; var _command, _parameters, _secureParameters, _hasTimeout, _preventCache, _files, _loader, _timeoutTimer, dispatchEvent; function APICommand (command) { super(); _command = command; _parameters = new Object(); _secureParameters = new Object(); _hasTimeout = true; } static function stopPendingCommands() { for (var _local2 in _pendingCommands) { var _local1 = _pendingCommands[_local2]; _local1.close(); } _pendingCommands = []; } static function onThrottleTimer(event) { if (_throttleCount > 0) { _throttleCount--; } if (_commandQueue.length) { var _local1 = _commandQueue.shift(); _local1.command.send(_local1.connection); } } static function encryptHex(hexValue) { var _local4 = hexValue.length % 6; var _local3 = ""; var _local1 = 0; while (_local1 < hexValue.length) { _local3 = _local3 + _encryptor.encodeUint(int("0x" + hexValue.substr(_local1, 6)), 4); _local1 = _local1 + 6; } return(_local4.toString() + _local3); } function get command() { return(_command); } function set command(value) { _command = value; //return(command); } function get hasTimeout() { return(_hasTimeout); } function set hasTimeout(val) { _hasTimeout = val; //return(hasTimeout); } function get parameters() { return(_parameters); } function set parameters(object) { _parameters = new Object(); if (object) { for (var _local3 in object) { _parameters[_local3] = object[_local3]; } } //return(parameters); } function get preventCache() { return(_preventCache); } function set preventCache(value) { _preventCache = value; //return(preventCache); } function get secureParameters() { return(_secureParameters); } function set secureParameters(object) { _secureParameters = new Object(); if (object) { for (var _local3 in object) { _secureParameters[_local3] = object[_local3]; } } //return(secureParameters); } function get hasSecureParameters() { for (var _local2 in _secureParameters) { return(true); } return(false); } function addFile(filename, data, dataField, contentType) { if (contentType == undefined) { contentType = "application/octet-stream"; } if (!_files) { _files = new Object(); } var _local3 = {filename:filename, data:data, dataField:dataField, contentType:contentType}; _files[filename] = _local3; } function removeFile(filename) { if (_files) { delete _files[filename]; } } function clearFiles() { _files = null; } function close() { if (_loader) { clearInterval(_timeoutTimer); var _local2 = 0; while (_local2 < _pendingCommands.length) { if (_pendingCommands[_local2] == this) { _pendingCommands.splice(_local2, 1); break; } _local2++; } _loader = null; } } function loadInBrowser(connection, newWindow) { _parameters.command_id = _command; _parameters.tracker_id = (connection.apiId ? (connection.apiId) : 1); if (connection.debug) { _parameters.debug = 1; } var _local3 = (connection.apiURL + "?host=") + escape(connection.hostDomain); for (var _local4 in _parameters) { _local3 = _local3 + ((("&" + escape(_local4)) + "=") + escape(_parameters[_local4])); } var _local6; if (newWindow) { _local6 = "_blank"; } else { _local6 = "_top"; } _root.getURL(_local3, _local6); } function send(connection) { if (_throttleCount >= THROTTLE_THRESHOLD) { _commandQueue.push({connection:connection, command:this}); } else { sendInternal(connection); } } function sendInternal(connection) { var _local4; _local4 = new LoadVars(); _local4.command_id = _command; _local4.tracker_id = connection.apiId; if (connection.debug) { _local4.debug = 1; } if (_preventCache) { _local4.seed = Math.random(); } var _local2; var _local3; var _local7; for (_local2 in _parameters) { _local3 = _parameters[_local2]; if (_local3 != null) { if (typeof(_local3) == "boolean") { _local4[_local2] = int(_local3); } else { _local4[_local2] = _local3; } } } if (hasSecureParameters) { var _local6 = new Object(); for (_local2 in _secureParameters) { _local3 = _secureParameters[_local2]; if (_local3 != null) { if (typeof(_local3) == "boolean") { _local6[_local2] = int(_local3); } else { _local6[_local2] = _local3; } } } var _local8 = ""; _local7 = 0; while (_local7 < 16) { _local8 = _local8 + ENCRYPTOR_RADIX.charAt(int(Math.random() * ENCRYPTOR_RADIX.length)); _local7++; } _local4.command_id = "securePacket"; _local6.command_id = _command; _local6.as_version = 3; _local6.session_id = connection.sessionId; _local6.user_email = connection.userEmail; _local6.publisher_id = connection.publisherId; _local6.seed = _local8; var _local13 = com.newgrounds.crypto.MD5.hash(_local8); var _local11 = com.newgrounds.crypto.RC4.encrypt(com.newgrounds.encoders.json.JSON.encode(_local6), connection.encryptionKey); _local4.secure = encryptHex(_local13 + _local11); } com.newgrounds.Logger.logInternal("Sending packet:", _local4); var _local12; _local12 = "application/x-www-form-urlencoded"; for (_local2 in _local4) { if (typeof(_local4[_local2]) == "object") { _local4[_local2] = com.newgrounds.encoders.json.JSON.encode(_local4[_local2]); } } if (_files) { for (var _local10 in _files) { var _local5 = _files[_local10]; if (typeof(_local5.data) == "string") { _local4[_local10] = _local5.data; } else { _local4[_local10] = com.newgrounds.encoders.json.JSON.encode(_local5.data); } } } _pendingCommands.push(this); _throttleCount++; startLoader(connection.apiURL, _local4, _local12); } function startLoader(url, data, contentType) { _loader = LoadVars(data); _loader.onData = as2CompleteHandler; _loader.contentType = contentType; _loader.sendAndLoad(url, _loader, "POST"); if (_hasTimeout) { setInterval(this, onTimeout, TIMEOUT_INTERVAL); } } function as2CompleteHandler(data) { var _local3; var _local2 = 0; while (_local2 < _pendingCommands.length) { if (_pendingCommands[_local2]._loader == this) { _local3 = _pendingCommands[_local2]; break; } _local2++; } _local3.onComplete(data); } function onTimeout(event) { close(); com.newgrounds.Logger.logError("Command timed out."); dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_TIMED_OUT)); } function onError(error) { com.newgrounds.Logger.logError("Error when sending command:", error); dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_UNKNOWN)); close(); } function onComplete(data) { try { if ((!data) || (data == "")) { throw new Error(); } com.newgrounds.Logger.logInternal("Received packet:", data); var _local2 = com.newgrounds.encoders.json.JSON.decode(data); if (!_local2) { throw new Error(); } if (bridge) { bridge.sendEvent(_local2.command_id, _local2); } dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, _local2, ((_local2 && (_local2.success)) ? (com.newgrounds.APIEvent.ERROR_NONE) : (com.newgrounds.APIEvent.ERROR_COMMAND_FAILED)))); } catch(e) { com.newgrounds.Logger.logError("Invalid response returned from server: " + data); dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.COMMAND_COMPLETE, null, com.newgrounds.APIEvent.ERROR_BAD_RESPONSE)); } close(); } static var TIMEOUT_INTERVAL = 10000; static var THROTTLE_INTERVAL = 5000; static var THROTTLE_THRESHOLD = 7; static var _throttleCount = 0; static var _commandQueue = []; static var _throttleTimer = setInterval(onThrottleTimer, THROTTLE_INTERVAL); static var ENCRYPTOR_RADIX = "/g8236klvBQ#&|;Zb*7CEA59%s`Oue1wziFp$rDVY@TKxUPWytSaGHJ>dmoMR^<0~4qNLhc(I+fjn)X"; static var _encryptor = new com.newgrounds.encoders.BaseN(ENCRYPTOR_RADIX); static var _pendingCommands = []; static var CRLF = "\r\n"; }
Symbol 41 MovieClip [__Packages.com.newgrounds.Bridge] Frame 0
class com.newgrounds.Bridge { var _widgetId, _inConnection, _outConnection; function Bridge (id) { _widgetId = id; _inConnection = new LocalConnection(); _outConnection = new LocalConnection(); _inConnection.receiveEvent = receiveEvent; try { _inConnection.connect("rec_" + _widgetId); } catch(error) { } com.newgrounds.Logger.addEventListener(com.newgrounds.APIEvent.LOG, {target:this, func:onLogMessage}); } function onLogMessage(event) { try { _outConnection.send(_widgetId, "sendEvent", "trace", String(event.__get__data())); } catch(error) { } } function sendEvent(command, parameters) { if (_outConnection) { parameters = {data:parameters}; _outConnection.send(_widgetId, "sendEvent", command, parameters); } } function receiveEvent(event, parameters) { } function onStatus(event) { } }
Symbol 38 MovieClip [__Packages.com.newgrounds.APIEvent] Frame 0
class com.newgrounds.APIEvent extends com.newgrounds.Event { var _error, _success, _data, __get__type; function APIEvent (type, data, error) { super(type); if (data == undefined) { data = null; } if (error == undefined) { error = null; } if (((!error) || (error == "")) || (error == ERROR_NONE)) { _error = ERROR_NONE; _success = true; } else { _error = error; _success = false; } if (data) { _data = data; } else { _data = {}; } } function clone() { return(new com.newgrounds.APIEvent(__get__type(), _data, _error)); } function get success() { return(_success); } function get data() { return(_data); } function get error() { return(_error); } static var COMMAND_COMPLETE = "commandComplete"; static var MEDAL_UNLOCK_CONFIRMED = "medalUnlockConfirmed"; static var ICON_LOADED = "iconLoaded"; static var API_CONNECTED = "movieConnected"; static var LOG = "log"; static var MEDAL_UNLOCKED = "medalUnlocked"; static var SCORES_LOADED = "scoresLoaded"; static var SCORE_POSTED = "scorePosted"; static var QUERY_COMPLETE = "queryComplete"; static var FILE_LOADED = "fileLoaded"; static var FILE_SAVED = "fileSaved"; static var FILE_REQUESTED = "fileRequested"; static var VOTE_COMPLETE = "voteComplete"; static var ERROR_NONE = "noError"; static var ERROR_UNKNOWN = "unknownError"; static var ERROR_COMMAND_FAILED = "commandFailed"; static var ERROR_NOT_CONNECTED = "notConnected"; static var ERROR_INVALID_ARGUMENT = "invalidArgument"; static var ERROR_TIMED_OUT = "timedOut"; static var ERROR_BAD_FILE = "badFile"; static var ERROR_BAD_RESPONSE = "badResponse"; static var ERROR_SENDING_COMMAND = "errorSendingCommand"; static var ERROR_HOST_BLOCKED = "hostBlocked"; static var ERROR_ALREADY_VOTED = "alreadyVoted"; static var ERROR_NOT_LOGGED_IN = "notLoggedIn"; }
Symbol 57 MovieClip [__Packages.com.newgrounds.API] Frame 0
class com.newgrounds.API { static var _adFeedURL, _movieVersion, _bridge, _requestedSaveGroupId, _requestedSaveFileId, _movieName, _newVersion, _saveFilePath, _imageFilePath; function API () { } static function get connected() { return(_connection.__get__connected()); } static function get isNetworkHost() { return(_connection.__get__isNetworkHost()); } static function get apiId() { _connection.assertInitialized(); return(_connection.apiId); } static function get debugMode() { return(_debugMode); } static function set debugMode(val) { _debugMode = val; //return(debugMode); } static function get publisherId() { _connection.assertInitialized(); return(_connection.publisherId); } static function get sessionId() { _connection.assertInitialized(); return(_connection.sessionId); } static function get hostDomain() { _connection.assertInitialized(); return(_connection.hostDomain); } static function get hostURL() { _connection.assertInitialized(); return(_connection.__get__hostURL()); } static function get isNewgrounds() { return(_connection.publisherId == 1); } static function get hasUserSession() { _connection.assertInitialized(); return(_connection.__get__hasUserSession()); } static function get username() { _connection.assertInitialized(); return(_connection.username); } static function get userId() { _connection.assertInitialized(); return(_connection.userId); } static function assertConnected(eventType) { if (eventType == undefined) { eventType = null; } if (_connection.assertConnected()) { return(true); } if (eventType) { dispatchEvent(eventType, null, com.newgrounds.APIEvent.ERROR_NOT_CONNECTED); } return(false); } static function get adsApproved() { return(_adsApproved); } static function get adFeedURL() { return(_adFeedURL); } static function get medals() { return(_medalsArray); } static function get scoreBoards() { return(_scoreBoardsArray); } static function get saveGroups() { return(_saveGroupsArray); } static function connect(_root, apiId, encryptionKey, movieVersion) { if (encryptionKey == undefined) { encryptionKey = null; } if (movieVersion == undefined) { movieVersion = ""; } com.newgrounds.APIEventDispatcher.__set__globalDispatcher(_dispatcher); System.security.loadPolicyFile("http://apifiles.ngfiles.com/crossdomain.xml"); if (_connection.initialized) { com.newgrounds.Logger.logError("Connection already in progress. Please call API.disconnect() before attempting another connection."); dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_NOT_CONNECTED); return(undefined); } if ((!apiId) || (apiId == "")) { com.newgrounds.Logger.logError("No apiId given. Please use the API ID from your API settings page."); dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT); return(undefined); } com.newgrounds.Logger.logMessage(("====== Newgrounds API v" + VERSION) + " ======"); _connection.connectionState = com.newgrounds.APIConnection.CONNECTING; _root=_root;//parameter overwritten _movieVersion = movieVersion; _connection.apiId = apiId; var _local3 = apiId.indexOf(":"); if (_local3 != -1) { _connection.trackerId = int(apiId.substring(0, _local3)); } else { _connection.trackerId = int(apiId); } if (!_connection.trackerId) { com.newgrounds.Logger.logError("Invalid API ID: " + apiId); dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, false, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT); return(undefined); } _connection.encryptionKey = encryptionKey; _connection.initialized = true; _connection.__set__hostURL(_root._url); doConnect(_root); } static function doConnect(flashVars) { if (isNetworkHost && (_debugMode != RELEASE_MODE)) { com.newgrounds.Logger.logMessage("Live file detected, turning off debug mode."); _debugMode = RELEASE_MODE; } if (flashVars && (flashVars.NewgroundsAPI_SandboxID)) { _bridge = new com.newgrounds.Bridge(flashVars.NewgroundsAPI_SandboxID); com.newgrounds.APICommand.bridge = _bridge; } if (_debugMode == RELEASE_MODE) { if (flashVars) { if (flashVars.NewgroundsAPI_UserName) { _connection.username = flashVars.NewgroundsAPI_UserName; } if (flashVars.NewgroundsAPI_UserID) { _connection.userId = flashVars.NewgroundsAPI_UserID; } if (flashVars.NewgroundsAPI_PublisherID) { _connection.publisherId = flashVars.NewgroundsAPI_PublisherID; } if (flashVars.NewgroundsAPI_UserpageFormat) { _connection.userpageFormat = flashVars.NewgroundsAPI_UserpageFormat; } if (flashVars.NewgroundsAPI_SessionID) { _connection.sessionId = flashVars.NewgroundsAPI_SessionID; } if (flashVars.NewgroundsAPI_SaveGroupID) { _requestedSaveGroupId = flashVars.NewgroundsAPI_SaveGroupID; } if (flashVars.NewgroundsAPI_SaveFileID) { _requestedSaveFileId = flashVars.NewgroundsAPI_SaveFileID; } } } else { _connection.debug = true; if ((_debugMode == DEBUG_MODE_LOGGED_IN) || (_debugMode == DEBUG_MODE_LOGGED_OUT)) { _connection.publisherId = 1; } if (_debugMode == DEBUG_MODE_LOGGED_IN) { _connection.sessionId = "D3bu64p1U53R"; _connection.userId = 10; _connection.username = "API-Debugger"; } } _connection.sendSimpleCommand("connectMovie", onConnect, {host:_connection.hostDomain, movie_version:_movieVersion, publisher_id:_connection.publisherId}); } static function onConnect(event) { var _local1 = event.__get__data(); if (!event.__get__success()) { com.newgrounds.Logger.logError("Unable to connect to the API."); _connection.reset(); dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, event.__get__data(), event.__get__error()); return(undefined); } if (debugMode != RELEASE_MODE) { _adFeedURL = TEST_AD_FEED_URL; } else if (_local1.ad_url) { _adFeedURL = unescape(_local1.ad_url); } switch (_local1.ad_status) { case -1 : com.newgrounds.Logger.logWarning("Your movie is not approved to run Flash Ads."); break; case 0 : com.newgrounds.Logger.logWarning("Your movie is still awaiting approval to run Flash Ads."); break; case 1 : com.newgrounds.Logger.logMessage("Your movie is approved to run Flash Ads!"); } _adsApproved = _local1.ad_status == 1; if ((_debugMode == DEBUG_MODE_HOST_BLOCKED) || (_local1.deny_host)) { com.newgrounds.Logger.logWarning(_connection.hostDomain + " does not have permission to host this movie!", "Update your API configuration to allow this host."); dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, {officialURL:unescape(_local1.movie_url)}, com.newgrounds.APIEvent.ERROR_HOST_BLOCKED); _connection.reset(); return(undefined); } _movieName = (_local1.movieName ? (_local1.movieName) : ""); com.newgrounds.Logger.logMessage("Connecting to the Newgrounds API Gateway...", ("----- " + _local1.movie_name) + " -----"); if (_debugMode == DEBUG_MODE_NEW_VERSION) { _local1.movie_version = "Debug Mode"; } if (_local1.movie_version) { com.newgrounds.Logger.logMessage("A new version of this movie is available.", "Current version:\t" + _movieVersion, "Newest version:\t" + _local1.movie_version, "Use API.loadOfficialVersion() to link to the latest version."); _newVersion = true; } else { _newVersion = false; } if (_local1.request_portal_url) { _connection.sendSimpleCommand("setPortalID", null, {portal_url:_connection.__get__hostURL()}); } _connection.sendSimpleCommand("preloadSettings", onMetadataLoaded, {publisher_id:_connection.publisherId, user_id:_connection.userId}); } static function onMetadataLoaded(event) { var _local11 = event.__get__data(); var _local1; var _local7; if (!event.__get__success()) { com.newgrounds.Logger.logWarning("Unable to load movie metadata."); disconnect(); dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, null, event.__get__error()); return(undefined); } var _local10 = 0; if (_local11.medals) { _local10 = _local11.medals.length; var _local17; if (hasUserSession) { _local17 = loadLocal("medals_unlocked_" + username); } else { _local17 = loadLocal("medals_unlocked"); } _local1 = 0; while (_local1 < _local10) { var _local6 = _local11.medals[_local1]; var _local14 = _local6.medal_unlocked; var _local16 = _local17 && (_local17[_local6.medal_id]); var _local4 = new com.newgrounds.Medal(_connection, _local6.medal_id, _local6.medal_name, (hasUserSession ? (_local14) : (_local16)), _local6.medal_value, _local6.medal_difficulty, _local6.medal_icon); _local4.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked, false, 0, true); _local4.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, onMedalUnlockConfirmed, false, 0, true); _medals[_local4.__get__name()] = _local4; _medalsArray.push(_local4); com.newgrounds.Logger.logMessage(_local4); if ((hasUserSession && (_local16)) && (!_local14)) { com.newgrounds.Logger.logMessage(("Server missed the \"" + _local4.__get__name()) + "\" unlock. Resending..."); _local4.unlock(); } _local1++; } } com.newgrounds.Logger.logMessage(((_local10 + " medal") + ((_local10 != 1) ? "s" : "")) + " initialized."); _local10 = 0; if (_local11.score_boards) { _local10 = _local11.score_boards.length; _local1 = 0; while (_local1 < _local10) { var _local15 = _local11.score_boards[_local1]; var _local9 = new com.newgrounds.ScoreBoard(_connection, _local15.name, _local15.id); _scoreBoards[_local9.__get__name()] = _local9; _scoreBoardsArray.push(_local9); com.newgrounds.Logger.logMessage(_local9); _local1++; } } com.newgrounds.Logger.logMessage(((_local10 + " scoreboard") + ((_local10 != 1) ? "s" : "")) + " initialized."); _local10 = 0; if (_local11.save_groups) { _local10 = _local11.save_groups.length; _local1 = 0; while (_local1 < _local10) { var _local2 = _local11.save_groups[_local1]; var _local13 = []; if (_local2.keys) { _local7 = 0; while (_local7 < _local2.keys.length) { var _local5 = _local2.keys[_local7]; _local13.push(new com.newgrounds.SaveKey(_local5.name, _local5.id, _local5.type)); _local7++; } } var _local12 = []; if (_local2.ratings) { _local1 = 0; while (_local1 < _local2.ratings.length) { var _local3 = _local2.ratings[_local1]; _local12.push(new com.newgrounds.SaveRating(_local3.name, _local3.id, _local3.float, _local3.min, _local3.max)); _local1++; } } var _local8 = new com.newgrounds.SaveGroup(_connection, _local2.group_name, _local2.group_id, _local2.group_type, _local13, _local12); _saveGroups[_local8.__get__name()] = _local8; _saveGroupsArray.push(_local8); com.newgrounds.Logger.logMessage(_local8); _local1++; } } com.newgrounds.Logger.logMessage(((_local10 + " save group") + ((_local10 != 1) ? "s" : "")) + " initialized."); if (_local11.save_file_path) { _saveFilePath = _local11.save_file_path + "/"; com.newgrounds.SaveFile._saveFilePath = _saveFilePath; com.newgrounds.Logger.logInternal("Save file path: " + _saveFilePath); } if (_local11.image_file_path) { _imageFilePath = _local11.image_file_path + "/"; com.newgrounds.SaveFile._imageFilePath = _imageFilePath; com.newgrounds.Logger.logInternal("Image file path: " + _imageFilePath); } com.newgrounds.Logger.logMessage("Connection complete!"); _connection.connectionState = com.newgrounds.APIConnection.CONNECTED; dispatchEvent(com.newgrounds.APIEvent.API_CONNECTED, {movieName:_movieName, newVersion:_newVersion}); if (_requestedSaveFileId && (_requestedSaveGroupId)) { addEventListener(com.newgrounds.APIEvent.FILE_LOADED, onRequestedFileLoaded); loadSaveFile(_requestedSaveFileId, false); } } static function disconnect() { if (!_connection.__get__connected()) { com.newgrounds.Logger.logWarning("The Newgrounds API is already disconnected."); return(undefined); } _connection.reset(); for (var _local2 in _medals) { var _local1 = _medals[_local2]; _local1.removeEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked); _local1.removeEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, onMedalUnlockConfirmed); } _newVersion = false; _medals = new Object(); _medalsArray = []; _scoreBoards = new Object(); _scoreBoardsArray = []; _saveGroups = new Object(); _saveGroupsArray = []; _sharedObjects = new Object(); _imageFilePath = null; _saveFilePath = null; com.newgrounds.Logger.logMessage("Disconnected from the Newgrounds API."); } static function loadNewgrounds() { _connection.loadInBrowser("loadNewgrounds"); } static function loadOfficialVersion() { if (_connection.assertInitialized()) { _connection.loadInBrowser("loadOfficialVersion", false); } } static function loadMySite() { if (_connection.assertInitialized()) { _connection.loadInBrowser("loadMySite"); } } static function loadCustomLink(linkName) { if (_connection.assertInitialized()) { _connection.loadInBrowser("loadCustomLink", true, {link:linkName}); } } static function getMedal(medalName) { return(_medals[medalName]); } static function unlockMedal(medalName) { if (!assertConnected()) { return(undefined); } var _local1 = _medals[medalName]; if (!_local1) { com.newgrounds.Logger.logError(("No medal named \"" + medalName) + "\" w."); return(undefined); } _local1.unlock(); } static function onMedalUnlocked(event) { if (event.__get__success()) { var _local2 = com.newgrounds.Medal(event.__get__data()); var _local1; if (hasUserSession) { _local1 = loadLocal("medals_unlocked_" + username); if (!_local1) { _local1 = new Object(); } _local1[_local2.__get__id()] = true; saveLocal("medals_unlocked_" + username, _local1); } else { _local1 = loadLocal("medals_unlocked"); if (!_local1) { _local1 = new Object(); } _local1[com.newgrounds.Medal(event.__get__data()).__get__id()] = true; saveLocal("medals_unlocked", _local1); com.newgrounds.Logger.logMessage(("User instanceof not logged in. Medal \"" + _local2.__get__name()) + "\" unlocked locally."); } } } static function onMedalUnlockConfirmed(event) { if (hasUserSession) { var _local1 = loadLocal("medals_unlocked_" + username); if (!_local1) { _local1 = new Object(); } else { delete _local1[com.newgrounds.Medal(event.__get__data()).__get__id()]; } saveLocal("medals_unlocked_" + username, _local1); } } static function getScoreBoard(scoreBoardName) { if (!assertConnected()) { return(null); } return(_scoreBoards[scoreBoardName]); } static function loadScores(scoreBoardName, period, firstResult, numResults, tag) { if (period == undefined) { period = "All-Time"; } if (firstResult == undefined) { firstResult = 1; } if (numResults == undefined) { numResults = 10; } if (tag == undefined) { tag = null; } if (!assertConnected()) { return(null); } var _local1 = _scoreBoards[scoreBoardName]; if (!_local1) { com.newgrounds.Logger.logError(("No scoreboard named \"" + scoreBoardName) + "\" w."); dispatchEvent(com.newgrounds.APIEvent.SCORES_LOADED, null, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT); return(null); } _local1.__set__period(period); _local1.__set__firstResult(firstResult); _local1.__set__numResults(numResults); _local1.__set__tag(tag); _local1.loadScores(); return(_local1); } static function postScore(scoreBoardName, numericScore, tag) { if (tag == undefined) { tag = null; } if (!assertConnected()) { return(undefined); } if (!hasUserSession) { com.newgrounds.Logger.logError("The user must be logged-in to post a score."); dispatchEvent(com.newgrounds.APIEvent.SCORES_LOADED, null, com.newgrounds.APIEvent.ERROR_NOT_LOGGED_IN); return(undefined); } var _local1 = _scoreBoards[scoreBoardName]; if (!_local1) { com.newgrounds.Logger.logError(("No scoreboard named \"" + scoreBoardName) + "\" w."); dispatchEvent(com.newgrounds.APIEvent.SCORES_LOADED, null, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT); return(undefined); } _local1.postScore(numericScore, tag); } static function getSaveGroup(groupName) { if (!assertConnected()) { return(null); } return(_saveGroups[groupName]); } static function getSaveGroupById(id) { for (var _local3 in _saveGroups) { var _local1 = _saveGroups[_local3]; if (_local1.__get__id() == id) { return(_local1); } } return(null); } static function createSaveFile(groupName) { if (!assertConnected()) { return(null); } var _local1 = getSaveGroup(groupName); if (!_local1) { com.newgrounds.Logger.logError(("The save group \"" + groupName) + "\" w found."); return(null); } return(new com.newgrounds.SaveFile(_local1)); } static function loadSaveFile(saveId, loadContents) { if (loadContents == undefined) { loadContents = true; } _connection.sendSimpleCommand("loadSaveFile", onFileLoaded, {save_id:saveId, get_contents:loadContents}); } static function onFileLoaded(event) { var _local2; if (event.__get__success()) { _local2 = com.newgrounds.SaveFile.fromObject(getSaveGroupById(event.__get__data().group_id), event.__get__data().file); if (event.__get__data().get_contents) { _local2.load(); } else { dispatchEvent(com.newgrounds.APIEvent.FILE_LOADED, _local2); } } else { com.newgrounds.Logger.logError("Unable to load file:", event.__get__error()); dispatchEvent(com.newgrounds.APIEvent.FILE_LOADED, null, event.__get__error()); } } static function createSaveQuery(groupName) { if (!assertConnected()) { return(null); } var _local1 = getSaveGroup(groupName); if (!_local1) { com.newgrounds.Logger.logError(("The save group \"" + groupName) + "\" w found."); return(null); } var _local2 = new com.newgrounds.SaveQuery(_local1); return(_local2); } static function createSaveQueryByDate(groupName, sortDescending) { if (sortDescending == undefined) { sortDescending = true; } var _local1 = createSaveQuery(groupName); if (!_local1) { return(null); } _local1.sortOn(com.newgrounds.SaveQuery.CREATED_ON, sortDescending); return(_local1); } static function createSaveQueryByName(groupName, filename, exactMatch, sortDescending) { if (exactMatch == undefined) { exactMatch = false; } if (sortDescending == undefined) { sortDescending = true; } var _local1 = createSaveQuery(groupName); _local1.addCondition(com.newgrounds.SaveQuery.FILE_NAME, (exactMatch ? (com.newgrounds.SaveQuery.OPERATOR_EQUAL) : (com.newgrounds.SaveQuery.OPERATOR_CONTAINS)), filename); return(_local1); } static function createSaveQueryByRating(groupName, ratingName, sortDescending) { if (sortDescending == undefined) { sortDescending = true; } var _local1 = createSaveQuery(groupName); _local1.sortOn(ratingName, sortDescending); return(_local1); } static function onRequestedFileLoaded(event) { removeEventListener(com.newgrounds.APIEvent.FILE_LOADED, onRequestedFileLoaded); if (event.__get__success()) { var _local1 = event.__get__data(); if (_local1) { dispatchEvent(com.newgrounds.APIEvent.FILE_REQUESTED, _local1); } } } static function addEventListener(eventType, listener, useCapture, priority, useWeakReference) { if (useCapture == undefined) { useCapture = false; } if (priority == undefined) { priority = 0; } if (useWeakReference == undefined) { useWeakReference = true; } _dispatcher.addEventListener(eventType, listener, useCapture, priority, useWeakReference); } static function removeEventListener(eventType, listener, useCapture) { if (useCapture == undefined) { useCapture = false; } _dispatcher.removeEventListener(eventType, listener); } static function dispatchEvent(event, data, error) { if (data == undefined) { data = null; } if (error == undefined) { error = null; } _dispatcher.dispatchEvent(new com.newgrounds.APIEvent(event, data, error)); } static function saveLocal(saveId, saveData) { try { var _local3; var _local2 = (("ng_ap_secure_" + _connection.trackerId) + "_") + com.newgrounds.crypto.RC4.encrypt(saveId, _connection.encryptionKey); if (!_sharedObjects[saveId]) { _sharedObjects[saveId] = SharedObject.getLocal(_local2); } _local3 = _sharedObjects[saveId]; _local3.data.data = encodeData(saveData); } catch(_local) { if (Error( /* Error999 */ ) != null) { var error = Error( /* Error999 */ ); com.newgrounds.Logger.logError("Unable to save local data.", error); return(false); } Error( /* Error999 */ ); throw /* Error999 */ ; } return(true); } static function loadLocal(saveId) { try { var _local1; var _local3 = (("ng_ap_secure_" + _connection.trackerId) + "_") + com.newgrounds.crypto.RC4.encrypt(saveId, _connection.encryptionKey); if (!_sharedObjects[saveId]) { _sharedObjects[saveId] = SharedObject.getLocal(_local3); } _local1 = _sharedObjects[saveId]; if ((_local1 && (_local1.data)) && (_local1.data.data)) { return(decodeData(_local1.data.data)); } return(null); } catch(error:Error) { com.newgrounds.Logger.logError("Unable to load local data.", error); } return(null); } static function logCustomEvent(eventName) { if (assertConnected()) { com.newgrounds.Logger.logMessage("Logged event: " + eventName); _connection.sendSimpleCommand("logCustomEvent", null, {event:eventName}); } } static function encodeData(data) { if (!_connection.assertInitialized()) { return(null); } return(com.newgrounds.crypto.RC4.encrypt(com.newgrounds.encoders.json.JSON.encode(data), _connection.encryptionKey)); } static function decodeData(data) { if (!_connection.assertInitialized()) { return(null); } try { return(com.newgrounds.encoders.json.JSON.decode(com.newgrounds.crypto.RC4.decrypt(data, _connection.encryptionKey))); } catch(error:Error) { } return(null); } static function stopPendingCommands() { com.newgrounds.APICommand.stopPendingCommands(); com.newgrounds.Logger.logMessage("Pending commands stopped."); } static function setFont(textField, font) { if (textField && (font)) { var _local2 = textField.getTextFormat(); var _local4 = textField.embedFonts; var _local3 = new TextFormat(font); textField.setNewTextFormat(_local3); textField.setTextFormat(_local3); textField.embedFonts = true; if (textField.textWidth == 0) { textField.embedFonts = _local4; textField.setTextFormat(_local2); textField.setNewTextFormat(_local2); } else { textField.antiAliasType = "advanced"; textField.sharpness = 120; } } } static var VERSION = "3.0.4.1 beta AS2"; static var RELEASE_MODE = "releaseMode"; static var DEBUG_MODE_LOGGED_IN = "debugModeLoggedIn"; static var DEBUG_MODE_LOGGED_OUT = "debugModeLoggedOut"; static var DEBUG_MODE_NEW_VERSION = "debugModeNewVersion"; static var DEBUG_MODE_HOST_BLOCKED = "debugModeHostBlocked"; static var TEST_AD_FEED_URL = "http://www.ngads.com/adtest.php"; static var _dispatcher = new com.newgrounds.APIEventDispatcher(); static var _connection = new com.newgrounds.APIConnection(); static var _debugMode = DEBUG_MODE_LOGGED_IN; static var _adsApproved = false; static var _medals = new Object(); static var _medalsArray = []; static var _scoreBoards = new Object(); static var _scoreBoardsArray = []; static var _saveGroups = new Object(); static var _saveGroupsArray = []; static var _sharedObjects = new Object(); }
Symbol 54 MovieClip [__Packages.com.newgrounds.encoders.ImageScanner] Frame 0
class com.newgrounds.encoders.ImageScanner { var _baseN, _encodeAlpha, _maxPerChannel; function ImageScanner (hashLength, charsPerPixel) { if (hashLength) { _hash = DEFAULT_HASH.substr(0, hashLength); } _baseN = new com.newgrounds.encoders.BaseN(_hash); if (charsPerPixel) { _charsPerPixel = charsPerPixel; } encodeAlpha = (false); } function get encodeAlpha() { return(_encodeAlpha); } function set encodeAlpha(v) { _encodeAlpha = v; _maxPerChannel = int(Math.pow(_hash.length, _charsPerPixel / (_encodeAlpha ? 4 : 3))); if (_maxPerChannel > 256) { _maxPerChannel = 256; } //return(encodeAlpha); } function encode(source, callbackFunction, callbackObject) { var _local4 = {callbackFunction:callbackFunction, callbackObject:callbackObject, source:source, x:0, y:0, output:null}; var _local2 = source.width.toString(); var _local3 = source.height.toString(); while (_local2.length < 3) { _local2 = "0" + _local2; } while (_local3.length < 3) { _local3 = "0" + _local3; } _local4.output = _local2 + _local3; var _local6 = setInterval(this, "doEncode", WORK_INTERVAL, _local4); _local4.interval = _local6; } function decode(source, callbackFunction, callbackObject) { var _local2 = {callbackFunction:callbackFunction, callbackObject:callbackObject, source:source, i:6, x:0, y:0, output:null}; var _local5 = int(source.substr(0, 3)); var _local6 = int(source.substr(3, 3)); _local2.output = new flash.display.BitmapData(_local5, _local6, _encodeAlpha); var _local4 = setInterval(this, "doDecode", WORK_INTERVAL, _local2); _local2.interval = _local4; } function doEncode(state) { var _local3 = getTimer(); while ((state.y < state.source.height) && ((getTimer() - _local3) < WORK_INTERVAL)) { state.output = state.output + encodePixel(state.source.getPixel32(state.x, state.y)); state.x++; if (state.x == state.source.width) { state.x = 0; state.y++; } } if (state.y == state.source.height) { clearInterval(state.interval); state.callbackFunction.call(state.callbackObject, state.output); } } function doDecode(state) { var _local4 = getTimer(); while ((state.y < state.output.height) && ((getTimer() - _local4) < WORK_INTERVAL)) { var _local3 = decodePixel(state.source.substr(state.i, _charsPerPixel)); state.output.setPixel32(state.x, state.y, _local3); state.i = state.i + _charsPerPixel; state.x++; if (state.x == state.output.width) { state.x = 0; state.y++; } } if (state.y == state.output.height) { clearInterval(state.interval); state.callbackFunction.call(state.callbackObject, state.output); } } function encodePixel(pixel) { var _local3 = (pixel >> 24) & 255; var _local4 = (pixel >> 16) & 255; var _local5 = (pixel >> 8) & 255; var _local2 = pixel & 255; _local3 = int((_local3 / 256) * _maxPerChannel); _local4 = int((_local4 / 256) * _maxPerChannel); _local5 = int((_local5 / 256) * _maxPerChannel); _local2 = int((_local2 / 256) * _maxPerChannel); var _local7 = (((_local4 * _maxPerChannel) * _maxPerChannel) + (_local5 * _maxPerChannel)) + _local2; if (_encodeAlpha) { _local7 = _local7 + (((_local3 * _maxPerChannel) * _maxPerChannel) * _maxPerChannel); } return(_baseN.encodeUint(_local7, _charsPerPixel)); } function decodePixel(encodedPixel) { var _local3 = 255; var _local5; var _local6; var _local4; var _local7 = 0; var _local2 = _baseN.decodeUint(encodedPixel); _local4 = _local2 % _maxPerChannel; _local2 = _local2 / int(_maxPerChannel); _local6 = _local2 % _maxPerChannel; _local2 = _local2 / int(_maxPerChannel); _local5 = _local2 % _maxPerChannel; _local2 = _local2 / int(_maxPerChannel); if (_encodeAlpha) { _local3 = _local2 % _maxPerChannel; _local2 = _local2 / int(_maxPerChannel); } return((((_local3 << 24) | (_local5 << 16)) | (_local6 << 8)) | _local4); } static var DEFAULT_HASH = "0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ<>?:;-_=+()!&"; var _hash = DEFAULT_HASH; var _charsPerPixel = 2; static var WORK_INTERVAL = 33.3333333333333; }
Symbol 55 MovieClip [__Packages.com.newgrounds.SaveFile] Frame 0
class com.newgrounds.SaveFile extends com.newgrounds.APIEventDispatcher { static var _currentFile; var _iconLoader, _group, _name, _description, _id, _data, _dataLoader, _fileSize, _readOnly, _draft, _authorId, _authorName, _views, _createdDate, _modifiedDate, dispatchEvent, _encodedIcon, _encodedData, _encoderQueue, _encoding, _dataLoaded, _encodingParent, _encodingProperty, _dataURL; function SaveFile (group) { super(); _iconLoader = new com.newgrounds.BitmapLoader(DEFAULT_ICON, null); _group = group; } static function get currentFile() { return(_currentFile); } static function fromObject(group, fileData) { var _local4 = new com.newgrounds.SaveFile(group); _local4._name = fileData.filename; _local4._description = fileData.description; _local4._id = fileData.save_id; _local4._authorId = fileData.user_id; _local4._authorName = fileData.user_name; _local4._createdDate = fileData.created; _local4._modifiedDate = fileData.last_update; _local4._views = fileData.views; if (fileData.thumb && (fileData.thumb != "")) { _local4._iconLoader.__set__url(_imageFilePath + fileData.thumb); } _local4._dataURL = _saveFilePath + fileData.file; _local4._fileSize = fileData.file_size; _local4._approved = fileData.status != STATUS_UNAPPROVED; _local4._readOnly = false; _local4._public = (fileData.status != STATUS_PRIVATE) && (fileData.status != STATUS_UNAPPROVED); for (var _local8 in fileData.keys) { var _local6 = fileData.keys[_local8]; var _local2 = group.getKeyById(_local6.id); if (_local2) { _local4._keys[_local2.__get__name()] = _local2.validateValue(_local6.value); } } for (var _local9 in fileData.ratings) { var _local5 = fileData.ratings[_local9]; var _local3 = group.getRatingById(_local5.id); if (_local3) { _local4._ratings[_local3.__get__name()] = _local3.validateValue(_local5.score); } } return(_local4); } function get group() { return(_group); } function get name() { return(_name); } function set name(val) { _name = val; //return(name); } function get description() { return(_description); } function set description(val) { _description = val; //return(description); } function get id() { return(_id); } function get data() { return(_data); } function set data(val) { _data = val; //return(data); } function get bytesLoaded() { if (_data) { return(bytesTotal); } if (!_dataLoader) { return(0); } return(_dataLoader.getBytesLoaded()); } function get bytesTotal() { return(_fileSize); } function get readOnly() { return(_readOnly); } function get draft() { return(_draft); } function set draft(v) { _draft = v; //return(draft); } function get authorId() { return(_authorId); } function get authorName() { return(_authorName); } function get keys() { return(_keys); } function get ratings() { return(_ratings); } function get views() { return(_views); } function get createdDate() { return(_createdDate); } function get updatedDate() { return(_modifiedDate); } function toString() { return("Save File: " + _name); } function get icon() { return(_iconLoader.__get__bitmapData()); } function set icon(v) { createIcon(v); //return(icon); } function get iconLoaded() { return(_iconLoader.__get__loaded()); } function createIcon(source) { var _local9 = new flash.display.BitmapData(ICON_WIDTH, ICON_HEIGHT, false, 0); var _local6; var _local5; var _local10 = 0; var _local8 = 0; if (source instanceof flash.display.BitmapData) { _local6 = source.width; _local5 = source.height; } else if (source instanceof MovieClip) { _local6 = source._width; _local5 = source._height; var _local7 = MovieClip(source).getBounds(source); _local10 = _local7.xMin; _local8 = _local7.yMin; } var _local3 = new flash.geom.Matrix(); var _local4; _local4 = Math.min(ICON_WIDTH / _local6, ICON_HEIGHT / _local5); _local3.translate(-_local10, -_local8); _local3.scale(_local4, _local4); _local3.translate((ICON_WIDTH - (_local6 * _local4)) / 2, (ICON_HEIGHT - (_local5 * _local4)) / 2); _local9.draw(source, _local3); _iconLoader.__set__bitmapData(_local9); } function attachIcon(parent) { if (_iconLoader) { return(_iconLoader.attachBitmap(parent)); } com.newgrounds.Logger.logError("No icon available for this sumbission."); return(null); } function save() { if (!_group.__get__connection().__get__hasUserSession()) { com.newgrounds.Logger.logError("The user must be logged-in to save a file."); dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, null, com.newgrounds.APIEvent.ERROR_NOT_LOGGED_IN)); return(undefined); } com.newgrounds.BitmapLoader._cacheSeed++; _currentFile = this; if (iconLoaded) { ICON_IMAGE_SCANNER.encode(icon, onIconEncoded, this); } else { encodeData(true); } } function onIconEncoded(encodedIcon) { _encodedIcon = encodedIcon; encodeData(true); } function doSave() { var _local4 = new com.newgrounds.APICommand("saveFile"); _local4.__get__secureParameters().group = _group.id; _local4.__get__secureParameters().user_name = _group.__get__connection().username; _local4.__get__secureParameters().filename = _name; _local4.__get__secureParameters().description = _description; if (_draft) { _local4.__get__secureParameters().draft = true; } if (_id && (!_readOnly)) { _local4.__get__secureParameters().overwrite = 1; _local4.__get__secureParameters().save_id = _id; } var _local8 = []; for (var _local9 in _keys) { var _local2 = _group.getKey(_local9); if (_local2) { _local8.push({id:_local2.__get__id(), value:_local2.validateValue(_keys[_local9])}); } else { com.newgrounds.Logger.logError(((("No key named \"" + _local9) + "\" in save group \"") + _group.__get__name()) + "\"."); } } _local4.__get__secureParameters().keys = _local8; var _local7 = []; for (var _local10 in _ratings) { var _local3 = _group.getRating(_local10); if (_local3) { _local7.push({id:_local3.__get__id(), value:_local3.validateValue(_ratings[_local10])}); } else { com.newgrounds.Logger.logError(((("No rating named \"" + _local10) + "\" in save group \"") + _group.__get__name()) + "\"."); } } _local4.__get__secureParameters().ratings = _local7; if (typeof(_encodedData) == "string") { _local4.addFile("file", _encodedData, "file"); } else { _local4.addFile("file", com.newgrounds.encoders.json.JSON.encode(_encodedData), "file"); } if (iconLoaded) { _local4.addFile("thumbnail", _encodedIcon, "thumbnail"); } _local4.addEventListener(com.newgrounds.APIEvent.COMMAND_COMPLETE, {target:this, func:onSaveComplete}); _group.__get__connection().sendCommand(_local4); } function encodeData(encode) { _encoderQueue = []; _encoding = encode; if (encode) { _encodedData = _data; preEncodeObject(this, "_encodedData"); } else { preEncodeObject(this, "_data"); } encodeObject(); } function preEncodeObject(parent, property) { var _local3 = parent[property]; var _local5; try { if (_encoding) { _local5 = _local3 instanceof flash.display.BitmapData; } else { _local5 = _local3.type == "__bitmap"; } } catch(error) { } var _local2 = _local3; var _local8; if (_local5) { _encoderQueue.push({parent:parent, property:property}); } else if ((typeof(_local3) == "object") && (!_local8)) { if (_encoding) { if (_local3 instanceof Array) { _local2 = []; } else { _local2 = {}; } for (var _local4 in _local3) { _local2[_local4] = _local3[_local4]; } parent[property] = _local2; } for (var _local4 in _local2) { preEncodeObject(_local2, _local4); } } } function encodeObject() { if (!_encoderQueue.length) { if (_encoding) { doSave(); } else { _dataLoaded = true; checkLoadComplete(); } return(undefined); } var _local6 = _encoderQueue.pop(); var _local4 = _local6.parent; var _local3 = _local6.property; var _local2 = _local4[_local3]; var _local5; if (_encoding) { _local5 = {type:"__bitmap", width:_local2.width, height:_local2.height, transparent:_local2.transparent}; _local4[_local3] = _local5; _encodingParent = _local5; _encodingProperty = "data"; DATA_IMAGE_SCANNER.__set__encodeAlpha(_local2.transparent); DATA_IMAGE_SCANNER.encode(flash.display.BitmapData(_local2), encodeBitmapComplete, this); } else { _encodingParent = _local4; _encodingProperty = _local3; DATA_IMAGE_SCANNER.__set__encodeAlpha(_local2.transparent); DATA_IMAGE_SCANNER.decode(String(_local2.data), encodeBitmapComplete, this); } } function encodeBitmapComplete(data) { _encodingParent[_encodingProperty] = data; encodeObject(); } function load() { _currentFile = this; _dataLoaded = false; _data = null; if (!iconLoaded) { _iconLoader.addEventListener(com.newgrounds.APIEvent.ICON_LOADED, {target:this, func:onIconLoaded}); _iconLoader.load(); } _dataLoader = new LoadVars(); var file = this; _dataLoader.onData = function (data) { file.onDataLoaded(data); }; _dataLoader.load(_dataURL); } function onIconLoaded(event) { if ((!event.__get__success()) && (_iconLoader.__get__url())) { com.newgrounds.Logger.logWarning("Unable to load the icon for this save file."); } _iconLoader.removeEventListener(com.newgrounds.APIEvent.ICON_LOADED, onIconLoaded); checkLoadComplete(); } function checkLoadComplete() { if (_dataLoaded && (iconLoaded)) { com.newgrounds.Logger.logMessage("Data loaded."); dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this)); } } function onDataLoaded(data) { try { if (data) { if (data.charAt(0) == "{") { _data = com.newgrounds.encoders.json.JSON.decode(String(data)); } else { _data = String(data); } encodeData(false); } } catch(error:Error) { com.newgrounds.Logger.logError("Error while loading data:", error); dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this, com.newgrounds.APIEvent.ERROR_BAD_FILE)); } } function onDataError(error) { com.newgrounds.Logger.logError("Unable to load data:", error); dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_LOADED, this, com.newgrounds.APIEvent.ERROR_BAD_FILE)); } function onSaveComplete(event) { if (event.__get__success()) { com.newgrounds.Logger.logMessage(("File \"" + _name) + "\" saved!"); if (event.__get__data()) { _id = event.__get__data().save_id; _dataURL = unescape(event.__get__data().file_url); } dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, this)); } else { com.newgrounds.Logger.logError(("Error saving file \"" + _name) + "\":", event.__get__error()); dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.FILE_SAVED, this, event.__get__error())); } } function sendVote(ratingName, vote) { var _local2 = _group.getRating(ratingName); if (!_local2) { com.newgrounds.Logger.logError(("No save rating named \"" + ratingName) + "\" exists for this save group."); dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, {}, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT)); return(undefined); } vote = _local2.validateValue(vote); if (isNaN(vote)) { com.newgrounds.Logger.logError(((((((("Invalid vote (" + vote) + "). ") + ratingName) + " allows a range of ") + _local2.__get__minimum()) + "-") + _local2.__get__maximum()) + "."); dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, {}, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT)); return(undefined); } com.newgrounds.Logger.logMessage(((((("Voting " + vote) + " for ") + ratingName) + " on ") + _name) + "..."); _group.__get__connection().sendSimpleCommand("rateSaveFile", {target:this, func:onVoteComplete}, null, {group:_group.__get__id(), save_id:_id, rating_id:_local2.__get__id(), vote:vote}); } function onVoteComplete(event) { var _local2 = event.__get__error(); if (event.__get__data().already_voted) { com.newgrounds.Logger.logError("Vote failed. You've already voted on this rating today."); _local2 = com.newgrounds.APIEvent.ERROR_ALREADY_VOTED; } if (_local2 == com.newgrounds.APIEvent.ERROR_NONE) { var _local3 = _group.getRatingById(event.__get__data().rating_id); if (_local3) { _ratings[_local3.__get__name()] = _local3.validateValue(event.__get__data().score); } } dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.VOTE_COMPLETE, this, _local2)); } function clone() { var _local3 = new com.newgrounds.SaveFile(_group); _local3._data = _data; _local3._description = _description; _local3._draft = _draft; _local3._fileSize = _fileSize; _local3._iconLoader.__set__bitmapData(_iconLoader.bitmapData); var _local2; for (_local2 in _keys) { _local3._keys[_local2] = _keys[_local2]; } for (_local2 in _ratings) { _local3._ratings[_local2] = _ratings[_local2]; } _local3._name = _name; return(_local3); } static var ICON_WIDTH = 90; static var ICON_HEIGHT = 90; static var DEFAULT_ICON = flash.display.BitmapData.loadBitmap("DefaultSaveIcon"); static var STATUS_PRIVATE = 0; static var STATUS_SHARED = 1; static var STATUS_UNAPPROVED = 2; static var STATUS_APPROVED = 3; static var _imageFilePath = ""; static var _saveFilePath = ""; static var ICON_IMAGE_SCANNER = new com.newgrounds.encoders.ImageScanner(); static var DATA_IMAGE_SCANNER = new com.newgrounds.encoders.ImageScanner(64, 6); var _keys = new Object(); var _ratings = new Object(); }
Symbol 53 MovieClip [__Packages.com.newgrounds.SaveGroup] Frame 0
class com.newgrounds.SaveGroup { var _connection, _id, _name, _type, _keysArray, _ratingsArray, _keys, _ratings; function SaveGroup (connection, name, id, type, keys, ratings) { _connection = connection; _id = id; _name = name; _type = type; _keysArray = keys; _ratingsArray = ratings; _keys = new Object(); _ratings = new Object(); var _local11; for (var _local7 in keys) { var _local2 = keys[_local7]; _keys[_local2.__get__name()] = _local2; } for (var _local6 in ratings) { var _local3 = ratings[_local6]; _ratings[_local3.__get__name()] = _local3; } } function get connection() { return(_connection); } function get name() { return(_name); } function get type() { return(_type); } function get id() { return(_id); } function get keys() { return(_keysArray); } function get ratings() { return(_ratingsArray); } function getKey(name) { return(_keys[name]); } function getRating(name) { return(_ratings[name]); } function getKeyById(id) { for (var _local4 in _keys) { var _local2 = _keys[_local4]; if (_local2.__get__id() == id) { return(_local2); } } return(null); } function getRatingById(id) { for (var _local4 in _ratings) { var _local2 = _ratings[_local4]; if (_local2.__get__id() == id) { return(_local2); } } return(null); } function toString() { return((((("SaveGroup: " + name) + " Keys: ") + _keysArray) + " Ratings: ") + _ratingsArray); } static var TYPE_SYSTEM = 0; static var TYPE_PRIVATE = 1; static var TYPE_PUBLIC = 2; static var TYPE_MODERATED = 3; }
Symbol 51 MovieClip [__Packages.com.newgrounds.SaveKey] Frame 0
class com.newgrounds.SaveKey { var _name, _id, _type; function SaveKey (name, id, type) { _name = name; _id = id; _type = type; } function get name() { return(_name); } function get id() { return(_id); } function get type() { return(_type); } function validateValue(value) { switch (_type) { case TYPE_INTEGER : value = Number(value); if (!isNaN(value)) { var _local3 = int(value); if (_local3 != value) { com.newgrounds.Logger.logWarning(((((("Float value " + value) + " given for integer key \"") + _name) + "\". Clamping to ") + _local3) + "."); } return(_local3); } break; case TYPE_FLOAT : value = Number(value); if (!isNaN(value)) { return(isNaN(Number(value))); } break; case TYPE_BOOLEAN : return(Boolean(value)); case TYPE_STRING : return((value ? (value.toString()) : "")); } return(null); } function toString() { return(_name); } static var TYPE_FLOAT = 1; static var TYPE_INTEGER = 2; static var TYPE_STRING = 3; static var TYPE_BOOLEAN = 4; }
Symbol 52 MovieClip [__Packages.com.newgrounds.SaveRating] Frame 0
class com.newgrounds.SaveRating { var _name, _id, _isFloat, _minimum, _maximum; function SaveRating (name, id, isFloat, minimum, maximum) { _name = name; _id = id; _isFloat = isFloat; _minimum = minimum; _maximum = maximum; } function get name() { return(_name); } function get id() { return(_id); } function get isFloat() { return(_isFloat); } function get minimum() { return(_minimum); } function get maximum() { return(_maximum); } function validateValue(value) { var _local2 = Number(value); if (isNaN(_local2)) { com.newgrounds.Logger.logError(("Invalid value for rating \"" + _name) + "\"."); return(NaN); } if (_local2 < _minimum) { com.newgrounds.Logger.logWarning(((((_local2 + " is out of acceptable range for rating \"") + _name) + "\". Clamping to ") + _minimum) + "."); return(_minimum); } if (_local2 > _maximum) { com.newgrounds.Logger.logWarning(((((_local2 + " is out of acceptable range for rating \"") + _name) + "\". Clamping to ") + _maximum) + "."); return(_maximum); } if (!isFloat) { var _local3 = int(_local2); if (_local3 != _local2) { com.newgrounds.Logger.logWarning(((((("Float value " + _local2) + " given for integer rating \"") + _name) + "\". Clamping to ") + _local3) + "."); } return(_local3); } return(_local2); } function toString() { return(_name); } }
Symbol 47 MovieClip [__Packages.com.newgrounds.BitmapLoader] Frame 0
class com.newgrounds.BitmapLoader extends com.newgrounds.APIEventDispatcher { var _bitmapData, _url, _loader, _loaderClip, dispatchEvent; function BitmapLoader (defaultBitmap, url) { super(); _bitmapData = defaultBitmap; _url = url; } function get url() { return(_url); } function set url(v) { _loaded = false; _url = v; //return(url); } function get bitmapData() { return(_bitmapData); } function set bitmapData(v) { _bitmapData = v; _loaded = true; //return(bitmapData); } function get loaded() { return(_loaded); } function disposeLoader() { if (_loader) { if (_loaderClip._parent == _root) { _loader.unloadClip(_loaderClip.bitmap); _loaderClip.removeMovieClip(); } _loader = null; _loaderClip = null; } } function load() { if ((!_url) || (_url == "")) { onLoadComplete(); return(undefined); } _loaded = false; if (_bitmapData) { _bitmapData.dispose(); _bitmapData = null; } disposeLoader(); attachBitmap(null); } function attachBitmap(parent) { if (!parent) { parent = _root; } var _local5 = parent.getNextHighestDepth(); var _local3 = parent.createEmptyMovieClip("__bitmap" + _local5, _local5); if (((!_loaded) && (_url)) && (_url != "")) { _local3.createEmptyMovieClip("bitmap", 0); _loader = new MovieClipLoader(); _loaderClip = _local3; if (parent == _root) { _loaderClip._visible = false; } var thisObj = this; _loaderClip.onEnterFrame = function () { thisObj.pollLoad(); }; _loader.addListener({onLoadError:function () { thisObj.onLoadComplete(); }}); _loader.loadClip(_url, _local3.bitmap); } else { _local3.attachBitmap(_bitmapData, 0); } return(_local3); } function pollLoad() { if (_loaderClip._width) { onLoadComplete(); } } function onLoadComplete() { var _local2; if ((_loader && (_loaderClip)) && (_loaderClip._width)) { try { _loaderClip.onEnterFrame = null; _local2 = new flash.display.BitmapData(_loaderClip._width, _loaderClip._height, true, 0); _local2.draw(_loaderClip); _bitmapData = _local2; _loaded = true; } catch(error) { if (_local2) { _local2.dispose(); } } } disposeLoader(); dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.ICON_LOADED, this, (_loaded ? null : (com.newgrounds.APIEvent.ERROR_BAD_FILE)))); } static var _cacheSeed = 0; var _loaded = true; }
Symbol 56 MovieClip [__Packages.com.newgrounds.SaveQuery] Frame 0
class com.newgrounds.SaveQuery extends com.newgrounds.APIEventDispatcher { var _group, _connection, dispatchEvent; function SaveQuery (group) { super(); _group = group; _connection = group.connection; includeAllFields(); } function get group() { return(_group); } function get resultsPerPage() { return(_resultsPerPage); } function set resultsPerPage(val) { _resultsPerPage = Math.min(Math.max(val, 1), 100); //return(resultsPerPage); } function get page() { return(_page); } function set page(val) { _page = Math.max(val, 1); //return(page); } function prevPage() { page = ((page-1)); } function nextPage() { page = ((page+1)); } function get isRandomized() { return(_isRandomized); } function set isRandomized(val) { _isRandomized = val; //return(isRandomized); } function get files() { return(_files); } function reset() { _page = 1; _resultsPerPage = 10; _isRandomized = false; _lookupKeys = []; _lookupRatings = []; _fileConditions = []; _keyConditions = []; _ratingConditions = []; _files = []; includeAllFields(); } function clone() { var _local2 = new com.newgrounds.SaveQuery(_group); _local2._page = _page; _local2._resultsPerPage = _resultsPerPage; _local2._isRandomized = _isRandomized; _local2._lookupKeys = _lookupKeys.concat(); _local2._lookupRatings = _lookupRatings.concat(); _local2._fileConditions = _fileConditions.concat(); _local2._keyConditions = _keyConditions.concat(); _local2._ratingConditions = _ratingConditions.concat(); return(_local2); } function includeAllFields() { for (var _local5 in _group.__get__keys()) { var _local2 = _group.__get__keys()[_local5]; _lookupKeys.push(_local2.__get__id()); } for (var _local4 in _group.__get__ratings()) { var _local3 = _group.__get__ratings()[_local4]; _lookupRatings.push(_local3.__get__id()); } } function addCondition(field, operator, value) { var _local2; _local2 = 0; while (_local2 < FILE_FIELDS.length) { if (FILE_FIELDS[_local2] == field) { break; } _local2++; } if (_local2 == FILE_FIELDS.length) { _local2 = -1; } if (_local2 >= 0) { _fileConditions.push({field:_local2, operator:operator, value:value}); } else { var _local3 = _group.getKey(field); if (_local3) { value = _local3.validateValue(value); _keyConditions.push({key_id:_local3.__get__id(), operator:operator, value:value}); return(undefined); } var _local4 = field.split("."); var _local6 = _group.getRating(_local4[0]); if (_local6) { value = _local6.validateValue(value); _ratingConditions.push({rating_id:_local6.__get__id(), operator:operator, value:value, column:(_local4[1] ? (_local4[1]) : "score")}); return(undefined); } com.newgrounds.Logger.logError(((("The save group \"" + _group.__get__name()) + "\" does not have a field named \"") + field) + "\"."); } } function sortOn(field, sortDescending) { if (sortDescending == undefined) { sortDescending = false; } var _local2; _local2 = 0; while (_local2 < FILE_FIELDS.length) { if (FILE_FIELDS[_local2] == field) { break; } _local2++; } if (_local2 == FILE_FIELDS.length) { _local2 = -1; } if (_local2 >= 0) { _sortFields.push({table:TABLE_FILES, field:_local2, desc:sortDescending}); } else { var _local5 = _group.getKey(field); if (_local5) { _sortFields.push({table:TABLE_KEYS, field:_local5.__get__id(), desc:sortDescending}); return(undefined); } var _local3 = field.split("."); var _local6 = _group.getRating(_local3[0]); if (_local6) { _sortFields.push({table:TABLE_RATINGS, field:_local6.__get__id(), desc:sortDescending, extra:(_local3[1] ? (_local3[1]) : "score")}); return(undefined); } com.newgrounds.Logger.logError(((("The save group \"" + _group.__get__name()) + "\" does not have a field named \"") + field) + "\"."); } } function execute() { var _local5 = {}; _local5.page = _page; _local5.num_results = _resultsPerPage; if (_isRandomized) { _local5.randomize = 1; } if (_lookupKeys && (_lookupKeys.length)) { _local5.lookup_keys = _lookupKeys; } if (_lookupRatings && (_lookupRatings.length)) { _local5.lookup_ratings = _lookupRatings; } if (_fileConditions && (_fileConditions.length)) { _local5.file_conditions = _fileConditions; } if (_keyConditions && (_keyConditions.length)) { _local5.key_conditions = _keyConditions; } if (_ratingConditions && (_ratingConditions.length)) { _local5.rating_conditions = _ratingConditions; } if (_sortFields && (_sortFields.length)) { _local5.sort_conditions = _sortFields; } _connection.sendSimpleCommand("lookupSaveFiles", {target:this, func:onQueryComplete}, {publisher_id:_connection.publisherId, group_id:_group.__get__id(), query:_local5}); } function onQueryComplete(event) { if (event.__get__success()) { var _local4 = event.__get__data(); _files = []; if (_local4.files) { var _local2 = 0; while (_local2 < _local4.files.length) { var _local3 = com.newgrounds.SaveFile.fromObject(_group, _local4.files[_local2]); if (_local3) { _files.push(_local3); } _local2++; } } dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.QUERY_COMPLETE, this)); } else { com.newgrounds.Logger.logError("Query failed: " + event.__get__error()); dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.QUERY_COMPLETE, this, event.__get__error())); } } static var FILE_ID = "fileId"; static var AUTHOR_ID = "authorId"; static var AUTHOR_NAME = "authorName"; static var FILE_NAME = "fileName"; static var CREATED_ON = "createdOn"; static var UPDATED_ON = "updatedOn"; static var FILE_VIEWS = "fileViews"; static var FILE_STATUS = "fileStatus"; static var FILE_FIELDS = [FILE_ID, AUTHOR_ID, AUTHOR_NAME, FILE_NAME, CREATED_ON, UPDATED_ON, FILE_VIEWS, FILE_STATUS]; static var OPERATOR_EQUAL = "="; static var OPERATOR_LESS_THAN = "<"; static var OPERATOR_GREATER_THAN = ">"; static var OPERATOR_NOT_EQUAL = "!="; static var OPERATOR_LESS_OR_EQUAL = "<="; static var OPERATOR_GREATER_OR_EQUAL = ">="; static var OPERATOR_CONTAINS = "*"; static var OPERATOR_NOT_CONTAINS = "!*"; static var OPERATOR_NOT_BEGINS_WITH = "!*="; static var OPERATOR_NOT_ENDS_WITH = "!=*"; static var OPERATOR_BEGINS_WITH = "*="; static var OPERATOR_ENDS_WITH = "=*"; static var TABLE_FILES = 1; static var TABLE_KEYS = 2; static var TABLE_RATINGS = 3; var _page = 1; var _resultsPerPage = 10; var _isRandomized = false; var _files = []; var _lookupKeys = []; var _lookupRatings = []; var _fileConditions = []; var _keyConditions = []; var _ratingConditions = []; var _sortFields = []; }
Symbol 48 MovieClip [__Packages.com.newgrounds.Medal] Frame 0
class com.newgrounds.Medal extends com.newgrounds.APIEventDispatcher { var _connection, _id, _name, _unlocked, _value, _difficulty, _iconLoader, dispatchEvent; function Medal (connection, id, name, unlocked, value, difficultyId, iconURL) { super(); _connection = connection; _id = id; _name = name; _unlocked = unlocked; _value = value; _difficulty = DIFFICULTIES[difficultyId]; _iconLoader = new com.newgrounds.BitmapLoader(DEFAULT_ICON, iconURL); _iconLoader.load(); } function get difficulty() { return(_difficulty); } function get icon() { return(_iconLoader.__get__bitmapData()); } function get id() { return(_id); } function get name() { return(_name); } function get unlocked() { return(_unlocked); } function get value() { return(_value); } function toString() { return((((((("Medal: " + _name) + "\t\t(") + (_unlocked ? "unlocked, " : "locked, ")) + _value) + "pts, ") + _difficulty) + ")"); } function attachIcon(parent) { return(_iconLoader.attachBitmap(parent)); } function unlock() { if ((!_connection.debug) && (_unlocked)) { com.newgrounds.Logger.logWarning(("Medal \"" + _name) + "\" is already unlocked."); return(undefined); } com.newgrounds.Logger.logMessage(("Unlocking medal \"" + name) + "\"..."); _unlocked = true; _connection.sendSimpleCommand("unlockMedal", {target:this, func:onUnlockConfirmed}, null, {medal_id:id}); dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.MEDAL_UNLOCKED, this)); } function onUnlockConfirmed(event) { if (event.__get__success()) { com.newgrounds.Logger.logMessage(("Medal \"" + name) + "\" unlocked."); } else { com.newgrounds.Logger.logError(("Failed to unlock \"" + name) + "\"!"); } dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.MEDAL_UNLOCK_CONFIRMED, this, event.__get__error())); } static var ICON_WIDTH = 50; static var ICON_HEIGHT = 50; static var DEFAULT_ICON = flash.display.BitmapData.loadBitmap("DefaultMedalIcon"); static var DIFFICULTY_EASY = "Easy"; static var DIFFICULTY_MODERATE = "Moderate"; static var DIFFICULTY_CHALLENGING = "Challenging"; static var DIFFICULTY_DIFFICULT = "Difficult"; static var DIFFICULTY_BRUTAL = "Brutal"; static var DIFFICULTIES = ["Unknown", DIFFICULTY_EASY, DIFFICULTY_MODERATE, DIFFICULTY_CHALLENGING, DIFFICULTY_DIFFICULT, DIFFICULTY_BRUTAL]; }
Symbol 50 MovieClip [__Packages.com.newgrounds.ScoreBoard] Frame 0
class com.newgrounds.ScoreBoard extends com.newgrounds.APIEventDispatcher { var _connection, _name, _id, _scores, _tag, dispatchEvent; function ScoreBoard (connection, name, id) { super(); _connection = connection; _name = name; _id = id; } function get name() { return(_name); } function get scores() { return(_scores); } function get period() { return(_period); } function set period(val) { _period = val; //return(period); } function get firstResult() { return(_firstResult); } function set firstResult(val) { _firstResult = Math.max(1, val); //return(firstResult); } function get numResults() { return(_numResults); } function set numResults(val) { _numResults = val; //return(numResults); } function get tag() { return(_tag); } function set tag(val) { _tag = val; //return(tag); } function get page() { return(Math.ceil((_firstResult - 1) / _numResults) + 1); } function prevPage() { if (firstResult > _numResults) { firstResult = firstResult - _numResults; } } function nextPage() { firstResult = firstResult + _numResults; } function loadScores() { _connection.sendSimpleCommand("loadScores", {target:this, func:onScoresLoaded}, {publisher_id:_connection.publisherId, board:_id, page:((_firstResult - 1) / _numResults) + 1, num_results:_numResults, period:_period, tag:_tag}); } function postScore(numericScore, tag) { if (tag == undefined) { tag = null; } if (isNaN(numericScore)) { com.newgrounds.Logger.logError("Cannot post invalid score: " + numericScore); dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.SCORE_POSTED, null, com.newgrounds.APIEvent.ERROR_INVALID_ARGUMENT)); return(undefined); } com.newgrounds.Logger.logMessage(((((("Posting a score of " + numericScore) + " by ") + _connection.username) + " to scoreboard \"") + _name) + "\"..."); _connection.sendSimpleCommand("postScore", {target:this, func:onScorePosted}, null, {user_name:_connection.username, board:_id, value:numericScore, tag:tag}); } function onScoresLoaded(event) { var _local4 = event.__get__data(); _scores = []; var _local5; if (_local4.first_result) { _local5 = _local4.first_result; } else { _local5 = _firstResult; } if (_local4.scores) { var _local3 = 0; while (_local3 < _local4.scores.length) { var _local2 = _local4.scores[_local3]; if (_local2) { _scores[_local3] = new com.newgrounds.Score(_local5, _local2.username, _local2.value, _local2.numeric_value, _local2.tag); } _local3++; _local5++; } } dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.SCORES_LOADED, this)); } function onScorePosted(event) { if (event.__get__success()) { com.newgrounds.Logger.logMessage("Score posted!"); var _local4 = event.__get__data(); var _local2 = {}; _local2.score = _local4.value; _local2.scoreBoard = this; } else { com.newgrounds.Logger.logError("Error posting score: " + event.__get__error()); } dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.SCORE_POSTED, _local2, event.__get__error())); } function toString() { return("Scoreboard: " + _name); } static var TODAY = "Today"; static var THIS_WEEK = "This Week"; static var THIS_MONTH = "This Month"; static var THIS_YEAR = "This Year"; static var ALL_TIME = "All-Time"; var _period = ALL_TIME; var _firstResult = 1; var _numResults = 10; }
Symbol 39 MovieClip [__Packages.com.newgrounds.Logger] Frame 0
class com.newgrounds.Logger { function Logger () { } static function logInternal() { var _local2 = arguments; log(PRIORITY_INTERNAL, _local2); } static function logMessage() { var _local2 = arguments; log(PRIORITY_MESSAGE, _local2); } static function logWarning() { var _local2 = arguments; log(PRIORITY_WARNING, _local2); } static function logError() { var _local2 = arguments; log(PRIORITY_ERROR, _local2); } static function log(priority, messages) { if (priority == undefined) { priority = PRIORITY_MESSAGE; } if (messages == undefined) { messages = null; } if (priority >= _messageLevel) { var _local1 = 0; while (_local1 < messages.length) { trace(HEADER + messages[_local1]); _eventDispatcher.dispatchEvent(new com.newgrounds.APIEvent(com.newgrounds.APIEvent.LOG, messages[_local1])); _local1++; } } if (priority >= _throwLevel) { throw new Error(messages.join(newline)); } } static function addEventListener(event, listener) { _eventDispatcher.addEventListener(event, listener, false, 0, false); } static var PRIORITY_INTERNAL = 0; static var PRIORITY_MESSAGE = 1; static var PRIORITY_WARNING = 2; static var PRIORITY_ERROR = 3; static var PRIORITY_MAX = 4; static var HEADER = "[Newgrounds API] :: "; static var _eventDispatcher = new com.newgrounds.EventDispatcher(); static var _messageLevel = PRIORITY_MESSAGE; static var _throwLevel = PRIORITY_MAX; }
Symbol 58 MovieClip [__Packages.com.newgrounds.components.FlashAdBase] Frame 0
class com.newgrounds.components.FlashAdBase extends MovieClip { var _x, _y, stop, onUnload, _adListener, adContainer, newgroundsButton, _showBorder, _ad, gotoAndStop, _adFeedLoader; function FlashAdBase () { super(); try { System.security.allowDomain("server.cpmstar.com"); System.security.allowInsecureDomain("server.cpmstar.com"); } catch(error) { } _x = int(_x); _y = int(_y); stop(); if (_newgroundsButton) { _newgroundsButton.onRelease = onNGClick; } onUnload = removeAd; var _local4 = this; _adListener = {onLoadError:function (target, error, httpStatus) { target._parent.onAdError(target, error, httpStatus); }}; if (com.newgrounds.API.__get__adFeedURL()) { loadAdFeed(); } else { com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.API_CONNECTED, {target:this, func:loadAdFeed}); } } function get _adContainer() { return(adContainer); } function get _newgroundsButton() { return(newgroundsButton); } function get showBorder() { return(_showBorder); } function set showBorder(value) { _showBorder = value; if (_showBorder) { if (_ad) { var _local2 = _ad.getProgress(_adContainer); if (_local2.bytesLoaded >= _local2.bytesTotal) { gotoAndStop("loaded"); } else { gotoAndStop("loading"); } } else { gotoAndStop("idle"); } } else { gotoAndStop("noBorder"); } //return(showBorder); } function loadAdFeed(event) { if (event == undefined) { event = null; } _adFeedLoader = new LoadVars(); var target = this; _adFeedLoader.onData = function (data) { target.onAdFeedLoaded(data); }; _adFeedLoader.load(com.newgrounds.API.__get__adFeedURL(), _adFeedLoader); } function onAdFeedLoaded(data) { if (data && (data != "")) { loadAd(data); } else { onAdError(); } } function loadAd(adURL) { _ad = new MovieClipLoader(); _ad.addListener(_adListener); _adContainer._lockroot = true; _ad.loadClip(adURL, _adContainer); } function removeAd() { _adFeedLoader.onData = null; _adFeedLoader = null; _ad.removeListener(_adListener); if (_adContainer) { _ad.unloadClip(_adContainer); } _ad = null; } function onAdError(target, error, httpStatus) { com.newgrounds.Logger.logError("Unable to load ad."); removeAd(); } function onNGClick() { com.newgrounds.API.loadNewgrounds(); } }
Symbol 31 MovieClip [__Packages.com.newgrounds.shims.APIShim] Frame 0
class com.newgrounds.shims.APIShim extends MovieClip { function APIShim () { super(); } }
Symbol 43 MovieClip [__Packages.com.newgrounds.crypto.MD5] Frame 0
class com.newgrounds.crypto.MD5 { function MD5 () { } static function hash(src) { return(hex_md5(src)); } static function hex_md5(src) { return(binl2hex(core_md5(str2binl(src), src.length * 8))); } static function core_md5(x, len) { x[len >> 5] = x[len >> 5] | (128 << (len % 32)); x[(((len + 64) >>> 9) << 4) + 14] = len; var _local4 = 1732584193 /* 0x67452301 */; var _local3 = -271733879; var _local2 = -1732584194; var _local1 = 271733878 /* 0x10325476 */; var _local5 = 0; while (_local5 < x.length) { var _local10 = _local4; var _local9 = _local3; var _local8 = _local2; var _local7 = _local1; _local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936); _local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586); _local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819); _local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330); _local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897); _local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426); _local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341); _local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983); _local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416); _local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417); _local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063); _local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162); _local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682); _local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101); _local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290); _local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329); _local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510); _local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632); _local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713); _local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302); _local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691); _local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083); _local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335); _local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848); _local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438); _local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690); _local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961); _local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501); _local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467); _local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784); _local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473); _local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734); _local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558); _local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463); _local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562); _local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556); _local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060); _local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353); _local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632); _local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640); _local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174); _local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222); _local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979); _local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189); _local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487); _local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835); _local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520); _local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651); _local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844); _local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415); _local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905); _local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055); _local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571); _local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606); _local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523); _local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799); _local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359); _local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744); _local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380); _local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649); _local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070); _local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379); _local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259); _local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 9], 21, -343485551); _local4 = safe_add(_local4, _local10); _local3 = safe_add(_local3, _local9); _local2 = safe_add(_local2, _local8); _local1 = safe_add(_local1, _local7); _local5 = _local5 + 16; } return(new Array(_local4, _local3, _local2, _local1)); } static function md5_cmn(q, a, b, x, s, t) { return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b)); } static function md5_ff(a, b, c, d, x, s, t) { return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t)); } static function md5_gg(a, b, c, d, x, s, t) { return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t)); } static function md5_hh(a, b, c, d, x, s, t) { return(md5_cmn((b ^ c) ^ d, a, b, x, s, t)); } static function md5_ii(a, b, c, d, x, s, t) { return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t)); } static function bit_rol(num, cnt) { return((num << cnt) | (num >>> (32 - cnt))); } static function safe_add(x, y) { var _local1 = (x & 65535) + (y & 65535); var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16); return((_local2 << 16) | (_local1 & 65535)); } static function str2binl(str) { var _local3 = new Array(); var _local4 = 255; var _local1 = 0; while (_local1 < (str.length * 8)) { _local3[_local1 >> 5] = _local3[_local1 >> 5] | ((str.charCodeAt(_local1 / 8) & _local4) << (_local1 % 32)); _local1 = _local1 + 8; } return(_local3); } static function binl2hex(binarray) { var _local4 = new String(""); var _local3 = new String("0123456789abcdef"); var _local1 = 0; while (_local1 < (binarray.length * 4)) { _local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15)); _local1++; } return(_local4); } }
Symbol 44 MovieClip [__Packages.com.newgrounds.crypto.RC4] Frame 0
class com.newgrounds.crypto.RC4 { function RC4 () { } static function encrypt(src, key) { var _local3 = strToChars(src); var _local1 = strToChars(key); var _local2 = calculate(_local3, _local1); return(charsToHex(_local2)); } static function encryptbin(src, key) { var _local3 = strToChars(src); var _local1 = strToChars(key); var _local2 = calculate(_local3, _local1); return(_local2); } static function decrypt(src, key) { var _local3 = hexToChars(src); var _local1 = strToChars(key); var _local2 = calculate(_local3, _local1); return(charsToStr(_local2)); } static function initialize(pwd) { var _local2 = 0; var _local3; var _local4 = pwd.length; var _local1 = 0; while (_local1 <= 255) { mykey[_local1] = pwd[_local1 % _local4]; sbox[_local1] = _local1; _local1++; } _local1 = 0; while (_local1 <= 255) { _local2 = ((_local2 + sbox[_local1]) + mykey[_local1]) % 256; _local3 = sbox[_local1]; sbox[_local1] = sbox[_local2]; sbox[_local2] = _local3; _local1++; } } static function calculate(plaintxt, psw) { initialize(psw); var _local1 = 0; var _local2 = 0; var _local9 = new Array(); var _local7; var _local5; var _local6; var _local3 = 0; while (_local3 < plaintxt.length) { _local1 = (_local1 + 1) % 256; _local2 = (_local2 + sbox[_local1]) % 256; _local5 = sbox[_local1]; sbox[_local1] = sbox[_local2]; sbox[_local2] = _local5; var _local4 = (sbox[_local1] + sbox[_local2]) % 256; _local7 = sbox[_local4]; _local6 = plaintxt[_local3] ^ _local7; _local9.push(_local6); _local3++; } return(_local9); } static function charsToHex(chars) { var _local4 = new String(""); var _local3 = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"); var _local1 = 0; while (_local1 < chars.length) { _local4 = _local4 + (_local3[chars[_local1] >> 4] + _local3[chars[_local1] & 15]); _local1++; } return(_local4); } static function hexToChars(hex) { var _local3 = new Array(); var _local1 = ((hex.substr(0, 2) == "0x") ? 2 : 0); while (_local1 < hex.length) { _local3.push(parseInt(hex.substr(_local1, 2), 16)); _local1 = _local1 + 2; } return(_local3); } static function charsToStr(chars) { var _local3 = new String(""); var _local1 = 0; while (_local1 < chars.length) { _local3 = _local3 + String.fromCharCode(chars[_local1]); _local1++; } return(_local3); } static function strToChars(str) { var _local3 = new Array(); var _local1 = 0; while (_local1 < str.length) { _local3.push(str.charCodeAt(_local1)); _local1++; } return(_local3); } static var sbox = new Array(255); static var mykey = new Array(255); }
Symbol 45 MovieClip [__Packages.com.newgrounds.encoders.json.JSON] Frame 0
class com.newgrounds.encoders.json.JSON { static var start, cache, interval; function JSON () { } static function encode(arg, noquotes) { var _local3; var _local2; var _local6; var _local1 = ""; var _local4; if (arg.isSServerVar()) { var _local8 = "sservervariable"; } else { var _local8 = typeof(arg); } switch (_local8) { case "sservervariable" : return("?" + arg.getEncodedValue()); case "object" : if (arg) { if (arg instanceof Array) { _local2 = 0; while (_local2 < arg.length) { _local4 = encode(arg[_local2]); if (_local1) { _local1 = _local1 + ","; } _local1 = _local1 + _local4; _local2++; } return(("[" + _local1) + "]"); } if (typeof(arg.toString) != "undefined") { for (_local2 in arg) { _local4 = arg[_local2]; if ((typeof(_local4) != "undefined") && (typeof(_local4) != "function")) { _local4 = encode(_local4); if (_local1) { _local1 = _local1 + ","; } _local1 = _local1 + ((encode(_local2) + ":") + _local4); } } return(("{" + _local1) + "}"); } } return("null"); case "number" : return((isFinite(arg) ? (String(arg)) : "null")); case "string" : _local6 = arg.length; if (noquotes) { var _local7 = ""; } else { var _local7 = "\""; } _local1 = _local7; _local2 = 0; while (_local2 < _local6) { _local3 = arg.charAt(_local2); if (_local3 >= " ") { if ((_local3 == "\\") || (_local3 == "\"")) { _local1 = _local1 + "\\"; } _local1 = _local1 + _local3; } else { switch (_local3) { case "\b" : _local1 = _local1 + "\\b"; break; case "\f" : _local1 = _local1 + "\\f"; break; case newline : _local1 = _local1 + "\\n"; break; case "\r" : _local1 = _local1 + "\\r"; break; case "\t" : _local1 = _local1 + "\\t"; break; default : _local3 = _local3.charCodeAt(); _local1 = _local1 + (("\\u00" + Math.floor(_local3 / 16).toString(16)) + (_local3 % 16).toString(16)); } } _local2 = _local2 + 1; } return(_local1 + _local7); case "boolean" : return(String(arg)); } return("null"); } static function background_encode(arg, callback) { if (busy) { trace("[Newgrounds Encoder] :: Cannot encode a new file until the previous file is completed"); return(false); } if (!callback) { trace("[Newgrounds Encoder] :: Missing a callback function, skipping encode"); return(false); } busy = true; var _local2 = new Date(); start = _local2.getTime(); cache = {busy:false, complete:false, arg:arg, target:arg, parents:[], encoded:"", callback:callback, encode_chunk:function () { com.newgrounds.encoders.json.JSON.encode_chunk(); }}; if (getType(arg) == "object") { cache.encoded = "{"; } else if (getType(arg) == "array") { cache.encoded = "["; } interval = setInterval(cache, "encode_chunk", 25); return(true); } static function background_decode(arg, callback) { if (busy) { trace("[Newgrounds Encoder] :: Cannot decode a new file until the previous file is completed"); return(false); } if (!callback) { trace("[Newgrounds Encoder] :: Missing a callback function, skipping decode"); return(false); } busy = true; var _local1 = new Date(); start = _local1.getTime(); cache = {busy:false, callback:callback, complete:false, arg:arg, pos:0, parents:["root"], target:null, scratch:"", decode_chunk:function () { com.newgrounds.encoders.json.JSON.decode_chunk(); }}; interval = setInterval(cache, "decode_chunk", 25); return(true); } static function decode(text) { var at = 0; var ch = " "; var _value; var _error = function (m) { throw {name:"JSONError", message:m, at:at - 1, text:text}; }; var _next = function () { ch = text.charAt(at); at = at + 1; return(ch); }; var _white = function () { while (ch) { if (ch <= " ") { _next(); } else if (ch == "/") { switch (_next()) { case "/" : while ((_next() && (ch != newline)) && (ch != "\r")) { } break; case "*" : _next(); for(;;){ if (ch) { if (ch == "*") { if (_next() == "/") { _next(); // unexpected jump } } else { _next(); } } else { _error("Unterminated comment"); } }; break; default : _error("Syntax error"); } } else { return; } } }; var _string = function () { var _local4; var _local1 = ""; var _local3; var _local2; var _local5 = false; if (ch == "\"") { while (_next()) { if (ch == "\"") { _next(); return(_local1); } if (ch == "\\") { switch (_next()) { case "b" : _local1 = _local1 + "\b"; break; case "f" : _local1 = _local1 + "\f"; break; case "n" : _local1 = _local1 + newline; break; case "r" : _local1 = _local1 + "\r"; break; case "t" : _local1 = _local1 + "\t"; break; case "u" : _local2 = 0; _local4 = 0; while (_local4 < 4) { _local3 = parseInt(_next(), 16); if (!isFinite(_local3)) { _local5 = true; break; } _local2 = (_local2 * 16) + _local3; _local4 = _local4 + 1; } if (_local5) { _local5 = false; break; } _local1 = _local1 + String.fromCharCode(_local2); break; default : _local1 = _local1 + ch; } } else { _local1 = _local1 + ch; } } } _error("Bad string"); }; var _array = function () { var _local1 = []; if (ch == "[") { _next(); _white(); if (ch == "]") { _next(); return(_local1); } while (ch) { _local1.push(_value()); _white(); if (ch == "]") { _next(); return(_local1); } if (ch != ",") { break; } _next(); _white(); } } _error("Bad array"); }; var _object = function () { var _local2; var _local1 = {}; if (ch == "{") { _next(); _white(); if (ch == "}") { _next(); return(_local1); } while (ch) { _local2 = _string(); _white(); if (ch != ":") { break; } _next(); _local1[_local2] = _value(); _white(); if (ch == "}") { _next(); return(_local1); } if (ch != ",") { break; } _next(); _white(); } } _error("Bad object"); }; var _number = function () { var _local1 = ""; var _local2; if (ch == "-") { _local1 = "-"; _next(); } while ((ch >= "0") && (ch <= "9")) { _local1 = _local1 + ch; _next(); } if (ch == ".") { _local1 = _local1 + "."; while ((_next() && (ch >= "0")) && (ch <= "9")) { _local1 = _local1 + ch; } } _local2 = 1 * _local1; if (!isFinite(_local2)) { _error("Bad number"); } else { return(_local2); } }; var _word = function () { switch (ch) { case "t" : if (((_next() == "r") && (_next() == "u")) && (_next() == "e")) { _next(); return(true); } break; case "f" : if ((((_next() == "a") && (_next() == "l")) && (_next() == "s")) && (_next() == "e")) { _next(); return(false); } break; case "n" : if (!(((_next() == "u") && (_next() == "l")) && (_next() == "l"))) { break; } _next(); return(null); } _error("Syntax error"); }; _value = function () { _white(); switch (ch) { case "{" : return(_object()); case "[" : return(_array()); case "\"" : return(_string()); case "-" : return(_number()); } return((((ch >= "0") && (ch <= "9")) ? (_number()) : (_word()))); }; return(_value()); } static function getType(v) { if (v instanceof Array) { return("array"); } return(typeof(v)); } static function decode_chunk() { if ((!cache.busy) && (!cache.complete)) { cache.busy = true; var _local1 = 0; while (_local1 < decode_chunks) { chunk_decoder(); if (cache.complete) { break; } _local1++; } trace(Math.round((cache.pos / cache.arg.length) * 100) + "% decoded"); cache.busy = false; } if (cache.complete) { var _local2 = new Date(); busy = false; clearInterval(interval); cache.callback(cache.root, _local2.getTime() - start); cache.arg = ""; } } static function encode_chunk() { if ((!cache.busy) && (!cache.complete)) { cache.busy = true; var _local1 = 0; while (_local1 < encode_chunks) { chunk_encoder(); if (cache.complete) { break; } _local1++; } cache.busy = false; } if (cache.complete) { var _local3 = new Date(); var _local2 = _local3.getTime(); busy = false; clearInterval(interval); cache.callback(cache.encoded, _local2 - start); cache.encoded = ""; } } static function chunk_decoder() { function _object() { var _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (!com.newgrounds.encoders.json.JSON.cache.mode) { com.newgrounds.encoders.json.JSON.cache.mode = "object"; com.newgrounds.encoders.json.JSON.cache.pos++; _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (_local1 != "\"") { throw "Malformed object key in encoded string. Keys must be wrapped in quotes (\"\")"; } com.newgrounds.encoders.json.JSON.cache.scratch = ""; _setTargetValue({}); } else if (_local1 == ",") { com.newgrounds.encoders.json.JSON.cache.pos++; _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (_local1 != "\"") { throw "Malformed object key in encoded string. Keys must be wrapped in quotes (\"\")"; } com.newgrounds.encoders.json.JSON.cache.scratch = ""; } else if (_local1 == "}") { _useParent(); } else if (_local1 == "\"") { com.newgrounds.encoders.json.JSON.cache.pos++; _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (_local1 != ":") { throw "Malformed object notation. Object keys and values must be separated by colons(:)"; } _addParent(com.newgrounds.encoders.json.JSON.cache.scratch); com.newgrounds.encoders.json.JSON.cache.mode = null; } else { if (_local1 == "\\") { com.newgrounds.encoders.json.JSON.cache.pos++; _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); } com.newgrounds.encoders.json.JSON.cache.scratch = com.newgrounds.encoders.json.JSON.cache.scratch + _local1; } com.newgrounds.encoders.json.JSON.cache.pos++; } function _array() { var _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (!com.newgrounds.encoders.json.JSON.cache.mode) { com.newgrounds.encoders.json.JSON.cache.mode = "array"; com.newgrounds.encoders.json.JSON.cache.pos++; _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); _setTargetValue([]); if (_local1 != "]") { _addArrayKey(); } else { _useParent(); } return(undefined); } if (_local1 == ",") { _addArrayKey(); } else if (_local1 == "]") { _useParent(); } com.newgrounds.encoders.json.JSON.cache.pos++; } function _boolean() { var _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (_local1 == "t") { _setTargetValue(true); com.newgrounds.encoders.json.JSON.cache.pos = com.newgrounds.encoders.json.JSON.cache.pos + 3; } else if (_local1 == "f") { _setTargetValue(false); com.newgrounds.encoders.json.JSON.cache.pos = com.newgrounds.encoders.json.JSON.cache.pos + 4; } else { throw "Bool values must be true or false"; } _useParent(); } function _null() { var _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (_local1 == "n") { _setTargetValue(null); com.newgrounds.encoders.json.JSON.cache.pos = com.newgrounds.encoders.json.JSON.cache.pos + 2; } else { throw "Null values must be null"; } _useParent(); } function _string() { var _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); if (!com.newgrounds.encoders.json.JSON.cache.mode) { if (_local1 != "\"") { throw "Strings must be wrapped in quotes (\"\")"; } com.newgrounds.encoders.json.JSON.cache.scratch = ""; com.newgrounds.encoders.json.JSON.cache.mode = "string"; } else if (_local1 == "\"") { _setTargetValue(com.newgrounds.encoders.json.JSON.cache.scratch); _useParent(); } else { if (_local1 == "\\") { com.newgrounds.encoders.json.JSON.cache.pos++; _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); switch (_local1) { case "n" : _local1 = newline; break; case "r" : _local1 = newline; break; case "t" : _local1 = "\t"; break; case "u" : _local1 = "\\" + _local1; } } com.newgrounds.encoders.json.JSON.cache.scratch = com.newgrounds.encoders.json.JSON.cache.scratch + _local1; } com.newgrounds.encoders.json.JSON.cache.pos++; } function _number() { var _local1 = com.newgrounds.encoders.json.JSON.cache.arg.charAt(com.newgrounds.encoders.json.JSON.cache.pos); var _local2 = "01234567890.-"; if (!com.newgrounds.encoders.json.JSON.cache.mode) { com.newgrounds.encoders.json.JSON.cache.mode = "number"; com.newgrounds.encoders.json.JSON.cache.scratch = ""; } if (_local2.indexOf(_local1) < 0) { _setTargetValue(Number(com.newgrounds.encoders.json.JSON.cache.scratch)); _useParent(); } else { com.newgrounds.encoders.json.JSON.cache.scratch = com.newgrounds.encoders.json.JSON.cache.scratch + _local1; com.newgrounds.encoders.json.JSON.cache.pos++; } } function _setTargetValue(newval) { var _local2 = _getParent().obj; var _local1 = com.newgrounds.encoders.json.JSON.cache.parents[com.newgrounds.encoders.json.JSON.cache.parents.length - 1]; _local2[_local1] = newval; } function _useParent() { com.newgrounds.encoders.json.JSON.cache.mode = com.newgrounds.encoders.json.JSON.getType(_getParent().obj); com.newgrounds.encoders.json.JSON.cache.parents.pop(); } function _getParent() { var _local2 = com.newgrounds.encoders.json.JSON.cache; var _local1 = 0; while (_local1 < (com.newgrounds.encoders.json.JSON.cache.parents.length - 1)) { _local2 = _local2[com.newgrounds.encoders.json.JSON.cache.parents[_local1]]; _local1++; } return({obj:_local2, name:com.newgrounds.encoders.json.JSON.cache.parents[_local1]}); } function _getCurrent() { var _local2 = com.newgrounds.encoders.json.JSON.cache; var _local1 = 0; while (_local1 < com.newgrounds.encoders.json.JSON.cache.parents.length) { _local2 = _local2[com.newgrounds.encoders.json.JSON.cache.parents[_local1]]; _local1++; } return({obj:_local2, name:com.newgrounds.encoders.json.JSON.cache.parents[_local1]}); } function _addParent(child) { com.newgrounds.encoders.json.JSON.cache.parents.push(child); } function _addArrayKey() { var _local1 = _getCurrent().obj.length; com.newgrounds.encoders.json.JSON.cache.parents.push(_local1); com.newgrounds.encoders.json.JSON.cache.mode = null; } if (cache.pos >= cache.arg.length) { cache.complete = true; return(undefined); } if (cache.mode) { eval ("_" + cache.mode)(); } else { var char = cache.arg.charAt(cache.pos); switch (char) { case "{" : _object(); return; case "[" : _array(); return; case "\"" : _string(); return; case "n" : _null(); return; case "t" : _boolean(); return; case "f" : _boolean(); return; default : _number(); } } } static function chunk_encoder() { if (cache.complete) { return(undefined); } var _local2 = getType(cache.target); switch (_local2) { case "number" : cache.encoded = cache.encoded + cache.target; getParent(); break; case "string" : cache.encoded = cache.encoded + (("\"" + cache.target.split("\"").join("\\\"")) + "\""); getParent(); break; case "boolean" : cache.encoded = cache.encoded + ((cache.target == true) ? "true" : "false"); getParent(); break; case "null" : cache.encoded = cache.encoded + "null"; getParent(); break; case "array" : if (cache.target.length < 1) { cache.encoded = cache.encoded + "]"; getParent(); } else { cache.parents.push(cache.target); cache.target = cache.target[0]; if (getType(cache.target) == "array") { cache.encoded = cache.encoded + "["; } else if (getType(cache.target) == "object") { cache.encoded = cache.encoded + "{"; } } break; case "object" : for (var _local1 in cache.target) { break; } if (_local1 === undefined) { cache.encoded = cache.encoded + "}"; getParent(); } else { cache.parents.push(cache.target); cache.target = cache.target[_local1]; cache.encoded = cache.encoded + (("\"" + _local1.split("\"").join("\\\"")) + "\":"); if (getType(cache.target) == "array") { cache.encoded = cache.encoded + "["; } else if (getType(cache.target) == "object") { cache.encoded = cache.encoded + "{"; } } break; default : cache.encoded = cache.encoded + "null"; getParent(); } } static function getParent() { if (cache.parents.length > 0) { var _local1 = cache.parents.pop(); if (getType(_local1) == "array") { _local1.shift(); } else { for (var _local3 in _local1) { delete _local1[_local3]; break; } } if ((getType(_local1) == "object") or (getType(_local1) == "array")) { for (var _local2 in _local1) { break; } if (!(_local2 === undefined)) { cache.encoded = cache.encoded + ","; } } cache.target = _local1; } else { cache.complete = true; } } static var encode_chunks = 20000; static var decode_chunks = 20000; static var busy = false; }
Symbol 49 MovieClip [__Packages.com.newgrounds.Score] Frame 0
class com.newgrounds.Score { var _rank, _username, _score, _numericValue, _tag; function Score (rank, username, score, numericValue, tag) { (_rank = rank); (_username = username); _score = score; _numericValue = numericValue; _tag = tag; } function get numericValue() { return(_numericValue); } function get rank() { return(_rank); } function get score() { return(_score); } function get tag() { return(_tag); } function get username() { return(_username); } function toString() { return((((_rank + ".\t") + _username) + "\t") + _score); } }
Symbol 181 Button
on (release) { getURL ("http://www.newgrounds.com", "_blank"); }
Symbol 190 Button
on (release) { startMovie(); }
Symbol 192 MovieClip Frame 1
function timerHandler() { if (!loadingComplete) { var _local4 = _root.getBytesLoaded() / _root.getBytesTotal(); bar._xscale = 100 * _local4; if (_local4 == 1) { loadingComplete = true; if (AUTO_PLAY) { startMovie(); } else { gotoAndStop ("loaded"); } return(undefined); } } dt = getTimer() - time; time = time + dt; frameAccum = frameAccum + dt; var _local3 = 0; while ((frameAccum >= FRAME_TIME) && (_local3 < MAX_FRAME_SKIP)) { advanceFrame(tankLogo, true, true); advanceFrame(loadingText, false, true); advanceFrame(barGfx, false, true); if (loadingComplete) { advanceFrame(this, false, false); } (frameAccum = frameAccum - FRAME_TIME); _local3++; } updateAfterEvent(); } function advanceFrame(clip, recurse, loop) { if (!clip) { return(undefined); } clip.stop(); if (clip._currentframe == clip._totalframes) { if (loop) { clip.gotoAndStop(1); } } else { clip.nextFrame(); } if (recurse) { for (childName in clip) { if (typeof(clip[childName]) == "movieclip") { advanceFrame(clip[childName], recurse, loop); } } } } function startMovie() { clearInterval(intervalId); _root.play(); } _root.stop(); stop(); var FRAME_TIME = 33.3333333333333; var AUTO_PLAY = false; var MAX_FRAME_SKIP = 5; var loadingComplete; var intervalId; var time; var frameAccum; loadingComplete = false; intervalId = setInterval(this, "timerHandler", FRAME_TIME / 2); frameAccum = 0; time = getTimer(); timerHandler();
Symbol 192 MovieClip Frame 2
stop();
Symbol 199 MovieClip Frame 162
_parent.gotoAndPlay("menu");
Symbol 220 MovieClip Frame 75
stop();
Instance of Symbol 219 MovieClip in Symbol 220 MovieClip Frame 75
onClipEvent (load) { this._alpha = 80; this.onPress = function () { _parent._parent.gotoAndPlay("story1"); }; this.onRollOver = function () { this._alpha = 100; }; this.onRollOut = function () { this._alpha = 80; }; }
Symbol 228 MovieClip Frame 13
stop();
Symbol 239 MovieClip Frame 3694
_parent.music2.gotoAndPlay(2); stop();
Symbol 242 MovieClip Frame 1
stop();
Symbol 242 MovieClip Frame 2322
_parent.delay.gotoAndPlay(2); stop();
Symbol 244 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 2183
_parent.music3.gotoAndPlay(2); stop();
Symbol 247 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 2756
_parent.music1.gotoAndPlay(1); stop();
Symbol 262 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 2
stop();
Symbol 262 MovieClip Frame 3
stop();
Symbol 262 MovieClip Frame 4
stop();
Symbol 262 MovieClip Frame 5
stop();
Symbol 262 MovieClip Frame 6
stop();
Symbol 262 MovieClip Frame 7
stop();
Symbol 297 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 43
_global.applegot = "yes"; _global.gettingitem = 0; _parent.apple._alpha = 100; stop();
Symbol 361 MovieClip Frame 1
stop();
Symbol 361 MovieClip Frame 2
play();
Symbol 361 MovieClip Frame 60
_global.electrodesout = 1; stop();
Symbol 361 MovieClip Frame 61
stop();
Symbol 501 MovieClip Frame 1
stop();
Symbol 510 MovieClip Frame 1
_global.timer = 0;
Symbol 510 MovieClip Frame 2
_global.timer = 0;
Symbol 510 MovieClip Frame 3
_global.timer = 0;
Symbol 510 MovieClip Frame 4
_global.timer = 0;
Symbol 510 MovieClip Frame 5
_global.timer = 0;
Symbol 510 MovieClip Frame 6
_global.timer = 0;
Symbol 510 MovieClip Frame 7
_global.timer = 0;
Symbol 510 MovieClip Frame 8
_global.timer = 0;
Symbol 510 MovieClip Frame 9
_global.timer = 0;
Symbol 510 MovieClip Frame 10
_global.timer = 0;
Symbol 510 MovieClip Frame 11
_global.timer = 0;
Symbol 510 MovieClip Frame 12
_global.timer = 0;
Symbol 510 MovieClip Frame 13
_global.timer = 0;
Symbol 510 MovieClip Frame 14
_global.timer = 0;
Symbol 510 MovieClip Frame 15
_global.timer = 0;
Symbol 510 MovieClip Frame 16
_global.timer = 0;
Symbol 510 MovieClip Frame 17
_global.timer = 0;
Symbol 510 MovieClip Frame 18
_global.timer = 0;
Symbol 510 MovieClip Frame 19
_global.timer = 0;
Symbol 510 MovieClip Frame 20
_global.timer = 0;
Symbol 510 MovieClip Frame 21
_global.timer = 0;
Symbol 510 MovieClip Frame 22
_global.timer = 1;
Symbol 510 MovieClip Frame 23
_global.timer = 1;
Symbol 510 MovieClip Frame 24
_global.timer = 1;
Symbol 510 MovieClip Frame 25
_global.timer = 1;
Symbol 510 MovieClip Frame 26
_global.timer = 1;
Symbol 510 MovieClip Frame 27
_global.timer = 1;
Symbol 510 MovieClip Frame 28
_global.timer = 1;
Symbol 510 MovieClip Frame 29
_global.timer = 1;
Symbol 510 MovieClip Frame 30
_global.timer = 1;
Symbol 510 MovieClip Frame 31
_global.timer = 0;
Symbol 510 MovieClip Frame 32
_global.timer = 0;
Symbol 510 MovieClip Frame 33
_global.timer = 0;
Symbol 510 MovieClip Frame 34
_global.timer = 1;
Symbol 510 MovieClip Frame 35
_global.timer = 1;
Symbol 510 MovieClip Frame 36
_global.timer = 1;
Symbol 510 MovieClip Frame 37
_global.timer = 1;
Symbol 510 MovieClip Frame 38
_global.timer = 1;
Symbol 510 MovieClip Frame 39
_global.timer = 1;
Symbol 510 MovieClip Frame 40
_global.timer = 1;
Symbol 510 MovieClip Frame 41
_global.timer = 1;
Symbol 510 MovieClip Frame 42
_global.timer = 1;
Symbol 510 MovieClip Frame 43
_global.timer = 0;
Symbol 510 MovieClip Frame 44
_global.timer = 0;
Symbol 510 MovieClip Frame 45
_global.timer = 0;
Symbol 510 MovieClip Frame 46
_global.timer = 0;
Symbol 510 MovieClip Frame 47
_global.timer = 0;
Symbol 510 MovieClip Frame 48
_global.timer = 0;
Symbol 510 MovieClip Frame 49
_global.timer = 0;
Symbol 510 MovieClip Frame 50
_global.timer = 0;
Symbol 510 MovieClip Frame 51
_global.timer = 0;
Symbol 510 MovieClip Frame 52
_global.timer = 0;
Symbol 510 MovieClip Frame 53
_global.timer = 0;
Symbol 510 MovieClip Frame 54
_global.timer = 0;
Symbol 510 MovieClip Frame 55
_global.timer = 0;
Symbol 510 MovieClip Frame 56
_global.timer = 0;
Symbol 510 MovieClip Frame 57
_global.timer = 0;
Symbol 510 MovieClip Frame 58
_global.timer = 0;
Symbol 510 MovieClip Frame 59
_global.timer = 0;
Symbol 510 MovieClip Frame 60
_global.timer = 0;
Symbol 510 MovieClip Frame 61
_global.timer = 0;
Symbol 510 MovieClip Frame 62
_global.timer = 0;
Symbol 510 MovieClip Frame 63
_global.timer = 0;
Symbol 516 MovieClip Frame 1
stop();
Symbol 516 MovieClip Frame 2
stop();
Symbol 534 MovieClip Frame 1
stop();
Symbol 534 MovieClip Frame 2
stop();
Symbol 542 MovieClip Frame 1
stop();
Instance of Symbol 541 MovieClip in Symbol 542 MovieClip Frame 2
onClipEvent (load) { this.onPress = function () { }; }
Symbol 542 MovieClip Frame 40
_global.doorsopen = 1; stop();
Symbol 543 MovieClip Frame 1
stop();
Instance of Symbol 541 MovieClip in Symbol 543 MovieClip Frame 2
onClipEvent (load) { this.onPress = function () { }; }
Symbol 543 MovieClip Frame 40
stop();
Symbol 614 MovieClip [MedalPopup] Frame 1
function onMedalUnlocked(event) { if (event.__get__success()) { _medalQueue.push(event.__get__data()); showNextUnlock(); } } function showNextUnlock() { if (_unlockedMedal) { return(undefined); } if (!_medalQueue.length) { gotoAndStop ("hidden"); onEnterFrame = null; return(undefined); } _unlockedMedal = com.newgrounds.Medal(_medalQueue.shift()); gotoAndPlay ("medalUnlocked"); } gotoAndStop ("hidden"); com.newgrounds.API.addEventListener(com.newgrounds.APIEvent.MEDAL_UNLOCKED, onMedalUnlocked); var alwaysOnTop; _x = Number(_x); _y = Number(_y); var _unlockedMedal; var _medalQueue = []; var _alwaysOnTop = true; if (alwaysOnTop) { _alwaysOnTop = alwaysOnTop == "true"; }
Symbol 614 MovieClip [MedalPopup] Frame 15
function medalPopupEnterFrame() { if (_alwaysOnTop) { var _local1 = getNextHighestDepth(); swapDepths(_local1); } if (_medalScrollRect) { _medalScrollRect.offset(2, 0); medalNameClip.scrollRect = _medalScrollRect; if (_medalScrollRect.left >= (medalNameClip.textField.textWidth + 10)) { _medalScrollRect = null; play(); } } } var _medalScrollRect; if (_unlockedMedal) { if (medalNameClip && (medalNameClip.textField)) { medalNameClip.textField.text = _unlockedMedal.name; com.newgrounds.API.setFont(medalNameClip.textField, "Pakenham"); } if (medalPointsText) { medalPointsText.text = _unlockedMedal.value.toString(); } if (medalNameClip.textField.textWidth > medalNameClip._width) { _medalScrollRect = new flash.geom.Rectangle(-medalNameClip._width, 0, medalNameClip._width, medalNameClip._height); medalNameClip.textField._width = 1000; medalNameClip.scrollRect = _medalScrollRect; } onEnterFrame = medalPopupEnterFrame; }
Symbol 614 MovieClip [MedalPopup] Frame 23
if (_unlockedMedal && (medalIcon)) { _unlockedMedal.attachIcon(medalIcon); }
Symbol 614 MovieClip [MedalPopup] Frame 84
if (_medalScrollRect) { stop(); }
Symbol 614 MovieClip [MedalPopup] Frame 105
stop(); _unlockedMedal = null; showNextUnlock();

Library Items

Symbol 1 Sound [clickclack]Used by:33
Symbol 2 Sound [click]
Symbol 3 Sound [candy5]
Symbol 4 Sound [candy4]
Symbol 5 Sound [candy3]
Symbol 6 Sound [candy2]
Symbol 7 Sound [candy1]
Symbol 8 Sound [bad]
Symbol 9 Sound [page]
Symbol 10 GraphicUsed by:17
Symbol 11 GraphicUsed by:12
Symbol 12 MovieClipUses:11Used by:13
Symbol 13 MovieClipUses:12Used by:17
Symbol 14 GraphicUsed by:15 76 90 614
Symbol 15 MovieClipUses:14Used by:17 89 90 614
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClipUses:10 13 15 16Used by:30
Symbol 18 GraphicUsed by:29
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClipUses:19Used by:21
Symbol 21 MovieClipUses:20Used by:29
Symbol 22 GraphicUsed by:24
Symbol 23 GraphicUsed by:24
Symbol 24 MovieClipUses:22 23Used by:29 89
Symbol 25 GraphicUsed by:29
Symbol 26 SoundUsed by:29
Symbol 27 GraphicUsed by:29
Symbol 28 SoundUsed by:29
Symbol 29 MovieClipUses:18 21 24 25 26 27 28Used by:30
Symbol 30 MovieClip [Preloader]Uses:17 29Used by:91
Symbol 32 BitmapUsed by:33
Symbol 33 GraphicUses:1 32Used by:34
Symbol 34 MovieClip [Newgrounds API Classes]Uses:33Used by:91
Symbol 59 Bitmap
Symbol 60 GraphicUsed by:90
Symbol 61 GraphicUsed by:90
Symbol 62 GraphicUsed by:90
Symbol 63 GraphicUsed by:90
Symbol 64 BitmapUsed by:66
Symbol 65 BitmapUsed by:66
Symbol 66 GraphicUses:64 65Used by:77
Symbol 67 BitmapUsed by:68
Symbol 68 GraphicUses:67Used by:77
Symbol 69 BitmapUsed by:70
Symbol 70 GraphicUses:69Used by:75 77
Symbol 71 BitmapUsed by:72
Symbol 72 GraphicUses:71Used by:75
Symbol 73 BitmapUsed by:74
Symbol 74 GraphicUses:73Used by:75
Symbol 75 MovieClipUses:70 72 74Used by:77
Symbol 76 ButtonUses:14Used by:77
Symbol 77 ButtonUses:66 68 75 70 76Used by:90
Symbol 78 MovieClipUsed by:90 614
Symbol 79 GraphicUsed by:89
Symbol 80 GraphicUsed by:89
Symbol 81 GraphicUsed by:89
Symbol 82 GraphicUsed by:83
Symbol 83 MovieClipUses:82Used by:89
Symbol 84 GraphicUsed by:88
Symbol 85 BitmapUsed by:86
Symbol 86 GraphicUses:85Used by:87
Symbol 87 MovieClipUses:86Used by:88
Symbol 88 MovieClipUses:84 87Used by:89
Symbol 89 MovieClipUses:79 15 80 81 83 88 24Used by:90
Symbol 90 MovieClip [FlashAd]Uses:60 61 62 63 77 15 78 89 14Used by:91
Symbol 91 MovieClip [APIConnector]Uses:34 90 30Used by:Timeline
Symbol 92 GraphicUsed by:93 194
Symbol 93 MovieClipUses:92Used by:Timeline
Symbol 94 FontUsed by:95 98 193 305 467 468 469 470 471 472 473 477 478 479 480 481 482 486 487 488 489
Symbol 95 TextUses:94Used by:97
Symbol 96 SoundUsed by:97
Symbol 97 MovieClipUses:95 96Used by:Timeline
Symbol 98 TextUses:94Used by:100
Symbol 99 GraphicUsed by:100
Symbol 100 MovieClipUses:98 99Used by:Timeline
Symbol 101 GraphicUsed by:102
Symbol 102 MovieClipUses:101Used by:103
Symbol 103 MovieClipUses:102Used by:Timeline
Symbol 104 FontUsed by:105
Symbol 105 TextUses:104Used by:106
Symbol 106 MovieClipUses:105Used by:Timeline
Symbol 107 GraphicUsed by:130 131
Symbol 108 BitmapUsed by:109 110
Symbol 109 GraphicUses:108Used by:111
Symbol 110 GraphicUses:108Used by:111
Symbol 111 MovieClipUses:109 110Used by:131
Symbol 112 GraphicUsed by:113
Symbol 113 MovieClipUses:112Used by:130
Symbol 114 BitmapUsed by:115
Symbol 115 GraphicUses:114Used by:119
Symbol 116 BitmapUsed by:117
Symbol 117 GraphicUses:116Used by:118
Symbol 118 MovieClipUses:117Used by:119
Symbol 119 MovieClipUses:115 118Used by:130
Symbol 120 GraphicUsed by:124
Symbol 121 BitmapUsed by:122
Symbol 122 GraphicUses:121Used by:123
Symbol 123 MovieClipUses:122Used by:124
Symbol 124 MovieClipUses:120 123Used by:130
Symbol 125 FontUsed by:126 132 215 216 236 237 240 243 245 248 454 455 457 491 492 493 494 502 546 547 548 549 550 551 552 553 554 555 561 562 563 564 565 566 567 568 569 570 571 572
Symbol 126 TextUses:125Used by:127
Symbol 127 MovieClipUses:126Used by:130
Symbol 128 BitmapUsed by:129
Symbol 129 GraphicUses:128Used by:130
Symbol 130 MovieClipUses:107 113 119 124 127 129Used by:131
Symbol 131 MovieClipUses:107 111 130Used by:Timeline
Symbol 132 TextUses:125Used by:135
Symbol 133 SoundUsed by:135
Symbol 134 SoundUsed by:135
Symbol 135 MovieClipUses:132 133 134Used by:Timeline
Symbol 42 MovieClip [__Packages.com.newgrounds.APIConnection]
Symbol 36 MovieClip [__Packages.com.newgrounds.EventDispatcher]
Symbol 35 MovieClip [__Packages.com.newgrounds.Event]
Symbol 37 MovieClip [__Packages.com.newgrounds.APIEventDispatcher]
Symbol 40 MovieClip [__Packages.com.newgrounds.encoders.BaseN]
Symbol 46 MovieClip [__Packages.com.newgrounds.APICommand]
Symbol 41 MovieClip [__Packages.com.newgrounds.Bridge]
Symbol 38 MovieClip [__Packages.com.newgrounds.APIEvent]
Symbol 57 MovieClip [__Packages.com.newgrounds.API]
Symbol 54 MovieClip [__Packages.com.newgrounds.encoders.ImageScanner]
Symbol 55 MovieClip [__Packages.com.newgrounds.SaveFile]
Symbol 53 MovieClip [__Packages.com.newgrounds.SaveGroup]
Symbol 51 MovieClip [__Packages.com.newgrounds.SaveKey]
Symbol 52 MovieClip [__Packages.com.newgrounds.SaveRating]
Symbol 47 MovieClip [__Packages.com.newgrounds.BitmapLoader]
Symbol 56 MovieClip [__Packages.com.newgrounds.SaveQuery]
Symbol 48 MovieClip [__Packages.com.newgrounds.Medal]
Symbol 50 MovieClip [__Packages.com.newgrounds.ScoreBoard]
Symbol 39 MovieClip [__Packages.com.newgrounds.Logger]
Symbol 58 MovieClip [__Packages.com.newgrounds.components.FlashAdBase]
Symbol 31 MovieClip [__Packages.com.newgrounds.shims.APIShim]
Symbol 43 MovieClip [__Packages.com.newgrounds.crypto.MD5]
Symbol 44 MovieClip [__Packages.com.newgrounds.crypto.RC4]
Symbol 45 MovieClip [__Packages.com.newgrounds.encoders.json.JSON]
Symbol 49 MovieClip [__Packages.com.newgrounds.Score]
Symbol 136 GraphicUsed by:Timeline
Symbol 137 FontUsed by:138 140 582 615 617 619 621 623
Symbol 138 TextUses:137Used by:139
Symbol 139 MovieClipUses:138Used by:Timeline
Symbol 140 TextUses:137Used by:141
Symbol 141 MovieClipUses:140Used by:Timeline
Symbol 142 GraphicUsed by:Timeline
Symbol 143 GraphicUsed by:192
Symbol 144 GraphicUsed by:145 181
Symbol 145 MovieClipUses:144Used by:192
Symbol 146 GraphicUsed by:192
Symbol 147 GraphicUsed by:192
Symbol 148 GraphicUsed by:192
Symbol 149 GraphicUsed by:150
Symbol 150 MovieClipUses:149Used by:151
Symbol 151 MovieClipUses:150Used by:180
Symbol 152 GraphicUsed by:180
Symbol 153 GraphicUsed by:154 155
Symbol 154 MovieClipUses:153Used by:180
Symbol 155 MovieClipUses:153Used by:180
Symbol 156 GraphicUsed by:157
Symbol 157 MovieClipUses:156Used by:178
Symbol 158 GraphicUsed by:162
Symbol 159 GraphicUsed by:162
Symbol 160 GraphicUsed by:161
Symbol 161 MovieClipUses:160Used by:162 165
Symbol 162 MovieClipUses:158 159 161Used by:176
Symbol 163 GraphicUsed by:165
Symbol 164 GraphicUsed by:165
Symbol 165 MovieClipUses:163 164 161Used by:176
Symbol 166 GraphicUsed by:169
Symbol 167 GraphicUsed by:169 172
Symbol 168 GraphicUsed by:169
Symbol 169 MovieClipUses:166 167 168Used by:173
Symbol 170 GraphicUsed by:172
Symbol 171 GraphicUsed by:172
Symbol 172 MovieClipUses:170 167 171Used by:173
Symbol 173 MovieClipUses:169 172Used by:176
Symbol 174 GraphicUsed by:175
Symbol 175 MovieClipUses:174Used by:176
Symbol 176 MovieClipUses:162 165 173 175Used by:177
Symbol 177 MovieClipUses:176Used by:178
Symbol 178 MovieClipUses:157 177Used by:180
Symbol 179 GraphicUsed by:180
Symbol 180 MovieClipUses:151 152 154 155 178 179Used by:192
Symbol 181 ButtonUses:144Used by:192
Symbol 182 GraphicUsed by:184
Symbol 183 GraphicUsed by:184
Symbol 184 MovieClipUses:182 183Used by:192
Symbol 185 GraphicUsed by:190
Symbol 186 GraphicUsed by:190
Symbol 187 GraphicUsed by:190
Symbol 188 GraphicUsed by:190
Symbol 189 GraphicUsed by:190
Symbol 190 ButtonUses:185 186 187 188 189Used by:192
Symbol 191 GraphicUsed by:192
Symbol 192 MovieClipUses:143 145 146 147 148 180 181 184 190 191Used by:Timeline
Symbol 193 TextUses:94Used by:Timeline
Symbol 194 MovieClipUses:92Used by:Timeline
Symbol 195 GraphicUsed by:Timeline
Symbol 196 BitmapUsed by:197
Symbol 197 GraphicUses:196Used by:198
Symbol 198 MovieClipUses:197Used by:199
Symbol 199 MovieClipUses:198Used by:Timeline
Symbol 200 BitmapUsed by:201
Symbol 201 GraphicUses:200Used by:208
Symbol 202 BitmapUsed by:203
Symbol 203 GraphicUses:202Used by:204
Symbol 204 MovieClipUses:203Used by:208
Symbol 205 BitmapUsed by:206
Symbol 206 GraphicUses:205Used by:207
Symbol 207 MovieClipUses:206Used by:208
Symbol 208 MovieClipUses:201 204 207Used by:211
Symbol 209 GraphicUsed by:210
Symbol 210 MovieClipUses:209Used by:211
Symbol 211 MovieClipUses:208 210Used by:Timeline
Symbol 212 BitmapUsed by:213
Symbol 213 GraphicUses:212Used by:214
Symbol 214 MovieClipUses:213Used by:220
Symbol 215 TextUses:125Used by:220
Symbol 216 TextUses:125Used by:220
Symbol 217 BitmapUsed by:218
Symbol 218 GraphicUses:217Used by:219
Symbol 219 MovieClipUses:218Used by:220
Symbol 220 MovieClipUses:214 215 216 219Used by:Timeline
Symbol 221 GraphicUsed by:Timeline
Symbol 222 GraphicUsed by:228
Symbol 223 GraphicUsed by:228
Symbol 224 GraphicUsed by:228
Symbol 225 GraphicUsed by:228
Symbol 226 GraphicUsed by:228
Symbol 227 GraphicUsed by:228
Symbol 228 MovieClipUses:222 223 224 225 226 227Used by:Timeline
Symbol 229 BitmapUsed by:230
Symbol 230 GraphicUses:229Used by:Timeline
Symbol 231 BitmapUsed by:232
Symbol 232 GraphicUses:231Used by:233
Symbol 233 MovieClipUses:232Used by:Timeline
Symbol 234 BitmapUsed by:235
Symbol 235 GraphicUses:234Used by:Timeline
Symbol 236 EditableTextUses:125Used by:Timeline
Symbol 237 TextUses:125Used by:239
Symbol 238 SoundUsed by:239
Symbol 239 MovieClipUses:237 238Used by:Timeline
Symbol 240 TextUses:125Used by:242
Symbol 241 SoundUsed by:242
Symbol 242 MovieClipUses:240 241Used by:Timeline
Symbol 243 TextUses:125Used by:244
Symbol 244 MovieClipUses:243Used by:Timeline
Symbol 245 TextUses:125Used by:247
Symbol 246 SoundUsed by:247
Symbol 247 MovieClipUses:245 246Used by:Timeline
Symbol 248 TextUses:125Used by:249
Symbol 249 MovieClipUses:248Used by:Timeline
Symbol 250 BitmapUsed by:251
Symbol 251 GraphicUses:250Used by:262
Symbol 252 BitmapUsed by:253
Symbol 253 GraphicUses:252Used by:262
Symbol 254 BitmapUsed by:255
Symbol 255 GraphicUses:254Used by:262 296
Symbol 256 BitmapUsed by:257
Symbol 257 GraphicUses:256Used by:262
Symbol 258 BitmapUsed by:259
Symbol 259 GraphicUses:258Used by:262
Symbol 260 BitmapUsed by:261
Symbol 261 GraphicUses:260Used by:262
Symbol 262 MovieClipUses:251 253 255 257 259 261Used by:Timeline
Symbol 263 GraphicUsed by:Timeline
Symbol 264 BitmapUsed by:265
Symbol 265 GraphicUses:264Used by:266
Symbol 266 MovieClipUses:265Used by:Timeline
Symbol 267 GraphicUsed by:Timeline
Symbol 268 GraphicUsed by:269
Symbol 269 MovieClipUses:268Used by:Timeline
Symbol 270 BitmapUsed by:271
Symbol 271 GraphicUses:270Used by:Timeline
Symbol 272 BitmapUsed by:273
Symbol 273 GraphicUses:272Used by:274
Symbol 274 MovieClipUses:273Used by:Timeline
Symbol 275 GraphicUsed by:276
Symbol 276 MovieClipUses:275Used by:Timeline
Symbol 277 GraphicUsed by:278
Symbol 278 MovieClipUses:277Used by:Timeline
Symbol 279 GraphicUsed by:280
Symbol 280 MovieClipUses:279Used by:Timeline
Symbol 281 BitmapUsed by:282
Symbol 282 GraphicUses:281Used by:Timeline
Symbol 283 GraphicUsed by:284
Symbol 284 MovieClipUses:283Used by:Timeline
Symbol 285 BitmapUsed by:286
Symbol 286 GraphicUses:285Used by:287
Symbol 287 MovieClipUses:286Used by:Timeline
Symbol 288 GraphicUsed by:289
Symbol 289 MovieClipUses:288Used by:Timeline
Symbol 290 GraphicUsed by:291
Symbol 291 MovieClipUses:290Used by:Timeline
Symbol 292 BitmapUsed by:293
Symbol 293 GraphicUses:292Used by:Timeline
Symbol 294 GraphicUsed by:295
Symbol 295 MovieClipUses:294Used by:Timeline
Symbol 296 MovieClipUses:255Used by:297
Symbol 297 MovieClipUses:296Used by:Timeline
Symbol 298 GraphicUsed by:299
Symbol 299 MovieClipUses:298Used by:Timeline
Symbol 300 GraphicUsed by:301
Symbol 301 MovieClipUses:300Used by:Timeline
Symbol 302 BitmapUsed by:303
Symbol 303 GraphicUses:302Used by:Timeline
Symbol 304 GraphicUsed by:361
Symbol 305 TextUses:94Used by:361
Symbol 306 BitmapUsed by:307
Symbol 307 GraphicUses:306Used by:308
Symbol 308 MovieClipUses:307Used by:361
Symbol 309 GraphicUsed by:310
Symbol 310 MovieClipUses:309Used by:361
Symbol 311 BitmapUsed by:312
Symbol 312 GraphicUses:311Used by:361
Symbol 313 SoundUsed by:360
Symbol 314 GraphicUsed by:360
Symbol 315 GraphicUsed by:360
Symbol 316 GraphicUsed by:360
Symbol 317 GraphicUsed by:360
Symbol 318 GraphicUsed by:360
Symbol 319 GraphicUsed by:360
Symbol 320 GraphicUsed by:360
Symbol 321 GraphicUsed by:360
Symbol 322 GraphicUsed by:360
Symbol 323 GraphicUsed by:360
Symbol 324 GraphicUsed by:360
Symbol 325 GraphicUsed by:360
Symbol 326 GraphicUsed by:360
Symbol 327 GraphicUsed by:360
Symbol 328 GraphicUsed by:360
Symbol 329 GraphicUsed by:360
Symbol 330 GraphicUsed by:360
Symbol 331 GraphicUsed by:360
Symbol 332 GraphicUsed by:360
Symbol 333 GraphicUsed by:360
Symbol 334 GraphicUsed by:360
Symbol 335 GraphicUsed by:360
Symbol 336 GraphicUsed by:360
Symbol 337 GraphicUsed by:360
Symbol 338 GraphicUsed by:360
Symbol 339 GraphicUsed by:360
Symbol 340 GraphicUsed by:360
Symbol 341 GraphicUsed by:360
Symbol 342 GraphicUsed by:360
Symbol 343 GraphicUsed by:360
Symbol 344 GraphicUsed by:360
Symbol 345 GraphicUsed by:360
Symbol 346 GraphicUsed by:360
Symbol 347 GraphicUsed by:360
Symbol 348 GraphicUsed by:360
Symbol 349 GraphicUsed by:360
Symbol 350 GraphicUsed by:360
Symbol 351 GraphicUsed by:360
Symbol 352 GraphicUsed by:360
Symbol 353 GraphicUsed by:360
Symbol 354 GraphicUsed by:360
Symbol 355 GraphicUsed by:360
Symbol 356 GraphicUsed by:360
Symbol 357 GraphicUsed by:360
Symbol 358 GraphicUsed by:360
Symbol 359 GraphicUsed by:360
Symbol 360 MovieClipUses:313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359Used by:361
Symbol 361 MovieClipUses:304 305 308 310 312 360Used by:Timeline
Symbol 362 GraphicUsed by:363
Symbol 363 MovieClipUses:362Used by:Timeline
Symbol 364 GraphicUsed by:365
Symbol 365 MovieClipUses:364Used by:Timeline
Symbol 366 GraphicUsed by:367
Symbol 367 MovieClipUses:366Used by:Timeline
Symbol 368 GraphicUsed by:369
Symbol 369 MovieClipUses:368Used by:Timeline
Symbol 370 BitmapUsed by:371
Symbol 371 GraphicUses:370Used by:Timeline
Symbol 372 BitmapUsed by:373
Symbol 373 GraphicUses:372Used by:374
Symbol 374 MovieClipUses:373Used by:375
Symbol 375 MovieClipUses:374Used by:Timeline
Symbol 376 GraphicUsed by:377
Symbol 377 MovieClipUses:376Used by:Timeline
Symbol 378 GraphicUsed by:379
Symbol 379 MovieClipUses:378Used by:Timeline
Symbol 380 GraphicUsed by:381
Symbol 381 MovieClipUses:380Used by:Timeline
Symbol 382 GraphicUsed by:383
Symbol 383 MovieClipUses:382Used by:Timeline
Symbol 384 GraphicUsed by:385
Symbol 385 MovieClipUses:384Used by:Timeline
Symbol 386 GraphicUsed by:387
Symbol 387 MovieClipUses:386Used by:Timeline
Symbol 388 BitmapUsed by:389
Symbol 389 GraphicUses:388Used by:Timeline
Symbol 390 GraphicUsed by:391
Symbol 391 MovieClipUses:390Used by:Timeline
Symbol 392 GraphicUsed by:393
Symbol 393 MovieClipUses:392Used by:Timeline
Symbol 394 GraphicUsed by:395
Symbol 395 MovieClipUses:394Used by:Timeline
Symbol 396 GraphicUsed by:397
Symbol 397 MovieClipUses:396Used by:Timeline
Symbol 398 GraphicUsed by:399
Symbol 399 MovieClipUses:398Used by:Timeline
Symbol 400 GraphicUsed by:401
Symbol 401 MovieClipUses:400Used by:Timeline
Symbol 402 GraphicUsed by:403
Symbol 403 MovieClipUses:402Used by:Timeline
Symbol 404 GraphicUsed by:405
Symbol 405 MovieClipUses:404Used by:Timeline
Symbol 406 GraphicUsed by:407
Symbol 407 MovieClipUses:406Used by:Timeline
Symbol 408 BitmapUsed by:409
Symbol 409 GraphicUses:408Used by:Timeline
Symbol 410 BitmapUsed by:411
Symbol 411 GraphicUses:410Used by:415 423
Symbol 412 BitmapUsed by:413
Symbol 413 GraphicUses:412Used by:414 422
Symbol 414 MovieClipUses:413Used by:423
Symbol 415 MovieClipUses:411Used by:423
Symbol 416 BitmapUsed by:417
Symbol 417 GraphicUses:416Used by:418
Symbol 418 MovieClipUses:417Used by:423
Symbol 419 BitmapUsed by:420
Symbol 420 GraphicUses:419Used by:421
Symbol 421 MovieClipUses:420Used by:423
Symbol 422 MovieClipUses:413Used by:423
Symbol 423 MovieClipUses:411 414 415 418 421 422Used by:Timeline
Symbol 424 GraphicUsed by:425
Symbol 425 MovieClipUses:424Used by:Timeline
Symbol 426 GraphicUsed by:427
Symbol 427 MovieClipUses:426Used by:Timeline
Symbol 428 GraphicUsed by:429
Symbol 429 MovieClipUses:428Used by:Timeline
Symbol 430 GraphicUsed by:431
Symbol 431 MovieClipUses:430Used by:Timeline
Symbol 432 GraphicUsed by:433
Symbol 433 MovieClipUses:432Used by:Timeline
Symbol 434 GraphicUsed by:435
Symbol 435 MovieClipUses:434Used by:Timeline
Symbol 436 GraphicUsed by:437
Symbol 437 MovieClipUses:436Used by:Timeline
Symbol 438 GraphicUsed by:439
Symbol 439 MovieClipUses:438Used by:Timeline
Symbol 440 GraphicUsed by:441
Symbol 441 MovieClipUses:440Used by:Timeline
Symbol 442 GraphicUsed by:443
Symbol 443 MovieClipUses:442Used by:Timeline
Symbol 444 GraphicUsed by:445
Symbol 445 MovieClipUses:444Used by:Timeline
Symbol 446 GraphicUsed by:447
Symbol 447 MovieClipUses:446Used by:Timeline
Symbol 448 GraphicUsed by:449
Symbol 449 MovieClipUses:448Used by:Timeline
Symbol 450 GraphicUsed by:451
Symbol 451 MovieClipUses:450Used by:Timeline
Symbol 452 BitmapUsed by:453
Symbol 453 GraphicUses:452Used by:Timeline
Symbol 454 TextUses:125Used by:Timeline
Symbol 455 TextUses:125Used by:Timeline
Symbol 456 GraphicUsed by:458
Symbol 457 EditableTextUses:125Used by:458
Symbol 458 MovieClipUses:456 457Used by:Timeline
Symbol 459 BitmapUsed by:460
Symbol 460 GraphicUses:459Used by:Timeline
Symbol 461 GraphicUsed by:462
Symbol 462 MovieClipUses:461Used by:Timeline
Symbol 463 GraphicUsed by:464
Symbol 464 MovieClipUses:463Used by:Timeline
Symbol 465 BitmapUsed by:466
Symbol 466 GraphicUses:465Used by:Timeline
Symbol 467 TextUses:94Used by:Timeline
Symbol 468 TextUses:94Used by:Timeline
Symbol 469 TextUses:94Used by:Timeline
Symbol 470 TextUses:94Used by:Timeline
Symbol 471 TextUses:94Used by:Timeline
Symbol 472 TextUses:94Used by:Timeline
Symbol 473 TextUses:94Used by:Timeline
Symbol 474 GraphicUsed by:Timeline
Symbol 475 BitmapUsed by:476 483
Symbol 476 GraphicUses:475Used by:Timeline
Symbol 477 TextUses:94Used by:Timeline
Symbol 478 TextUses:94Used by:Timeline
Symbol 479 TextUses:94Used by:Timeline
Symbol 480 TextUses:94Used by:Timeline
Symbol 481 TextUses:94Used by:Timeline
Symbol 482 TextUses:94Used by:Timeline
Symbol 483 GraphicUses:475Used by:Timeline
Symbol 484 BitmapUsed by:485
Symbol 485 GraphicUses:484Used by:Timeline
Symbol 486 TextUses:94Used by:Timeline
Symbol 487 TextUses:94Used by:Timeline
Symbol 488 TextUses:94Used by:Timeline
Symbol 489 TextUses:94Used by:Timeline
Symbol 490 GraphicUsed by:Timeline
Symbol 491 TextUses:125Used by:Timeline
Symbol 492 TextUses:125Used by:Timeline
Symbol 493 TextUses:125Used by:Timeline
Symbol 494 TextUses:125Used by:Timeline
Symbol 495 BitmapUsed by:496
Symbol 496 GraphicUses:495Used by:Timeline
Symbol 497 BitmapUsed by:498
Symbol 498 GraphicUses:497Used by:501
Symbol 499 BitmapUsed by:500
Symbol 500 GraphicUses:499Used by:501
Symbol 501 MovieClipUses:498 500Used by:Timeline
Symbol 502 TextUses:125Used by:Timeline
Symbol 503 BitmapUsed by:504
Symbol 504 GraphicUses:503Used by:Timeline
Symbol 505 BitmapUsed by:506
Symbol 506 GraphicUses:505Used by:510
Symbol 507 BitmapUsed by:508
Symbol 508 GraphicUses:507Used by:509
Symbol 509 MovieClipUses:508Used by:510
Symbol 510 MovieClipUses:506 509Used by:Timeline
Symbol 511 BitmapUsed by:512
Symbol 512 GraphicUses:511Used by:Timeline
Symbol 513 BitmapUsed by:514 515
Symbol 514 GraphicUses:513Used by:516
Symbol 515 GraphicUses:513Used by:516
Symbol 516 MovieClipUses:514 515Used by:Timeline
Symbol 517 BitmapUsed by:518
Symbol 518 GraphicUses:517Used by:519
Symbol 519 MovieClipUses:518Used by:Timeline
Symbol 520 BitmapUsed by:521
Symbol 521 GraphicUses:520Used by:522
Symbol 522 MovieClipUses:521Used by:Timeline
Symbol 523 BitmapUsed by:524
Symbol 524 GraphicUses:523Used by:525
Symbol 525 MovieClipUses:524Used by:Timeline
Symbol 526 BitmapUsed by:527
Symbol 527 GraphicUses:526Used by:528
Symbol 528 MovieClipUses:527Used by:Timeline
Symbol 529 BitmapUsed by:530
Symbol 530 GraphicUses:529Used by:531
Symbol 531 MovieClipUses:530Used by:Timeline
Symbol 532 GraphicUsed by:534
Symbol 533 GraphicUsed by:534
Symbol 534 MovieClipUses:532 533Used by:Timeline
Symbol 535 BitmapUsed by:536 537
Symbol 536 GraphicUses:535Used by:538
Symbol 537 GraphicUses:535Used by:538
Symbol 538 MovieClipUses:536 537Used by:Timeline
Symbol 539 BitmapUsed by:540
Symbol 540 GraphicUses:539Used by:541
Symbol 541 MovieClipUses:540Used by:542 543
Symbol 542 MovieClipUses:541Used by:Timeline
Symbol 543 MovieClipUses:541Used by:Timeline
Symbol 544 BitmapUsed by:545
Symbol 545 GraphicUses:544Used by:Timeline
Symbol 546 TextUses:125Used by:Timeline
Symbol 547 TextUses:125Used by:Timeline
Symbol 548 TextUses:125Used by:Timeline
Symbol 549 TextUses:125Used by:Timeline
Symbol 550 TextUses:125Used by:Timeline
Symbol 551 TextUses:125Used by:Timeline
Symbol 552 TextUses:125Used by:Timeline
Symbol 553 TextUses:125Used by:Timeline
Symbol 554 TextUses:125Used by:Timeline
Symbol 555 TextUses:125Used by:Timeline
Symbol 556 BitmapUsed by:557
Symbol 557 GraphicUses:556Used by:560
Symbol 558 BitmapUsed by:559
Symbol 559 GraphicUses:558Used by:560
Symbol 560 MovieClipUses:557 559Used by:Timeline
Symbol 561 TextUses:125Used by:Timeline
Symbol 562 TextUses:125Used by:Timeline
Symbol 563 TextUses:125Used by:Timeline
Symbol 564 TextUses:125Used by:Timeline
Symbol 565 TextUses:125Used by:Timeline
Symbol 566 TextUses:125Used by:Timeline
Symbol 567 TextUses:125Used by:Timeline
Symbol 568 TextUses:125Used by:Timeline
Symbol 569 TextUses:125Used by:Timeline
Symbol 570 TextUses:125Used by:Timeline
Symbol 571 TextUses:125Used by:Timeline
Symbol 572 TextUses:125Used by:Timeline
Symbol 573 BitmapUsed by:574
Symbol 574 GraphicUses:573Used by:Timeline
Symbol 575 BitmapUsed by:576
Symbol 576 GraphicUses:575Used by:Timeline
Symbol 577 BitmapUsed by:578
Symbol 578 GraphicUses:577Used by:Timeline
Symbol 579 BitmapUsed by:580
Symbol 580 GraphicUses:579Used by:Timeline
Symbol 581 GraphicUsed by:Timeline
Symbol 582 TextUses:137Used by:Timeline
Symbol 583 GraphicUsed by:584
Symbol 584 MovieClipUses:583Used by:614
Symbol 585 FontUsed by:586
Symbol 586 EditableTextUses:585Used by:587
Symbol 587 MovieClip [Newgrounds API Font]Uses:586Used by:614
Symbol 588 GraphicUsed by:594
Symbol 589 GraphicUsed by:590
Symbol 590 MovieClipUses:589Used by:594 614
Symbol 591 GraphicUsed by:594
Symbol 592 BitmapUsed by:593
Symbol 593 GraphicUses:592Used by:594
Symbol 594 MovieClipUses:588 590 591 593Used by:614
Symbol 595 SoundUsed by:614
Symbol 596 GraphicUsed by:614
Symbol 597 GraphicUsed by:598
Symbol 598 MovieClipUses:597Used by:614
Symbol 599 GraphicUsed by:614
Symbol 600 FontUsed by:601 605
Symbol 601 EditableTextUses:600Used by:614
Symbol 602 FontUsed by:603
Symbol 603 EditableTextUses:602Used by:604
Symbol 604 MovieClipUses:603Used by:614
Symbol 605 EditableTextUses:600Used by:606
Symbol 606 MovieClipUses:605Used by:614
Symbol 607 GraphicUsed by:608
Symbol 608 MovieClipUses:607Used by:614
Symbol 609 GraphicUsed by:610
Symbol 610 MovieClipUses:609Used by:614
Symbol 611 GraphicUsed by:612
Symbol 612 MovieClipUses:611Used by:614
Symbol 613 SoundUsed by:614
Symbol 614 MovieClip [MedalPopup]Uses:584 587 15 594 595 590 596 598 599 14 601 604 606 78 608 610 612 613Used by:Timeline
Symbol 615 TextUses:137Used by:616
Symbol 616 MovieClipUses:615Used by:Timeline
Symbol 617 TextUses:137Used by:618
Symbol 618 MovieClipUses:617Used by:Timeline
Symbol 619 TextUses:137Used by:620
Symbol 620 MovieClipUses:619Used by:Timeline
Symbol 621 TextUses:137Used by:622
Symbol 622 MovieClipUses:621Used by:Timeline
Symbol 623 TextUses:137Used by:Timeline

Instance Names

"menu hider"Frame 1Symbol 100 MovieClip
"cursor"Frame 1Symbol 103 MovieClip
"wine"Frame 9Symbol 228 MovieClip
"textbox"Frame 9Symbol 236 EditableText
"music1"Frame 9Symbol 239 MovieClip
"music2"Frame 9Symbol 242 MovieClip
"delay"Frame 9Symbol 244 MovieClip
"music3"Frame 9Symbol 247 MovieClip
"pumpkin"Frame 9Symbol 262 MovieClip
"hammer"Frame 9Symbol 262 MovieClip
"knife"Frame 9Symbol 262 MovieClip
"apple"Frame 9Symbol 262 MovieClip
"teeth"Frame 9Symbol 262 MovieClip
"part1"Frame 9Symbol 262 MovieClip
"part2"Frame 9Symbol 262 MovieClip
"part3"Frame 9Symbol 262 MovieClip
"door1"Frame 48Symbol 542 MovieClip
"door2"Frame 48Symbol 543 MovieClip
"wine"Frame 74Symbol 228 MovieClip
"loadingBar"Symbol 30 MovieClip [Preloader] Frame 1Symbol 17 MovieClip
"playButton"Symbol 30 MovieClip [Preloader] Frame 10Symbol 29 MovieClip
"newgroundsButton"Symbol 90 MovieClip [FlashAd] Frame 1Symbol 77 Button
"adContainer"Symbol 90 MovieClip [FlashAd] Frame 1Symbol 78 MovieClip
"ad"Symbol 91 MovieClip [APIConnector] Frame 1Symbol 90 MovieClip [FlashAd]
"loader"Symbol 91 MovieClip [APIConnector] Frame 1Symbol 30 MovieClip [Preloader]
"bar"Symbol 192 MovieClip Frame 1Symbol 145 MovieClip
"tankLogo"Symbol 192 MovieClip Frame 1Symbol 180 MovieClip
"loadingText"Symbol 192 MovieClip Frame 1Symbol 184 MovieClip
"testbox"Symbol 458 MovieClip Frame 1Symbol 457 EditableText
"textField"Symbol 604 MovieClip Frame 1Symbol 603 EditableText
"medalPointsText"Symbol 614 MovieClip [MedalPopup] Frame 15Symbol 601 EditableText
"medalNameClip"Symbol 614 MovieClip [MedalPopup] Frame 15Symbol 604 MovieClip
"medalIcon"Symbol 614 MovieClip [MedalPopup] Frame 23Symbol 78 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata present, AS1/AS2.
SWFMetaData (77)Timeline Frame 1258 bytes "<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns ..."
ExportAssets (56)Timeline Frame 1Symbol 1 as "clickclack"
ExportAssets (56)Timeline Frame 1Symbol 2 as "click"
ExportAssets (56)Timeline Frame 1Symbol 3 as "candy5"
ExportAssets (56)Timeline Frame 1Symbol 4 as "candy4"
ExportAssets (56)Timeline Frame 1Symbol 5 as "candy3"
ExportAssets (56)Timeline Frame 1Symbol 6 as "candy2"
ExportAssets (56)Timeline Frame 1Symbol 7 as "candy1"
ExportAssets (56)Timeline Frame 1Symbol 8 as "bad"
ExportAssets (56)Timeline Frame 1Symbol 9 as "page"
ExportAssets (56)Timeline Frame 1Symbol 30 as "Preloader"
ExportAssets (56)Timeline Frame 1Symbol 34 as "Newgrounds API Classes"
ExportAssets (56)Timeline Frame 1Symbol 90 as "FlashAd"
ExportAssets (56)Timeline Frame 1Symbol 91 as "APIConnector"
ExportAssets (56)Timeline Frame 1Symbol 42 as "__Packages.com.newgrounds.APIConnection"
ExportAssets (56)Timeline Frame 1Symbol 36 as "__Packages.com.newgrounds.EventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 35 as "__Packages.com.newgrounds.Event"
ExportAssets (56)Timeline Frame 1Symbol 37 as "__Packages.com.newgrounds.APIEventDispatcher"
ExportAssets (56)Timeline Frame 1Symbol 40 as "__Packages.com.newgrounds.encoders.BaseN"
ExportAssets (56)Timeline Frame 1Symbol 46 as "__Packages.com.newgrounds.APICommand"
ExportAssets (56)Timeline Frame 1Symbol 41 as "__Packages.com.newgrounds.Bridge"
ExportAssets (56)Timeline Frame 1Symbol 38 as "__Packages.com.newgrounds.APIEvent"
ExportAssets (56)Timeline Frame 1Symbol 57 as "__Packages.com.newgrounds.API"
ExportAssets (56)Timeline Frame 1Symbol 54 as "__Packages.com.newgrounds.encoders.ImageScanner"
ExportAssets (56)Timeline Frame 1Symbol 55 as "__Packages.com.newgrounds.SaveFile"
ExportAssets (56)Timeline Frame 1Symbol 53 as "__Packages.com.newgrounds.SaveGroup"
ExportAssets (56)Timeline Frame 1Symbol 51 as "__Packages.com.newgrounds.SaveKey"
ExportAssets (56)Timeline Frame 1Symbol 52 as "__Packages.com.newgrounds.SaveRating"
ExportAssets (56)Timeline Frame 1Symbol 47 as "__Packages.com.newgrounds.BitmapLoader"
ExportAssets (56)Timeline Frame 1Symbol 56 as "__Packages.com.newgrounds.SaveQuery"
ExportAssets (56)Timeline Frame 1Symbol 48 as "__Packages.com.newgrounds.Medal"
ExportAssets (56)Timeline Frame 1Symbol 50 as "__Packages.com.newgrounds.ScoreBoard"
ExportAssets (56)Timeline Frame 1Symbol 39 as "__Packages.com.newgrounds.Logger"
ExportAssets (56)Timeline Frame 1Symbol 58 as "__Packages.com.newgrounds.components.FlashAdBase"
ExportAssets (56)Timeline Frame 1Symbol 31 as "__Packages.com.newgrounds.shims.APIShim"
ExportAssets (56)Timeline Frame 1Symbol 43 as "__Packages.com.newgrounds.crypto.MD5"
ExportAssets (56)Timeline Frame 1Symbol 44 as "__Packages.com.newgrounds.crypto.RC4"
ExportAssets (56)Timeline Frame 1Symbol 45 as "__Packages.com.newgrounds.encoders.json.JSON"
ExportAssets (56)Timeline Frame 1Symbol 49 as "__Packages.com.newgrounds.Score"
ExportAssets (56)Timeline Frame 94Symbol 587 as "Newgrounds API Font"
ExportAssets (56)Timeline Frame 94Symbol 614 as "MedalPopup"

Labels

"serpet"Frame 3
"menu"Frame 8
"story1"Frame 9
"story2"Frame 10
"story3"Frame 11
"start"Frame 12
"start2"Frame 13
"start3"Frame 14
"start4"Frame 15
"start5"Frame 16
"start6"Frame 17
"start7"Frame 18
"talk1"Frame 20
"start8"Frame 22
"father1"Frame 23
"father2"Frame 24
"father3"Frame 25
"father4"Frame 26
"father5"Frame 27
"father6"Frame 28
"journal1"Frame 29
"journal2"Frame 30
"journal3"Frame 31
"journal4"Frame 32
"hutbook1"Frame 33
"hutbook2"Frame 34
"hutbook3"Frame 35
"hutbook4"Frame 36
"talk2"Frame 38
"talk3"Frame 39
"talk4"Frame 41
"talk5"Frame 42
"start9"Frame 44
"talk6"Frame 46
"start10"Frame 48
"bookit"Frame 49
"demon1"Frame 51
"demon2"Frame 52
"demon3"Frame 53
"demon4"Frame 54
"demon5"Frame 55
"demon6"Frame 56
"demon7"Frame 58
"demon8"Frame 59
"demon9"Frame 60
"computer1"Frame 62
"computer2"Frame 63
"computer3"Frame 64
"computer4"Frame 65
"computer5"Frame 66
"computer6"Frame 67
"computer7"Frame 68
"computer8"Frame 69
"computer9"Frame 70
"computer10"Frame 71
"computer11"Frame 72
"diapertime1"Frame 74
"diapertime2"Frame 75
"diapertime3"Frame 76
"diapertime4"Frame 77
"diapertime5"Frame 78
"_up"Symbol 29 MovieClip Frame 1
"_over"Symbol 29 MovieClip Frame 10
"_down"Symbol 29 MovieClip Frame 20
"loading"Symbol 30 MovieClip [Preloader] Frame 1
"loaded"Symbol 30 MovieClip [Preloader] Frame 10
"idle"Symbol 90 MovieClip [FlashAd] Frame 1
"loading"Symbol 90 MovieClip [FlashAd] Frame 10
"loaded"Symbol 90 MovieClip [FlashAd] Frame 20
"noBorder"Symbol 90 MovieClip [FlashAd] Frame 30
"adPreloader"Symbol 91 MovieClip [APIConnector] Frame 2
"ad"Symbol 91 MovieClip [APIConnector] Frame 12
"invisible"Symbol 91 MovieClip [APIConnector] Frame 22
"loaded"Symbol 192 MovieClip Frame 2
"hidden"Symbol 614 MovieClip [MedalPopup] Frame 3
"medalUnlocked"Symbol 614 MovieClip [MedalPopup] Frame 10
"unlockComplete"Symbol 614 MovieClip [MedalPopup] Frame 84




http://swfchan.com/27/134066/info.shtml
Created: 10/2 -2019 02:09:35 Last modified: 10/2 -2019 02:09:35 Server time: 06/12 -2025 21:46:28