Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Actionscript / November 2007



Tip: Looking for answers? Try searching our database.

TypeError: Error #1006: value is not a function.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ProbertNet - 30 Nov 2007 10:53 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.