Hello.
Let me start by thanking eveyone what made comments on my first efforst with Flash. My web portfolio is really nice, thank to you all. It can be viewed on www.marisol-quintana.com.
Also:
I have a small document that I hope to copy, change the numbers sligthly, to help my daughter learn to read an analog clock.
I have two problems: when I click from file 1 to go to file 2, the background of file 1 remains in the bacground. At the end, say 10-15 test on the clocks... I would like a grand total of cocrect gruess based on the guress being made in the firt try.
The url is:
www.marisol-quintana/public_html/
telltime/index.html
The two swf files are: http://www.marisol-quintana.com/TellTime/TellTime_part1.swf
and
http://www.marisol-quintana.com/TellTime/TellTime_part2.swf
The wode code I have is:
Any suggestions from you as to how to improve woud be trly welcome. I just want her to get the clock and move on!
Thanks for your consideration. I very much appreciate the help of this community.
This is the last action in the clip1.swf
back_btn.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF);
import fl.display.ProLoader;
var fl_ProLoader:ProLoader;
var fl_ToLoad:Boolean = true;
function fl_ClickToLoadUnloadSWF(event:MouseEvent):void
{
if(fl_ToLoad)
{
fl_ProLoader = new ProLoader();
fl_ProLoader.load(new URLRequest("swf2.swf"));
addChild(fl_ProLoader);
}
else
{
fl_ProLoader.unload();
removeChild(fl_ProLoader);
fl_ProLoader = null;
}
fl_ToLoad = !fl_ToLoad;
}
This is the first action in swf2.swf:
import flash.events.MouseEvent;
stop();
one_btn.addEventListener(MouseEvent.CLICK, goodJob);
two_btn.addEventListener(MouseEvent.CLICK, tryAgain);
three_btn.addEventListener(MouseEvent.CLICK, tryAgain);
function tryAgain(event:MouseEvent):void{
gotoAndStop(2);
}
function goodJob(event:MouseEvent):void{
gotoAndStop(3);
}
Sorry: second file referred to in script s/b: TellTime_part2.swf