1 person found this helpful
as soon as that line (cntl_mc.urlName = "extswf.swf"; ) of code executes, your setter will either execute or you'll have an error.
You are correct. My version has a trace statement immediate before the loader = new Loader(); statement. Here are the results:
urlName constructor null
TypeError: Error #2007: Parameter url must be non-null.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
you have to remove that load() method from your constructor. otherwise, you have to call your setter before your constructor executes - a guaranteed error.
so, have your setter call a function that executes your load() method
Thank you - works fine now!