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?
Mark this message as the answer.
Tifer - 30 Nov 2007 14:55 GMT
> Hi there. I'm trying to do a very simple urlRequest ...
>
[quoted text clipped - 16 lines]
>
> Mark this message as the answer.
Where's onLoadCSS defined? You didn't list it here.