# Need Help Please!

**URL:** <https://forum.kirupa.com/t/need-help-please/307879>\
**Category:** Uncategorized\
**Created:** [April 12, 2010, 4:33pm UTC](https://forum.kirupa.com/t/need-help-please/307879 "2010-04-12T16:33:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gwdphoto](https://avatars.discourse-cdn.com/v4/letter/g/f05b48/32.png) [@gwdphoto](https://forum.kirupa.com/u/gwdphoto)\
**Post date:** [April 12, 2010, 4:33pm UTC](https://forum.kirupa.com/t/need-help-please/307879/1 "2010-04-12T16:33:50Z")

</div>

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()
