Sunday, July 13, 2008

Loader and URLLoader

If you are just starting out coding in Actionscript 3, at times you might find yourself asking: What is the difference between Loader and URLLoader? Well, before you get asked by someone to RTFM, just remember that Loader inherits from DisplayObjectContainer, so anything that you might use for display purposes (such as swf, jpg, png etc.) you will load it via Loader. URLLoader, on the other hand, inherits from EventDispatcher, so anything that you use as data (such as xml, text file, etc.) you will load it via URLLoader.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home