Hi Y’all,
I’m working on getting my website up and running and seriously need some help with it. What I am trying to do is build my site where the preloader, the animated intro, and my site content are all in seperate movie clips on seperate layers in the main timeline. I am getting an output error when I go to test the movie I am getting a couple output errors and have no idea what I’m doing wrong that is causing them. I am going to post the code here and I hope someone can at least point me in the right direction.
This is the code that I have nested in my preloader movie clip:
//Preloader
//Event Listeners
loaderInfo.addEventListener(ProgressEvent.PROGRESS , loadProgress);
loaderInfo.addEventListener(Event.COMPLETE, loadComplete);
//Functions
function loadProgress(Event:ProgressEvent):void {
var percent:Number = Math.floor((MovieClip(parent).bytesLoaded * 100) / (MovieClip(parent).bytesTotal));
preloader_txt.text= percent+“%”;
bytesLoaded_txt.text= MovieClip(parent).bytesLoaded;
totalBytes_txt.text= MovieClip(parent).bytesTotal;
preloaderMask_mc.width= percent*5.9;
}
function loadComplete(e:Event):void {
gotoAndStop( MovieClip(parent)(2));
}
Here are the errors that I am getting:
TypeError: Error #2007: Parameter text must be non-null.
at flash.text::TextField/set text()
at index_fla:: preloader_mc_1/loadProgress()
TypeError: Error #1006: value is not a function.
at index_fla:: preloader_mc_1/loadComplete()