PDA

View Full Version : Case in diferent scenes


Kajolas
07-10-2010, 12:26 PM
I have two scenes and my main scene have this code

function continuar(e:VideoEvent):void
{
switch (nivel)
{
case 0 :
video_flv.play("Cena1/C1V1.f4v");
break;

case 1 :
switch (decisao)
{
case 0 :
return;
case 1 :
video_flv.play("Cena1/C1V2.f4v");
break;
case 2 :
video_flv.play("Cena1/C1V3.f4v");
break;
case 3 :
video_flv.play("Cena1/C1V4.f4v");
break;
}
case 2 :
nextScene();
break;
case 3 :
video_flv.play("Cena1/C1V1.f4v");
break;

}

When case 2 happens they go to scene 2 and in scene 2 i have a code to go back to previous scene but i want to back to previous scene but case 3 and not from the start (case 0)

What can i do?

Many thanks