Hi there. I'm trying to do a very simple urlRequest ...
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE,onLoadCSS);
loader.load(new URLRequest("htmlStyles.css"));
But I'm getting this error message ...
TypeError: Error #1006: value is not a function.
at url_loader/::onLoadCSS()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()
I've checked and double-checked the code and it is fine. The error suggests
problems with the EventDispatcher class itself. Anyone have any ideas at all?