| i have pretty much every np flash based game sitting in .fla format with the full actionscript and details...i stopped learning actionscript a few yrs ago so all these methods & booleans are new to me...so if theres anyone here that is pro at a.s. hit me up heh..
heres a small chunk from one of the frames in the game
// Action script...
if (String(_level0.winner).length < 1)
{
beginEachScratchURL = undefined;
var tSampleSet = "LOSER";
switch (tSampleSet)
{
case "BUGREPORTED":
{
startText = "%3Cfont+color%3D%22%23000000%22%3EScratch+Three+M atching+Prizes+to+Win%21%3C%2Ffont%3E";
bgSWFURL = "http://swf.neopets.com/space/sc/bg.swf";
scratchSWFURL1 = "http://swf.neopets.com/space/sc/sc_np.swf";
buttonText = "%3Cfont+color%3D%22%23ffffff%22%3EClick+Here+to+C laim+Your+Prize%21%3C%2Ffont%3E";
buttonURL = "http://dev.neopets.com/space/sc/sc_result.phtml%3Fr=\"412\"";
endText = "%3Cfont+color%3D%22%23ffffff%22%3ECongrats%21++Yo u+won+300+Neopoints%21%3C%2Ffont%3E";
winner = "1";
forceStartText = "%3Cbr%3E%3Ca+href%3D%22asfunction%3AforceStart%22 %3EStart+Anyway%3C%2Fa%3E";
matchesNeededToWin = "3";
zonesScratchableMax = "6";
break;
}
case "LOSER":
{
matchesNeededToWin = 3;
zonesScratchableMax = 6;
var testJA_str = "[????????????!]";
startText = testJA_str + "%3Cfont+color%3D%22%23000000%22%3EScratch+Three+M atching+Prizes+to+Win%21%3C%2Ffont%3E";
loadingText = testJA_str + "%3Cfont+color%3D%22%23ffffff%22%3ELoading...%3C%2 Ffont%3E";
bgSWFURL = "http://swf.neopets.com/space/sc/bg.swf";
scratchSWFURL1 = "space_item0_v1_mc";
scratchSWFURL2 = "space_item1_v1_mc";
scratchSWFURL3 = "space_item0_v1_mc";
scratchSWFURL4 = "space_item4_v1_mc";
scratchSWFURL5 = "space_item3_v1_mc";
scratchSWFURL6 = "space_item10_v1_mc";
scratchSWFURL7 = "space_item11_v1_mc";
scratchSWFURL8 = "space_item12_v1_mc";
scratchSWFURL9 = "space_item13_v1_mc";
endText = testJA_str + "%3Cfont+color%3D%22%23ffffff%22%3ESorry+You+did+n ot+get+3+matches%21%3C%2Ffont%3E";
winner = "0";
forceStartText = "%3Cbr%3E%3Ca+href%3D%22asfunction%3AforceStart%22 %3E" + testJA_str + "Start+Anyway%3C%2Fa%3E";
break;
}
case "WINNER":
{
var testJA_str = "[????????????!]";
matchesNeededToWin = 3;
zonesScratchableMax = 6;
startText = "%3Cfont+color%3D%22%23000000%22%3EScratch+Three+M atching+Prizes+to+Win%21%3C%2Ffont%3E";
loadingText = "%3Cfont+color%3D%22%23ffffff%22%3ELoading...%3C%2 Ffont%3E";
bgSWFURL = "http://images.neopets.com/desert/desert_sc/sc_bg_sut.swf";
scratchSWFURL1 = "http://swf.neopets.com/space/sc/sc_item1.swf";
scratchSWFURL2 = "http://swf.neopets.com/space/sc/sc_item2.swf";
scratchSWFURL3 = "http://swf.neopets.com/space/sc/sc_item3.swf";
scratchSWFURL4 = "http://swf.neopets.com/space/sc/sc_item4.swf";
scratchSWFURL5 = "http://swf.neopets.com/space/sc/sc_item5.swf";
scratchSWFURL6 = "http://swf.neopets.com/space/sc/sc_item6.swf";
scratchSWFURL7 = "http://swf.neopets.com/space/sc/sc_item7.swf";
scratchSWFURL8 = "http://swf.neopets.com/space/sc/sc_item8.swf";
scratchSWFURL9 = "http://swf.neopets.com/space/sc/sc_item9.swf";
buttonText = "%3Cfont+color%3D%22%23ffffff%22%3E" + testJA_str + "Click+Here+to+Claim+Your+Prize%21%3C%2Ffont%3 E";
buttonURL = "http://dev.neopets.com/space/sc/sc_result.phtml%3Fobj_filename=toy_spacefae_keyrin g%26obj_name=Space+Faerie+Keyring%26sc=space%26np= 0";
endText = "%3Cfont+color%3D%22%23ffffff%22%3E" + testJA_str + "Congrats%21+You+have+won+an+amazing+Space+Faerie+ Keyring%21%3C%2Ffont%3E";
winner = "1";
forceStartText = "%3Cbr%3E%3Ca+href%3D%22asfunction%3AforceStart%22 %3EStart+Anyway%3C%2Fa%3E";
break;
}
} // End of switch
bgSWFURL = "space_faierie_bg_v1.swf";
} // end if
Last edited by randim; 10-14-2008 at 11:52 PM..
|