Tuesday, November 29, 2011

Monday, November 28, 2011

var mainLoader:Loader = new Loader();
//create new URLRequest and fill it
var defaultSWF:URLRequest = new URLRequest("bear.swf");

//load the loader
mainLoader.load(defaultSWF);
//position the loader on the page
mainLoader.y = 0;
mainLoader.x = 0;
//add the loader to the page
addChild(mainLoader);

//*******************************************************

function step(event:MouseEvent):void {

removeChild(mainLoader);
SoundMixer.stopAll();

}

//event listeners which run function btnClick for CLICK event of each button

stepbystep_btn.addEventListener(MouseEvent.CLICK, step);

Presentation Schedule

Wednesday. 11/30:
1. Todd Bowie
2. Neal Siddell
3. Aaron Schute
4. Joshua
5. Max
6. Chelsey
7. Joshua D.

Monday 12/5:
8. Rachel
9. Casey
10. Tricia
11. Tami
12. Dale
13. Brett
14. Dan

Friday, November 4, 2011

Code Option for the Welcome .fla

This will remove the Intro.fla AND the Title.fla after you click the Play/Stop, Direction buttons. The previous version removed the Intro, but kept the Title on the Stage.

---------------------

var titleLoader:Loader = new Loader();
//create new URLRequest and fill it
var titleSWF:URLRequest = new URLRequest("Title.swf");

//load the loader
titleLoader.load(titleSWF);
//position the loader on the page
titleLoader.y = 0;
titleLoader.x = 0;
//add the loader to the page
addChild(titleLoader);

//*******************************************************

var mainLoader:Loader = new Loader();
//create new URLRequest and fill it
var defaultSWF:URLRequest = new URLRequest("Intro.swf");

//load the loader
mainLoader.load(defaultSWF);
//position the loader on the page
mainLoader.y = 0;
mainLoader.x = 0;
//add the loader to the page
addChild(mainLoader);

//*******************************************************

function step(event:MouseEvent):void {

removeChild(mainLoader);
var direct_url:URLRequest = new URLRequest("Directions.swf");
mainLoader.load(direct_url);
addChild(mainLoader);
removeChild(titleLoader);

}

function ani(event:MouseEvent):void {

removeChild(mainLoader);
var ani_url:URLRequest = new URLRequest("start_stop.swf");
mainLoader.load(ani_url);
mainLoader.y = 150;
mainLoader.x = 150;
addChild(mainLoader);
removeChild(titleLoader);
}

//event listeners which run function btnClick for CLICK event of each button

step_btn.addEventListener(MouseEvent.CLICK, step);
aniPlay_btn.addEventListener(MouseEvent.CLICK, ani);

-----------------