Hi guys,
I am currently trying to build a preloader that will preload my movie. The code for the preloader resides in the class.
Basicly, i need to pass a reference of my movie to my class. I am currently using:
var myloader:mySiteLoader = new mySiteLoader(this);
in my class i have the following relevant code:
private var movieToLoad:*;
public function mySiteLoader(movieLoad:*){
movieToLoad = movieLoad;
movieToLoad.addEventListener(ProgressEvent.PROGRESS, progressHandler);
movieToLoad.addEventListener(Event.COMPLETE, onComplete);
}
This however, chucks an TypeError: Error #1010: A term is undefined and has no properties. at me.
Any ideas appreciated