Unit 06 - Preloaders and Walk Sequences
Preloaders - Video Lecture
Creating a Preloader
stop();
//Preloader
loaderInfo.addEventListener(ProgressEvent.PROGRESS, updatePreloader);
function updatePreloader(evtObj:ProgressEvent):void
{
//container for the progress of the site (download)
var percent:Number = Math.floor((evtObj.bytesLoaded*100)/evtObj.bytesTotal);
preloader_txt.text = percent+"%";
progress.gotoAndStop(percent);
if (percent==100){
nextFrame();
}
}
//for IE browsers
var percent:Number = Math.floor((this.loaderInfo.bytesLoaded*100)/this.loaderInfo.bytesTotal);
if (percent==100){
nextFrame();
}
Using the Bone Tool
Check out this video. It goes in to more depth about using the bone tool.
Walk Sequence
Try your hand at animating a walk cycle.