TheAgent
10-30-2010, 10:23 PM
I have a movie clip that will play if Score = 0 it does technically play
but remains frozen at the first frame. After the stop command i set it to play when "Start" is called however as i said it only plays the first frame and stops, almost as if i told it to "gotoAndStop(Start); however i put "gotoAndPlay("Start"); but it remains stopped, and i made sure that there arent any stop(); commands lying around.
actionscript code
_global.gfxExtensions = true ;
import flash.external.ExternalInterface;
//...
// much of the game will be visual then uscript through flash.
var Score:Number = 0;
var Balls:Number = 3;
text1.text = "Score : " + Score;
text2.text = "Balls : " + Balls;
function addScore(intScore:Number)
{
Score = intScore + Score;
text1.text = "Score : " + Score;
}
//technically subtract pinballs
function subBalls(intBalls:Number)
{
Balls = intBalls + Balls;
text1.text = "Balls : " + Balls;
}
//Begining
if (Score == 0)
{
flasher.gotoAndPlay("Start");
} else if (Score > 1){
flasher.gotoAndStop(1);
}
//End of notification
//PINBALL FUNCTIONS
// what to do if you have a certain amount of balls ;D
if (Balls == 0) //end game Uscript call if balls equals zero
{
ExternalInterface.call("OutofPinBalls");
//if pinballs equals 1 then load a warning.
} else if (Balls == 1){
loadMovieNum("lowpinballs.swf",2);
} else if (Balls >= 2){ //else make sure its unloaded
unloadMovie("lowpinballs.swf");
} else {
//do nothing homie!... for now.
}
//VISIBLE Point TROPHIES
if (Score >= 9500)
{// first trophy
loadMovieNum("ninektrophy.swf",3);
} else if (Score >= 15500) {
loadMovieNum("fiffivetrophy.swf",4);
} else if (Score >= 25500) {
loadMovieNum("twofivetrophy.swf",5);
} else if (Score >= 50500) {
loadMovieNum("halfhundredtrophy.swf",6);
} else if (Score >= 101000){
loadMovieNum("onehundredtrophy.swf",7);
} else if (Score >= 500000){
loadMovieNum("fivehundredtrophy.swf",8);
} else if (Score >=1000000){
loadMovieNum("millionairetrophy.swf",9);
} else if (Score >=2000000){
loadMovieNum("needsalifetrophy.swf",10);
}
//End of Score Trophy system
not sure what to do. Thanks
Note: the loadMovieNum's will be replaced.
but remains frozen at the first frame. After the stop command i set it to play when "Start" is called however as i said it only plays the first frame and stops, almost as if i told it to "gotoAndStop(Start); however i put "gotoAndPlay("Start"); but it remains stopped, and i made sure that there arent any stop(); commands lying around.
actionscript code
_global.gfxExtensions = true ;
import flash.external.ExternalInterface;
//...
// much of the game will be visual then uscript through flash.
var Score:Number = 0;
var Balls:Number = 3;
text1.text = "Score : " + Score;
text2.text = "Balls : " + Balls;
function addScore(intScore:Number)
{
Score = intScore + Score;
text1.text = "Score : " + Score;
}
//technically subtract pinballs
function subBalls(intBalls:Number)
{
Balls = intBalls + Balls;
text1.text = "Balls : " + Balls;
}
//Begining
if (Score == 0)
{
flasher.gotoAndPlay("Start");
} else if (Score > 1){
flasher.gotoAndStop(1);
}
//End of notification
//PINBALL FUNCTIONS
// what to do if you have a certain amount of balls ;D
if (Balls == 0) //end game Uscript call if balls equals zero
{
ExternalInterface.call("OutofPinBalls");
//if pinballs equals 1 then load a warning.
} else if (Balls == 1){
loadMovieNum("lowpinballs.swf",2);
} else if (Balls >= 2){ //else make sure its unloaded
unloadMovie("lowpinballs.swf");
} else {
//do nothing homie!... for now.
}
//VISIBLE Point TROPHIES
if (Score >= 9500)
{// first trophy
loadMovieNum("ninektrophy.swf",3);
} else if (Score >= 15500) {
loadMovieNum("fiffivetrophy.swf",4);
} else if (Score >= 25500) {
loadMovieNum("twofivetrophy.swf",5);
} else if (Score >= 50500) {
loadMovieNum("halfhundredtrophy.swf",6);
} else if (Score >= 101000){
loadMovieNum("onehundredtrophy.swf",7);
} else if (Score >= 500000){
loadMovieNum("fivehundredtrophy.swf",8);
} else if (Score >=1000000){
loadMovieNum("millionairetrophy.swf",9);
} else if (Score >=2000000){
loadMovieNum("needsalifetrophy.swf",10);
}
//End of Score Trophy system
not sure what to do. Thanks
Note: the loadMovieNum's will be replaced.